@timum/booking 1.6.7 → 1.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/booking.js CHANGED
@@ -47740,6 +47740,7 @@ function H0({
47740
47740
  {
47741
47741
  open: y == null ? void 0 : y.open,
47742
47742
  onClose: y == null ? void 0 : y.onClose,
47743
+ allowCloseOnBooking: y == null ? void 0 : y.allowCloseOnBooking,
47743
47744
  children: /* @__PURE__ */ $.jsx(bq, {})
47744
47745
  }
47745
47746
  ),
@@ -66469,6 +66470,10 @@ const uKe = Hf`
66469
66470
  --fc-today-bg-color: transparent !important;
66470
66471
  --fc-event-shadow-color: #d0d0d0 !important;
66471
66472
  }
66473
+
66474
+ .fc {
66475
+ font-size: 1rem !important;
66476
+ }
66472
66477
  .fc .fc-today-button {
66473
66478
  border: 0px !important;
66474
66479
  }
@@ -301,7 +301,7 @@ LAST-MODIFIED:`+n[1].replace(/[^\w_\-:,;=+/<br>]/g,"").replace(/<br>/g,`\r
301
301
  0%, 100% {
302
302
  transform: translateX(0);
303
303
  }
304
- `;function Kz(e){const{t}=An(),{userName:n,doOnSuccess:r}=ss(e,i8),{enqueueSnackbar:i}=rS(),o=S8({defaultValues:W9(pC),resolver:a9(A0().shape(V9(pC)))}),s=lv(),a=$e(g=>Ve(g,"host")),[l,u]=ie.useState(),[d,{isLoading:f,isError:m}]=Xee(),p=async g=>{const v=await d({body:{userName:n,password:g.password}});v.error?(u(!0),setTimeout(()=>{u(!1)},1e3)):(r&&r(),s(m_({pathToProp:"auth2",newValue:v.data.auth2})),i(t("login.success"),{variant:"success"}))};return $.jsxs(Xr,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[$.jsx(fpe,{sx:{m:1,bgcolor:"secondary.main"},children:$.jsx(Yz,{})}),$.jsx(He,{variant:"h2",children:t("login.sign_in")}),$.jsx(He,{variant:"subtitle2",textAlign:"center",mt:1,children:$.jsxs(kde,{t,i18nKey:"login.explanation",children:["Ein Benutzer mit dieser E-Mail existiert bereits. ",$.jsx("br",{})," Sie müssen sich authentifizieren, bevor Sie buchen können."]})}),$.jsx(Xr,{borderBottom:"1px solid #ddd",width:"80%",mt:2,mb:2}),$.jsxs(Xr,{component:"form",onSubmit:o.handleSubmit(p),noValidate:!0,sx:{mt:1},children:[$.jsx(He,{variant:"body1",textAlign:"center",children:n}),$.jsx(S2,{fields:pC,disableEmptyErrorText:!0,rhfProps:{control:o.control},containerProps:{spacing:0},textFieldProps:{sx:{animation:l?`${Mke} 500ms linear 1`:""}}}),m&&$.jsx(He,{color:"error.main",variant:"body1",textAlign:"center",children:t("login.failed")}),$.jsx(My,{type:"submit",loading:f,fullWidth:!0,variant:"contained",sx:{mt:3,mb:2},children:t("login.sign_in")}),$.jsx(lS,{href:`${a}/auth/reset`,display:"block",variant:"body2",textAlign:"center",target:"_blank",children:t("login.forgot_password")})]})]})}Kz.propTypes={};function N0({utilizeProductInterface:e=!0,utilizeUnknownCustomerInterface:t=!0,utilizeIdentifiedCustomerInterface:n=!0,utilizeCancelAppointmentInterface:r=!0,utilizeConfirmationInterface:i=!0,utilizeLoginInterface:o=!0,utilizeErrorDialogInterface:s=!0}){const a=$e(C=>Ve(C,"interfaces.ProductPage")),l=$e(C=>Ve(C,"interfaces.UnkownBookingPage")),u=$e(C=>Ve(C,"interfaces.IdentifiedBookingPage")),d=$e(C=>Ve(C,"interfaces.CancelPage")),f=$e(C=>Ve(C,"interfaces.ConfirmationPage")),m=$e(C=>Ve(C,"interfaces.LoginPage")),p=$e(C=>Ve(C,"interfaces.ErrorDialog")),g=_.useContext(_y),v=_.useContext(Oy),S=_.useContext(n8),y=_.useContext(r8),x=_.useContext(i8),w=_.useContext(ZI);return $.jsxs($.Fragment,{children:[e&&a&&$.jsx(a,{open:g==null?void 0:g.open,onClose:g==null?void 0:g.onClose,children:$.jsx(nN,{onProductSelected:g==null?void 0:g.onClose})}),n&&u&&$.jsx(u,{open:v==null?void 0:v.identifiedOpen,onClose:v==null?void 0:v.onClose,children:$.jsx(gz,{...v})}),t&&l&&$.jsx(l,{open:v==null?void 0:v.unknownOpen,onClose:v==null?void 0:v.onClose,children:$.jsx(mz,{...v})}),r&&d&&$.jsx(d,{open:S==null?void 0:S.open,onClose:S==null?void 0:S.onClose,children:$.jsx(vz,{})}),i&&f&&$.jsx(f,{open:y==null?void 0:y.open,onClose:y==null?void 0:y.onClose,children:$.jsx(Gz,{})}),o&&m&&$.jsx(m,{open:x==null?void 0:x.open,onClose:x==null?void 0:x.onClose,children:$.jsx(Kz,{doOnSuccess:x==null?void 0:x.handleCloseLoginPage})}),s&&p&&$.jsx(p,{open:w==null?void 0:w.open,onClose:w==null?void 0:w.onClose})]})}const Zz=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),A2=_.createContext({}),R2=_.createContext(null),_2=typeof document<"u",hC=_2?_.useLayoutEffect:_.useEffect,Qz=_.createContext({strict:!1}),mC=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Xz="data-"+mC("framerAppearId"),Jz={skipAnimations:!1,useManualTiming:!1};class eB{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Ike(e){let t=new eB,n=new eB,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,d=!1)=>{const f=d&&i,m=f?t:n;return u&&s.add(l),m.add(l)&&f&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const d=t.order[u];s.has(d)&&(a.schedule(d),e()),d(l)}i=!1,o&&(o=!1,a.process(l))}};return a}const O2=["prepare","read","update","preRender","render","postRender"],Nke=40;function tB(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=O2.reduce((f,m)=>(f[m]=Ike(()=>n=!0),f),{}),s=f=>{o[f].process(i)},a=()=>{const f=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,Nke),1),i.timestamp=f,i.isProcessing=!0,O2.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:O2.reduce((f,m)=>{const p=o[m];return f[m]=(g,v=!1,S=!1)=>(n||l(),p.schedule(g,v,S)),f},{}),cancel:f=>O2.forEach(m=>o[m].cancel(f)),state:i,steps:o}}const{schedule:gC,cancel:LQe}=tB(queueMicrotask,!1);function Lke(e,t,n,r){const{visualElement:i}=_.useContext(A2),o=_.useContext(Qz),s=_.useContext(R2),a=_.useContext(Zz).reducedMotion,l=_.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;_.useInsertionEffect(()=>{u&&u.update(n,s)});const d=_.useRef(!!(n[Xz]&&!window.HandoffComplete));return hC(()=>{u&&(gC.postRender(u.render),d.current&&u.animationState&&u.animationState.animateChanges())}),_.useEffect(()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),u}function xf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Fke(e,t,n){return _.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xf(n)&&(n.current=r))},[t])}function L0(e){return typeof e=="string"||Array.isArray(e)}function P2(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const vC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],yC=["initial",...vC];function D2(e){return P2(e.animate)||yC.some(t=>L0(e[t]))}function nB(e){return!!(D2(e)||e.variants)}function jke(e,t){if(D2(e)){const{initial:n,animate:r}=e;return{initial:n===!1||L0(n)?n:void 0,animate:L0(r)?r:void 0}}return e.inherit!==!1?t:{}}function zke(e){const{initial:t,animate:n}=jke(e,_.useContext(A2));return _.useMemo(()=>({initial:t,animate:n}),[rB(t),rB(n)])}function rB(e){return Array.isArray(e)?e.join(" "):e}const iB={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"]},F0={};for(const e in iB)F0[e]={isEnabled:t=>iB[e].some(n=>!!t[n])};function Bke(e){for(const t in e)F0[t]={...F0[t],...e[t]}}const bC=_.createContext({}),oB=_.createContext({}),Uke=Symbol.for("motionComponentSymbol");function Hke({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Bke(e);function o(a,l){let u;const d={..._.useContext(Zz),...a,layoutId:Vke(a)},{isStatic:f}=d,m=zke(a),p=r(a,f);if(!f&&_2){m.visualElement=Lke(i,p,d,t);const g=_.useContext(oB),v=_.useContext(Qz).strict;m.visualElement&&(u=m.visualElement.loadFeatures(d,v,e,g))}return _.createElement(A2.Provider,{value:m},u&&m.visualElement?_.createElement(u,{visualElement:m.visualElement,...d}):null,n(i,a,Fke(p,m.visualElement,l),p,f,m.visualElement))}const s=_.forwardRef(o);return s[Uke]=i,s}function Vke({layoutId:e}){const t=_.useContext(bC).id;return t&&e!==void 0?t+"-"+e:e}function Wke(e){function t(r,i={}){return Hke(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const qke=["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 xC(e){return typeof e!="string"||e.includes("-")?!1:!!(qke.indexOf(e)>-1||/[A-Z]/.test(e))}const M2={};function Gke(e){Object.assign(M2,e)}const j0=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zu=new Set(j0);function sB(e,{layout:t,layoutId:n}){return Zu.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!M2[e]||e==="opacity")}const ei=e=>!!(e&&e.getVelocity),Yke={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Kke=j0.length;function Zke(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<Kke;s++){const a=j0[s];if(e[a]!==void 0){const l=Yke[a]||a;o+=`${l}(${e[a]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const aB=e=>t=>typeof t=="string"&&t.startsWith(e),lB=aB("--"),Qke=aB("var(--"),I2=e=>Qke(e)?Xke.test(e.split("/*")[0].trim()):!1,Xke=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,Jke=(e,t)=>t&&typeof e=="number"?t.transform(e):e,wl=(e,t,n)=>n>t?t:n<e?e:n,wf={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},z0={...wf,transform:e=>wl(0,1,e)},N2={...wf,default:1},B0=e=>Math.round(e*1e5)/1e5,wC=/(-)?([\d]*\.?[\d])+/g,eEe=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,tEe=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function U0(e){return typeof e=="string"}const H0=e=>({test:t=>U0(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Sl=H0("deg"),ls=H0("%"),tt=H0("px"),nEe=H0("vh"),rEe=H0("vw"),uB={...ls,parse:e=>ls.parse(e)/100,transform:e=>ls.transform(e*100)},cB={...wf,transform:Math.round},dB={borderWidth:tt,borderTopWidth:tt,borderRightWidth:tt,borderBottomWidth:tt,borderLeftWidth:tt,borderRadius:tt,radius:tt,borderTopLeftRadius:tt,borderTopRightRadius:tt,borderBottomRightRadius:tt,borderBottomLeftRadius:tt,width:tt,maxWidth:tt,height:tt,maxHeight:tt,size:tt,top:tt,right:tt,bottom:tt,left:tt,padding:tt,paddingTop:tt,paddingRight:tt,paddingBottom:tt,paddingLeft:tt,margin:tt,marginTop:tt,marginRight:tt,marginBottom:tt,marginLeft:tt,rotate:Sl,rotateX:Sl,rotateY:Sl,rotateZ:Sl,scale:N2,scaleX:N2,scaleY:N2,scaleZ:N2,skew:Sl,skewX:Sl,skewY:Sl,distance:tt,translateX:tt,translateY:tt,translateZ:tt,x:tt,y:tt,z:tt,perspective:tt,transformPerspective:tt,opacity:z0,originX:uB,originY:uB,originZ:tt,zIndex:cB,fillOpacity:z0,strokeOpacity:z0,numOctaves:cB};function SC(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,u=!1,d=!0;for(const f in t){const m=t[f];if(lB(f)){o[f]=m;continue}const p=dB[f],g=Jke(m,p);if(Zu.has(f)){if(l=!0,s[f]=g,!d)continue;m!==(p.default||0)&&(d=!1)}else f.startsWith("origin")?(u=!0,a[f]=g):i[f]=g}if(t.transform||(l||r?i.transform=Zke(e.transform,n,d,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:m="50%",originZ:p=0}=a;i.transformOrigin=`${f} ${m} ${p}`}}const CC=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fB(e,t,n){for(const r in t)!ei(t[r])&&!sB(r,n)&&(e[r]=t[r])}function iEe({transformTemplate:e},t,n){return _.useMemo(()=>{const r=CC();return SC(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function oEe(e,t,n){const r=e.style||{},i={};return fB(i,r,e),Object.assign(i,iEe(e,t,n)),i}function sEe(e,t,n){const r={},i=oEe(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const aEe=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 L2(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||aEe.has(e)}let pB=e=>!L2(e);function lEe(e){e&&(pB=t=>t.startsWith("on")?!L2(t):e(t))}try{lEe(require("@emotion/is-prop-valid").default)}catch{}function uEe(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(pB(i)||n===!0&&L2(i)||!t&&!L2(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function hB(e,t,n){return typeof e=="string"?e:tt.transform(t+n*e)}function cEe(e,t,n){const r=hB(t,e.x,e.width),i=hB(n,e.y,e.height);return`${r} ${i}`}const dEe={offset:"stroke-dashoffset",array:"stroke-dasharray"},fEe={offset:"strokeDashoffset",array:"strokeDasharray"};function pEe(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?dEe:fEe;e[o.offset]=tt.transform(-r);const s=tt.transform(t),a=tt.transform(n);e[o.array]=`${s} ${a}`}function $C(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},d,f,m){if(SC(e,u,d,m),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:v}=e;p.transform&&(v&&(g.transform=p.transform),delete p.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=cEe(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&pEe(p,s,a,l,!1)}const mB=()=>({...CC(),attrs:{}}),TC=e=>typeof e=="string"&&e.toLowerCase()==="svg";function hEe(e,t,n,r){const i=_.useMemo(()=>{const o=mB();return $C(o,t,{enableHardwareAcceleration:!1},TC(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};fB(o,e.style,e),i.style={...o,...i.style}}return i}function mEe(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(xC(n)?hEe:sEe)(r,o,s,n),u=uEe(r,typeof n=="string",e),d=n!==_.Fragment?{...u,...l,ref:i}:{},{children:f}=r,m=_.useMemo(()=>ei(f)?f.get():f,[f]);return _.createElement(n,{...d,children:m})}}function gB(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const vB=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 yB(e,t,n,r){gB(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(vB.has(i)?i:mC(i),t.attrs[i])}function kC(e,t){const{style:n}=e,r={};for(const i in n)(ei(n[i])||t.style&&ei(t.style[i])||sB(i,e))&&(r[i]=n[i]);return r}function bB(e,t){const n=kC(e,t);for(const r in e)if(ei(e[r])||ei(t[r])){const i=j0.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function EC(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function xB(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const F2=e=>Array.isArray(e),gEe=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),vEe=e=>F2(e)?e[e.length-1]||0:e;function j2(e){const t=ei(e)?e.get():e;return gEe(t)?t.toValue():t}function yEe({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:bEe(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const wB=e=>(t,n)=>{const r=_.useContext(A2),i=_.useContext(R2),o=()=>yEe(e,t,r,i);return n?o():xB(o)};function bEe(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=j2(o[m]);let{initial:s,animate:a}=e;const l=D2(e),u=nB(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const f=d?a:s;return f&&typeof f!="boolean"&&!P2(f)&&(Array.isArray(f)?f:[f]).forEach(p=>{const g=EC(e,p);if(!g)return;const{transitionEnd:v,transition:S,...y}=g;for(const x in y){let w=y[x];if(Array.isArray(w)){const C=d?w.length-1:0;w=w[C]}w!==null&&(i[x]=w)}for(const x in v)i[x]=v[x]}),i}const Rn=e=>e,{schedule:an,cancel:Js,state:lr,steps:AC}=tB(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rn,!0),xEe={useVisualState:wB({scrapeMotionValuesFromProps:bB,createRenderState:mB,onMount:(e,t,{renderState:n,latestValues:r})=>{an.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),an.render(()=>{$C(n,r,{enableHardwareAcceleration:!1},TC(t.tagName),e.transformTemplate),yB(t,n)})}})},wEe={useVisualState:wB({scrapeMotionValuesFromProps:kC,createRenderState:CC})};function SEe(e,{forwardMotionProps:t=!1},n,r){return{...xC(e)?xEe:wEe,preloadedFeatures:n,useRender:mEe(t),createVisualElement:r,Component:e}}function ea(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const SB=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function z2(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const CEe=e=>t=>SB(t)&&e(t,z2(t));function ta(e,t,n,r){return ea(e,t,CEe(n),r)}const $Ee=(e,t)=>n=>t(e(n)),na=(...e)=>e.reduce($Ee);function CB(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const $B=CB("dragHorizontal"),TB=CB("dragVertical");function kB(e){let t=!1;if(e==="y")t=TB();else if(e==="x")t=$B();else{const n=$B(),r=TB();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function EB(){const e=kB(!0);return e?(e(),!1):!0}class Cl{constructor(t){this.isMounted=!1,this.node=t}update(){}}function AB(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||EB())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&an.update(()=>a[r](o,s))};return ta(e.current,n,i,{passive:!e.getProps()[r]})}class TEe extends Cl{mount(){this.unmount=na(AB(this.node,!0),AB(this.node,!1))}unmount(){}}class kEe extends Cl{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=na(ea(this.node.current,"focus",()=>this.onFocus()),ea(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const RB=(e,t)=>t?e===t?!0:RB(e,t.parentElement):!1;function RC(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,z2(n))}class EEe extends Cl{constructor(){super(...arguments),this.removeStartListeners=Rn,this.removeEndListeners=Rn,this.removeAccessibleListeners=Rn,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=ta(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:d,globalTapTarget:f}=this.node.getProps();an.update(()=>{!f&&!RB(this.node.current,a.target)?d&&d(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=ta(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=na(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||RC("up",(l,u)=>{const{onTap:d}=this.node.getProps();d&&an.update(()=>d(l,u))})};this.removeEndListeners(),this.removeEndListeners=ea(this.node.current,"keyup",s),RC("down",(a,l)=>{this.startPress(a,l)})},n=ea(this.node.current,"keydown",t),r=()=>{this.isPressing&&RC("cancel",(o,s)=>this.cancelPress(o,s))},i=ea(this.node.current,"blur",r);this.removeAccessibleListeners=na(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&an.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!EB()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&an.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=ta(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ea(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=na(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const _C=new WeakMap,OC=new WeakMap,AEe=e=>{const t=_C.get(e.target);t&&t(e)},REe=e=>{e.forEach(AEe)};function _Ee({root:e,...t}){const n=e||document;OC.has(n)||OC.set(n,{});const r=OC.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(REe,{root:e,...t})),r[i]}function OEe(e,t,n){const r=_Ee(t);return _C.set(e,n),r.observe(e),()=>{_C.delete(e),r.unobserve(e)}}const PEe={some:0,all:1};class DEe extends Cl{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:PEe[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),m=u?d:f;m&&m(l)};return OEe(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(MEe(t,n))&&this.startObserver()}unmount(){}}function MEe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const IEe={inView:{Feature:DEe},tap:{Feature:EEe},focus:{Feature:kEe},hover:{Feature:TEe}};function _B(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function NEe(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function LEe(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function B2(e,t,n){const r=e.getProps();return EC(r,t,n!==void 0?n:r.custom,NEe(e),LEe(e))}let FEe=Rn,PC=Rn;const $l=e=>e*1e3,ra=e=>e/1e3,jEe={current:!1},OB=e=>Array.isArray(e)&&typeof e[0]=="number";function PB(e){return!!(!e||typeof e=="string"&&DB[e]||OB(e)||Array.isArray(e)&&e.every(PB))}const V0=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,DB={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:V0([0,.65,.55,1]),circOut:V0([.55,0,1,.45]),backIn:V0([.31,.01,.66,-.59]),backOut:V0([.33,1.53,.69,.99])};function MB(e){if(e)return OB(e)?V0(e):Array.isArray(e)?e.map(MB):DB[e]}function zEe(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=MB(a);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function BEe(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const IB=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,UEe=1e-7,HEe=12;function VEe(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=IB(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>UEe&&++a<HEe);return s}function W0(e,t,n,r){if(e===t&&n===r)return Rn;const i=o=>VEe(o,0,1,e,n);return o=>o===0||o===1?o:IB(i(o),t,r)}const WEe=W0(.42,0,1,1),qEe=W0(0,0,.58,1),NB=W0(.42,0,.58,1),GEe=e=>Array.isArray(e)&&typeof e[0]!="number",LB=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,FB=e=>t=>1-e(1-t),DC=e=>1-Math.sin(Math.acos(e)),jB=FB(DC),YEe=LB(DC),zB=W0(.33,1.53,.69,.99),MC=FB(zB),KEe=LB(MC),ZEe={linear:Rn,easeIn:WEe,easeInOut:NB,easeOut:qEe,circIn:DC,circInOut:YEe,circOut:jB,backIn:MC,backInOut:KEe,backOut:zB,anticipate:e=>(e*=2)<1?.5*MC(e):.5*(2-Math.pow(2,-10*(e-1)))},BB=e=>{if(Array.isArray(e)){PC(e.length===4);const[t,n,r,i]=e;return W0(t,n,r,i)}else if(typeof e=="string")return ZEe[e];return e},q0=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},hn=(e,t,n)=>e+(t-e)*n;function IC(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function QEe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=IC(l,a,e+1/3),o=IC(l,a,e),s=IC(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const NC=(e,t)=>n=>!!(U0(n)&&tEe.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),UB=(e,t,n)=>r=>{if(!U0(r))return r;const[i,o,s,a]=r.match(wC);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},XEe=e=>wl(0,255,e),LC={...wf,transform:e=>Math.round(XEe(e))},Qu={test:NC("rgb","red"),parse:UB("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+LC.transform(e)+", "+LC.transform(t)+", "+LC.transform(n)+", "+B0(z0.transform(r))+")"};function JEe(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const FC={test:NC("#"),parse:JEe,transform:Qu.transform},Sf={test:NC("hsl","hue"),parse:UB("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ls.transform(B0(t))+", "+ls.transform(B0(n))+", "+B0(z0.transform(r))+")"},jC=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},eAe=[FC,Qu,Sf],tAe=e=>eAe.find(t=>t.test(e));function HB(e){const t=tAe(e);let n=t.parse(e);return t===Sf&&(n=QEe(n)),n}const VB=(e,t)=>{const n=HB(e),r=HB(t),i={...n};return o=>(i.red=jC(n.red,r.red,o),i.green=jC(n.green,r.green,o),i.blue=jC(n.blue,r.blue,o),i.alpha=hn(n.alpha,r.alpha,o),Qu.transform(i))},wr={test:e=>Qu.test(e)||FC.test(e)||Sf.test(e),parse:e=>Qu.test(e)?Qu.parse(e):Sf.test(e)?Sf.parse(e):FC.parse(e),transform:e=>U0(e)?e:e.hasOwnProperty("red")?Qu.transform(e):Sf.transform(e)};function nAe(e){var t,n;return isNaN(e)&&U0(e)&&(((t=e.match(wC))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(eEe))===null||n===void 0?void 0:n.length)||0)>0}const WB="number",qB="color",rAe="var",iAe="var(",GB="${}",YB=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function U2(e){const t=e.toString(),n=t.match(YB)||[],r=[],i={color:[],number:[],var:[]},o=[];for(let l=0;l<n.length;l++){const u=n[l];wr.test(u)?(i.color.push(l),o.push(qB),r.push(wr.parse(u))):u.startsWith(iAe)?(i.var.push(l),o.push(rAe),r.push(u)):(i.number.push(l),o.push(WB),r.push(parseFloat(u)))}const a=t.replace(YB,GB).split(GB);return{values:r,split:a,indexes:i,types:o}}function KB(e){return U2(e).values}function ZB(e){const{split:t,types:n}=U2(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const a=n[s];a===WB?o+=B0(i[s]):a===qB?o+=wr.transform(i[s]):o+=i[s]}return o}}const oAe=e=>typeof e=="number"?0:e;function sAe(e){const t=KB(e);return ZB(e)(t.map(oAe))}const Tl={test:nAe,parse:KB,createTransformer:ZB,getAnimatableNone:sAe};function zC(e,t){return n=>n>0?t:e}function aAe(e,t){return n=>hn(e,t,n)}function BC(e){return typeof e=="number"?aAe:typeof e=="string"?I2(e)?zC:wr.test(e)?VB:cAe:Array.isArray(e)?QB:typeof e=="object"?wr.test(e)?VB:lAe:zC}function QB(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>BC(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function lAe(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=BC(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function uAe(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][i[s]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[o]=l,i[s]++}return r}const cAe=(e,t)=>{const n=Tl.createTransformer(t),r=U2(e),i=U2(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?na(QB(uAe(r,i),i.values),n):zC(e,t)};function XB(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?hn(e,t,n):BC(e)(e,t)}function dAe(e,t,n){const r=[],i=n||XB,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Rn:t;a=na(l,a)}r.push(a)}return r}function fAe(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(PC(o===t.length),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=dAe(t,r,i),a=s.length,l=u=>{let d=0;if(a>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=q0(e[d],e[d+1],u);return s[d](f)};return n?u=>l(wl(e[0],e[o-1],u)):l}function pAe(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=q0(0,t,r);e.push(hn(n,1,i))}}function hAe(e){const t=[0];return pAe(t,e.length-1),t}function mAe(e,t){return e.map(n=>n*t)}function gAe(e,t){return e.map(()=>t||NB).splice(0,e.length-1)}function H2({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=GEe(r)?r.map(BB):BB(r),o={done:!1,value:t[0]},s=mAe(n&&n.length===t.length?n:hAe(t),e),a=fAe(s,t,{ease:Array.isArray(i)?i:gAe(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function JB(e,t){return t?e*(1e3/t):0}const vAe=5;function eU(e,t,n){const r=Math.max(t-vAe,0);return JB(n-e(r),t-r)}const UC=.001,yAe=.01,tU=10,bAe=.05,xAe=1;function wAe({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;FEe(e<=$l(tU));let s=1-t;s=wl(bAe,xAe,s),e=wl(yAe,tU,ra(e)),s<1?(i=u=>{const d=u*s,f=d*e,m=d-n,p=HC(u,s),g=Math.exp(-f);return UC-m/p*g},o=u=>{const f=u*s*e,m=f*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-f),v=HC(Math.pow(u,2),s);return(-i(u)+UC>0?-1:1)*((m-p)*g)/v}):(i=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-UC+d*f},o=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const a=5/e,l=CAe(i,o,a);if(e=$l(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const SAe=12;function CAe(e,t,n){let r=n;for(let i=1;i<SAe;i++)r=r-e(r)/t(r);return r}function HC(e,t){return e*Math.sqrt(1-t*t)}const $Ae=["duration","bounce"],TAe=["stiffness","damping","mass"];function nU(e,t){return t.some(n=>e[n]!==void 0)}function kAe(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!nU(e,TAe)&&nU(e,$Ae)){const n=wAe(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function rU({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:m}=kAe({...r,velocity:-ra(r.velocity||0)}),p=f||0,g=l/(2*Math.sqrt(a*u)),v=o-i,S=ra(Math.sqrt(a/u)),y=Math.abs(v)<5;n||(n=y?.01:2),t||(t=y?.005:.5);let x;if(g<1){const w=HC(S,g);x=C=>{const T=Math.exp(-g*S*C);return o-T*((p+g*S*v)/w*Math.sin(w*C)+v*Math.cos(w*C))}}else if(g===1)x=w=>o-Math.exp(-S*w)*(v+(p+S*v)*w);else{const w=S*Math.sqrt(g*g-1);x=C=>{const T=Math.exp(-g*S*C),k=Math.min(w*C,300);return o-T*((p+g*S*v)*Math.sinh(k)+w*v*Math.cosh(k))/w}}return{calculatedDuration:m&&d||null,next:w=>{const C=x(w);if(m)s.done=w>=d;else{let T=p;w!==0&&(g<1?T=eU(x,w,C):T=0);const k=Math.abs(T)<=n,R=Math.abs(o-C)<=t;s.done=k&&R}return s.value=s.done?o:C,s}}}function iU({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:d}){const f=e[0],m={done:!1,value:f},p=A=>a!==void 0&&A<a||l!==void 0&&A>l,g=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let v=n*t;const S=f+v,y=s===void 0?S:s(S);y!==S&&(v=y-f);const x=A=>-v*Math.exp(-A/r),w=A=>y+x(A),C=A=>{const M=x(A),P=w(A);m.done=Math.abs(M)<=u,m.value=m.done?y:P};let T,k;const R=A=>{p(m.value)&&(T=A,k=rU({keyframes:[m.value,g(m.value)],velocity:eU(w,A,m.value),damping:i,stiffness:o,restDelta:u,restSpeed:d}))};return R(0),{calculatedDuration:null,next:A=>{let M=!1;return!k&&T===void 0&&(M=!0,C(A),R(A)),T!==void 0&&A>T?k.next(A-T):(!M&&C(A),m)}}}let V2;function EAe(){V2=void 0}const Xu={now:()=>(V2===void 0&&Xu.set(lr.isProcessing||Jz.useManualTiming?lr.timestamp:performance.now()),V2),set:e=>{V2=e,queueMicrotask(EAe)}},AAe=e=>{const t=({timestamp:n})=>e(n);return{start:()=>an.update(t,!0),stop:()=>Js(t),now:()=>lr.isProcessing?lr.timestamp:Xu.now()}},oU=2e4;function sU(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<oU;)t+=n,r=e.next(t);return t>=oU?1/0:t}const RAe={decay:iU,inertia:iU,tween:H2,keyframes:H2,spring:rU},_Ae=e=>e/100;function W2({autoplay:e=!0,delay:t=0,driver:n=AAe,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:d,onUpdate:f,...m}){let p=1,g=!1,v,S;const y=()=>{S=new Promise(ne=>{v=ne})};y();let x;const w=RAe[i]||H2;let C;w!==H2&&typeof r[0]!="number"&&(C=na(_Ae,XB(r[0],r[1])),r=[0,100]);const T=w({...m,keyframes:r});let k;a==="mirror"&&(k=w({...m,keyframes:[...r].reverse(),velocity:-(m.velocity||0)}));let R="idle",A=null,M=null,P=null;T.calculatedDuration===null&&o&&(T.calculatedDuration=sU(T));const{calculatedDuration:j}=T;let F=1/0,B=1/0;j!==null&&(F=j+s,B=F*(o+1)-s);let z=0;const D=ne=>{if(M===null)return;p>0&&(M=Math.min(M,ne)),p<0&&(M=Math.min(ne-B/p,M)),A!==null?z=A:z=Math.round(ne-M)*p;const ye=z-t*(p>=0?1:-1),ge=p>=0?ye<0:ye>B;z=Math.max(ye,0),R==="finished"&&A===null&&(z=B);let pe=z,ve=T;if(o){const Ke=Math.min(z,B)/F;let ot=Math.floor(Ke),Pe=Ke%1;!Pe&&Ke>=1&&(Pe=1),Pe===1&&ot--,ot=Math.min(ot,o+1),!!(ot%2)&&(a==="reverse"?(Pe=1-Pe,s&&(Pe-=s/F)):a==="mirror"&&(ve=k)),pe=wl(0,1,Pe)*F}const Se=ge?{done:!1,value:r[0]}:ve.next(pe);C&&(Se.value=C(Se.value));let{done:Ne}=Se;!ge&&j!==null&&(Ne=p>=0?z>=B:z<=0);const Re=A===null&&(R==="finished"||R==="running"&&Ne);return f&&f(Se.value),Re&&V(),Se},U=()=>{x&&x.stop(),x=void 0},G=()=>{R="idle",U(),v(),y(),M=P=null},V=()=>{R="finished",d&&d(),U(),v()},Q=()=>{if(g)return;x||(x=n(D));const ne=x.now();l&&l(),A!==null?M=ne-A:(!M||R==="finished")&&(M=ne),R==="finished"&&y(),P=M,A=null,R="running",x.start()};e&&Q();const Z={then(ne,ye){return S.then(ne,ye)},get time(){return ra(z)},set time(ne){ne=$l(ne),z=ne,A!==null||!x||p===0?A=ne:M=x.now()-ne/p},get duration(){const ne=T.calculatedDuration===null?sU(T):T.calculatedDuration;return ra(ne)},get speed(){return p},set speed(ne){ne===p||!x||(p=ne,Z.time=ra(z))},get state(){return R},play:Q,pause:()=>{R="paused",A=z},stop:()=>{g=!0,R!=="idle"&&(R="idle",u&&u(),G())},cancel:()=>{P!==null&&D(P),G()},complete:()=>{R="finished"},sample:ne=>(M=0,D(ne))};return Z}function OAe(e){let t;return()=>(t===void 0&&(t=e()),t)}const PAe=OAe(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),DAe=new Set(["opacity","clipPath","filter","transform"]),q2=10,MAe=2e4,IAe=(e,t)=>t.type==="spring"||e==="backgroundColor"||!PB(t.ease);function NAe(e,t,{onUpdate:n,onComplete:r,...i}){if(!(PAe()&&DAe.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const d=()=>{l=new Promise(w=>{a=w})};d();let{keyframes:f,duration:m=300,ease:p,times:g}=i;if(IAe(t,i)){const w=W2({...i,repeat:0,delay:0});let C={done:!1,value:f[0]};const T=[];let k=0;for(;!C.done&&k<MAe;)C=w.sample(k),T.push(C.value),k+=q2;g=void 0,f=T,m=k-q2,p="linear"}const v=zEe(e.owner.current,t,f,{...i,duration:m,ease:p,times:g}),S=()=>{u=!1,v.cancel()},y=()=>{u=!0,an.update(S),a(),d()};return v.onfinish=()=>{u||(e.set(BEe(f,i)),r&&r(),y())},{then(w,C){return l.then(w,C)},attachTimeline(w){return v.timeline=w,v.onfinish=null,Rn},get time(){return ra(v.currentTime||0)},set time(w){v.currentTime=$l(w)},get speed(){return v.playbackRate},set speed(w){v.playbackRate=w},get duration(){return ra(m)},play:()=>{s||(v.play(),Js(S))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:w}=v;if(w){const C=W2({...i,autoplay:!1});e.setWithVelocity(C.sample(w-q2).value,C.sample(w).value,q2)}y()},complete:()=>{u||v.finish()},cancel:y}}function LAe({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Rn,pause:Rn,stop:Rn,then:o=>(o(),Promise.resolve()),cancel:Rn,complete:Rn});return t?W2({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const FAe={type:"spring",stiffness:500,damping:25,restSpeed:10},jAe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zAe={type:"keyframes",duration:.8},BAe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},UAe=(e,{keyframes:t})=>t.length>2?zAe:Zu.has(e)?e.startsWith("scale")?jAe(t[1]):FAe:BAe,VC=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Tl.test(t)||t==="0")&&!t.startsWith("url(")),HAe=new Set(["brightness","contrast","saturate","opacity"]);function VAe(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(wC)||[];if(!r)return e;const i=n.replace(r,"");let o=HAe.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const WAe=/([a-z-]*)\(.*?\)/g,WC={...Tl,getAnimatableNone:e=>{const t=e.match(WAe);return t?t.map(VAe).join(" "):e}},qAe={...dB,color:wr,backgroundColor:wr,outlineColor:wr,fill:wr,stroke:wr,borderColor:wr,borderTopColor:wr,borderRightColor:wr,borderBottomColor:wr,borderLeftColor:wr,filter:WC,WebkitFilter:WC},qC=e=>qAe[e];function aU(e,t){let n=qC(e);return n!==WC&&(n=Tl),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const lU=e=>/^0[^.\s]+$/.test(e);function GAe(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||lU(e)}function YAe(e,t,n,r){const i=VC(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;u<o.length;u++)o[u]===null&&(o[u]=u===0?s:o[u-1]),GAe(o[u])&&l.push(u),typeof o[u]=="string"&&o[u]!=="none"&&o[u]!=="0"&&(a=o[u]);if(i&&l.length&&a)for(let u=0;u<l.length;u++){const d=l[u];o[d]=aU(t,a)}return o}function KAe({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...d}){return!!Object.keys(d).length}function GC(e,t){return e[t]||e.default||e}const YC=(e,t,n,r={})=>i=>{const o=GC(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-$l(s);const l=YAe(t,e,n,o),u=l[0],d=l[l.length-1],f=VC(e,u),m=VC(e,d);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(KAe(o)||(p={...p,...UAe(e,p)}),p.duration&&(p.duration=$l(p.duration)),p.repeatDelay&&(p.repeatDelay=$l(p.repeatDelay)),!f||!m||jEe.current||o.type===!1||Jz.skipAnimations)return LAe(p);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=NAe(t,e,p);if(g)return g}return W2(p)};function G2(e){return!!(ei(e)&&e.add)}const uU=e=>/^\-?\d*\.?\d+$/.test(e);function KC(e,t){e.indexOf(t)===-1&&e.push(t)}function ZC(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class QC{constructor(){this.subscriptions=[]}add(t){return KC(this.subscriptions,t),()=>ZC(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const cU=30,ZAe=e=>!isNaN(parseFloat(e));class QAe{constructor(t,n={}){this.version="11.0.8",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Xu.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),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(t),this.canTrackVelocity=ZAe(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Xu.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new QC);const r=this.events[t].add(n);return t==="change"?()=>{r(),an.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Xu.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>cU)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,cU);return JB(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Cf(e,t){return new QAe(e,t)}const dU=e=>t=>t.test(e),fU=[wf,tt,ls,Sl,rEe,nEe,{test:e=>e==="auto",parse:e=>e}],G0=e=>fU.find(dU(e)),XAe=[...fU,wr,Tl],JAe=e=>XAe.find(dU(e));function eRe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Cf(n))}function tRe(e,t){const n=B2(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=vEe(o[s]);eRe(e,s,a)}}function nRe(e,t,n){var r,i;const o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],u=t[l];let d=null;Array.isArray(u)&&(d=u[0]),d===null&&(d=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),d!=null&&(typeof d=="string"&&(uU(d)||lU(d))?d=parseFloat(d):!JAe(d)&&Tl.test(u)&&(d=aU(l,u)),e.addValue(l,Cf(d,{owner:e})),n[l]===void 0&&(n[l]=d),d!==null&&e.setBaseTarget(l,d))}}function rRe(e,t){return t?(t[e]||t.default||t).from:void 0}function iRe(e,t,n){const r={};for(const i in e){const o=rRe(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function oRe({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function sRe(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function pU(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in a){const m=e.getValue(f),p=a[f];if(!m||p===void 0||d&&oRe(d,f))continue;const g={delay:n,elapsed:0,...GC(o||{},f)};if(window.HandoffAppearAnimations){const y=e.getProps()[Xz];if(y){const x=window.HandoffAppearAnimations(y,f,m,an);x!==null&&(g.elapsed=x,g.isHandoff=!0)}}let v=!g.isHandoff&&!sRe(m,p);if(g.type==="spring"&&(m.getVelocity()||g.velocity)&&(v=!1),m.animation&&(v=!1),v)continue;m.start(YC(f,m,p,e.shouldReduceMotion&&Zu.has(f)?{type:!1}:g));const S=m.animation;G2(l)&&(l.add(f),S.then(()=>l.remove(f))),u.push(S)}return s&&Promise.all(u).then(()=>{s&&tRe(e,s)}),u}function XC(e,t,n={}){const r=B2(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(pU(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return aRe(e,t,u+l,d,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function aRe(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(lRe).forEach((u,d)=>{u.notify("AnimationStart",t),s.push(XC(u,t,{...o,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function lRe(e,t){return e.sortNodePosition(t)}function uRe(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>XC(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=XC(e,t,n);else{const i=typeof t=="function"?B2(e,t,n.custom):t;r=Promise.all(pU(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const cRe=[...vC].reverse(),dRe=vC.length;function fRe(e){return t=>Promise.all(t.map(({animation:n,options:r})=>uRe(e,n,r)))}function pRe(e){let t=fRe(e);const n=mRe();let r=!0;const i=(l,u)=>{const d=B2(e,u);if(d){const{transition:f,transitionEnd:m,...p}=d;l={...l,...p,...m}}return l};function o(l){t=l(e)}function s(l,u){const d=e.getProps(),f=e.getVariantContext(!0)||{},m=[],p=new Set;let g={},v=1/0;for(let y=0;y<dRe;y++){const x=cRe[y],w=n[x],C=d[x]!==void 0?d[x]:f[x],T=L0(C),k=x===u?w.isActive:null;k===!1&&(v=y);let R=C===f[x]&&C!==d[x]&&T;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),w.protectedKeys={...g},!w.isActive&&k===null||!C&&!w.prevProp||P2(C)||typeof C=="boolean")continue;let M=hRe(w.prevProp,C)||x===u&&w.isActive&&!R&&T||y>v&&T,P=!1;const j=Array.isArray(C)?C:[C];let F=j.reduce(i,{});k===!1&&(F={});const{prevResolvedValues:B={}}=w,z={...B,...F},D=U=>{M=!0,p.has(U)&&(P=!0,p.delete(U)),w.needsAnimating[U]=!0};for(const U in z){const G=F[U],V=B[U];if(g.hasOwnProperty(U))continue;let Q=!1;F2(G)&&F2(V)?Q=!_B(G,V):Q=G!==V,Q?G!==void 0?D(U):p.add(U):G!==void 0&&p.has(U)?D(U):w.protectedKeys[U]=!0}w.prevProp=C,w.prevResolvedValues=F,w.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(M=!1),M&&(!R||P)&&m.push(...j.map(U=>({animation:U,options:{type:x,...l}})))}if(p.size){const y={};p.forEach(x=>{const w=e.getBaseTarget(x);w!==void 0&&(y[x]=w)}),m.push({animation:y})}let S=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(m):Promise.resolve()}function a(l,u,d){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),n[l].isActive=u;const m=s(d,l);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function hRe(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!_B(t,e):!1}function Ju(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mRe(){return{animate:Ju(!0),whileInView:Ju(),whileHover:Ju(),whileTap:Ju(),whileDrag:Ju(),whileFocus:Ju(),exit:Ju()}}class gRe extends Cl{constructor(t){super(t),t.animationState||(t.animationState=pRe(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),P2(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let vRe=0;class yRe extends Cl{constructor(){super(...arguments),this.id=vRe++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const bRe={animation:{Feature:gRe},exit:{Feature:yRe}},hU=(e,t)=>Math.abs(e-t);function xRe(e,t){const n=hU(e.x,t.x),r=hU(e.y,t.y);return Math.sqrt(n**2+r**2)}class mU{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!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 f=e$(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=xRe(f.offset,{x:0,y:0})>=3;if(!m&&!p)return;const{point:g}=f,{timestamp:v}=lr;this.history.push({...g,timestamp:v});const{onStart:S,onMove:y}=this.handlers;m||(S&&S(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=JC(m,this.transformPagePoint),an.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=e$(f.type==="pointercancel"?this.lastMoveEventInfo:JC(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,S),g&&g(f,S)},!SB(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=z2(t),a=JC(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=lr;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,e$(a,this.history)),this.removeListeners=na(ta(this.contextWindow,"pointermove",this.handlePointerMove),ta(this.contextWindow,"pointerup",this.handlePointerUp),ta(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Js(this.updatePoint)}}function JC(e,t){return t?{point:t(e.point)}:e}function gU(e,t){return{x:e.x-t.x,y:e.y-t.y}}function e$({point:e},t){return{point:e,delta:gU(e,vU(t)),offset:gU(e,wRe(t)),velocity:SRe(t,.1)}}function wRe(e){return e[0]}function vU(e){return e[e.length-1]}function SRe(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=vU(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>$l(t)));)n--;if(!r)return{x:0,y:0};const o=ra(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function $i(e){return e.max-e.min}function t$(e,t=0,n=.01){return Math.abs(e-t)<=n}function yU(e,t,n,r=.5){e.origin=r,e.originPoint=hn(t.min,t.max,e.origin),e.scale=$i(n)/$i(t),(t$(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=hn(n.min,n.max,e.origin)-e.originPoint,(t$(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Y0(e,t,n,r){yU(e.x,t.x,n.x,r?r.originX:void 0),yU(e.y,t.y,n.y,r?r.originY:void 0)}function bU(e,t,n){e.min=n.min+t.min,e.max=e.min+$i(t)}function CRe(e,t,n){bU(e.x,t.x,n.x),bU(e.y,t.y,n.y)}function xU(e,t,n){e.min=t.min-n.min,e.max=e.min+$i(t)}function K0(e,t,n){xU(e.x,t.x,n.x),xU(e.y,t.y,n.y)}function $Re(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?hn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?hn(n,e,r.max):Math.min(e,n)),e}function wU(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function TRe(e,{top:t,left:n,bottom:r,right:i}){return{x:wU(e.x,n,i),y:wU(e.y,t,r)}}function SU(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function kRe(e,t){return{x:SU(e.x,t.x),y:SU(e.y,t.y)}}function ERe(e,t){let n=.5;const r=$i(e),i=$i(t);return i>r?n=q0(t.min,t.max-r,e.min):r>i&&(n=q0(e.min,e.max-i,t.min)),wl(0,1,n)}function ARe(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const n$=.35;function RRe(e=n$){return e===!1?e=0:e===!0&&(e=n$),{x:CU(e,"left","right"),y:CU(e,"top","bottom")}}function CU(e,t,n){return{min:$U(e,t),max:$U(e,n)}}function $U(e,t){return typeof e=="number"?e:e[t]||0}const TU=()=>({translate:0,scale:1,origin:0,originPoint:0}),$f=()=>({x:TU(),y:TU()}),kU=()=>({min:0,max:0}),_n=()=>({x:kU(),y:kU()});function Ji(e){return[e("x"),e("y")]}function EU({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function _Re({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ORe(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function r$(e){return e===void 0||e===1}function i$({scale:e,scaleX:t,scaleY:n}){return!r$(e)||!r$(t)||!r$(n)}function ec(e){return i$(e)||AU(e)||e.z||e.rotate||e.rotateX||e.rotateY}function AU(e){return RU(e.x)||RU(e.y)}function RU(e){return e&&e!=="0%"}function Y2(e,t,n){const r=e-n,i=t*r;return n+i}function _U(e,t,n,r,i){return i!==void 0&&(e=Y2(e,i,r)),Y2(e,n,r)+t}function o$(e,t=0,n=1,r,i){e.min=_U(e.min,t,n,r,i),e.max=_U(e.max,t,n,r,i)}function OU(e,{x:t,y:n}){o$(e.x,t.translate,t.scale,t.originPoint),o$(e.y,n.translate,n.scale,n.originPoint)}function PRe(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Tf(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,OU(e,s)),r&&ec(o.latestValues)&&Tf(e,o.latestValues))}t.x=PU(t.x),t.y=PU(t.y)}function PU(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function kl(e,t){e.min=e.min+t,e.max=e.max+t}function DU(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=hn(e.min,e.max,o);o$(e,t[n],t[r],s,t.scale)}const DRe=["x","scaleX","originX"],MRe=["y","scaleY","originY"];function Tf(e,t){DU(e.x,t,DRe),DU(e.y,t,MRe)}function MU(e,t){return EU(ORe(e.getBoundingClientRect(),t))}function IRe(e,t,n){const r=MU(e,n),{scroll:i}=t;return i&&(kl(r.x,i.offset.x),kl(r.y,i.offset.y)),r}const IU=({current:e})=>e?e.ownerDocument.defaultView:null,NRe=new WeakMap;class LRe{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=_n(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(z2(d,"page").point)},o=(d,f)=>{const{drag:m,dragPropagation:p,onDragStart:g}=this.getProps();if(m&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=kB(m),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ji(S=>{let y=this.getAxisMotionValue(S).get()||0;if(ls.test(y)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[S];w&&(y=$i(w)*(parseFloat(y)/100))}}this.originPoint[S]=y}),g&&an.update(()=>g(d,f),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(d,f)=>{const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:g,onDrag:v}=this.getProps();if(!m&&!this.openGlobalLock)return;const{offset:S}=f;if(p&&this.currentDirection===null){this.currentDirection=FRe(S),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,S),this.updateAxis("y",f.point,S),this.visualElement.render(),v&&v(d,f)},a=(d,f)=>this.stop(d,f),l=()=>Ji(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new mU(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:IU(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&an.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!K2(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=$Re(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&xf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=TRe(i.layoutBox,n):this.constraints=!1,this.elastic=RRe(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ji(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=ARe(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xf(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=IRe(r,i.root,this.visualElement.getTransformPagePoint());let s=kRe(i.layout.layoutBox,o);if(n){const a=n(_Re(s));this.hasMutatedConstraints=!!a,a&&(s=EU(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ji(d=>{if(!K2(d,n,this.currentDirection))return;let f=l&&l[d]||{};s&&(f={min:0,max:0});const m=i?200:1e6,p=i?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:m,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(YC(t,r,0,n))}stopAnimation(){Ji(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ji(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ji(n=>{const{drag:r}=this.getProps();if(!K2(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-hn(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!xf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ji(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=ERe({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ji(s=>{if(!K2(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(hn(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;NRe.set(this.visualElement,this);const t=this.visualElement.current,n=ta(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();xf(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=ea(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ji(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=n$,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function K2(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function FRe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class jRe extends Cl{constructor(t){super(t),this.removeGroupControls=Rn,this.removeListeners=Rn,this.controls=new LRe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rn}unmount(){this.removeGroupControls(),this.removeListeners()}}const NU=e=>(t,n)=>{e&&an.update(()=>e(t,n))};class zRe extends Cl{constructor(){super(...arguments),this.removePointerDownListener=Rn}onPointerDown(t){this.session=new mU(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:IU(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:NU(t),onStart:NU(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&an.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=ta(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function BRe(){const e=_.useContext(R2);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=_.useId();return _.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Z2={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function LU(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Z0={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(tt.test(e))e=parseFloat(e);else return e;const n=LU(e,t.target.x),r=LU(e,t.target.y);return`${n}% ${r}%`}},URe={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Tl.parse(e);if(i.length>5)return r;const o=Tl.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=hn(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class HRe extends ie.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Gke(VRe),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Z2.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||an.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),gC.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function FU(e){const[t,n]=BRe(),r=_.useContext(bC);return ie.createElement(HRe,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(oB),isPresent:t,safeToRemove:n})}const VRe={borderRadius:{...Z0,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Z0,borderTopRightRadius:Z0,borderBottomLeftRadius:Z0,borderBottomRightRadius:Z0,boxShadow:URe},jU=["TopLeft","TopRight","BottomLeft","BottomRight"],WRe=jU.length,zU=e=>typeof e=="string"?parseFloat(e):e,BU=e=>typeof e=="number"||tt.test(e);function qRe(e,t,n,r,i,o){i?(e.opacity=hn(0,n.opacity!==void 0?n.opacity:1,GRe(r)),e.opacityExit=hn(t.opacity!==void 0?t.opacity:1,0,YRe(r))):o&&(e.opacity=hn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<WRe;s++){const a=`border${jU[s]}Radius`;let l=UU(t,a),u=UU(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||BU(l)===BU(u)?(e[a]=Math.max(hn(zU(l),zU(u),r),0),(ls.test(u)||ls.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=hn(t.rotate||0,n.rotate||0,r))}function UU(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const GRe=HU(0,.5,jB),YRe=HU(.5,.95,Rn);function HU(e,t,n){return r=>r<e?0:r>t?1:n(q0(e,t,r))}function VU(e,t){e.min=t.min,e.max=t.max}function eo(e,t){VU(e.x,t.x),VU(e.y,t.y)}function WU(e,t,n,r,i){return e-=t,e=Y2(e,1/n,r),i!==void 0&&(e=Y2(e,1/i,r)),e}function KRe(e,t=0,n=1,r=.5,i,o=e,s=e){if(ls.test(t)&&(t=parseFloat(t),t=hn(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=hn(o.min,o.max,r);e===o&&(a-=t),e.min=WU(e.min,t,n,a,i),e.max=WU(e.max,t,n,a,i)}function qU(e,t,[n,r,i],o,s){KRe(e,t[n],t[r],t[i],t.scale,o,s)}const ZRe=["x","scaleX","originX"],QRe=["y","scaleY","originY"];function GU(e,t,n,r){qU(e.x,t,ZRe,n?n.x:void 0,r?r.x:void 0),qU(e.y,t,QRe,n?n.y:void 0,r?r.y:void 0)}function YU(e){return e.translate===0&&e.scale===1}function KU(e){return YU(e.x)&&YU(e.y)}function XRe(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function ZU(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function QU(e){return $i(e.x)/$i(e.y)}class JRe{constructor(){this.members=[]}add(t){KC(this.members,t),t.scheduleRender()}remove(t){if(ZC(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function XU(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:d}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),d&&(r+=`rotateY(${d}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const e_e=(e,t)=>e.depth-t.depth;class t_e{constructor(){this.children=[],this.isDirty=!1}add(t){KC(this.children,t),this.isDirty=!0}remove(t){ZC(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(e_e),this.isDirty=!1,this.children.forEach(t)}}function n_e(e,t){const n=Xu.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Js(r),e(o-t))};return an.read(r,!0),()=>Js(r)}function r_e(e){window.MotionDebug&&window.MotionDebug.record(e)}function i_e(e){return e instanceof SVGElement&&e.tagName!=="svg"}function o_e(e,t,n){const r=ei(e)?e:Cf(e);return r.start(YC("",r,t,n)),r.animation}const JU=["","X","Y","Z"],s_e={visibility:"hidden"},eH=1e3;let a_e=0;const tc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tH({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=a_e++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tc.totalNodes=tc.resolvedTargetDeltas=tc.recalculatedProjection=0,this.nodes.forEach(c_e),this.nodes.forEach(m_e),this.nodes.forEach(g_e),this.nodes.forEach(d_e),r_e(tc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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 t_e)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new QC),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=i_e(s),this.instance=s;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const m=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=n_e(m,250),Z2.hasAnimatedSinceResize&&(Z2.hasAnimatedSinceResize=!1,this.nodes.forEach(rH))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:m,hasRelativeTargetChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||w_e,{onLayoutAnimationStart:S,onLayoutAnimationComplete:y}=d.getProps(),x=!this.targetLayout||!ZU(this.targetLayout,g)||p,w=!m&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||m&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,w);const C={...GC(v,"layout"),onPlay:S,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else m||rH(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Js(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(v_e),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.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(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nH);return}this.isUpdating||this.nodes.forEach(p_e),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(h_e),this.nodes.forEach(l_e),this.nodes.forEach(u_e),this.clearAllSnapshots();const a=Xu.now();lr.delta=wl(0,1e3/60,a-lr.timestamp),lr.timestamp=a,lr.isProcessing=!0,AC.update.process(lr),AC.preRender.process(lr),AC.render.process(lr),lr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gC.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(f_e),this.sharedNodes.forEach(y_e)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,an.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){an.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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=_n(),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,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!KU(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&(a||ec(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),S_e(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return _n();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(kl(a.x,l.offset.x),kl(a.y,l.offset.y)),a}removeElementScroll(s){const a=_n();eo(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:d,options:f}=u;if(u!==this.root&&d&&f.layoutScroll){if(d.isRoot){eo(a,s);const{scroll:m}=this.root;m&&(kl(a.x,-m.offset.x),kl(a.y,-m.offset.y))}kl(a.x,d.offset.x),kl(a.y,d.offset.y)}}return a}applyTransform(s,a=!1){const l=_n();eo(l,s);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Tf(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),ec(d.latestValues)&&Tf(l,d.latestValues)}return ec(this.latestValues)&&Tf(l,this.latestValues),l}removeTransform(s){const a=_n();eo(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ec(u.latestValues))continue;i$(u.latestValues)&&u.updateSnapshot();const d=_n(),f=u.measurePageBox();eo(d,f),GU(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return ec(this.latestValues)&&GU(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==lr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!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(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:m}=this.options;if(!(!this.layout||!(f||m))){if(this.resolvedRelativeTargetAt=lr.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_n(),this.relativeTargetOrigin=_n(),K0(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),eo(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=_n(),this.targetWithTransforms=_n()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),CRe(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):eo(this.target,this.layout.layoutBox),OU(this.target,this.targetDelta)):eo(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_n(),this.relativeTargetOrigin=_n(),K0(this.relativeTargetOrigin,this.target,p.target),eo(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||i$(this.parent.latestValues)||AU(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 s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===lr.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;eo(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,p=this.treeScale.y;PRe(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=_n());const{target:g}=a;if(!g){this.projectionTransform&&(this.projectionDelta=$f(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=$f(),this.projectionDeltaWithTransform=$f());const v=this.projectionTransform;Y0(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=XU(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==m||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),tc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=$f();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const m=_n(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,v=p!==g,S=this.getStack(),y=!S||S.members.length<=1,x=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(x_e));this.animationProgress=0;let w;this.mixTargetDelta=C=>{const T=C/1e3;iH(f.x,s.x,T),iH(f.y,s.y,T),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(K0(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),b_e(this.relativeTarget,this.relativeTargetOrigin,m,T),w&&XRe(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=_n()),eo(w,this.relativeTarget)),v&&(this.animationValues=d,qRe(d,u,this.latestValues,T,x,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Js(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=an.update(()=>{Z2.hasAnimatedSinceResize=!0,this.currentAnimation=o_e(0,eH,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(eH),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&uH(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||_n();const f=$i(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const m=$i(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+m}eo(a,l),Tf(a,d),Y0(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new JRe),this.sharedNodes.get(s).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 s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let d=0;d<JU.length;d++){const f="rotate"+JU[d];l[f]&&(u[f]=l[f],s.setStaticValue(f,0))}s.render();for(const d in u)s.setStaticValue(d,u[d]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return s_e;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=j2(s==null?void 0:s.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=j2(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ec(this.latestValues)&&(v.transform=d?d({},""):"none",this.hasProjected=!1),v}const m=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=XU(this.projectionDeltaWithTransform,this.treeScale,m),d&&(u.transform=d(m,u.transform));const{x:p,y:g}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${g.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(a=m.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:u.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const v in M2){if(m[v]===void 0)continue;const{correct:S,applyTo:y}=M2[v],x=u.transform==="none"?m[v]:S(m[v],f);if(y){const w=y.length;for(let C=0;C<w;C++)u[y[C]]=x}else u[v]=x}return this.options.layoutId&&(u.pointerEvents=f===this?j2(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(nH),this.root.sharedNodes.clear()}}}function l_e(e){e.updateLayout()}function u_e(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Ji(f=>{const m=s?n.measuredBox[f]:n.layoutBox[f],p=$i(m);m.min=r[f].min,m.max=m.min+p}):uH(o,n.layoutBox,r)&&Ji(f=>{const m=s?n.measuredBox[f]:n.layoutBox[f],p=$i(r[f]);m.max=m.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const a=$f();Y0(a,r,n.layoutBox);const l=$f();s?Y0(l,e.applyTransform(i,!0),n.measuredBox):Y0(l,r,n.layoutBox);const u=!KU(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:m,layout:p}=f;if(m&&p){const g=_n();K0(g,n.layoutBox,m.layoutBox);const v=_n();K0(v,r,p.layoutBox),ZU(g,v)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function c_e(e){tc.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function d_e(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function f_e(e){e.clearSnapshot()}function nH(e){e.clearMeasurements()}function p_e(e){e.isLayoutDirty=!1}function h_e(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rH(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function m_e(e){e.resolveTargetDelta()}function g_e(e){e.calcProjection()}function v_e(e){e.resetRotation()}function y_e(e){e.removeLeadSnapshot()}function iH(e,t,n){e.translate=hn(t.translate,0,n),e.scale=hn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function oH(e,t,n,r){e.min=hn(t.min,n.min,r),e.max=hn(t.max,n.max,r)}function b_e(e,t,n,r){oH(e.x,t.x,n.x,r),oH(e.y,t.y,n.y,r)}function x_e(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const w_e={duration:.45,ease:[.4,0,.1,1]},sH=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),aH=sH("applewebkit/")&&!sH("chrome/")?Math.round:Rn;function lH(e){e.min=aH(e.min),e.max=aH(e.max)}function S_e(e){lH(e.x),lH(e.y)}function uH(e,t,n){return e==="position"||e==="preserve-aspect"&&!t$(QU(t),QU(n),.2)}const C_e=tH({attachResizeListener:(e,t)=>ea(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),s$={current:void 0},cH=tH({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!s$.current){const e=new C_e({});e.mount(window),e.setOptions({layoutScroll:!0}),s$.current=e}return s$.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),$_e={pan:{Feature:zRe},drag:{Feature:jRe,ProjectionNode:cH,MeasureLayout:FU}},T_e=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function k_e(e){const t=T_e.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function a$(e,t,n=1){const[r,i]=k_e(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return uU(s)?parseFloat(s):s}else return I2(i)?a$(i,t,n+1):i}function E_e(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!I2(o))return;const s=a$(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!I2(o))continue;const s=a$(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const A_e=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),dH=e=>A_e.has(e),R_e=e=>Object.keys(e).some(dH),fH=e=>e===wf||e===tt,pH=(e,t)=>parseFloat(e.split(", ")[t]),hH=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return pH(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?pH(o[1],e):0}},__e=new Set(["x","y","z"]),O_e=j0.filter(e=>!__e.has(e));function P_e(e){const t=[];return O_e.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const kf={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:hH(4,13),y:hH(5,14)};kf.translateX=kf.x,kf.translateY=kf.y;const D_e=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=kf[u](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const d=t.getValue(u);d&&d.jump(a[u]),e[u]=kf[u](l,o)}),e},M_e=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(dH);let o=[],s=!1;const a=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],f=G0(d);const m=t[l];let p;if(F2(m)){const g=m.length,v=m[0]===null?1:0;d=m[v],f=G0(d);for(let S=v;S<g&&m[S]!==null;S++)p?PC(G0(m[S])===p):p=G0(m[S])}else p=G0(m);if(f!==p)if(fH(f)&&fH(p)){const g=u.get();typeof g=="string"&&u.set(parseFloat(g)),typeof m=="string"?t[l]=parseFloat(m):Array.isArray(m)&&p===tt&&(t[l]=m.map(parseFloat))}else f!=null&&f.transform&&(p!=null&&p.transform)&&(d===0||m===0)?d===0?u.set(p.transform(d)):t[l]=f.transform(m):(s||(o=P_e(e),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:t[l],u.jump(m))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,u=D_e(t,e,a);return o.length&&o.forEach(([d,f])=>{e.getValue(d).set(f)}),e.render(),_2&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function I_e(e,t,n,r){return R_e(t)?M_e(e,t,n,r):{target:t,transitionEnd:r}}const N_e=(e,t,n,r)=>{const i=E_e(e,t,r);return t=i.target,r=i.transitionEnd,I_e(e,t,n,r)},l$={current:null},mH={current:!1};function L_e(){if(mH.current=!0,!!_2)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>l$.current=e.matches;e.addListener(t),t()}else l$.current=!1}function F_e(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(ei(o))e.addValue(i,o),G2(r)&&r.add(i);else if(ei(s))e.addValue(i,Cf(o,{owner:e})),G2(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,Cf(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const gH=new WeakMap,vH=Object.keys(F0),j_e=vH.length,yH=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],z_e=yC.length;class B_e{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>an.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=D2(n),this.isVariantNode=nB(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{});for(const f in d){const m=d[f];a[f]!==void 0&&ei(m)&&(m.set(a[f],!1),G2(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,gH.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),mH.current||L_e(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:l$.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){gH.delete(this.current),this.projection&&this.projection.unmount(),Js(this.notifyUpdate),Js(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Zu.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&an.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,a;for(let l=0;l<j_e;l++){const u=vH[l],{isEnabled:d,Feature:f,ProjectionNode:m,MeasureLayout:p}=F0[u];m&&(s=m),d(n)&&(!this.features[u]&&f&&(this.features[u]=new f(this)),p&&(a=p))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:d,dragConstraints:f,layoutScroll:m,layoutRoot:p}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!d||f&&xf(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:m,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_n()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<yH.length;r++){const i=yH[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=F_e(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<z_e;r++){const i=yC[r],o=this.props[i];(L0(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Cf(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=EC(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ei(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new QC),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class bH extends B_e{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},i){const o=iRe(r,t||{},this);if(i){nRe(this,r,o);const s=N_e(this,r,o,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function U_e(e){return window.getComputedStyle(e)}class H_e extends bH{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Zu.has(n)){const r=qC(n);return r&&r.default||0}else{const r=U_e(t),i=(lB(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return MU(t,n)}build(t,n,r,i){SC(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return kC(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ei(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){gB(t,n,r,i)}}class V_e extends bH{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Zu.has(n)){const r=qC(n);return r&&r.default||0}return n=vB.has(n)?n:mC(n),t.getAttribute(n)}measureInstanceViewportBox(){return _n()}scrapeMotionValuesFromProps(t,n){return bB(t,n)}build(t,n,r,i){$C(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){yB(t,n,r,i)}mount(t){this.isSVGTag=TC(t.tagName),super.mount(t)}}const W_e=(e,t)=>xC(e)?new V_e(t,{enableHardwareAcceleration:!1}):new H_e(t,{enableHardwareAcceleration:!0}),q_e={...bRe,...IEe,...$_e,...{layout:{ProjectionNode:cH,MeasureLayout:FU}}},nc=Wke((e,t)=>SEe(e,t,q_e,W_e));function xH(){const e=_.useRef(!1);return hC(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function G_e(){const e=xH(),[t,n]=_.useState(0),r=_.useCallback(()=>{e.current&&n(t+1)},[t]);return[_.useCallback(()=>an.postRender(r),[r]),t]}class Y_e extends _.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function K_e({children:e,isPresent:t}){const n=_.useId(),r=_.useRef(null),i=_.useRef({width:0,height:0,top:0,left:0});return _.useInsertionEffect(()=>{const{width:o,height:s,top:a,left:l}=i.current;if(t||!r.current||!o||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
304
+ `;function Kz(e){const{t}=An(),{userName:n,doOnSuccess:r}=ss(e,i8),{enqueueSnackbar:i}=rS(),o=S8({defaultValues:W9(pC),resolver:a9(A0().shape(V9(pC)))}),s=lv(),a=$e(g=>Ve(g,"host")),[l,u]=ie.useState(),[d,{isLoading:f,isError:m}]=Xee(),p=async g=>{const v=await d({body:{userName:n,password:g.password}});v.error?(u(!0),setTimeout(()=>{u(!1)},1e3)):(r&&r(),s(m_({pathToProp:"auth2",newValue:v.data.auth2})),i(t("login.success"),{variant:"success"}))};return $.jsxs(Xr,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[$.jsx(fpe,{sx:{m:1,bgcolor:"secondary.main"},children:$.jsx(Yz,{})}),$.jsx(He,{variant:"h2",children:t("login.sign_in")}),$.jsx(He,{variant:"subtitle2",textAlign:"center",mt:1,children:$.jsxs(kde,{t,i18nKey:"login.explanation",children:["Ein Benutzer mit dieser E-Mail existiert bereits. ",$.jsx("br",{})," Sie müssen sich authentifizieren, bevor Sie buchen können."]})}),$.jsx(Xr,{borderBottom:"1px solid #ddd",width:"80%",mt:2,mb:2}),$.jsxs(Xr,{component:"form",onSubmit:o.handleSubmit(p),noValidate:!0,sx:{mt:1},children:[$.jsx(He,{variant:"body1",textAlign:"center",children:n}),$.jsx(S2,{fields:pC,disableEmptyErrorText:!0,rhfProps:{control:o.control},containerProps:{spacing:0},textFieldProps:{sx:{animation:l?`${Mke} 500ms linear 1`:""}}}),m&&$.jsx(He,{color:"error.main",variant:"body1",textAlign:"center",children:t("login.failed")}),$.jsx(My,{type:"submit",loading:f,fullWidth:!0,variant:"contained",sx:{mt:3,mb:2},children:t("login.sign_in")}),$.jsx(lS,{href:`${a}/auth/reset`,display:"block",variant:"body2",textAlign:"center",target:"_blank",children:t("login.forgot_password")})]})]})}Kz.propTypes={};function N0({utilizeProductInterface:e=!0,utilizeUnknownCustomerInterface:t=!0,utilizeIdentifiedCustomerInterface:n=!0,utilizeCancelAppointmentInterface:r=!0,utilizeConfirmationInterface:i=!0,utilizeLoginInterface:o=!0,utilizeErrorDialogInterface:s=!0}){const a=$e(C=>Ve(C,"interfaces.ProductPage")),l=$e(C=>Ve(C,"interfaces.UnkownBookingPage")),u=$e(C=>Ve(C,"interfaces.IdentifiedBookingPage")),d=$e(C=>Ve(C,"interfaces.CancelPage")),f=$e(C=>Ve(C,"interfaces.ConfirmationPage")),m=$e(C=>Ve(C,"interfaces.LoginPage")),p=$e(C=>Ve(C,"interfaces.ErrorDialog")),g=_.useContext(_y),v=_.useContext(Oy),S=_.useContext(n8),y=_.useContext(r8),x=_.useContext(i8),w=_.useContext(ZI);return $.jsxs($.Fragment,{children:[e&&a&&$.jsx(a,{open:g==null?void 0:g.open,onClose:g==null?void 0:g.onClose,children:$.jsx(nN,{onProductSelected:g==null?void 0:g.onClose})}),n&&u&&$.jsx(u,{open:v==null?void 0:v.identifiedOpen,onClose:v==null?void 0:v.onClose,children:$.jsx(gz,{...v})}),t&&l&&$.jsx(l,{open:v==null?void 0:v.unknownOpen,onClose:v==null?void 0:v.onClose,children:$.jsx(mz,{...v})}),r&&d&&$.jsx(d,{open:S==null?void 0:S.open,onClose:S==null?void 0:S.onClose,children:$.jsx(vz,{})}),i&&f&&$.jsx(f,{open:y==null?void 0:y.open,onClose:y==null?void 0:y.onClose,allowCloseOnBooking:y==null?void 0:y.allowCloseOnBooking,children:$.jsx(Gz,{})}),o&&m&&$.jsx(m,{open:x==null?void 0:x.open,onClose:x==null?void 0:x.onClose,children:$.jsx(Kz,{doOnSuccess:x==null?void 0:x.handleCloseLoginPage})}),s&&p&&$.jsx(p,{open:w==null?void 0:w.open,onClose:w==null?void 0:w.onClose})]})}const Zz=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),A2=_.createContext({}),R2=_.createContext(null),_2=typeof document<"u",hC=_2?_.useLayoutEffect:_.useEffect,Qz=_.createContext({strict:!1}),mC=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Xz="data-"+mC("framerAppearId"),Jz={skipAnimations:!1,useManualTiming:!1};class eB{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Ike(e){let t=new eB,n=new eB,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,d=!1)=>{const f=d&&i,m=f?t:n;return u&&s.add(l),m.add(l)&&f&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const d=t.order[u];s.has(d)&&(a.schedule(d),e()),d(l)}i=!1,o&&(o=!1,a.process(l))}};return a}const O2=["prepare","read","update","preRender","render","postRender"],Nke=40;function tB(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=O2.reduce((f,m)=>(f[m]=Ike(()=>n=!0),f),{}),s=f=>{o[f].process(i)},a=()=>{const f=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,Nke),1),i.timestamp=f,i.isProcessing=!0,O2.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:O2.reduce((f,m)=>{const p=o[m];return f[m]=(g,v=!1,S=!1)=>(n||l(),p.schedule(g,v,S)),f},{}),cancel:f=>O2.forEach(m=>o[m].cancel(f)),state:i,steps:o}}const{schedule:gC,cancel:LQe}=tB(queueMicrotask,!1);function Lke(e,t,n,r){const{visualElement:i}=_.useContext(A2),o=_.useContext(Qz),s=_.useContext(R2),a=_.useContext(Zz).reducedMotion,l=_.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;_.useInsertionEffect(()=>{u&&u.update(n,s)});const d=_.useRef(!!(n[Xz]&&!window.HandoffComplete));return hC(()=>{u&&(gC.postRender(u.render),d.current&&u.animationState&&u.animationState.animateChanges())}),_.useEffect(()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),u}function xf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Fke(e,t,n){return _.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xf(n)&&(n.current=r))},[t])}function L0(e){return typeof e=="string"||Array.isArray(e)}function P2(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const vC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],yC=["initial",...vC];function D2(e){return P2(e.animate)||yC.some(t=>L0(e[t]))}function nB(e){return!!(D2(e)||e.variants)}function jke(e,t){if(D2(e)){const{initial:n,animate:r}=e;return{initial:n===!1||L0(n)?n:void 0,animate:L0(r)?r:void 0}}return e.inherit!==!1?t:{}}function zke(e){const{initial:t,animate:n}=jke(e,_.useContext(A2));return _.useMemo(()=>({initial:t,animate:n}),[rB(t),rB(n)])}function rB(e){return Array.isArray(e)?e.join(" "):e}const iB={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"]},F0={};for(const e in iB)F0[e]={isEnabled:t=>iB[e].some(n=>!!t[n])};function Bke(e){for(const t in e)F0[t]={...F0[t],...e[t]}}const bC=_.createContext({}),oB=_.createContext({}),Uke=Symbol.for("motionComponentSymbol");function Hke({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Bke(e);function o(a,l){let u;const d={..._.useContext(Zz),...a,layoutId:Vke(a)},{isStatic:f}=d,m=zke(a),p=r(a,f);if(!f&&_2){m.visualElement=Lke(i,p,d,t);const g=_.useContext(oB),v=_.useContext(Qz).strict;m.visualElement&&(u=m.visualElement.loadFeatures(d,v,e,g))}return _.createElement(A2.Provider,{value:m},u&&m.visualElement?_.createElement(u,{visualElement:m.visualElement,...d}):null,n(i,a,Fke(p,m.visualElement,l),p,f,m.visualElement))}const s=_.forwardRef(o);return s[Uke]=i,s}function Vke({layoutId:e}){const t=_.useContext(bC).id;return t&&e!==void 0?t+"-"+e:e}function Wke(e){function t(r,i={}){return Hke(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const qke=["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 xC(e){return typeof e!="string"||e.includes("-")?!1:!!(qke.indexOf(e)>-1||/[A-Z]/.test(e))}const M2={};function Gke(e){Object.assign(M2,e)}const j0=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zu=new Set(j0);function sB(e,{layout:t,layoutId:n}){return Zu.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!M2[e]||e==="opacity")}const ei=e=>!!(e&&e.getVelocity),Yke={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Kke=j0.length;function Zke(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<Kke;s++){const a=j0[s];if(e[a]!==void 0){const l=Yke[a]||a;o+=`${l}(${e[a]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const aB=e=>t=>typeof t=="string"&&t.startsWith(e),lB=aB("--"),Qke=aB("var(--"),I2=e=>Qke(e)?Xke.test(e.split("/*")[0].trim()):!1,Xke=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,Jke=(e,t)=>t&&typeof e=="number"?t.transform(e):e,wl=(e,t,n)=>n>t?t:n<e?e:n,wf={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},z0={...wf,transform:e=>wl(0,1,e)},N2={...wf,default:1},B0=e=>Math.round(e*1e5)/1e5,wC=/(-)?([\d]*\.?[\d])+/g,eEe=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,tEe=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function U0(e){return typeof e=="string"}const H0=e=>({test:t=>U0(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Sl=H0("deg"),ls=H0("%"),tt=H0("px"),nEe=H0("vh"),rEe=H0("vw"),uB={...ls,parse:e=>ls.parse(e)/100,transform:e=>ls.transform(e*100)},cB={...wf,transform:Math.round},dB={borderWidth:tt,borderTopWidth:tt,borderRightWidth:tt,borderBottomWidth:tt,borderLeftWidth:tt,borderRadius:tt,radius:tt,borderTopLeftRadius:tt,borderTopRightRadius:tt,borderBottomRightRadius:tt,borderBottomLeftRadius:tt,width:tt,maxWidth:tt,height:tt,maxHeight:tt,size:tt,top:tt,right:tt,bottom:tt,left:tt,padding:tt,paddingTop:tt,paddingRight:tt,paddingBottom:tt,paddingLeft:tt,margin:tt,marginTop:tt,marginRight:tt,marginBottom:tt,marginLeft:tt,rotate:Sl,rotateX:Sl,rotateY:Sl,rotateZ:Sl,scale:N2,scaleX:N2,scaleY:N2,scaleZ:N2,skew:Sl,skewX:Sl,skewY:Sl,distance:tt,translateX:tt,translateY:tt,translateZ:tt,x:tt,y:tt,z:tt,perspective:tt,transformPerspective:tt,opacity:z0,originX:uB,originY:uB,originZ:tt,zIndex:cB,fillOpacity:z0,strokeOpacity:z0,numOctaves:cB};function SC(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,u=!1,d=!0;for(const f in t){const m=t[f];if(lB(f)){o[f]=m;continue}const p=dB[f],g=Jke(m,p);if(Zu.has(f)){if(l=!0,s[f]=g,!d)continue;m!==(p.default||0)&&(d=!1)}else f.startsWith("origin")?(u=!0,a[f]=g):i[f]=g}if(t.transform||(l||r?i.transform=Zke(e.transform,n,d,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:m="50%",originZ:p=0}=a;i.transformOrigin=`${f} ${m} ${p}`}}const CC=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fB(e,t,n){for(const r in t)!ei(t[r])&&!sB(r,n)&&(e[r]=t[r])}function iEe({transformTemplate:e},t,n){return _.useMemo(()=>{const r=CC();return SC(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function oEe(e,t,n){const r=e.style||{},i={};return fB(i,r,e),Object.assign(i,iEe(e,t,n)),i}function sEe(e,t,n){const r={},i=oEe(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const aEe=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 L2(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||aEe.has(e)}let pB=e=>!L2(e);function lEe(e){e&&(pB=t=>t.startsWith("on")?!L2(t):e(t))}try{lEe(require("@emotion/is-prop-valid").default)}catch{}function uEe(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(pB(i)||n===!0&&L2(i)||!t&&!L2(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function hB(e,t,n){return typeof e=="string"?e:tt.transform(t+n*e)}function cEe(e,t,n){const r=hB(t,e.x,e.width),i=hB(n,e.y,e.height);return`${r} ${i}`}const dEe={offset:"stroke-dashoffset",array:"stroke-dasharray"},fEe={offset:"strokeDashoffset",array:"strokeDasharray"};function pEe(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?dEe:fEe;e[o.offset]=tt.transform(-r);const s=tt.transform(t),a=tt.transform(n);e[o.array]=`${s} ${a}`}function $C(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},d,f,m){if(SC(e,u,d,m),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:v}=e;p.transform&&(v&&(g.transform=p.transform),delete p.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=cEe(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&pEe(p,s,a,l,!1)}const mB=()=>({...CC(),attrs:{}}),TC=e=>typeof e=="string"&&e.toLowerCase()==="svg";function hEe(e,t,n,r){const i=_.useMemo(()=>{const o=mB();return $C(o,t,{enableHardwareAcceleration:!1},TC(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};fB(o,e.style,e),i.style={...o,...i.style}}return i}function mEe(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(xC(n)?hEe:sEe)(r,o,s,n),u=uEe(r,typeof n=="string",e),d=n!==_.Fragment?{...u,...l,ref:i}:{},{children:f}=r,m=_.useMemo(()=>ei(f)?f.get():f,[f]);return _.createElement(n,{...d,children:m})}}function gB(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const vB=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 yB(e,t,n,r){gB(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(vB.has(i)?i:mC(i),t.attrs[i])}function kC(e,t){const{style:n}=e,r={};for(const i in n)(ei(n[i])||t.style&&ei(t.style[i])||sB(i,e))&&(r[i]=n[i]);return r}function bB(e,t){const n=kC(e,t);for(const r in e)if(ei(e[r])||ei(t[r])){const i=j0.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function EC(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function xB(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const F2=e=>Array.isArray(e),gEe=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),vEe=e=>F2(e)?e[e.length-1]||0:e;function j2(e){const t=ei(e)?e.get():e;return gEe(t)?t.toValue():t}function yEe({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:bEe(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const wB=e=>(t,n)=>{const r=_.useContext(A2),i=_.useContext(R2),o=()=>yEe(e,t,r,i);return n?o():xB(o)};function bEe(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=j2(o[m]);let{initial:s,animate:a}=e;const l=D2(e),u=nB(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const f=d?a:s;return f&&typeof f!="boolean"&&!P2(f)&&(Array.isArray(f)?f:[f]).forEach(p=>{const g=EC(e,p);if(!g)return;const{transitionEnd:v,transition:S,...y}=g;for(const x in y){let w=y[x];if(Array.isArray(w)){const C=d?w.length-1:0;w=w[C]}w!==null&&(i[x]=w)}for(const x in v)i[x]=v[x]}),i}const Rn=e=>e,{schedule:an,cancel:Js,state:lr,steps:AC}=tB(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rn,!0),xEe={useVisualState:wB({scrapeMotionValuesFromProps:bB,createRenderState:mB,onMount:(e,t,{renderState:n,latestValues:r})=>{an.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),an.render(()=>{$C(n,r,{enableHardwareAcceleration:!1},TC(t.tagName),e.transformTemplate),yB(t,n)})}})},wEe={useVisualState:wB({scrapeMotionValuesFromProps:kC,createRenderState:CC})};function SEe(e,{forwardMotionProps:t=!1},n,r){return{...xC(e)?xEe:wEe,preloadedFeatures:n,useRender:mEe(t),createVisualElement:r,Component:e}}function ea(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const SB=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function z2(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const CEe=e=>t=>SB(t)&&e(t,z2(t));function ta(e,t,n,r){return ea(e,t,CEe(n),r)}const $Ee=(e,t)=>n=>t(e(n)),na=(...e)=>e.reduce($Ee);function CB(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const $B=CB("dragHorizontal"),TB=CB("dragVertical");function kB(e){let t=!1;if(e==="y")t=TB();else if(e==="x")t=$B();else{const n=$B(),r=TB();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function EB(){const e=kB(!0);return e?(e(),!1):!0}class Cl{constructor(t){this.isMounted=!1,this.node=t}update(){}}function AB(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||EB())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&an.update(()=>a[r](o,s))};return ta(e.current,n,i,{passive:!e.getProps()[r]})}class TEe extends Cl{mount(){this.unmount=na(AB(this.node,!0),AB(this.node,!1))}unmount(){}}class kEe extends Cl{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=na(ea(this.node.current,"focus",()=>this.onFocus()),ea(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const RB=(e,t)=>t?e===t?!0:RB(e,t.parentElement):!1;function RC(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,z2(n))}class EEe extends Cl{constructor(){super(...arguments),this.removeStartListeners=Rn,this.removeEndListeners=Rn,this.removeAccessibleListeners=Rn,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=ta(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:d,globalTapTarget:f}=this.node.getProps();an.update(()=>{!f&&!RB(this.node.current,a.target)?d&&d(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=ta(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=na(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||RC("up",(l,u)=>{const{onTap:d}=this.node.getProps();d&&an.update(()=>d(l,u))})};this.removeEndListeners(),this.removeEndListeners=ea(this.node.current,"keyup",s),RC("down",(a,l)=>{this.startPress(a,l)})},n=ea(this.node.current,"keydown",t),r=()=>{this.isPressing&&RC("cancel",(o,s)=>this.cancelPress(o,s))},i=ea(this.node.current,"blur",r);this.removeAccessibleListeners=na(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&an.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!EB()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&an.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=ta(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ea(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=na(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const _C=new WeakMap,OC=new WeakMap,AEe=e=>{const t=_C.get(e.target);t&&t(e)},REe=e=>{e.forEach(AEe)};function _Ee({root:e,...t}){const n=e||document;OC.has(n)||OC.set(n,{});const r=OC.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(REe,{root:e,...t})),r[i]}function OEe(e,t,n){const r=_Ee(t);return _C.set(e,n),r.observe(e),()=>{_C.delete(e),r.unobserve(e)}}const PEe={some:0,all:1};class DEe extends Cl{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:PEe[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),m=u?d:f;m&&m(l)};return OEe(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(MEe(t,n))&&this.startObserver()}unmount(){}}function MEe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const IEe={inView:{Feature:DEe},tap:{Feature:EEe},focus:{Feature:kEe},hover:{Feature:TEe}};function _B(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function NEe(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function LEe(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function B2(e,t,n){const r=e.getProps();return EC(r,t,n!==void 0?n:r.custom,NEe(e),LEe(e))}let FEe=Rn,PC=Rn;const $l=e=>e*1e3,ra=e=>e/1e3,jEe={current:!1},OB=e=>Array.isArray(e)&&typeof e[0]=="number";function PB(e){return!!(!e||typeof e=="string"&&DB[e]||OB(e)||Array.isArray(e)&&e.every(PB))}const V0=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,DB={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:V0([0,.65,.55,1]),circOut:V0([.55,0,1,.45]),backIn:V0([.31,.01,.66,-.59]),backOut:V0([.33,1.53,.69,.99])};function MB(e){if(e)return OB(e)?V0(e):Array.isArray(e)?e.map(MB):DB[e]}function zEe(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=MB(a);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function BEe(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const IB=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,UEe=1e-7,HEe=12;function VEe(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=IB(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>UEe&&++a<HEe);return s}function W0(e,t,n,r){if(e===t&&n===r)return Rn;const i=o=>VEe(o,0,1,e,n);return o=>o===0||o===1?o:IB(i(o),t,r)}const WEe=W0(.42,0,1,1),qEe=W0(0,0,.58,1),NB=W0(.42,0,.58,1),GEe=e=>Array.isArray(e)&&typeof e[0]!="number",LB=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,FB=e=>t=>1-e(1-t),DC=e=>1-Math.sin(Math.acos(e)),jB=FB(DC),YEe=LB(DC),zB=W0(.33,1.53,.69,.99),MC=FB(zB),KEe=LB(MC),ZEe={linear:Rn,easeIn:WEe,easeInOut:NB,easeOut:qEe,circIn:DC,circInOut:YEe,circOut:jB,backIn:MC,backInOut:KEe,backOut:zB,anticipate:e=>(e*=2)<1?.5*MC(e):.5*(2-Math.pow(2,-10*(e-1)))},BB=e=>{if(Array.isArray(e)){PC(e.length===4);const[t,n,r,i]=e;return W0(t,n,r,i)}else if(typeof e=="string")return ZEe[e];return e},q0=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},hn=(e,t,n)=>e+(t-e)*n;function IC(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function QEe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=IC(l,a,e+1/3),o=IC(l,a,e),s=IC(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const NC=(e,t)=>n=>!!(U0(n)&&tEe.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),UB=(e,t,n)=>r=>{if(!U0(r))return r;const[i,o,s,a]=r.match(wC);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},XEe=e=>wl(0,255,e),LC={...wf,transform:e=>Math.round(XEe(e))},Qu={test:NC("rgb","red"),parse:UB("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+LC.transform(e)+", "+LC.transform(t)+", "+LC.transform(n)+", "+B0(z0.transform(r))+")"};function JEe(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const FC={test:NC("#"),parse:JEe,transform:Qu.transform},Sf={test:NC("hsl","hue"),parse:UB("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ls.transform(B0(t))+", "+ls.transform(B0(n))+", "+B0(z0.transform(r))+")"},jC=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},eAe=[FC,Qu,Sf],tAe=e=>eAe.find(t=>t.test(e));function HB(e){const t=tAe(e);let n=t.parse(e);return t===Sf&&(n=QEe(n)),n}const VB=(e,t)=>{const n=HB(e),r=HB(t),i={...n};return o=>(i.red=jC(n.red,r.red,o),i.green=jC(n.green,r.green,o),i.blue=jC(n.blue,r.blue,o),i.alpha=hn(n.alpha,r.alpha,o),Qu.transform(i))},wr={test:e=>Qu.test(e)||FC.test(e)||Sf.test(e),parse:e=>Qu.test(e)?Qu.parse(e):Sf.test(e)?Sf.parse(e):FC.parse(e),transform:e=>U0(e)?e:e.hasOwnProperty("red")?Qu.transform(e):Sf.transform(e)};function nAe(e){var t,n;return isNaN(e)&&U0(e)&&(((t=e.match(wC))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(eEe))===null||n===void 0?void 0:n.length)||0)>0}const WB="number",qB="color",rAe="var",iAe="var(",GB="${}",YB=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function U2(e){const t=e.toString(),n=t.match(YB)||[],r=[],i={color:[],number:[],var:[]},o=[];for(let l=0;l<n.length;l++){const u=n[l];wr.test(u)?(i.color.push(l),o.push(qB),r.push(wr.parse(u))):u.startsWith(iAe)?(i.var.push(l),o.push(rAe),r.push(u)):(i.number.push(l),o.push(WB),r.push(parseFloat(u)))}const a=t.replace(YB,GB).split(GB);return{values:r,split:a,indexes:i,types:o}}function KB(e){return U2(e).values}function ZB(e){const{split:t,types:n}=U2(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const a=n[s];a===WB?o+=B0(i[s]):a===qB?o+=wr.transform(i[s]):o+=i[s]}return o}}const oAe=e=>typeof e=="number"?0:e;function sAe(e){const t=KB(e);return ZB(e)(t.map(oAe))}const Tl={test:nAe,parse:KB,createTransformer:ZB,getAnimatableNone:sAe};function zC(e,t){return n=>n>0?t:e}function aAe(e,t){return n=>hn(e,t,n)}function BC(e){return typeof e=="number"?aAe:typeof e=="string"?I2(e)?zC:wr.test(e)?VB:cAe:Array.isArray(e)?QB:typeof e=="object"?wr.test(e)?VB:lAe:zC}function QB(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>BC(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function lAe(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=BC(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function uAe(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][i[s]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[o]=l,i[s]++}return r}const cAe=(e,t)=>{const n=Tl.createTransformer(t),r=U2(e),i=U2(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?na(QB(uAe(r,i),i.values),n):zC(e,t)};function XB(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?hn(e,t,n):BC(e)(e,t)}function dAe(e,t,n){const r=[],i=n||XB,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Rn:t;a=na(l,a)}r.push(a)}return r}function fAe(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(PC(o===t.length),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=dAe(t,r,i),a=s.length,l=u=>{let d=0;if(a>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=q0(e[d],e[d+1],u);return s[d](f)};return n?u=>l(wl(e[0],e[o-1],u)):l}function pAe(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=q0(0,t,r);e.push(hn(n,1,i))}}function hAe(e){const t=[0];return pAe(t,e.length-1),t}function mAe(e,t){return e.map(n=>n*t)}function gAe(e,t){return e.map(()=>t||NB).splice(0,e.length-1)}function H2({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=GEe(r)?r.map(BB):BB(r),o={done:!1,value:t[0]},s=mAe(n&&n.length===t.length?n:hAe(t),e),a=fAe(s,t,{ease:Array.isArray(i)?i:gAe(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function JB(e,t){return t?e*(1e3/t):0}const vAe=5;function eU(e,t,n){const r=Math.max(t-vAe,0);return JB(n-e(r),t-r)}const UC=.001,yAe=.01,tU=10,bAe=.05,xAe=1;function wAe({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;FEe(e<=$l(tU));let s=1-t;s=wl(bAe,xAe,s),e=wl(yAe,tU,ra(e)),s<1?(i=u=>{const d=u*s,f=d*e,m=d-n,p=HC(u,s),g=Math.exp(-f);return UC-m/p*g},o=u=>{const f=u*s*e,m=f*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-f),v=HC(Math.pow(u,2),s);return(-i(u)+UC>0?-1:1)*((m-p)*g)/v}):(i=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-UC+d*f},o=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const a=5/e,l=CAe(i,o,a);if(e=$l(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const SAe=12;function CAe(e,t,n){let r=n;for(let i=1;i<SAe;i++)r=r-e(r)/t(r);return r}function HC(e,t){return e*Math.sqrt(1-t*t)}const $Ae=["duration","bounce"],TAe=["stiffness","damping","mass"];function nU(e,t){return t.some(n=>e[n]!==void 0)}function kAe(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!nU(e,TAe)&&nU(e,$Ae)){const n=wAe(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function rU({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:m}=kAe({...r,velocity:-ra(r.velocity||0)}),p=f||0,g=l/(2*Math.sqrt(a*u)),v=o-i,S=ra(Math.sqrt(a/u)),y=Math.abs(v)<5;n||(n=y?.01:2),t||(t=y?.005:.5);let x;if(g<1){const w=HC(S,g);x=C=>{const T=Math.exp(-g*S*C);return o-T*((p+g*S*v)/w*Math.sin(w*C)+v*Math.cos(w*C))}}else if(g===1)x=w=>o-Math.exp(-S*w)*(v+(p+S*v)*w);else{const w=S*Math.sqrt(g*g-1);x=C=>{const T=Math.exp(-g*S*C),k=Math.min(w*C,300);return o-T*((p+g*S*v)*Math.sinh(k)+w*v*Math.cosh(k))/w}}return{calculatedDuration:m&&d||null,next:w=>{const C=x(w);if(m)s.done=w>=d;else{let T=p;w!==0&&(g<1?T=eU(x,w,C):T=0);const k=Math.abs(T)<=n,R=Math.abs(o-C)<=t;s.done=k&&R}return s.value=s.done?o:C,s}}}function iU({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:d}){const f=e[0],m={done:!1,value:f},p=A=>a!==void 0&&A<a||l!==void 0&&A>l,g=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let v=n*t;const S=f+v,y=s===void 0?S:s(S);y!==S&&(v=y-f);const x=A=>-v*Math.exp(-A/r),w=A=>y+x(A),C=A=>{const M=x(A),P=w(A);m.done=Math.abs(M)<=u,m.value=m.done?y:P};let T,k;const R=A=>{p(m.value)&&(T=A,k=rU({keyframes:[m.value,g(m.value)],velocity:eU(w,A,m.value),damping:i,stiffness:o,restDelta:u,restSpeed:d}))};return R(0),{calculatedDuration:null,next:A=>{let M=!1;return!k&&T===void 0&&(M=!0,C(A),R(A)),T!==void 0&&A>T?k.next(A-T):(!M&&C(A),m)}}}let V2;function EAe(){V2=void 0}const Xu={now:()=>(V2===void 0&&Xu.set(lr.isProcessing||Jz.useManualTiming?lr.timestamp:performance.now()),V2),set:e=>{V2=e,queueMicrotask(EAe)}},AAe=e=>{const t=({timestamp:n})=>e(n);return{start:()=>an.update(t,!0),stop:()=>Js(t),now:()=>lr.isProcessing?lr.timestamp:Xu.now()}},oU=2e4;function sU(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<oU;)t+=n,r=e.next(t);return t>=oU?1/0:t}const RAe={decay:iU,inertia:iU,tween:H2,keyframes:H2,spring:rU},_Ae=e=>e/100;function W2({autoplay:e=!0,delay:t=0,driver:n=AAe,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:d,onUpdate:f,...m}){let p=1,g=!1,v,S;const y=()=>{S=new Promise(ne=>{v=ne})};y();let x;const w=RAe[i]||H2;let C;w!==H2&&typeof r[0]!="number"&&(C=na(_Ae,XB(r[0],r[1])),r=[0,100]);const T=w({...m,keyframes:r});let k;a==="mirror"&&(k=w({...m,keyframes:[...r].reverse(),velocity:-(m.velocity||0)}));let R="idle",A=null,M=null,P=null;T.calculatedDuration===null&&o&&(T.calculatedDuration=sU(T));const{calculatedDuration:j}=T;let F=1/0,B=1/0;j!==null&&(F=j+s,B=F*(o+1)-s);let z=0;const D=ne=>{if(M===null)return;p>0&&(M=Math.min(M,ne)),p<0&&(M=Math.min(ne-B/p,M)),A!==null?z=A:z=Math.round(ne-M)*p;const ye=z-t*(p>=0?1:-1),ge=p>=0?ye<0:ye>B;z=Math.max(ye,0),R==="finished"&&A===null&&(z=B);let pe=z,ve=T;if(o){const Ke=Math.min(z,B)/F;let ot=Math.floor(Ke),Pe=Ke%1;!Pe&&Ke>=1&&(Pe=1),Pe===1&&ot--,ot=Math.min(ot,o+1),!!(ot%2)&&(a==="reverse"?(Pe=1-Pe,s&&(Pe-=s/F)):a==="mirror"&&(ve=k)),pe=wl(0,1,Pe)*F}const Se=ge?{done:!1,value:r[0]}:ve.next(pe);C&&(Se.value=C(Se.value));let{done:Ne}=Se;!ge&&j!==null&&(Ne=p>=0?z>=B:z<=0);const Re=A===null&&(R==="finished"||R==="running"&&Ne);return f&&f(Se.value),Re&&V(),Se},U=()=>{x&&x.stop(),x=void 0},G=()=>{R="idle",U(),v(),y(),M=P=null},V=()=>{R="finished",d&&d(),U(),v()},Q=()=>{if(g)return;x||(x=n(D));const ne=x.now();l&&l(),A!==null?M=ne-A:(!M||R==="finished")&&(M=ne),R==="finished"&&y(),P=M,A=null,R="running",x.start()};e&&Q();const Z={then(ne,ye){return S.then(ne,ye)},get time(){return ra(z)},set time(ne){ne=$l(ne),z=ne,A!==null||!x||p===0?A=ne:M=x.now()-ne/p},get duration(){const ne=T.calculatedDuration===null?sU(T):T.calculatedDuration;return ra(ne)},get speed(){return p},set speed(ne){ne===p||!x||(p=ne,Z.time=ra(z))},get state(){return R},play:Q,pause:()=>{R="paused",A=z},stop:()=>{g=!0,R!=="idle"&&(R="idle",u&&u(),G())},cancel:()=>{P!==null&&D(P),G()},complete:()=>{R="finished"},sample:ne=>(M=0,D(ne))};return Z}function OAe(e){let t;return()=>(t===void 0&&(t=e()),t)}const PAe=OAe(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),DAe=new Set(["opacity","clipPath","filter","transform"]),q2=10,MAe=2e4,IAe=(e,t)=>t.type==="spring"||e==="backgroundColor"||!PB(t.ease);function NAe(e,t,{onUpdate:n,onComplete:r,...i}){if(!(PAe()&&DAe.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const d=()=>{l=new Promise(w=>{a=w})};d();let{keyframes:f,duration:m=300,ease:p,times:g}=i;if(IAe(t,i)){const w=W2({...i,repeat:0,delay:0});let C={done:!1,value:f[0]};const T=[];let k=0;for(;!C.done&&k<MAe;)C=w.sample(k),T.push(C.value),k+=q2;g=void 0,f=T,m=k-q2,p="linear"}const v=zEe(e.owner.current,t,f,{...i,duration:m,ease:p,times:g}),S=()=>{u=!1,v.cancel()},y=()=>{u=!0,an.update(S),a(),d()};return v.onfinish=()=>{u||(e.set(BEe(f,i)),r&&r(),y())},{then(w,C){return l.then(w,C)},attachTimeline(w){return v.timeline=w,v.onfinish=null,Rn},get time(){return ra(v.currentTime||0)},set time(w){v.currentTime=$l(w)},get speed(){return v.playbackRate},set speed(w){v.playbackRate=w},get duration(){return ra(m)},play:()=>{s||(v.play(),Js(S))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:w}=v;if(w){const C=W2({...i,autoplay:!1});e.setWithVelocity(C.sample(w-q2).value,C.sample(w).value,q2)}y()},complete:()=>{u||v.finish()},cancel:y}}function LAe({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Rn,pause:Rn,stop:Rn,then:o=>(o(),Promise.resolve()),cancel:Rn,complete:Rn});return t?W2({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const FAe={type:"spring",stiffness:500,damping:25,restSpeed:10},jAe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zAe={type:"keyframes",duration:.8},BAe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},UAe=(e,{keyframes:t})=>t.length>2?zAe:Zu.has(e)?e.startsWith("scale")?jAe(t[1]):FAe:BAe,VC=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Tl.test(t)||t==="0")&&!t.startsWith("url(")),HAe=new Set(["brightness","contrast","saturate","opacity"]);function VAe(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(wC)||[];if(!r)return e;const i=n.replace(r,"");let o=HAe.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const WAe=/([a-z-]*)\(.*?\)/g,WC={...Tl,getAnimatableNone:e=>{const t=e.match(WAe);return t?t.map(VAe).join(" "):e}},qAe={...dB,color:wr,backgroundColor:wr,outlineColor:wr,fill:wr,stroke:wr,borderColor:wr,borderTopColor:wr,borderRightColor:wr,borderBottomColor:wr,borderLeftColor:wr,filter:WC,WebkitFilter:WC},qC=e=>qAe[e];function aU(e,t){let n=qC(e);return n!==WC&&(n=Tl),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const lU=e=>/^0[^.\s]+$/.test(e);function GAe(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||lU(e)}function YAe(e,t,n,r){const i=VC(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;u<o.length;u++)o[u]===null&&(o[u]=u===0?s:o[u-1]),GAe(o[u])&&l.push(u),typeof o[u]=="string"&&o[u]!=="none"&&o[u]!=="0"&&(a=o[u]);if(i&&l.length&&a)for(let u=0;u<l.length;u++){const d=l[u];o[d]=aU(t,a)}return o}function KAe({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...d}){return!!Object.keys(d).length}function GC(e,t){return e[t]||e.default||e}const YC=(e,t,n,r={})=>i=>{const o=GC(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-$l(s);const l=YAe(t,e,n,o),u=l[0],d=l[l.length-1],f=VC(e,u),m=VC(e,d);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(KAe(o)||(p={...p,...UAe(e,p)}),p.duration&&(p.duration=$l(p.duration)),p.repeatDelay&&(p.repeatDelay=$l(p.repeatDelay)),!f||!m||jEe.current||o.type===!1||Jz.skipAnimations)return LAe(p);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=NAe(t,e,p);if(g)return g}return W2(p)};function G2(e){return!!(ei(e)&&e.add)}const uU=e=>/^\-?\d*\.?\d+$/.test(e);function KC(e,t){e.indexOf(t)===-1&&e.push(t)}function ZC(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class QC{constructor(){this.subscriptions=[]}add(t){return KC(this.subscriptions,t),()=>ZC(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const cU=30,ZAe=e=>!isNaN(parseFloat(e));class QAe{constructor(t,n={}){this.version="11.0.8",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Xu.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),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(t),this.canTrackVelocity=ZAe(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Xu.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new QC);const r=this.events[t].add(n);return t==="change"?()=>{r(),an.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Xu.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>cU)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,cU);return JB(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Cf(e,t){return new QAe(e,t)}const dU=e=>t=>t.test(e),fU=[wf,tt,ls,Sl,rEe,nEe,{test:e=>e==="auto",parse:e=>e}],G0=e=>fU.find(dU(e)),XAe=[...fU,wr,Tl],JAe=e=>XAe.find(dU(e));function eRe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Cf(n))}function tRe(e,t){const n=B2(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=vEe(o[s]);eRe(e,s,a)}}function nRe(e,t,n){var r,i;const o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],u=t[l];let d=null;Array.isArray(u)&&(d=u[0]),d===null&&(d=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),d!=null&&(typeof d=="string"&&(uU(d)||lU(d))?d=parseFloat(d):!JAe(d)&&Tl.test(u)&&(d=aU(l,u)),e.addValue(l,Cf(d,{owner:e})),n[l]===void 0&&(n[l]=d),d!==null&&e.setBaseTarget(l,d))}}function rRe(e,t){return t?(t[e]||t.default||t).from:void 0}function iRe(e,t,n){const r={};for(const i in e){const o=rRe(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function oRe({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function sRe(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function pU(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in a){const m=e.getValue(f),p=a[f];if(!m||p===void 0||d&&oRe(d,f))continue;const g={delay:n,elapsed:0,...GC(o||{},f)};if(window.HandoffAppearAnimations){const y=e.getProps()[Xz];if(y){const x=window.HandoffAppearAnimations(y,f,m,an);x!==null&&(g.elapsed=x,g.isHandoff=!0)}}let v=!g.isHandoff&&!sRe(m,p);if(g.type==="spring"&&(m.getVelocity()||g.velocity)&&(v=!1),m.animation&&(v=!1),v)continue;m.start(YC(f,m,p,e.shouldReduceMotion&&Zu.has(f)?{type:!1}:g));const S=m.animation;G2(l)&&(l.add(f),S.then(()=>l.remove(f))),u.push(S)}return s&&Promise.all(u).then(()=>{s&&tRe(e,s)}),u}function XC(e,t,n={}){const r=B2(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(pU(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return aRe(e,t,u+l,d,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function aRe(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(lRe).forEach((u,d)=>{u.notify("AnimationStart",t),s.push(XC(u,t,{...o,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function lRe(e,t){return e.sortNodePosition(t)}function uRe(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>XC(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=XC(e,t,n);else{const i=typeof t=="function"?B2(e,t,n.custom):t;r=Promise.all(pU(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const cRe=[...vC].reverse(),dRe=vC.length;function fRe(e){return t=>Promise.all(t.map(({animation:n,options:r})=>uRe(e,n,r)))}function pRe(e){let t=fRe(e);const n=mRe();let r=!0;const i=(l,u)=>{const d=B2(e,u);if(d){const{transition:f,transitionEnd:m,...p}=d;l={...l,...p,...m}}return l};function o(l){t=l(e)}function s(l,u){const d=e.getProps(),f=e.getVariantContext(!0)||{},m=[],p=new Set;let g={},v=1/0;for(let y=0;y<dRe;y++){const x=cRe[y],w=n[x],C=d[x]!==void 0?d[x]:f[x],T=L0(C),k=x===u?w.isActive:null;k===!1&&(v=y);let R=C===f[x]&&C!==d[x]&&T;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),w.protectedKeys={...g},!w.isActive&&k===null||!C&&!w.prevProp||P2(C)||typeof C=="boolean")continue;let M=hRe(w.prevProp,C)||x===u&&w.isActive&&!R&&T||y>v&&T,P=!1;const j=Array.isArray(C)?C:[C];let F=j.reduce(i,{});k===!1&&(F={});const{prevResolvedValues:B={}}=w,z={...B,...F},D=U=>{M=!0,p.has(U)&&(P=!0,p.delete(U)),w.needsAnimating[U]=!0};for(const U in z){const G=F[U],V=B[U];if(g.hasOwnProperty(U))continue;let Q=!1;F2(G)&&F2(V)?Q=!_B(G,V):Q=G!==V,Q?G!==void 0?D(U):p.add(U):G!==void 0&&p.has(U)?D(U):w.protectedKeys[U]=!0}w.prevProp=C,w.prevResolvedValues=F,w.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(M=!1),M&&(!R||P)&&m.push(...j.map(U=>({animation:U,options:{type:x,...l}})))}if(p.size){const y={};p.forEach(x=>{const w=e.getBaseTarget(x);w!==void 0&&(y[x]=w)}),m.push({animation:y})}let S=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(m):Promise.resolve()}function a(l,u,d){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),n[l].isActive=u;const m=s(d,l);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function hRe(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!_B(t,e):!1}function Ju(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mRe(){return{animate:Ju(!0),whileInView:Ju(),whileHover:Ju(),whileTap:Ju(),whileDrag:Ju(),whileFocus:Ju(),exit:Ju()}}class gRe extends Cl{constructor(t){super(t),t.animationState||(t.animationState=pRe(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),P2(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let vRe=0;class yRe extends Cl{constructor(){super(...arguments),this.id=vRe++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const bRe={animation:{Feature:gRe},exit:{Feature:yRe}},hU=(e,t)=>Math.abs(e-t);function xRe(e,t){const n=hU(e.x,t.x),r=hU(e.y,t.y);return Math.sqrt(n**2+r**2)}class mU{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!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 f=e$(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=xRe(f.offset,{x:0,y:0})>=3;if(!m&&!p)return;const{point:g}=f,{timestamp:v}=lr;this.history.push({...g,timestamp:v});const{onStart:S,onMove:y}=this.handlers;m||(S&&S(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=JC(m,this.transformPagePoint),an.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=e$(f.type==="pointercancel"?this.lastMoveEventInfo:JC(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,S),g&&g(f,S)},!SB(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=z2(t),a=JC(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=lr;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,e$(a,this.history)),this.removeListeners=na(ta(this.contextWindow,"pointermove",this.handlePointerMove),ta(this.contextWindow,"pointerup",this.handlePointerUp),ta(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Js(this.updatePoint)}}function JC(e,t){return t?{point:t(e.point)}:e}function gU(e,t){return{x:e.x-t.x,y:e.y-t.y}}function e$({point:e},t){return{point:e,delta:gU(e,vU(t)),offset:gU(e,wRe(t)),velocity:SRe(t,.1)}}function wRe(e){return e[0]}function vU(e){return e[e.length-1]}function SRe(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=vU(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>$l(t)));)n--;if(!r)return{x:0,y:0};const o=ra(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function $i(e){return e.max-e.min}function t$(e,t=0,n=.01){return Math.abs(e-t)<=n}function yU(e,t,n,r=.5){e.origin=r,e.originPoint=hn(t.min,t.max,e.origin),e.scale=$i(n)/$i(t),(t$(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=hn(n.min,n.max,e.origin)-e.originPoint,(t$(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Y0(e,t,n,r){yU(e.x,t.x,n.x,r?r.originX:void 0),yU(e.y,t.y,n.y,r?r.originY:void 0)}function bU(e,t,n){e.min=n.min+t.min,e.max=e.min+$i(t)}function CRe(e,t,n){bU(e.x,t.x,n.x),bU(e.y,t.y,n.y)}function xU(e,t,n){e.min=t.min-n.min,e.max=e.min+$i(t)}function K0(e,t,n){xU(e.x,t.x,n.x),xU(e.y,t.y,n.y)}function $Re(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?hn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?hn(n,e,r.max):Math.min(e,n)),e}function wU(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function TRe(e,{top:t,left:n,bottom:r,right:i}){return{x:wU(e.x,n,i),y:wU(e.y,t,r)}}function SU(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function kRe(e,t){return{x:SU(e.x,t.x),y:SU(e.y,t.y)}}function ERe(e,t){let n=.5;const r=$i(e),i=$i(t);return i>r?n=q0(t.min,t.max-r,e.min):r>i&&(n=q0(e.min,e.max-i,t.min)),wl(0,1,n)}function ARe(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const n$=.35;function RRe(e=n$){return e===!1?e=0:e===!0&&(e=n$),{x:CU(e,"left","right"),y:CU(e,"top","bottom")}}function CU(e,t,n){return{min:$U(e,t),max:$U(e,n)}}function $U(e,t){return typeof e=="number"?e:e[t]||0}const TU=()=>({translate:0,scale:1,origin:0,originPoint:0}),$f=()=>({x:TU(),y:TU()}),kU=()=>({min:0,max:0}),_n=()=>({x:kU(),y:kU()});function Ji(e){return[e("x"),e("y")]}function EU({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function _Re({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ORe(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function r$(e){return e===void 0||e===1}function i$({scale:e,scaleX:t,scaleY:n}){return!r$(e)||!r$(t)||!r$(n)}function ec(e){return i$(e)||AU(e)||e.z||e.rotate||e.rotateX||e.rotateY}function AU(e){return RU(e.x)||RU(e.y)}function RU(e){return e&&e!=="0%"}function Y2(e,t,n){const r=e-n,i=t*r;return n+i}function _U(e,t,n,r,i){return i!==void 0&&(e=Y2(e,i,r)),Y2(e,n,r)+t}function o$(e,t=0,n=1,r,i){e.min=_U(e.min,t,n,r,i),e.max=_U(e.max,t,n,r,i)}function OU(e,{x:t,y:n}){o$(e.x,t.translate,t.scale,t.originPoint),o$(e.y,n.translate,n.scale,n.originPoint)}function PRe(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Tf(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,OU(e,s)),r&&ec(o.latestValues)&&Tf(e,o.latestValues))}t.x=PU(t.x),t.y=PU(t.y)}function PU(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function kl(e,t){e.min=e.min+t,e.max=e.max+t}function DU(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=hn(e.min,e.max,o);o$(e,t[n],t[r],s,t.scale)}const DRe=["x","scaleX","originX"],MRe=["y","scaleY","originY"];function Tf(e,t){DU(e.x,t,DRe),DU(e.y,t,MRe)}function MU(e,t){return EU(ORe(e.getBoundingClientRect(),t))}function IRe(e,t,n){const r=MU(e,n),{scroll:i}=t;return i&&(kl(r.x,i.offset.x),kl(r.y,i.offset.y)),r}const IU=({current:e})=>e?e.ownerDocument.defaultView:null,NRe=new WeakMap;class LRe{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=_n(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(z2(d,"page").point)},o=(d,f)=>{const{drag:m,dragPropagation:p,onDragStart:g}=this.getProps();if(m&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=kB(m),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ji(S=>{let y=this.getAxisMotionValue(S).get()||0;if(ls.test(y)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[S];w&&(y=$i(w)*(parseFloat(y)/100))}}this.originPoint[S]=y}),g&&an.update(()=>g(d,f),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(d,f)=>{const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:g,onDrag:v}=this.getProps();if(!m&&!this.openGlobalLock)return;const{offset:S}=f;if(p&&this.currentDirection===null){this.currentDirection=FRe(S),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,S),this.updateAxis("y",f.point,S),this.visualElement.render(),v&&v(d,f)},a=(d,f)=>this.stop(d,f),l=()=>Ji(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new mU(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:IU(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&an.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!K2(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=$Re(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&xf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=TRe(i.layoutBox,n):this.constraints=!1,this.elastic=RRe(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ji(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=ARe(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xf(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=IRe(r,i.root,this.visualElement.getTransformPagePoint());let s=kRe(i.layout.layoutBox,o);if(n){const a=n(_Re(s));this.hasMutatedConstraints=!!a,a&&(s=EU(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ji(d=>{if(!K2(d,n,this.currentDirection))return;let f=l&&l[d]||{};s&&(f={min:0,max:0});const m=i?200:1e6,p=i?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:m,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(YC(t,r,0,n))}stopAnimation(){Ji(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ji(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ji(n=>{const{drag:r}=this.getProps();if(!K2(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-hn(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!xf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ji(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=ERe({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ji(s=>{if(!K2(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(hn(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;NRe.set(this.visualElement,this);const t=this.visualElement.current,n=ta(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();xf(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=ea(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ji(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=n$,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function K2(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function FRe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class jRe extends Cl{constructor(t){super(t),this.removeGroupControls=Rn,this.removeListeners=Rn,this.controls=new LRe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rn}unmount(){this.removeGroupControls(),this.removeListeners()}}const NU=e=>(t,n)=>{e&&an.update(()=>e(t,n))};class zRe extends Cl{constructor(){super(...arguments),this.removePointerDownListener=Rn}onPointerDown(t){this.session=new mU(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:IU(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:NU(t),onStart:NU(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&an.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=ta(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function BRe(){const e=_.useContext(R2);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=_.useId();return _.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Z2={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function LU(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Z0={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(tt.test(e))e=parseFloat(e);else return e;const n=LU(e,t.target.x),r=LU(e,t.target.y);return`${n}% ${r}%`}},URe={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Tl.parse(e);if(i.length>5)return r;const o=Tl.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=hn(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class HRe extends ie.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Gke(VRe),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Z2.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||an.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),gC.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function FU(e){const[t,n]=BRe(),r=_.useContext(bC);return ie.createElement(HRe,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(oB),isPresent:t,safeToRemove:n})}const VRe={borderRadius:{...Z0,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Z0,borderTopRightRadius:Z0,borderBottomLeftRadius:Z0,borderBottomRightRadius:Z0,boxShadow:URe},jU=["TopLeft","TopRight","BottomLeft","BottomRight"],WRe=jU.length,zU=e=>typeof e=="string"?parseFloat(e):e,BU=e=>typeof e=="number"||tt.test(e);function qRe(e,t,n,r,i,o){i?(e.opacity=hn(0,n.opacity!==void 0?n.opacity:1,GRe(r)),e.opacityExit=hn(t.opacity!==void 0?t.opacity:1,0,YRe(r))):o&&(e.opacity=hn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<WRe;s++){const a=`border${jU[s]}Radius`;let l=UU(t,a),u=UU(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||BU(l)===BU(u)?(e[a]=Math.max(hn(zU(l),zU(u),r),0),(ls.test(u)||ls.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=hn(t.rotate||0,n.rotate||0,r))}function UU(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const GRe=HU(0,.5,jB),YRe=HU(.5,.95,Rn);function HU(e,t,n){return r=>r<e?0:r>t?1:n(q0(e,t,r))}function VU(e,t){e.min=t.min,e.max=t.max}function eo(e,t){VU(e.x,t.x),VU(e.y,t.y)}function WU(e,t,n,r,i){return e-=t,e=Y2(e,1/n,r),i!==void 0&&(e=Y2(e,1/i,r)),e}function KRe(e,t=0,n=1,r=.5,i,o=e,s=e){if(ls.test(t)&&(t=parseFloat(t),t=hn(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=hn(o.min,o.max,r);e===o&&(a-=t),e.min=WU(e.min,t,n,a,i),e.max=WU(e.max,t,n,a,i)}function qU(e,t,[n,r,i],o,s){KRe(e,t[n],t[r],t[i],t.scale,o,s)}const ZRe=["x","scaleX","originX"],QRe=["y","scaleY","originY"];function GU(e,t,n,r){qU(e.x,t,ZRe,n?n.x:void 0,r?r.x:void 0),qU(e.y,t,QRe,n?n.y:void 0,r?r.y:void 0)}function YU(e){return e.translate===0&&e.scale===1}function KU(e){return YU(e.x)&&YU(e.y)}function XRe(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function ZU(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function QU(e){return $i(e.x)/$i(e.y)}class JRe{constructor(){this.members=[]}add(t){KC(this.members,t),t.scheduleRender()}remove(t){if(ZC(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function XU(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:d}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),d&&(r+=`rotateY(${d}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const e_e=(e,t)=>e.depth-t.depth;class t_e{constructor(){this.children=[],this.isDirty=!1}add(t){KC(this.children,t),this.isDirty=!0}remove(t){ZC(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(e_e),this.isDirty=!1,this.children.forEach(t)}}function n_e(e,t){const n=Xu.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Js(r),e(o-t))};return an.read(r,!0),()=>Js(r)}function r_e(e){window.MotionDebug&&window.MotionDebug.record(e)}function i_e(e){return e instanceof SVGElement&&e.tagName!=="svg"}function o_e(e,t,n){const r=ei(e)?e:Cf(e);return r.start(YC("",r,t,n)),r.animation}const JU=["","X","Y","Z"],s_e={visibility:"hidden"},eH=1e3;let a_e=0;const tc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tH({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=a_e++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tc.totalNodes=tc.resolvedTargetDeltas=tc.recalculatedProjection=0,this.nodes.forEach(c_e),this.nodes.forEach(m_e),this.nodes.forEach(g_e),this.nodes.forEach(d_e),r_e(tc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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 t_e)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new QC),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=i_e(s),this.instance=s;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const m=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=n_e(m,250),Z2.hasAnimatedSinceResize&&(Z2.hasAnimatedSinceResize=!1,this.nodes.forEach(rH))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:m,hasRelativeTargetChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||w_e,{onLayoutAnimationStart:S,onLayoutAnimationComplete:y}=d.getProps(),x=!this.targetLayout||!ZU(this.targetLayout,g)||p,w=!m&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||m&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,w);const C={...GC(v,"layout"),onPlay:S,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else m||rH(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Js(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(v_e),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.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(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nH);return}this.isUpdating||this.nodes.forEach(p_e),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(h_e),this.nodes.forEach(l_e),this.nodes.forEach(u_e),this.clearAllSnapshots();const a=Xu.now();lr.delta=wl(0,1e3/60,a-lr.timestamp),lr.timestamp=a,lr.isProcessing=!0,AC.update.process(lr),AC.preRender.process(lr),AC.render.process(lr),lr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gC.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(f_e),this.sharedNodes.forEach(y_e)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,an.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){an.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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=_n(),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,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!KU(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&(a||ec(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),S_e(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return _n();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(kl(a.x,l.offset.x),kl(a.y,l.offset.y)),a}removeElementScroll(s){const a=_n();eo(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:d,options:f}=u;if(u!==this.root&&d&&f.layoutScroll){if(d.isRoot){eo(a,s);const{scroll:m}=this.root;m&&(kl(a.x,-m.offset.x),kl(a.y,-m.offset.y))}kl(a.x,d.offset.x),kl(a.y,d.offset.y)}}return a}applyTransform(s,a=!1){const l=_n();eo(l,s);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Tf(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),ec(d.latestValues)&&Tf(l,d.latestValues)}return ec(this.latestValues)&&Tf(l,this.latestValues),l}removeTransform(s){const a=_n();eo(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ec(u.latestValues))continue;i$(u.latestValues)&&u.updateSnapshot();const d=_n(),f=u.measurePageBox();eo(d,f),GU(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return ec(this.latestValues)&&GU(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==lr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!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(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:m}=this.options;if(!(!this.layout||!(f||m))){if(this.resolvedRelativeTargetAt=lr.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_n(),this.relativeTargetOrigin=_n(),K0(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),eo(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=_n(),this.targetWithTransforms=_n()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),CRe(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):eo(this.target,this.layout.layoutBox),OU(this.target,this.targetDelta)):eo(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_n(),this.relativeTargetOrigin=_n(),K0(this.relativeTargetOrigin,this.target,p.target),eo(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||i$(this.parent.latestValues)||AU(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 s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===lr.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;eo(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,p=this.treeScale.y;PRe(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=_n());const{target:g}=a;if(!g){this.projectionTransform&&(this.projectionDelta=$f(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=$f(),this.projectionDeltaWithTransform=$f());const v=this.projectionTransform;Y0(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=XU(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==m||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),tc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=$f();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const m=_n(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,v=p!==g,S=this.getStack(),y=!S||S.members.length<=1,x=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(x_e));this.animationProgress=0;let w;this.mixTargetDelta=C=>{const T=C/1e3;iH(f.x,s.x,T),iH(f.y,s.y,T),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(K0(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),b_e(this.relativeTarget,this.relativeTargetOrigin,m,T),w&&XRe(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=_n()),eo(w,this.relativeTarget)),v&&(this.animationValues=d,qRe(d,u,this.latestValues,T,x,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Js(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=an.update(()=>{Z2.hasAnimatedSinceResize=!0,this.currentAnimation=o_e(0,eH,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(eH),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&uH(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||_n();const f=$i(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const m=$i(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+m}eo(a,l),Tf(a,d),Y0(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new JRe),this.sharedNodes.get(s).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 s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let d=0;d<JU.length;d++){const f="rotate"+JU[d];l[f]&&(u[f]=l[f],s.setStaticValue(f,0))}s.render();for(const d in u)s.setStaticValue(d,u[d]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return s_e;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=j2(s==null?void 0:s.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=j2(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ec(this.latestValues)&&(v.transform=d?d({},""):"none",this.hasProjected=!1),v}const m=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=XU(this.projectionDeltaWithTransform,this.treeScale,m),d&&(u.transform=d(m,u.transform));const{x:p,y:g}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${g.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(a=m.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:u.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const v in M2){if(m[v]===void 0)continue;const{correct:S,applyTo:y}=M2[v],x=u.transform==="none"?m[v]:S(m[v],f);if(y){const w=y.length;for(let C=0;C<w;C++)u[y[C]]=x}else u[v]=x}return this.options.layoutId&&(u.pointerEvents=f===this?j2(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(nH),this.root.sharedNodes.clear()}}}function l_e(e){e.updateLayout()}function u_e(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Ji(f=>{const m=s?n.measuredBox[f]:n.layoutBox[f],p=$i(m);m.min=r[f].min,m.max=m.min+p}):uH(o,n.layoutBox,r)&&Ji(f=>{const m=s?n.measuredBox[f]:n.layoutBox[f],p=$i(r[f]);m.max=m.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const a=$f();Y0(a,r,n.layoutBox);const l=$f();s?Y0(l,e.applyTransform(i,!0),n.measuredBox):Y0(l,r,n.layoutBox);const u=!KU(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:m,layout:p}=f;if(m&&p){const g=_n();K0(g,n.layoutBox,m.layoutBox);const v=_n();K0(v,r,p.layoutBox),ZU(g,v)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function c_e(e){tc.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function d_e(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function f_e(e){e.clearSnapshot()}function nH(e){e.clearMeasurements()}function p_e(e){e.isLayoutDirty=!1}function h_e(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rH(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function m_e(e){e.resolveTargetDelta()}function g_e(e){e.calcProjection()}function v_e(e){e.resetRotation()}function y_e(e){e.removeLeadSnapshot()}function iH(e,t,n){e.translate=hn(t.translate,0,n),e.scale=hn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function oH(e,t,n,r){e.min=hn(t.min,n.min,r),e.max=hn(t.max,n.max,r)}function b_e(e,t,n,r){oH(e.x,t.x,n.x,r),oH(e.y,t.y,n.y,r)}function x_e(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const w_e={duration:.45,ease:[.4,0,.1,1]},sH=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),aH=sH("applewebkit/")&&!sH("chrome/")?Math.round:Rn;function lH(e){e.min=aH(e.min),e.max=aH(e.max)}function S_e(e){lH(e.x),lH(e.y)}function uH(e,t,n){return e==="position"||e==="preserve-aspect"&&!t$(QU(t),QU(n),.2)}const C_e=tH({attachResizeListener:(e,t)=>ea(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),s$={current:void 0},cH=tH({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!s$.current){const e=new C_e({});e.mount(window),e.setOptions({layoutScroll:!0}),s$.current=e}return s$.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),$_e={pan:{Feature:zRe},drag:{Feature:jRe,ProjectionNode:cH,MeasureLayout:FU}},T_e=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function k_e(e){const t=T_e.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function a$(e,t,n=1){const[r,i]=k_e(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return uU(s)?parseFloat(s):s}else return I2(i)?a$(i,t,n+1):i}function E_e(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!I2(o))return;const s=a$(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!I2(o))continue;const s=a$(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const A_e=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),dH=e=>A_e.has(e),R_e=e=>Object.keys(e).some(dH),fH=e=>e===wf||e===tt,pH=(e,t)=>parseFloat(e.split(", ")[t]),hH=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return pH(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?pH(o[1],e):0}},__e=new Set(["x","y","z"]),O_e=j0.filter(e=>!__e.has(e));function P_e(e){const t=[];return O_e.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const kf={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:hH(4,13),y:hH(5,14)};kf.translateX=kf.x,kf.translateY=kf.y;const D_e=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=kf[u](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const d=t.getValue(u);d&&d.jump(a[u]),e[u]=kf[u](l,o)}),e},M_e=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(dH);let o=[],s=!1;const a=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],f=G0(d);const m=t[l];let p;if(F2(m)){const g=m.length,v=m[0]===null?1:0;d=m[v],f=G0(d);for(let S=v;S<g&&m[S]!==null;S++)p?PC(G0(m[S])===p):p=G0(m[S])}else p=G0(m);if(f!==p)if(fH(f)&&fH(p)){const g=u.get();typeof g=="string"&&u.set(parseFloat(g)),typeof m=="string"?t[l]=parseFloat(m):Array.isArray(m)&&p===tt&&(t[l]=m.map(parseFloat))}else f!=null&&f.transform&&(p!=null&&p.transform)&&(d===0||m===0)?d===0?u.set(p.transform(d)):t[l]=f.transform(m):(s||(o=P_e(e),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:t[l],u.jump(m))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,u=D_e(t,e,a);return o.length&&o.forEach(([d,f])=>{e.getValue(d).set(f)}),e.render(),_2&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function I_e(e,t,n,r){return R_e(t)?M_e(e,t,n,r):{target:t,transitionEnd:r}}const N_e=(e,t,n,r)=>{const i=E_e(e,t,r);return t=i.target,r=i.transitionEnd,I_e(e,t,n,r)},l$={current:null},mH={current:!1};function L_e(){if(mH.current=!0,!!_2)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>l$.current=e.matches;e.addListener(t),t()}else l$.current=!1}function F_e(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(ei(o))e.addValue(i,o),G2(r)&&r.add(i);else if(ei(s))e.addValue(i,Cf(o,{owner:e})),G2(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,Cf(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const gH=new WeakMap,vH=Object.keys(F0),j_e=vH.length,yH=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],z_e=yC.length;class B_e{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>an.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=D2(n),this.isVariantNode=nB(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{});for(const f in d){const m=d[f];a[f]!==void 0&&ei(m)&&(m.set(a[f],!1),G2(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,gH.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),mH.current||L_e(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:l$.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){gH.delete(this.current),this.projection&&this.projection.unmount(),Js(this.notifyUpdate),Js(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Zu.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&an.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,a;for(let l=0;l<j_e;l++){const u=vH[l],{isEnabled:d,Feature:f,ProjectionNode:m,MeasureLayout:p}=F0[u];m&&(s=m),d(n)&&(!this.features[u]&&f&&(this.features[u]=new f(this)),p&&(a=p))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:d,dragConstraints:f,layoutScroll:m,layoutRoot:p}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!d||f&&xf(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:m,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_n()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<yH.length;r++){const i=yH[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=F_e(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<z_e;r++){const i=yC[r],o=this.props[i];(L0(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Cf(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=EC(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ei(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new QC),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class bH extends B_e{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},i){const o=iRe(r,t||{},this);if(i){nRe(this,r,o);const s=N_e(this,r,o,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function U_e(e){return window.getComputedStyle(e)}class H_e extends bH{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Zu.has(n)){const r=qC(n);return r&&r.default||0}else{const r=U_e(t),i=(lB(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return MU(t,n)}build(t,n,r,i){SC(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return kC(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ei(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){gB(t,n,r,i)}}class V_e extends bH{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Zu.has(n)){const r=qC(n);return r&&r.default||0}return n=vB.has(n)?n:mC(n),t.getAttribute(n)}measureInstanceViewportBox(){return _n()}scrapeMotionValuesFromProps(t,n){return bB(t,n)}build(t,n,r,i){$C(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){yB(t,n,r,i)}mount(t){this.isSVGTag=TC(t.tagName),super.mount(t)}}const W_e=(e,t)=>xC(e)?new V_e(t,{enableHardwareAcceleration:!1}):new H_e(t,{enableHardwareAcceleration:!0}),q_e={...bRe,...IEe,...$_e,...{layout:{ProjectionNode:cH,MeasureLayout:FU}}},nc=Wke((e,t)=>SEe(e,t,q_e,W_e));function xH(){const e=_.useRef(!1);return hC(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function G_e(){const e=xH(),[t,n]=_.useState(0),r=_.useCallback(()=>{e.current&&n(t+1)},[t]);return[_.useCallback(()=>an.postRender(r),[r]),t]}class Y_e extends _.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function K_e({children:e,isPresent:t}){const n=_.useId(),r=_.useRef(null),i=_.useRef({width:0,height:0,top:0,left:0});return _.useInsertionEffect(()=>{const{width:o,height:s,top:a,left:l}=i.current;if(t||!r.current||!o||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
305
305
  [data-motion-pop-id="${n}"] {
306
306
  position: absolute !important;
307
307
  width: ${o}px !important;
@@ -1189,6 +1189,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1189
1189
  --fc-today-bg-color: transparent !important;
1190
1190
  --fc-event-shadow-color: #d0d0d0 !important;
1191
1191
  }
1192
+
1193
+ .fc {
1194
+ font-size: 1rem !important;
1195
+ }
1192
1196
  .fc .fc-today-button {
1193
1197
  border: 0px !important;
1194
1198
  }
@@ -41563,6 +41563,7 @@ function Wf({
41563
41563
  {
41564
41564
  open: x == null ? void 0 : x.open,
41565
41565
  onClose: x == null ? void 0 : x.onClose,
41566
+ allowCloseOnBooking: x == null ? void 0 : x.allowCloseOnBooking,
41566
41567
  children: /* @__PURE__ */ C.jsx(DN, {})
41567
41568
  }
41568
41569
  ),
@@ -60292,6 +60293,10 @@ const dLe = ku`
60292
60293
  --fc-today-bg-color: transparent !important;
60293
60294
  --fc-event-shadow-color: #d0d0d0 !important;
60294
60295
  }
60296
+
60297
+ .fc {
60298
+ font-size: 1rem !important;
60299
+ }
60295
60300
  .fc .fc-today-button {
60296
60301
  border: 0px !important;
60297
60302
  }
@@ -270,7 +270,7 @@ LAST-MODIFIED:`+n[1].replace(/[^\w_\-:,;=+/<br>]/g,"").replace(/<br>/g,`\r
270
270
  0%, 100% {
271
271
  transform: translateX(0);
272
272
  }
273
- `;function U_(e){const{t}=pn(),{userName:n,doOnSuccess:r}=eo(e,gb),{enqueueSnackbar:i}=m2(),o=Mb({defaultValues:rx($x),resolver:b3(hf().shape(nx($x)))}),s=Pp(),a=we(g=>ze(g,"host")),[l,u]=R.useState(),[d,{isLoading:f,isError:m}]=_H(),p=async g=>{const v=await d({body:{userName:n,password:g.password}});v.error?(u(!0),setTimeout(()=>{u(!1)},1e3)):(r&&r(),s(uS({pathToProp:"auth2",newValue:v.data.auth2})),i(t("login.success"),{variant:"success"}))};return T.jsxs(vr,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[T.jsx(Vee,{sx:{m:1,bgcolor:"secondary.main"},children:T.jsx(H_,{})}),T.jsx(Be,{variant:"h2",children:t("login.sign_in")}),T.jsx(Be,{variant:"subtitle2",textAlign:"center",mt:1,children:T.jsxs(iX,{t,i18nKey:"login.explanation",children:["Ein Benutzer mit dieser E-Mail existiert bereits. ",T.jsx("br",{})," Sie müssen sich authentifizieren, bevor Sie buchen können."]})}),T.jsx(vr,{borderBottom:"1px solid #ddd",width:"80%",mt:2,mb:2}),T.jsxs(vr,{component:"form",onSubmit:o.handleSubmit(p),noValidate:!0,sx:{mt:1},children:[T.jsx(Be,{variant:"body1",textAlign:"center",children:n}),T.jsx(qm,{fields:$x,disableEmptyErrorText:!0,rhfProps:{control:o.control},containerProps:{spacing:0},textFieldProps:{sx:{animation:l?`${fxe} 500ms linear 1`:""}}}),m&&T.jsx(Be,{color:"error.main",variant:"body1",textAlign:"center",children:t("login.failed")}),T.jsx(im,{type:"submit",loading:f,fullWidth:!0,variant:"contained",sx:{mt:3,mb:2},children:t("login.sign_in")}),T.jsx(x2,{href:`${a}/auth/reset`,display:"block",variant:"body2",textAlign:"center",target:"_blank",children:t("login.forgot_password")})]})]})}U_.propTypes={};function wf({utilizeProductInterface:e=!0,utilizeUnknownCustomerInterface:t=!0,utilizeIdentifiedCustomerInterface:n=!0,utilizeCancelAppointmentInterface:r=!0,utilizeConfirmationInterface:i=!0,utilizeLoginInterface:o=!0,utilizeErrorDialogInterface:s=!0}){const a=we(C=>ze(C,"interfaces.ProductPage")),l=we(C=>ze(C,"interfaces.UnkownBookingPage")),u=we(C=>ze(C,"interfaces.IdentifiedBookingPage")),d=we(C=>ze(C,"interfaces.CancelPage")),f=we(C=>ze(C,"interfaces.ConfirmationPage")),m=we(C=>ze(C,"interfaces.LoginPage")),p=we(C=>ze(C,"interfaces.ErrorDialog")),g=R.useContext(em),v=R.useContext(tm),b=R.useContext(pb),x=R.useContext(mb),w=R.useContext(gb),S=R.useContext(V$);return T.jsxs(T.Fragment,{children:[e&&a&&T.jsx(a,{open:g==null?void 0:g.open,onClose:g==null?void 0:g.onClose,children:T.jsx(K$,{onProductSelected:g==null?void 0:g.onClose})}),n&&u&&T.jsx(u,{open:v==null?void 0:v.identifiedOpen,onClose:v==null?void 0:v.onClose,children:T.jsx(c_,{...v})}),t&&l&&T.jsx(l,{open:v==null?void 0:v.unknownOpen,onClose:v==null?void 0:v.onClose,children:T.jsx(u_,{...v})}),r&&d&&T.jsx(d,{open:b==null?void 0:b.open,onClose:b==null?void 0:b.onClose,children:T.jsx(d_,{})}),i&&f&&T.jsx(f,{open:x==null?void 0:x.open,onClose:x==null?void 0:x.onClose,children:T.jsx(z_,{})}),o&&m&&T.jsx(m,{open:w==null?void 0:w.open,onClose:w==null?void 0:w.onClose,children:T.jsx(U_,{doOnSuccess:w==null?void 0:w.handleCloseLoginPage})}),s&&p&&T.jsx(p,{open:S==null?void 0:S.open,onClose:S==null?void 0:S.onClose})]})}const V_=R.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Jm=R.createContext({}),Xm=R.createContext(null),eg=typeof document<"u",Ex=eg?R.useLayoutEffect:R.useEffect,W_=R.createContext({strict:!1}),kx=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),q_="data-"+kx("framerAppearId"),G_={skipAnimations:!1,useManualTiming:!1};class Y_{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function hxe(e){let t=new Y_,n=new Y_,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,d=!1)=>{const f=d&&i,m=f?t:n;return u&&s.add(l),m.add(l)&&f&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const d=t.order[u];s.has(d)&&(a.schedule(d),e()),d(l)}i=!1,o&&(o=!1,a.process(l))}};return a}const tg=["prepare","read","update","preRender","render","postRender"],pxe=40;function Z_(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=tg.reduce((f,m)=>(f[m]=hxe(()=>n=!0),f),{}),s=f=>{o[f].process(i)},a=()=>{const f=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,pxe),1),i.timestamp=f,i.isProcessing=!0,tg.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:tg.reduce((f,m)=>{const p=o[m];return f[m]=(g,v=!1,b=!1)=>(n||l(),p.schedule(g,v,b)),f},{}),cancel:f=>tg.forEach(m=>o[m].cancel(f)),state:i,steps:o}}const{schedule:Ax,cancel:mje}=Z_(queueMicrotask,!1);function mxe(e,t,n,r){const{visualElement:i}=R.useContext(Jm),o=R.useContext(W_),s=R.useContext(Xm),a=R.useContext(V_).reducedMotion,l=R.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;R.useInsertionEffect(()=>{u&&u.update(n,s)});const d=R.useRef(!!(n[q_]&&!window.HandoffComplete));return Ex(()=>{u&&(Ax.postRender(u.render),d.current&&u.animationState&&u.animationState.animateChanges())}),R.useEffect(()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),u}function Gu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function gxe(e,t,n){return R.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Gu(n)&&(n.current=r))},[t])}function Sf(e){return typeof e=="string"||Array.isArray(e)}function ng(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ox=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_x=["initial",...Ox];function rg(e){return ng(e.animate)||_x.some(t=>Sf(e[t]))}function K_(e){return!!(rg(e)||e.variants)}function vxe(e,t){if(rg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Sf(n)?n:void 0,animate:Sf(r)?r:void 0}}return e.inherit!==!1?t:{}}function yxe(e){const{initial:t,animate:n}=vxe(e,R.useContext(Jm));return R.useMemo(()=>({initial:t,animate:n}),[Q_(t),Q_(n)])}function Q_(e){return Array.isArray(e)?e.join(" "):e}const J_={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"]},Cf={};for(const e in J_)Cf[e]={isEnabled:t=>J_[e].some(n=>!!t[n])};function bxe(e){for(const t in e)Cf[t]={...Cf[t],...e[t]}}const Rx=R.createContext({}),X_=R.createContext({}),xxe=Symbol.for("motionComponentSymbol");function wxe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&bxe(e);function o(a,l){let u;const d={...R.useContext(V_),...a,layoutId:Sxe(a)},{isStatic:f}=d,m=yxe(a),p=r(a,f);if(!f&&eg){m.visualElement=mxe(i,p,d,t);const g=R.useContext(X_),v=R.useContext(W_).strict;m.visualElement&&(u=m.visualElement.loadFeatures(d,v,e,g))}return j.createElement(Jm.Provider,{value:m},u&&m.visualElement?j.createElement(u,{visualElement:m.visualElement,...d}):null,n(i,a,gxe(p,m.visualElement,l),p,f,m.visualElement))}const s=R.forwardRef(o);return s[xxe]=i,s}function Sxe({layoutId:e}){const t=R.useContext(Rx).id;return t&&e!==void 0?t+"-"+e:e}function Cxe(e){function t(r,i={}){return wxe(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Txe=["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 Px(e){return typeof e!="string"||e.includes("-")?!1:!!(Txe.indexOf(e)>-1||/[A-Z]/.test(e))}const ig={};function $xe(e){Object.assign(ig,e)}const Tf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tl=new Set(Tf);function eR(e,{layout:t,layoutId:n}){return tl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ig[e]||e==="opacity")}const br=e=>!!(e&&e.getVelocity),Exe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kxe=Tf.length;function Axe(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<kxe;s++){const a=Tf[s];if(e[a]!==void 0){const l=Exe[a]||a;o+=`${l}(${e[a]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const tR=e=>t=>typeof t=="string"&&t.startsWith(e),nR=tR("--"),Oxe=tR("var(--"),og=e=>Oxe(e)?_xe.test(e.split("/*")[0].trim()):!1,_xe=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,Rxe=(e,t)=>t&&typeof e=="number"?t.transform(e):e,zs=(e,t,n)=>n>t?t:n<e?e:n,Yu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$f={...Yu,transform:e=>zs(0,1,e)},sg={...Yu,default:1},Ef=e=>Math.round(e*1e5)/1e5,Dx=/(-)?([\d]*\.?[\d])+/g,Pxe=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Dxe=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function kf(e){return typeof e=="string"}const Af=e=>({test:t=>kf(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Hs=Af("deg"),no=Af("%"),Xe=Af("px"),Mxe=Af("vh"),Ixe=Af("vw"),rR={...no,parse:e=>no.parse(e)/100,transform:e=>no.transform(e*100)},iR={...Yu,transform:Math.round},oR={borderWidth:Xe,borderTopWidth:Xe,borderRightWidth:Xe,borderBottomWidth:Xe,borderLeftWidth:Xe,borderRadius:Xe,radius:Xe,borderTopLeftRadius:Xe,borderTopRightRadius:Xe,borderBottomRightRadius:Xe,borderBottomLeftRadius:Xe,width:Xe,maxWidth:Xe,height:Xe,maxHeight:Xe,size:Xe,top:Xe,right:Xe,bottom:Xe,left:Xe,padding:Xe,paddingTop:Xe,paddingRight:Xe,paddingBottom:Xe,paddingLeft:Xe,margin:Xe,marginTop:Xe,marginRight:Xe,marginBottom:Xe,marginLeft:Xe,rotate:Hs,rotateX:Hs,rotateY:Hs,rotateZ:Hs,scale:sg,scaleX:sg,scaleY:sg,scaleZ:sg,skew:Hs,skewX:Hs,skewY:Hs,distance:Xe,translateX:Xe,translateY:Xe,translateZ:Xe,x:Xe,y:Xe,z:Xe,perspective:Xe,transformPerspective:Xe,opacity:$f,originX:rR,originY:rR,originZ:Xe,zIndex:iR,fillOpacity:$f,strokeOpacity:$f,numOctaves:iR};function Mx(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,u=!1,d=!0;for(const f in t){const m=t[f];if(nR(f)){o[f]=m;continue}const p=oR[f],g=Rxe(m,p);if(tl.has(f)){if(l=!0,s[f]=g,!d)continue;m!==(p.default||0)&&(d=!1)}else f.startsWith("origin")?(u=!0,a[f]=g):i[f]=g}if(t.transform||(l||r?i.transform=Axe(e.transform,n,d,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:m="50%",originZ:p=0}=a;i.transformOrigin=`${f} ${m} ${p}`}}const Ix=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sR(e,t,n){for(const r in t)!br(t[r])&&!eR(r,n)&&(e[r]=t[r])}function Nxe({transformTemplate:e},t,n){return R.useMemo(()=>{const r=Ix();return Mx(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Lxe(e,t,n){const r=e.style||{},i={};return sR(i,r,e),Object.assign(i,Nxe(e,t,n)),i}function Fxe(e,t,n){const r={},i=Lxe(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const jxe=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 ag(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jxe.has(e)}let aR=e=>!ag(e);function Bxe(e){e&&(aR=t=>t.startsWith("on")?!ag(t):e(t))}try{Bxe(require("@emotion/is-prop-valid").default)}catch{}function zxe(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(aR(i)||n===!0&&ag(i)||!t&&!ag(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function lR(e,t,n){return typeof e=="string"?e:Xe.transform(t+n*e)}function Hxe(e,t,n){const r=lR(t,e.x,e.width),i=lR(n,e.y,e.height);return`${r} ${i}`}const Uxe={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vxe={offset:"strokeDashoffset",array:"strokeDasharray"};function Wxe(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Uxe:Vxe;e[o.offset]=Xe.transform(-r);const s=Xe.transform(t),a=Xe.transform(n);e[o.array]=`${s} ${a}`}function Nx(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},d,f,m){if(Mx(e,u,d,m),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:v}=e;p.transform&&(v&&(g.transform=p.transform),delete p.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=Hxe(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&Wxe(p,s,a,l,!1)}const uR=()=>({...Ix(),attrs:{}}),Lx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qxe(e,t,n,r){const i=R.useMemo(()=>{const o=uR();return Nx(o,t,{enableHardwareAcceleration:!1},Lx(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};sR(o,e.style,e),i.style={...o,...i.style}}return i}function Gxe(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(Px(n)?qxe:Fxe)(r,o,s,n),u=zxe(r,typeof n=="string",e),d=n!==R.Fragment?{...u,...l,ref:i}:{},{children:f}=r,m=R.useMemo(()=>br(f)?f.get():f,[f]);return R.createElement(n,{...d,children:m})}}function cR(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const dR=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 fR(e,t,n,r){cR(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(dR.has(i)?i:kx(i),t.attrs[i])}function Fx(e,t){const{style:n}=e,r={};for(const i in n)(br(n[i])||t.style&&br(t.style[i])||eR(i,e))&&(r[i]=n[i]);return r}function hR(e,t){const n=Fx(e,t);for(const r in e)if(br(e[r])||br(t[r])){const i=Tf.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function jx(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function pR(e){const t=R.useRef(null);return t.current===null&&(t.current=e()),t.current}const lg=e=>Array.isArray(e),Yxe=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Zxe=e=>lg(e)?e[e.length-1]||0:e;function ug(e){const t=br(e)?e.get():e;return Yxe(t)?t.toValue():t}function Kxe({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:Qxe(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const mR=e=>(t,n)=>{const r=R.useContext(Jm),i=R.useContext(Xm),o=()=>Kxe(e,t,r,i);return n?o():pR(o)};function Qxe(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=ug(o[m]);let{initial:s,animate:a}=e;const l=rg(e),u=K_(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const f=d?a:s;return f&&typeof f!="boolean"&&!ng(f)&&(Array.isArray(f)?f:[f]).forEach(p=>{const g=jx(e,p);if(!g)return;const{transitionEnd:v,transition:b,...x}=g;for(const w in x){let S=x[w];if(Array.isArray(S)){const C=d?S.length-1:0;S=S[C]}S!==null&&(i[w]=S)}for(const w in v)i[w]=v[w]}),i}const mn=e=>e,{schedule:Qt,cancel:jo,state:Bn,steps:Bx}=Z_(typeof requestAnimationFrame<"u"?requestAnimationFrame:mn,!0),Jxe={useVisualState:mR({scrapeMotionValuesFromProps:hR,createRenderState:uR,onMount:(e,t,{renderState:n,latestValues:r})=>{Qt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Qt.render(()=>{Nx(n,r,{enableHardwareAcceleration:!1},Lx(t.tagName),e.transformTemplate),fR(t,n)})}})},Xxe={useVisualState:mR({scrapeMotionValuesFromProps:Fx,createRenderState:Ix})};function e5e(e,{forwardMotionProps:t=!1},n,r){return{...Px(e)?Jxe:Xxe,preloadedFeatures:n,useRender:Gxe(t),createVisualElement:r,Component:e}}function Bo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const gR=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function cg(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const t5e=e=>t=>gR(t)&&e(t,cg(t));function zo(e,t,n,r){return Bo(e,t,t5e(n),r)}const n5e=(e,t)=>n=>t(e(n)),Ho=(...e)=>e.reduce(n5e);function vR(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const yR=vR("dragHorizontal"),bR=vR("dragVertical");function xR(e){let t=!1;if(e==="y")t=bR();else if(e==="x")t=yR();else{const n=yR(),r=bR();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function wR(){const e=xR(!0);return e?(e(),!1):!0}class Us{constructor(t){this.isMounted=!1,this.node=t}update(){}}function SR(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||wR())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Qt.update(()=>a[r](o,s))};return zo(e.current,n,i,{passive:!e.getProps()[r]})}class r5e extends Us{mount(){this.unmount=Ho(SR(this.node,!0),SR(this.node,!1))}unmount(){}}class i5e extends Us{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ho(Bo(this.node.current,"focus",()=>this.onFocus()),Bo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const CR=(e,t)=>t?e===t?!0:CR(e,t.parentElement):!1;function zx(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,cg(n))}class o5e extends Us{constructor(){super(...arguments),this.removeStartListeners=mn,this.removeEndListeners=mn,this.removeAccessibleListeners=mn,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=zo(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:d,globalTapTarget:f}=this.node.getProps();Qt.update(()=>{!f&&!CR(this.node.current,a.target)?d&&d(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=zo(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Ho(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||zx("up",(l,u)=>{const{onTap:d}=this.node.getProps();d&&Qt.update(()=>d(l,u))})};this.removeEndListeners(),this.removeEndListeners=Bo(this.node.current,"keyup",s),zx("down",(a,l)=>{this.startPress(a,l)})},n=Bo(this.node.current,"keydown",t),r=()=>{this.isPressing&&zx("cancel",(o,s)=>this.cancelPress(o,s))},i=Bo(this.node.current,"blur",r);this.removeAccessibleListeners=Ho(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Qt.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!wR()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Qt.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=zo(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Bo(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ho(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Hx=new WeakMap,Ux=new WeakMap,s5e=e=>{const t=Hx.get(e.target);t&&t(e)},a5e=e=>{e.forEach(s5e)};function l5e({root:e,...t}){const n=e||document;Ux.has(n)||Ux.set(n,{});const r=Ux.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(a5e,{root:e,...t})),r[i]}function u5e(e,t,n){const r=l5e(t);return Hx.set(e,n),r.observe(e),()=>{Hx.delete(e),r.unobserve(e)}}const c5e={some:0,all:1};class d5e extends Us{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:c5e[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),m=u?d:f;m&&m(l)};return u5e(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(f5e(t,n))&&this.startObserver()}unmount(){}}function f5e({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const h5e={inView:{Feature:d5e},tap:{Feature:o5e},focus:{Feature:i5e},hover:{Feature:r5e}};function TR(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function p5e(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function m5e(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function dg(e,t,n){const r=e.getProps();return jx(r,t,n!==void 0?n:r.custom,p5e(e),m5e(e))}let g5e=mn,Vx=mn;const Vs=e=>e*1e3,Uo=e=>e/1e3,v5e={current:!1},$R=e=>Array.isArray(e)&&typeof e[0]=="number";function ER(e){return!!(!e||typeof e=="string"&&kR[e]||$R(e)||Array.isArray(e)&&e.every(ER))}const Of=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,kR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Of([0,.65,.55,1]),circOut:Of([.55,0,1,.45]),backIn:Of([.31,.01,.66,-.59]),backOut:Of([.33,1.53,.69,.99])};function AR(e){if(e)return $R(e)?Of(e):Array.isArray(e)?e.map(AR):kR[e]}function y5e(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=AR(a);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function b5e(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const OR=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,x5e=1e-7,w5e=12;function S5e(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=OR(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>x5e&&++a<w5e);return s}function _f(e,t,n,r){if(e===t&&n===r)return mn;const i=o=>S5e(o,0,1,e,n);return o=>o===0||o===1?o:OR(i(o),t,r)}const C5e=_f(.42,0,1,1),T5e=_f(0,0,.58,1),_R=_f(.42,0,.58,1),$5e=e=>Array.isArray(e)&&typeof e[0]!="number",RR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,PR=e=>t=>1-e(1-t),Wx=e=>1-Math.sin(Math.acos(e)),DR=PR(Wx),E5e=RR(Wx),MR=_f(.33,1.53,.69,.99),qx=PR(MR),k5e=RR(qx),A5e={linear:mn,easeIn:C5e,easeInOut:_R,easeOut:T5e,circIn:Wx,circInOut:E5e,circOut:DR,backIn:qx,backInOut:k5e,backOut:MR,anticipate:e=>(e*=2)<1?.5*qx(e):.5*(2-Math.pow(2,-10*(e-1)))},IR=e=>{if(Array.isArray(e)){Vx(e.length===4);const[t,n,r,i]=e;return _f(t,n,r,i)}else if(typeof e=="string")return A5e[e];return e},Rf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},tn=(e,t,n)=>e+(t-e)*n;function Gx(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function O5e({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Gx(l,a,e+1/3),o=Gx(l,a,e),s=Gx(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Yx=(e,t)=>n=>!!(kf(n)&&Dxe.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),NR=(e,t,n)=>r=>{if(!kf(r))return r;const[i,o,s,a]=r.match(Dx);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},_5e=e=>zs(0,255,e),Zx={...Yu,transform:e=>Math.round(_5e(e))},nl={test:Yx("rgb","red"),parse:NR("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zx.transform(e)+", "+Zx.transform(t)+", "+Zx.transform(n)+", "+Ef($f.transform(r))+")"};function R5e(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Kx={test:Yx("#"),parse:R5e,transform:nl.transform},Zu={test:Yx("hsl","hue"),parse:NR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+no.transform(Ef(t))+", "+no.transform(Ef(n))+", "+Ef($f.transform(r))+")"},Qx=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},P5e=[Kx,nl,Zu],D5e=e=>P5e.find(t=>t.test(e));function LR(e){const t=D5e(e);let n=t.parse(e);return t===Zu&&(n=O5e(n)),n}const FR=(e,t)=>{const n=LR(e),r=LR(t),i={...n};return o=>(i.red=Qx(n.red,r.red,o),i.green=Qx(n.green,r.green,o),i.blue=Qx(n.blue,r.blue,o),i.alpha=tn(n.alpha,r.alpha,o),nl.transform(i))},Zn={test:e=>nl.test(e)||Kx.test(e)||Zu.test(e),parse:e=>nl.test(e)?nl.parse(e):Zu.test(e)?Zu.parse(e):Kx.parse(e),transform:e=>kf(e)?e:e.hasOwnProperty("red")?nl.transform(e):Zu.transform(e)};function M5e(e){var t,n;return isNaN(e)&&kf(e)&&(((t=e.match(Dx))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Pxe))===null||n===void 0?void 0:n.length)||0)>0}const jR="number",BR="color",I5e="var",N5e="var(",zR="${}",HR=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function fg(e){const t=e.toString(),n=t.match(HR)||[],r=[],i={color:[],number:[],var:[]},o=[];for(let l=0;l<n.length;l++){const u=n[l];Zn.test(u)?(i.color.push(l),o.push(BR),r.push(Zn.parse(u))):u.startsWith(N5e)?(i.var.push(l),o.push(I5e),r.push(u)):(i.number.push(l),o.push(jR),r.push(parseFloat(u)))}const a=t.replace(HR,zR).split(zR);return{values:r,split:a,indexes:i,types:o}}function UR(e){return fg(e).values}function VR(e){const{split:t,types:n}=fg(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const a=n[s];a===jR?o+=Ef(i[s]):a===BR?o+=Zn.transform(i[s]):o+=i[s]}return o}}const L5e=e=>typeof e=="number"?0:e;function F5e(e){const t=UR(e);return VR(e)(t.map(L5e))}const Ws={test:M5e,parse:UR,createTransformer:VR,getAnimatableNone:F5e};function Jx(e,t){return n=>n>0?t:e}function j5e(e,t){return n=>tn(e,t,n)}function Xx(e){return typeof e=="number"?j5e:typeof e=="string"?og(e)?Jx:Zn.test(e)?FR:H5e:Array.isArray(e)?WR:typeof e=="object"?Zn.test(e)?FR:B5e:Jx}function WR(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Xx(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function B5e(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Xx(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function z5e(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][i[s]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[o]=l,i[s]++}return r}const H5e=(e,t)=>{const n=Ws.createTransformer(t),r=fg(e),i=fg(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ho(WR(z5e(r,i),i.values),n):Jx(e,t)};function qR(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tn(e,t,n):Xx(e)(e,t)}function U5e(e,t,n){const r=[],i=n||qR,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||mn:t;a=Ho(l,a)}r.push(a)}return r}function V5e(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Vx(o===t.length),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=U5e(t,r,i),a=s.length,l=u=>{let d=0;if(a>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=Rf(e[d],e[d+1],u);return s[d](f)};return n?u=>l(zs(e[0],e[o-1],u)):l}function W5e(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Rf(0,t,r);e.push(tn(n,1,i))}}function q5e(e){const t=[0];return W5e(t,e.length-1),t}function G5e(e,t){return e.map(n=>n*t)}function Y5e(e,t){return e.map(()=>t||_R).splice(0,e.length-1)}function hg({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=$5e(r)?r.map(IR):IR(r),o={done:!1,value:t[0]},s=G5e(n&&n.length===t.length?n:q5e(t),e),a=V5e(s,t,{ease:Array.isArray(i)?i:Y5e(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function GR(e,t){return t?e*(1e3/t):0}const Z5e=5;function YR(e,t,n){const r=Math.max(t-Z5e,0);return GR(n-e(r),t-r)}const e5=.001,K5e=.01,ZR=10,Q5e=.05,J5e=1;function X5e({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;g5e(e<=Vs(ZR));let s=1-t;s=zs(Q5e,J5e,s),e=zs(K5e,ZR,Uo(e)),s<1?(i=u=>{const d=u*s,f=d*e,m=d-n,p=t5(u,s),g=Math.exp(-f);return e5-m/p*g},o=u=>{const f=u*s*e,m=f*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-f),v=t5(Math.pow(u,2),s);return(-i(u)+e5>0?-1:1)*((m-p)*g)/v}):(i=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-e5+d*f},o=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const a=5/e,l=t4e(i,o,a);if(e=Vs(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const e4e=12;function t4e(e,t,n){let r=n;for(let i=1;i<e4e;i++)r=r-e(r)/t(r);return r}function t5(e,t){return e*Math.sqrt(1-t*t)}const n4e=["duration","bounce"],r4e=["stiffness","damping","mass"];function KR(e,t){return t.some(n=>e[n]!==void 0)}function i4e(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!KR(e,r4e)&&KR(e,n4e)){const n=X5e(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function QR({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:m}=i4e({...r,velocity:-Uo(r.velocity||0)}),p=f||0,g=l/(2*Math.sqrt(a*u)),v=o-i,b=Uo(Math.sqrt(a/u)),x=Math.abs(v)<5;n||(n=x?.01:2),t||(t=x?.005:.5);let w;if(g<1){const S=t5(b,g);w=C=>{const E=Math.exp(-g*b*C);return o-E*((p+g*b*v)/S*Math.sin(S*C)+v*Math.cos(S*C))}}else if(g===1)w=S=>o-Math.exp(-b*S)*(v+(p+b*v)*S);else{const S=b*Math.sqrt(g*g-1);w=C=>{const E=Math.exp(-g*b*C),k=Math.min(S*C,300);return o-E*((p+g*b*v)*Math.sinh(k)+S*v*Math.cosh(k))/S}}return{calculatedDuration:m&&d||null,next:S=>{const C=w(S);if(m)s.done=S>=d;else{let E=p;S!==0&&(g<1?E=YR(w,S,C):E=0);const k=Math.abs(E)<=n,O=Math.abs(o-C)<=t;s.done=k&&O}return s.value=s.done?o:C,s}}}function JR({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:d}){const f=e[0],m={done:!1,value:f},p=A=>a!==void 0&&A<a||l!==void 0&&A>l,g=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let v=n*t;const b=f+v,x=s===void 0?b:s(b);x!==b&&(v=x-f);const w=A=>-v*Math.exp(-A/r),S=A=>x+w(A),C=A=>{const D=w(A),M=S(A);m.done=Math.abs(D)<=u,m.value=m.done?x:M};let E,k;const O=A=>{p(m.value)&&(E=A,k=QR({keyframes:[m.value,g(m.value)],velocity:YR(S,A,m.value),damping:i,stiffness:o,restDelta:u,restSpeed:d}))};return O(0),{calculatedDuration:null,next:A=>{let D=!1;return!k&&E===void 0&&(D=!0,C(A),O(A)),E!==void 0&&A>E?k.next(A-E):(!D&&C(A),m)}}}let pg;function o4e(){pg=void 0}const rl={now:()=>(pg===void 0&&rl.set(Bn.isProcessing||G_.useManualTiming?Bn.timestamp:performance.now()),pg),set:e=>{pg=e,queueMicrotask(o4e)}},s4e=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Qt.update(t,!0),stop:()=>jo(t),now:()=>Bn.isProcessing?Bn.timestamp:rl.now()}},XR=2e4;function eP(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<XR;)t+=n,r=e.next(t);return t>=XR?1/0:t}const a4e={decay:JR,inertia:JR,tween:hg,keyframes:hg,spring:QR},l4e=e=>e/100;function mg({autoplay:e=!0,delay:t=0,driver:n=s4e,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:d,onUpdate:f,...m}){let p=1,g=!1,v,b;const x=()=>{b=new Promise(se=>{v=se})};x();let w;const S=a4e[i]||hg;let C;S!==hg&&typeof r[0]!="number"&&(C=Ho(l4e,qR(r[0],r[1])),r=[0,100]);const E=S({...m,keyframes:r});let k;a==="mirror"&&(k=S({...m,keyframes:[...r].reverse(),velocity:-(m.velocity||0)}));let O="idle",A=null,D=null,M=null;E.calculatedDuration===null&&o&&(E.calculatedDuration=eP(E));const{calculatedDuration:B}=E;let F=1/0,H=1/0;B!==null&&(F=B+s,H=F*(o+1)-s);let z=0;const P=se=>{if(D===null)return;p>0&&(D=Math.min(D,se)),p<0&&(D=Math.min(se-H/p,D)),A!==null?z=A:z=Math.round(se-D)*p;const ke=z-t*(p>=0?1:-1),ve=p>=0?ke<0:ke>H;z=Math.max(ke,0),O==="finished"&&A===null&&(z=H);let pe=z,ye=E;if(o){const Ge=Math.min(z,H)/F;let rt=Math.floor(Ge),Re=Ge%1;!Re&&Ge>=1&&(Re=1),Re===1&&rt--,rt=Math.min(rt,o+1),!!(rt%2)&&(a==="reverse"?(Re=1-Re,s&&(Re-=s/F)):a==="mirror"&&(ye=k)),pe=zs(0,1,Re)*F}const Te=ve?{done:!1,value:r[0]}:ye.next(pe);C&&(Te.value=C(Te.value));let{done:qe}=Te;!ve&&B!==null&&(qe=p>=0?z>=H:z<=0);const Ae=A===null&&(O==="finished"||O==="running"&&qe);return f&&f(Te.value),Ae&&K(),Te},U=()=>{w&&w.stop(),w=void 0},G=()=>{O="idle",U(),v(),x(),D=M=null},K=()=>{O="finished",d&&d(),U(),v()},ne=()=>{if(g)return;w||(w=n(P));const se=w.now();l&&l(),A!==null?D=se-A:(!D||O==="finished")&&(D=se),O==="finished"&&x(),M=D,A=null,O="running",w.start()};e&&ne();const ee={then(se,ke){return b.then(se,ke)},get time(){return Uo(z)},set time(se){se=Vs(se),z=se,A!==null||!w||p===0?A=se:D=w.now()-se/p},get duration(){const se=E.calculatedDuration===null?eP(E):E.calculatedDuration;return Uo(se)},get speed(){return p},set speed(se){se===p||!w||(p=se,ee.time=Uo(z))},get state(){return O},play:ne,pause:()=>{O="paused",A=z},stop:()=>{g=!0,O!=="idle"&&(O="idle",u&&u(),G())},cancel:()=>{M!==null&&P(M),G()},complete:()=>{O="finished"},sample:se=>(D=0,P(se))};return ee}function u4e(e){let t;return()=>(t===void 0&&(t=e()),t)}const c4e=u4e(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),d4e=new Set(["opacity","clipPath","filter","transform"]),gg=10,f4e=2e4,h4e=(e,t)=>t.type==="spring"||e==="backgroundColor"||!ER(t.ease);function p4e(e,t,{onUpdate:n,onComplete:r,...i}){if(!(c4e()&&d4e.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const d=()=>{l=new Promise(S=>{a=S})};d();let{keyframes:f,duration:m=300,ease:p,times:g}=i;if(h4e(t,i)){const S=mg({...i,repeat:0,delay:0});let C={done:!1,value:f[0]};const E=[];let k=0;for(;!C.done&&k<f4e;)C=S.sample(k),E.push(C.value),k+=gg;g=void 0,f=E,m=k-gg,p="linear"}const v=y5e(e.owner.current,t,f,{...i,duration:m,ease:p,times:g}),b=()=>{u=!1,v.cancel()},x=()=>{u=!0,Qt.update(b),a(),d()};return v.onfinish=()=>{u||(e.set(b5e(f,i)),r&&r(),x())},{then(S,C){return l.then(S,C)},attachTimeline(S){return v.timeline=S,v.onfinish=null,mn},get time(){return Uo(v.currentTime||0)},set time(S){v.currentTime=Vs(S)},get speed(){return v.playbackRate},set speed(S){v.playbackRate=S},get duration(){return Uo(m)},play:()=>{s||(v.play(),jo(b))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:S}=v;if(S){const C=mg({...i,autoplay:!1});e.setWithVelocity(C.sample(S-gg).value,C.sample(S).value,gg)}x()},complete:()=>{u||v.finish()},cancel:x}}function m4e({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:mn,pause:mn,stop:mn,then:o=>(o(),Promise.resolve()),cancel:mn,complete:mn});return t?mg({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const g4e={type:"spring",stiffness:500,damping:25,restSpeed:10},v4e=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),y4e={type:"keyframes",duration:.8},b4e={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},x4e=(e,{keyframes:t})=>t.length>2?y4e:tl.has(e)?e.startsWith("scale")?v4e(t[1]):g4e:b4e,n5=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ws.test(t)||t==="0")&&!t.startsWith("url(")),w4e=new Set(["brightness","contrast","saturate","opacity"]);function S4e(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Dx)||[];if(!r)return e;const i=n.replace(r,"");let o=w4e.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const C4e=/([a-z-]*)\(.*?\)/g,r5={...Ws,getAnimatableNone:e=>{const t=e.match(C4e);return t?t.map(S4e).join(" "):e}},T4e={...oR,color:Zn,backgroundColor:Zn,outlineColor:Zn,fill:Zn,stroke:Zn,borderColor:Zn,borderTopColor:Zn,borderRightColor:Zn,borderBottomColor:Zn,borderLeftColor:Zn,filter:r5,WebkitFilter:r5},i5=e=>T4e[e];function tP(e,t){let n=i5(e);return n!==r5&&(n=Ws),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const nP=e=>/^0[^.\s]+$/.test(e);function $4e(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||nP(e)}function E4e(e,t,n,r){const i=n5(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;u<o.length;u++)o[u]===null&&(o[u]=u===0?s:o[u-1]),$4e(o[u])&&l.push(u),typeof o[u]=="string"&&o[u]!=="none"&&o[u]!=="0"&&(a=o[u]);if(i&&l.length&&a)for(let u=0;u<l.length;u++){const d=l[u];o[d]=tP(t,a)}return o}function k4e({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...d}){return!!Object.keys(d).length}function o5(e,t){return e[t]||e.default||e}const s5=(e,t,n,r={})=>i=>{const o=o5(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Vs(s);const l=E4e(t,e,n,o),u=l[0],d=l[l.length-1],f=n5(e,u),m=n5(e,d);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(k4e(o)||(p={...p,...x4e(e,p)}),p.duration&&(p.duration=Vs(p.duration)),p.repeatDelay&&(p.repeatDelay=Vs(p.repeatDelay)),!f||!m||v5e.current||o.type===!1||G_.skipAnimations)return m4e(p);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=p4e(t,e,p);if(g)return g}return mg(p)};function vg(e){return!!(br(e)&&e.add)}const rP=e=>/^\-?\d*\.?\d+$/.test(e);function a5(e,t){e.indexOf(t)===-1&&e.push(t)}function l5(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class u5{constructor(){this.subscriptions=[]}add(t){return a5(this.subscriptions,t),()=>l5(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const iP=30,A4e=e=>!isNaN(parseFloat(e));class O4e{constructor(t,n={}){this.version="11.0.8",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=rl.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),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(t),this.canTrackVelocity=A4e(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=rl.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new u5);const r=this.events[t].add(n);return t==="change"?()=>{r(),Qt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=rl.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>iP)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,iP);return GR(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ku(e,t){return new O4e(e,t)}const oP=e=>t=>t.test(e),sP=[Yu,Xe,no,Hs,Ixe,Mxe,{test:e=>e==="auto",parse:e=>e}],Pf=e=>sP.find(oP(e)),_4e=[...sP,Zn,Ws],R4e=e=>_4e.find(oP(e));function P4e(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ku(n))}function D4e(e,t){const n=dg(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=Zxe(o[s]);P4e(e,s,a)}}function M4e(e,t,n){var r,i;const o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],u=t[l];let d=null;Array.isArray(u)&&(d=u[0]),d===null&&(d=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),d!=null&&(typeof d=="string"&&(rP(d)||nP(d))?d=parseFloat(d):!R4e(d)&&Ws.test(u)&&(d=tP(l,u)),e.addValue(l,Ku(d,{owner:e})),n[l]===void 0&&(n[l]=d),d!==null&&e.setBaseTarget(l,d))}}function I4e(e,t){return t?(t[e]||t.default||t).from:void 0}function N4e(e,t,n){const r={};for(const i in e){const o=I4e(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function L4e({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function F4e(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function aP(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in a){const m=e.getValue(f),p=a[f];if(!m||p===void 0||d&&L4e(d,f))continue;const g={delay:n,elapsed:0,...o5(o||{},f)};if(window.HandoffAppearAnimations){const x=e.getProps()[q_];if(x){const w=window.HandoffAppearAnimations(x,f,m,Qt);w!==null&&(g.elapsed=w,g.isHandoff=!0)}}let v=!g.isHandoff&&!F4e(m,p);if(g.type==="spring"&&(m.getVelocity()||g.velocity)&&(v=!1),m.animation&&(v=!1),v)continue;m.start(s5(f,m,p,e.shouldReduceMotion&&tl.has(f)?{type:!1}:g));const b=m.animation;vg(l)&&(l.add(f),b.then(()=>l.remove(f))),u.push(b)}return s&&Promise.all(u).then(()=>{s&&D4e(e,s)}),u}function c5(e,t,n={}){const r=dg(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(aP(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return j4e(e,t,u+l,d,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function j4e(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(B4e).forEach((u,d)=>{u.notify("AnimationStart",t),s.push(c5(u,t,{...o,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function B4e(e,t){return e.sortNodePosition(t)}function z4e(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>c5(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=c5(e,t,n);else{const i=typeof t=="function"?dg(e,t,n.custom):t;r=Promise.all(aP(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const H4e=[...Ox].reverse(),U4e=Ox.length;function V4e(e){return t=>Promise.all(t.map(({animation:n,options:r})=>z4e(e,n,r)))}function W4e(e){let t=V4e(e);const n=G4e();let r=!0;const i=(l,u)=>{const d=dg(e,u);if(d){const{transition:f,transitionEnd:m,...p}=d;l={...l,...p,...m}}return l};function o(l){t=l(e)}function s(l,u){const d=e.getProps(),f=e.getVariantContext(!0)||{},m=[],p=new Set;let g={},v=1/0;for(let x=0;x<U4e;x++){const w=H4e[x],S=n[w],C=d[w]!==void 0?d[w]:f[w],E=Sf(C),k=w===u?S.isActive:null;k===!1&&(v=x);let O=C===f[w]&&C!==d[w]&&E;if(O&&r&&e.manuallyAnimateOnMount&&(O=!1),S.protectedKeys={...g},!S.isActive&&k===null||!C&&!S.prevProp||ng(C)||typeof C=="boolean")continue;let D=q4e(S.prevProp,C)||w===u&&S.isActive&&!O&&E||x>v&&E,M=!1;const B=Array.isArray(C)?C:[C];let F=B.reduce(i,{});k===!1&&(F={});const{prevResolvedValues:H={}}=S,z={...H,...F},P=U=>{D=!0,p.has(U)&&(M=!0,p.delete(U)),S.needsAnimating[U]=!0};for(const U in z){const G=F[U],K=H[U];if(g.hasOwnProperty(U))continue;let ne=!1;lg(G)&&lg(K)?ne=!TR(G,K):ne=G!==K,ne?G!==void 0?P(U):p.add(U):G!==void 0&&p.has(U)?P(U):S.protectedKeys[U]=!0}S.prevProp=C,S.prevResolvedValues=F,S.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(D=!1),D&&(!O||M)&&m.push(...B.map(U=>({animation:U,options:{type:w,...l}})))}if(p.size){const x={};p.forEach(w=>{const S=e.getBaseTarget(w);S!==void 0&&(x[w]=S)}),m.push({animation:x})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function a(l,u,d){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),n[l].isActive=u;const m=s(d,l);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function q4e(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!TR(t,e):!1}function il(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function G4e(){return{animate:il(!0),whileInView:il(),whileHover:il(),whileTap:il(),whileDrag:il(),whileFocus:il(),exit:il()}}class Y4e extends Us{constructor(t){super(t),t.animationState||(t.animationState=W4e(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ng(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Z4e=0;class K4e extends Us{constructor(){super(...arguments),this.id=Z4e++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Q4e={animation:{Feature:Y4e},exit:{Feature:K4e}},lP=(e,t)=>Math.abs(e-t);function J4e(e,t){const n=lP(e.x,t.x),r=lP(e.y,t.y);return Math.sqrt(n**2+r**2)}class uP{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!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 f=f5(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=J4e(f.offset,{x:0,y:0})>=3;if(!m&&!p)return;const{point:g}=f,{timestamp:v}=Bn;this.history.push({...g,timestamp:v});const{onStart:b,onMove:x}=this.handlers;m||(b&&b(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=d5(m,this.transformPagePoint),Qt.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=f5(f.type==="pointercancel"?this.lastMoveEventInfo:d5(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,b),g&&g(f,b)},!gR(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=cg(t),a=d5(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Bn;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,f5(a,this.history)),this.removeListeners=Ho(zo(this.contextWindow,"pointermove",this.handlePointerMove),zo(this.contextWindow,"pointerup",this.handlePointerUp),zo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),jo(this.updatePoint)}}function d5(e,t){return t?{point:t(e.point)}:e}function cP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function f5({point:e},t){return{point:e,delta:cP(e,dP(t)),offset:cP(e,X4e(t)),velocity:ewe(t,.1)}}function X4e(e){return e[0]}function dP(e){return e[e.length-1]}function ewe(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=dP(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Vs(t)));)n--;if(!r)return{x:0,y:0};const o=Uo(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Fr(e){return e.max-e.min}function h5(e,t=0,n=.01){return Math.abs(e-t)<=n}function fP(e,t,n,r=.5){e.origin=r,e.originPoint=tn(t.min,t.max,e.origin),e.scale=Fr(n)/Fr(t),(h5(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=tn(n.min,n.max,e.origin)-e.originPoint,(h5(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Df(e,t,n,r){fP(e.x,t.x,n.x,r?r.originX:void 0),fP(e.y,t.y,n.y,r?r.originY:void 0)}function hP(e,t,n){e.min=n.min+t.min,e.max=e.min+Fr(t)}function twe(e,t,n){hP(e.x,t.x,n.x),hP(e.y,t.y,n.y)}function pP(e,t,n){e.min=t.min-n.min,e.max=e.min+Fr(t)}function Mf(e,t,n){pP(e.x,t.x,n.x),pP(e.y,t.y,n.y)}function nwe(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tn(n,e,r.max):Math.min(e,n)),e}function mP(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function rwe(e,{top:t,left:n,bottom:r,right:i}){return{x:mP(e.x,n,i),y:mP(e.y,t,r)}}function gP(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function iwe(e,t){return{x:gP(e.x,t.x),y:gP(e.y,t.y)}}function owe(e,t){let n=.5;const r=Fr(e),i=Fr(t);return i>r?n=Rf(t.min,t.max-r,e.min):r>i&&(n=Rf(e.min,e.max-i,t.min)),zs(0,1,n)}function swe(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const p5=.35;function awe(e=p5){return e===!1?e=0:e===!0&&(e=p5),{x:vP(e,"left","right"),y:vP(e,"top","bottom")}}function vP(e,t,n){return{min:yP(e,t),max:yP(e,n)}}function yP(e,t){return typeof e=="number"?e:e[t]||0}const bP=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qu=()=>({x:bP(),y:bP()}),xP=()=>({min:0,max:0}),gn=()=>({x:xP(),y:xP()});function ai(e){return[e("x"),e("y")]}function wP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function lwe({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function uwe(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function m5(e){return e===void 0||e===1}function g5({scale:e,scaleX:t,scaleY:n}){return!m5(e)||!m5(t)||!m5(n)}function ol(e){return g5(e)||SP(e)||e.z||e.rotate||e.rotateX||e.rotateY}function SP(e){return CP(e.x)||CP(e.y)}function CP(e){return e&&e!=="0%"}function yg(e,t,n){const r=e-n,i=t*r;return n+i}function TP(e,t,n,r,i){return i!==void 0&&(e=yg(e,i,r)),yg(e,n,r)+t}function v5(e,t=0,n=1,r,i){e.min=TP(e.min,t,n,r,i),e.max=TP(e.max,t,n,r,i)}function $P(e,{x:t,y:n}){v5(e.x,t.translate,t.scale,t.originPoint),v5(e.y,n.translate,n.scale,n.originPoint)}function cwe(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ju(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,$P(e,s)),r&&ol(o.latestValues)&&Ju(e,o.latestValues))}t.x=EP(t.x),t.y=EP(t.y)}function EP(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function qs(e,t){e.min=e.min+t,e.max=e.max+t}function kP(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=tn(e.min,e.max,o);v5(e,t[n],t[r],s,t.scale)}const dwe=["x","scaleX","originX"],fwe=["y","scaleY","originY"];function Ju(e,t){kP(e.x,t,dwe),kP(e.y,t,fwe)}function AP(e,t){return wP(uwe(e.getBoundingClientRect(),t))}function hwe(e,t,n){const r=AP(e,n),{scroll:i}=t;return i&&(qs(r.x,i.offset.x),qs(r.y,i.offset.y)),r}const OP=({current:e})=>e?e.ownerDocument.defaultView:null,pwe=new WeakMap;class mwe{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(cg(d,"page").point)},o=(d,f)=>{const{drag:m,dragPropagation:p,onDragStart:g}=this.getProps();if(m&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=xR(m),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ai(b=>{let x=this.getAxisMotionValue(b).get()||0;if(no.test(x)){const{projection:w}=this.visualElement;if(w&&w.layout){const S=w.layout.layoutBox[b];S&&(x=Fr(S)*(parseFloat(x)/100))}}this.originPoint[b]=x}),g&&Qt.update(()=>g(d,f),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(d,f)=>{const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:g,onDrag:v}=this.getProps();if(!m&&!this.openGlobalLock)return;const{offset:b}=f;if(p&&this.currentDirection===null){this.currentDirection=gwe(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,b),this.updateAxis("y",f.point,b),this.visualElement.render(),v&&v(d,f)},a=(d,f)=>this.stop(d,f),l=()=>ai(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new uP(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:OP(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Qt.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!bg(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=nwe(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Gu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=rwe(i.layoutBox,n):this.constraints=!1,this.elastic=awe(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ai(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=swe(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gu(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=hwe(r,i.root,this.visualElement.getTransformPagePoint());let s=iwe(i.layout.layoutBox,o);if(n){const a=n(lwe(s));this.hasMutatedConstraints=!!a,a&&(s=wP(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=ai(d=>{if(!bg(d,n,this.currentDirection))return;let f=l&&l[d]||{};s&&(f={min:0,max:0});const m=i?200:1e6,p=i?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:m,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(s5(t,r,0,n))}stopAnimation(){ai(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ai(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ai(n=>{const{drag:r}=this.getProps();if(!bg(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-tn(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Gu(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ai(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=owe({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ai(s=>{if(!bg(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(tn(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;pwe.set(this.visualElement,this);const t=this.visualElement.current,n=zo(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Gu(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=Bo(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ai(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=p5,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function bg(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function gwe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class vwe extends Us{constructor(t){super(t),this.removeGroupControls=mn,this.removeListeners=mn,this.controls=new mwe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||mn}unmount(){this.removeGroupControls(),this.removeListeners()}}const _P=e=>(t,n)=>{e&&Qt.update(()=>e(t,n))};class ywe extends Us{constructor(){super(...arguments),this.removePointerDownListener=mn}onPointerDown(t){this.session=new uP(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:OP(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:_P(t),onStart:_P(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Qt.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=zo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function bwe(){const e=R.useContext(Xm);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=R.useId();return R.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const xg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function RP(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const If={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Xe.test(e))e=parseFloat(e);else return e;const n=RP(e,t.target.x),r=RP(e,t.target.y);return`${n}% ${r}%`}},xwe={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ws.parse(e);if(i.length>5)return r;const o=Ws.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=tn(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class wwe extends R.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;$xe(Swe),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),xg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Qt.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ax.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function PP(e){const[t,n]=bwe(),r=R.useContext(Rx);return R.createElement(wwe,{...e,layoutGroup:r,switchLayoutGroup:R.useContext(X_),isPresent:t,safeToRemove:n})}const Swe={borderRadius:{...If,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:If,borderTopRightRadius:If,borderBottomLeftRadius:If,borderBottomRightRadius:If,boxShadow:xwe},DP=["TopLeft","TopRight","BottomLeft","BottomRight"],Cwe=DP.length,MP=e=>typeof e=="string"?parseFloat(e):e,IP=e=>typeof e=="number"||Xe.test(e);function Twe(e,t,n,r,i,o){i?(e.opacity=tn(0,n.opacity!==void 0?n.opacity:1,$we(r)),e.opacityExit=tn(t.opacity!==void 0?t.opacity:1,0,Ewe(r))):o&&(e.opacity=tn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Cwe;s++){const a=`border${DP[s]}Radius`;let l=NP(t,a),u=NP(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||IP(l)===IP(u)?(e[a]=Math.max(tn(MP(l),MP(u),r),0),(no.test(u)||no.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=tn(t.rotate||0,n.rotate||0,r))}function NP(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const $we=LP(0,.5,DR),Ewe=LP(.5,.95,mn);function LP(e,t,n){return r=>r<e?0:r>t?1:n(Rf(e,t,r))}function FP(e,t){e.min=t.min,e.max=t.max}function li(e,t){FP(e.x,t.x),FP(e.y,t.y)}function jP(e,t,n,r,i){return e-=t,e=yg(e,1/n,r),i!==void 0&&(e=yg(e,1/i,r)),e}function kwe(e,t=0,n=1,r=.5,i,o=e,s=e){if(no.test(t)&&(t=parseFloat(t),t=tn(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=tn(o.min,o.max,r);e===o&&(a-=t),e.min=jP(e.min,t,n,a,i),e.max=jP(e.max,t,n,a,i)}function BP(e,t,[n,r,i],o,s){kwe(e,t[n],t[r],t[i],t.scale,o,s)}const Awe=["x","scaleX","originX"],Owe=["y","scaleY","originY"];function zP(e,t,n,r){BP(e.x,t,Awe,n?n.x:void 0,r?r.x:void 0),BP(e.y,t,Owe,n?n.y:void 0,r?r.y:void 0)}function HP(e){return e.translate===0&&e.scale===1}function UP(e){return HP(e.x)&&HP(e.y)}function _we(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function VP(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function WP(e){return Fr(e.x)/Fr(e.y)}class Rwe{constructor(){this.members=[]}add(t){a5(this.members,t),t.scheduleRender()}remove(t){if(l5(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function qP(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:d}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),d&&(r+=`rotateY(${d}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const Pwe=(e,t)=>e.depth-t.depth;class Dwe{constructor(){this.children=[],this.isDirty=!1}add(t){a5(this.children,t),this.isDirty=!0}remove(t){l5(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Pwe),this.isDirty=!1,this.children.forEach(t)}}function Mwe(e,t){const n=rl.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(jo(r),e(o-t))};return Qt.read(r,!0),()=>jo(r)}function Iwe(e){window.MotionDebug&&window.MotionDebug.record(e)}function Nwe(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Lwe(e,t,n){const r=br(e)?e:Ku(e);return r.start(s5("",r,t,n)),r.animation}const GP=["","X","Y","Z"],Fwe={visibility:"hidden"},YP=1e3;let jwe=0;const sl={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ZP({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=jwe++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,sl.totalNodes=sl.resolvedTargetDeltas=sl.recalculatedProjection=0,this.nodes.forEach(Hwe),this.nodes.forEach(Gwe),this.nodes.forEach(Ywe),this.nodes.forEach(Uwe),Iwe(sl)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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 Dwe)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new u5),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Nwe(s),this.instance=s;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const m=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Mwe(m,250),xg.hasAnimatedSinceResize&&(xg.hasAnimatedSinceResize=!1,this.nodes.forEach(QP))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:m,hasRelativeTargetChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||Xwe,{onLayoutAnimationStart:b,onLayoutAnimationComplete:x}=d.getProps(),w=!this.targetLayout||!VP(this.targetLayout,g)||p,S=!m&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||m&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const C={...o5(v,"layout"),onPlay:b,onComplete:x};(d.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else m||QP(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,jo(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(Zwe),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.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(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(KP);return}this.isUpdating||this.nodes.forEach(Wwe),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(qwe),this.nodes.forEach(Bwe),this.nodes.forEach(zwe),this.clearAllSnapshots();const a=rl.now();Bn.delta=zs(0,1e3/60,a-Bn.timestamp),Bn.timestamp=a,Bn.isProcessing=!0,Bx.update.process(Bn),Bx.preRender.process(Bn),Bx.render.process(Bn),Bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ax.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Vwe),this.sharedNodes.forEach(Kwe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qt.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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=gn(),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,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!UP(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&(a||ol(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),e8e(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return gn();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(qs(a.x,l.offset.x),qs(a.y,l.offset.y)),a}removeElementScroll(s){const a=gn();li(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:d,options:f}=u;if(u!==this.root&&d&&f.layoutScroll){if(d.isRoot){li(a,s);const{scroll:m}=this.root;m&&(qs(a.x,-m.offset.x),qs(a.y,-m.offset.y))}qs(a.x,d.offset.x),qs(a.y,d.offset.y)}}return a}applyTransform(s,a=!1){const l=gn();li(l,s);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ju(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),ol(d.latestValues)&&Ju(l,d.latestValues)}return ol(this.latestValues)&&Ju(l,this.latestValues),l}removeTransform(s){const a=gn();li(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ol(u.latestValues))continue;g5(u.latestValues)&&u.updateSnapshot();const d=gn(),f=u.measurePageBox();li(d,f),zP(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return ol(this.latestValues)&&zP(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!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(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:m}=this.options;if(!(!this.layout||!(f||m))){if(this.resolvedRelativeTargetAt=Bn.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gn(),this.relativeTargetOrigin=gn(),Mf(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),li(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=gn(),this.targetWithTransforms=gn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),twe(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):li(this.target,this.layout.layoutBox),$P(this.target,this.targetDelta)):li(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gn(),this.relativeTargetOrigin=gn(),Mf(this.relativeTargetOrigin,this.target,p.target),li(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}sl.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||g5(this.parent.latestValues)||SP(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 s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Bn.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;li(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,p=this.treeScale.y;cwe(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=gn());const{target:g}=a;if(!g){this.projectionTransform&&(this.projectionDelta=Qu(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Qu(),this.projectionDeltaWithTransform=Qu());const v=this.projectionTransform;Df(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=qP(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==m||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),sl.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=Qu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const m=gn(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,v=p!==g,b=this.getStack(),x=!b||b.members.length<=1,w=!!(v&&!x&&this.options.crossfade===!0&&!this.path.some(Jwe));this.animationProgress=0;let S;this.mixTargetDelta=C=>{const E=C/1e3;JP(f.x,s.x,E),JP(f.y,s.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mf(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Qwe(this.relativeTarget,this.relativeTargetOrigin,m,E),S&&_we(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=gn()),li(S,this.relativeTarget)),v&&(this.animationValues=d,Twe(d,u,this.latestValues,E,w,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(jo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qt.update(()=>{xg.hasAnimatedSinceResize=!0,this.currentAnimation=Lwe(0,YP,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(YP),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&rD(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||gn();const f=Fr(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const m=Fr(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+m}li(a,l),Ju(a,d),Df(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Rwe),this.sharedNodes.get(s).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 s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let d=0;d<GP.length;d++){const f="rotate"+GP[d];l[f]&&(u[f]=l[f],s.setStaticValue(f,0))}s.render();for(const d in u)s.setStaticValue(d,u[d]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Fwe;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=ug(s==null?void 0:s.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=ug(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ol(this.latestValues)&&(v.transform=d?d({},""):"none",this.hasProjected=!1),v}const m=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=qP(this.projectionDeltaWithTransform,this.treeScale,m),d&&(u.transform=d(m,u.transform));const{x:p,y:g}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${g.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(a=m.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:u.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const v in ig){if(m[v]===void 0)continue;const{correct:b,applyTo:x}=ig[v],w=u.transform==="none"?m[v]:b(m[v],f);if(x){const S=x.length;for(let C=0;C<S;C++)u[x[C]]=w}else u[v]=w}return this.options.layoutId&&(u.pointerEvents=f===this?ug(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(KP),this.root.sharedNodes.clear()}}}function Bwe(e){e.updateLayout()}function zwe(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?ai(f=>{const m=s?n.measuredBox[f]:n.layoutBox[f],p=Fr(m);m.min=r[f].min,m.max=m.min+p}):rD(o,n.layoutBox,r)&&ai(f=>{const m=s?n.measuredBox[f]:n.layoutBox[f],p=Fr(r[f]);m.max=m.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const a=Qu();Df(a,r,n.layoutBox);const l=Qu();s?Df(l,e.applyTransform(i,!0),n.measuredBox):Df(l,r,n.layoutBox);const u=!UP(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:m,layout:p}=f;if(m&&p){const g=gn();Mf(g,n.layoutBox,m.layoutBox);const v=gn();Mf(v,r,p.layoutBox),VP(g,v)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Hwe(e){sl.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Uwe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Vwe(e){e.clearSnapshot()}function KP(e){e.clearMeasurements()}function Wwe(e){e.isLayoutDirty=!1}function qwe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function QP(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Gwe(e){e.resolveTargetDelta()}function Ywe(e){e.calcProjection()}function Zwe(e){e.resetRotation()}function Kwe(e){e.removeLeadSnapshot()}function JP(e,t,n){e.translate=tn(t.translate,0,n),e.scale=tn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function XP(e,t,n,r){e.min=tn(t.min,n.min,r),e.max=tn(t.max,n.max,r)}function Qwe(e,t,n,r){XP(e.x,t.x,n.x,r),XP(e.y,t.y,n.y,r)}function Jwe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Xwe={duration:.45,ease:[.4,0,.1,1]},eD=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tD=eD("applewebkit/")&&!eD("chrome/")?Math.round:mn;function nD(e){e.min=tD(e.min),e.max=tD(e.max)}function e8e(e){nD(e.x),nD(e.y)}function rD(e,t,n){return e==="position"||e==="preserve-aspect"&&!h5(WP(t),WP(n),.2)}const t8e=ZP({attachResizeListener:(e,t)=>Bo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),y5={current:void 0},iD=ZP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!y5.current){const e=new t8e({});e.mount(window),e.setOptions({layoutScroll:!0}),y5.current=e}return y5.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),n8e={pan:{Feature:ywe},drag:{Feature:vwe,ProjectionNode:iD,MeasureLayout:PP}},r8e=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function i8e(e){const t=r8e.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function b5(e,t,n=1){const[r,i]=i8e(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return rP(s)?parseFloat(s):s}else return og(i)?b5(i,t,n+1):i}function o8e(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!og(o))return;const s=b5(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!og(o))continue;const s=b5(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const s8e=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),oD=e=>s8e.has(e),a8e=e=>Object.keys(e).some(oD),sD=e=>e===Yu||e===Xe,aD=(e,t)=>parseFloat(e.split(", ")[t]),lD=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return aD(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?aD(o[1],e):0}},l8e=new Set(["x","y","z"]),u8e=Tf.filter(e=>!l8e.has(e));function c8e(e){const t=[];return u8e.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Xu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:lD(4,13),y:lD(5,14)};Xu.translateX=Xu.x,Xu.translateY=Xu.y;const d8e=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Xu[u](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const d=t.getValue(u);d&&d.jump(a[u]),e[u]=Xu[u](l,o)}),e},f8e=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(oD);let o=[],s=!1;const a=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],f=Pf(d);const m=t[l];let p;if(lg(m)){const g=m.length,v=m[0]===null?1:0;d=m[v],f=Pf(d);for(let b=v;b<g&&m[b]!==null;b++)p?Vx(Pf(m[b])===p):p=Pf(m[b])}else p=Pf(m);if(f!==p)if(sD(f)&&sD(p)){const g=u.get();typeof g=="string"&&u.set(parseFloat(g)),typeof m=="string"?t[l]=parseFloat(m):Array.isArray(m)&&p===Xe&&(t[l]=m.map(parseFloat))}else f!=null&&f.transform&&(p!=null&&p.transform)&&(d===0||m===0)?d===0?u.set(p.transform(d)):t[l]=f.transform(m):(s||(o=c8e(e),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:t[l],u.jump(m))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,u=d8e(t,e,a);return o.length&&o.forEach(([d,f])=>{e.getValue(d).set(f)}),e.render(),eg&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function h8e(e,t,n,r){return a8e(t)?f8e(e,t,n,r):{target:t,transitionEnd:r}}const p8e=(e,t,n,r)=>{const i=o8e(e,t,r);return t=i.target,r=i.transitionEnd,h8e(e,t,n,r)},x5={current:null},uD={current:!1};function m8e(){if(uD.current=!0,!!eg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>x5.current=e.matches;e.addListener(t),t()}else x5.current=!1}function g8e(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(br(o))e.addValue(i,o),vg(r)&&r.add(i);else if(br(s))e.addValue(i,Ku(o,{owner:e})),vg(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,Ku(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const cD=new WeakMap,dD=Object.keys(Cf),v8e=dD.length,fD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],y8e=_x.length;class b8e{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>Qt.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=rg(n),this.isVariantNode=K_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{});for(const f in d){const m=d[f];a[f]!==void 0&&br(m)&&(m.set(a[f],!1),vg(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,cD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),uD.current||m8e(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:x5.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){cD.delete(this.current),this.projection&&this.projection.unmount(),jo(this.notifyUpdate),jo(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=tl.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Qt.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,a;for(let l=0;l<v8e;l++){const u=dD[l],{isEnabled:d,Feature:f,ProjectionNode:m,MeasureLayout:p}=Cf[u];m&&(s=m),d(n)&&(!this.features[u]&&f&&(this.features[u]=new f(this)),p&&(a=p))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:d,dragConstraints:f,layoutScroll:m,layoutRoot:p}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!d||f&&Gu(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:m,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<fD.length;r++){const i=fD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=g8e(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<y8e;r++){const i=_x[r],o=this.props[i];(Sf(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ku(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=jx(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!br(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new u5),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class hD extends b8e{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},i){const o=N4e(r,t||{},this);if(i){M4e(this,r,o);const s=p8e(this,r,o,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function x8e(e){return window.getComputedStyle(e)}class w8e extends hD{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(tl.has(n)){const r=i5(n);return r&&r.default||0}else{const r=x8e(t),i=(nR(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return AP(t,n)}build(t,n,r,i){Mx(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Fx(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;br(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){cR(t,n,r,i)}}class S8e extends hD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(tl.has(n)){const r=i5(n);return r&&r.default||0}return n=dR.has(n)?n:kx(n),t.getAttribute(n)}measureInstanceViewportBox(){return gn()}scrapeMotionValuesFromProps(t,n){return hR(t,n)}build(t,n,r,i){Nx(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){fR(t,n,r,i)}mount(t){this.isSVGTag=Lx(t.tagName),super.mount(t)}}const C8e=(e,t)=>Px(e)?new S8e(t,{enableHardwareAcceleration:!1}):new w8e(t,{enableHardwareAcceleration:!0}),T8e={...Q4e,...h5e,...n8e,...{layout:{ProjectionNode:iD,MeasureLayout:PP}}},al=Cxe((e,t)=>e5e(e,t,T8e,C8e));function pD(){const e=R.useRef(!1);return Ex(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function $8e(){const e=pD(),[t,n]=R.useState(0),r=R.useCallback(()=>{e.current&&n(t+1)},[t]);return[R.useCallback(()=>Qt.postRender(r),[r]),t]}class E8e extends j.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function k8e({children:e,isPresent:t}){const n=R.useId(),r=R.useRef(null),i=R.useRef({width:0,height:0,top:0,left:0});return R.useInsertionEffect(()=>{const{width:o,height:s,top:a,left:l}=i.current;if(t||!r.current||!o||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
273
+ `;function U_(e){const{t}=pn(),{userName:n,doOnSuccess:r}=eo(e,gb),{enqueueSnackbar:i}=m2(),o=Mb({defaultValues:rx($x),resolver:b3(hf().shape(nx($x)))}),s=Pp(),a=we(g=>ze(g,"host")),[l,u]=R.useState(),[d,{isLoading:f,isError:m}]=_H(),p=async g=>{const v=await d({body:{userName:n,password:g.password}});v.error?(u(!0),setTimeout(()=>{u(!1)},1e3)):(r&&r(),s(uS({pathToProp:"auth2",newValue:v.data.auth2})),i(t("login.success"),{variant:"success"}))};return T.jsxs(vr,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[T.jsx(Vee,{sx:{m:1,bgcolor:"secondary.main"},children:T.jsx(H_,{})}),T.jsx(Be,{variant:"h2",children:t("login.sign_in")}),T.jsx(Be,{variant:"subtitle2",textAlign:"center",mt:1,children:T.jsxs(iX,{t,i18nKey:"login.explanation",children:["Ein Benutzer mit dieser E-Mail existiert bereits. ",T.jsx("br",{})," Sie müssen sich authentifizieren, bevor Sie buchen können."]})}),T.jsx(vr,{borderBottom:"1px solid #ddd",width:"80%",mt:2,mb:2}),T.jsxs(vr,{component:"form",onSubmit:o.handleSubmit(p),noValidate:!0,sx:{mt:1},children:[T.jsx(Be,{variant:"body1",textAlign:"center",children:n}),T.jsx(qm,{fields:$x,disableEmptyErrorText:!0,rhfProps:{control:o.control},containerProps:{spacing:0},textFieldProps:{sx:{animation:l?`${fxe} 500ms linear 1`:""}}}),m&&T.jsx(Be,{color:"error.main",variant:"body1",textAlign:"center",children:t("login.failed")}),T.jsx(im,{type:"submit",loading:f,fullWidth:!0,variant:"contained",sx:{mt:3,mb:2},children:t("login.sign_in")}),T.jsx(x2,{href:`${a}/auth/reset`,display:"block",variant:"body2",textAlign:"center",target:"_blank",children:t("login.forgot_password")})]})]})}U_.propTypes={};function wf({utilizeProductInterface:e=!0,utilizeUnknownCustomerInterface:t=!0,utilizeIdentifiedCustomerInterface:n=!0,utilizeCancelAppointmentInterface:r=!0,utilizeConfirmationInterface:i=!0,utilizeLoginInterface:o=!0,utilizeErrorDialogInterface:s=!0}){const a=we(C=>ze(C,"interfaces.ProductPage")),l=we(C=>ze(C,"interfaces.UnkownBookingPage")),u=we(C=>ze(C,"interfaces.IdentifiedBookingPage")),d=we(C=>ze(C,"interfaces.CancelPage")),f=we(C=>ze(C,"interfaces.ConfirmationPage")),m=we(C=>ze(C,"interfaces.LoginPage")),p=we(C=>ze(C,"interfaces.ErrorDialog")),g=R.useContext(em),v=R.useContext(tm),b=R.useContext(pb),x=R.useContext(mb),w=R.useContext(gb),S=R.useContext(V$);return T.jsxs(T.Fragment,{children:[e&&a&&T.jsx(a,{open:g==null?void 0:g.open,onClose:g==null?void 0:g.onClose,children:T.jsx(K$,{onProductSelected:g==null?void 0:g.onClose})}),n&&u&&T.jsx(u,{open:v==null?void 0:v.identifiedOpen,onClose:v==null?void 0:v.onClose,children:T.jsx(c_,{...v})}),t&&l&&T.jsx(l,{open:v==null?void 0:v.unknownOpen,onClose:v==null?void 0:v.onClose,children:T.jsx(u_,{...v})}),r&&d&&T.jsx(d,{open:b==null?void 0:b.open,onClose:b==null?void 0:b.onClose,children:T.jsx(d_,{})}),i&&f&&T.jsx(f,{open:x==null?void 0:x.open,onClose:x==null?void 0:x.onClose,allowCloseOnBooking:x==null?void 0:x.allowCloseOnBooking,children:T.jsx(z_,{})}),o&&m&&T.jsx(m,{open:w==null?void 0:w.open,onClose:w==null?void 0:w.onClose,children:T.jsx(U_,{doOnSuccess:w==null?void 0:w.handleCloseLoginPage})}),s&&p&&T.jsx(p,{open:S==null?void 0:S.open,onClose:S==null?void 0:S.onClose})]})}const V_=R.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Jm=R.createContext({}),Xm=R.createContext(null),eg=typeof document<"u",Ex=eg?R.useLayoutEffect:R.useEffect,W_=R.createContext({strict:!1}),kx=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),q_="data-"+kx("framerAppearId"),G_={skipAnimations:!1,useManualTiming:!1};class Y_{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function hxe(e){let t=new Y_,n=new Y_,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,d=!1)=>{const f=d&&i,m=f?t:n;return u&&s.add(l),m.add(l)&&f&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const d=t.order[u];s.has(d)&&(a.schedule(d),e()),d(l)}i=!1,o&&(o=!1,a.process(l))}};return a}const tg=["prepare","read","update","preRender","render","postRender"],pxe=40;function Z_(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=tg.reduce((f,m)=>(f[m]=hxe(()=>n=!0),f),{}),s=f=>{o[f].process(i)},a=()=>{const f=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,pxe),1),i.timestamp=f,i.isProcessing=!0,tg.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:tg.reduce((f,m)=>{const p=o[m];return f[m]=(g,v=!1,b=!1)=>(n||l(),p.schedule(g,v,b)),f},{}),cancel:f=>tg.forEach(m=>o[m].cancel(f)),state:i,steps:o}}const{schedule:Ax,cancel:mje}=Z_(queueMicrotask,!1);function mxe(e,t,n,r){const{visualElement:i}=R.useContext(Jm),o=R.useContext(W_),s=R.useContext(Xm),a=R.useContext(V_).reducedMotion,l=R.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;R.useInsertionEffect(()=>{u&&u.update(n,s)});const d=R.useRef(!!(n[q_]&&!window.HandoffComplete));return Ex(()=>{u&&(Ax.postRender(u.render),d.current&&u.animationState&&u.animationState.animateChanges())}),R.useEffect(()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),u}function Gu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function gxe(e,t,n){return R.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Gu(n)&&(n.current=r))},[t])}function Sf(e){return typeof e=="string"||Array.isArray(e)}function ng(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ox=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_x=["initial",...Ox];function rg(e){return ng(e.animate)||_x.some(t=>Sf(e[t]))}function K_(e){return!!(rg(e)||e.variants)}function vxe(e,t){if(rg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Sf(n)?n:void 0,animate:Sf(r)?r:void 0}}return e.inherit!==!1?t:{}}function yxe(e){const{initial:t,animate:n}=vxe(e,R.useContext(Jm));return R.useMemo(()=>({initial:t,animate:n}),[Q_(t),Q_(n)])}function Q_(e){return Array.isArray(e)?e.join(" "):e}const J_={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"]},Cf={};for(const e in J_)Cf[e]={isEnabled:t=>J_[e].some(n=>!!t[n])};function bxe(e){for(const t in e)Cf[t]={...Cf[t],...e[t]}}const Rx=R.createContext({}),X_=R.createContext({}),xxe=Symbol.for("motionComponentSymbol");function wxe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&bxe(e);function o(a,l){let u;const d={...R.useContext(V_),...a,layoutId:Sxe(a)},{isStatic:f}=d,m=yxe(a),p=r(a,f);if(!f&&eg){m.visualElement=mxe(i,p,d,t);const g=R.useContext(X_),v=R.useContext(W_).strict;m.visualElement&&(u=m.visualElement.loadFeatures(d,v,e,g))}return j.createElement(Jm.Provider,{value:m},u&&m.visualElement?j.createElement(u,{visualElement:m.visualElement,...d}):null,n(i,a,gxe(p,m.visualElement,l),p,f,m.visualElement))}const s=R.forwardRef(o);return s[xxe]=i,s}function Sxe({layoutId:e}){const t=R.useContext(Rx).id;return t&&e!==void 0?t+"-"+e:e}function Cxe(e){function t(r,i={}){return wxe(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Txe=["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 Px(e){return typeof e!="string"||e.includes("-")?!1:!!(Txe.indexOf(e)>-1||/[A-Z]/.test(e))}const ig={};function $xe(e){Object.assign(ig,e)}const Tf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tl=new Set(Tf);function eR(e,{layout:t,layoutId:n}){return tl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ig[e]||e==="opacity")}const br=e=>!!(e&&e.getVelocity),Exe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kxe=Tf.length;function Axe(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<kxe;s++){const a=Tf[s];if(e[a]!==void 0){const l=Exe[a]||a;o+=`${l}(${e[a]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const tR=e=>t=>typeof t=="string"&&t.startsWith(e),nR=tR("--"),Oxe=tR("var(--"),og=e=>Oxe(e)?_xe.test(e.split("/*")[0].trim()):!1,_xe=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,Rxe=(e,t)=>t&&typeof e=="number"?t.transform(e):e,zs=(e,t,n)=>n>t?t:n<e?e:n,Yu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$f={...Yu,transform:e=>zs(0,1,e)},sg={...Yu,default:1},Ef=e=>Math.round(e*1e5)/1e5,Dx=/(-)?([\d]*\.?[\d])+/g,Pxe=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Dxe=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function kf(e){return typeof e=="string"}const Af=e=>({test:t=>kf(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Hs=Af("deg"),no=Af("%"),Xe=Af("px"),Mxe=Af("vh"),Ixe=Af("vw"),rR={...no,parse:e=>no.parse(e)/100,transform:e=>no.transform(e*100)},iR={...Yu,transform:Math.round},oR={borderWidth:Xe,borderTopWidth:Xe,borderRightWidth:Xe,borderBottomWidth:Xe,borderLeftWidth:Xe,borderRadius:Xe,radius:Xe,borderTopLeftRadius:Xe,borderTopRightRadius:Xe,borderBottomRightRadius:Xe,borderBottomLeftRadius:Xe,width:Xe,maxWidth:Xe,height:Xe,maxHeight:Xe,size:Xe,top:Xe,right:Xe,bottom:Xe,left:Xe,padding:Xe,paddingTop:Xe,paddingRight:Xe,paddingBottom:Xe,paddingLeft:Xe,margin:Xe,marginTop:Xe,marginRight:Xe,marginBottom:Xe,marginLeft:Xe,rotate:Hs,rotateX:Hs,rotateY:Hs,rotateZ:Hs,scale:sg,scaleX:sg,scaleY:sg,scaleZ:sg,skew:Hs,skewX:Hs,skewY:Hs,distance:Xe,translateX:Xe,translateY:Xe,translateZ:Xe,x:Xe,y:Xe,z:Xe,perspective:Xe,transformPerspective:Xe,opacity:$f,originX:rR,originY:rR,originZ:Xe,zIndex:iR,fillOpacity:$f,strokeOpacity:$f,numOctaves:iR};function Mx(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,u=!1,d=!0;for(const f in t){const m=t[f];if(nR(f)){o[f]=m;continue}const p=oR[f],g=Rxe(m,p);if(tl.has(f)){if(l=!0,s[f]=g,!d)continue;m!==(p.default||0)&&(d=!1)}else f.startsWith("origin")?(u=!0,a[f]=g):i[f]=g}if(t.transform||(l||r?i.transform=Axe(e.transform,n,d,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:m="50%",originZ:p=0}=a;i.transformOrigin=`${f} ${m} ${p}`}}const Ix=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sR(e,t,n){for(const r in t)!br(t[r])&&!eR(r,n)&&(e[r]=t[r])}function Nxe({transformTemplate:e},t,n){return R.useMemo(()=>{const r=Ix();return Mx(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Lxe(e,t,n){const r=e.style||{},i={};return sR(i,r,e),Object.assign(i,Nxe(e,t,n)),i}function Fxe(e,t,n){const r={},i=Lxe(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const jxe=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 ag(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jxe.has(e)}let aR=e=>!ag(e);function Bxe(e){e&&(aR=t=>t.startsWith("on")?!ag(t):e(t))}try{Bxe(require("@emotion/is-prop-valid").default)}catch{}function zxe(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(aR(i)||n===!0&&ag(i)||!t&&!ag(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function lR(e,t,n){return typeof e=="string"?e:Xe.transform(t+n*e)}function Hxe(e,t,n){const r=lR(t,e.x,e.width),i=lR(n,e.y,e.height);return`${r} ${i}`}const Uxe={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vxe={offset:"strokeDashoffset",array:"strokeDasharray"};function Wxe(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Uxe:Vxe;e[o.offset]=Xe.transform(-r);const s=Xe.transform(t),a=Xe.transform(n);e[o.array]=`${s} ${a}`}function Nx(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},d,f,m){if(Mx(e,u,d,m),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:v}=e;p.transform&&(v&&(g.transform=p.transform),delete p.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=Hxe(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&Wxe(p,s,a,l,!1)}const uR=()=>({...Ix(),attrs:{}}),Lx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qxe(e,t,n,r){const i=R.useMemo(()=>{const o=uR();return Nx(o,t,{enableHardwareAcceleration:!1},Lx(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};sR(o,e.style,e),i.style={...o,...i.style}}return i}function Gxe(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(Px(n)?qxe:Fxe)(r,o,s,n),u=zxe(r,typeof n=="string",e),d=n!==R.Fragment?{...u,...l,ref:i}:{},{children:f}=r,m=R.useMemo(()=>br(f)?f.get():f,[f]);return R.createElement(n,{...d,children:m})}}function cR(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const dR=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 fR(e,t,n,r){cR(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(dR.has(i)?i:kx(i),t.attrs[i])}function Fx(e,t){const{style:n}=e,r={};for(const i in n)(br(n[i])||t.style&&br(t.style[i])||eR(i,e))&&(r[i]=n[i]);return r}function hR(e,t){const n=Fx(e,t);for(const r in e)if(br(e[r])||br(t[r])){const i=Tf.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function jx(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function pR(e){const t=R.useRef(null);return t.current===null&&(t.current=e()),t.current}const lg=e=>Array.isArray(e),Yxe=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Zxe=e=>lg(e)?e[e.length-1]||0:e;function ug(e){const t=br(e)?e.get():e;return Yxe(t)?t.toValue():t}function Kxe({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:Qxe(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const mR=e=>(t,n)=>{const r=R.useContext(Jm),i=R.useContext(Xm),o=()=>Kxe(e,t,r,i);return n?o():pR(o)};function Qxe(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=ug(o[m]);let{initial:s,animate:a}=e;const l=rg(e),u=K_(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const f=d?a:s;return f&&typeof f!="boolean"&&!ng(f)&&(Array.isArray(f)?f:[f]).forEach(p=>{const g=jx(e,p);if(!g)return;const{transitionEnd:v,transition:b,...x}=g;for(const w in x){let S=x[w];if(Array.isArray(S)){const C=d?S.length-1:0;S=S[C]}S!==null&&(i[w]=S)}for(const w in v)i[w]=v[w]}),i}const mn=e=>e,{schedule:Qt,cancel:jo,state:Bn,steps:Bx}=Z_(typeof requestAnimationFrame<"u"?requestAnimationFrame:mn,!0),Jxe={useVisualState:mR({scrapeMotionValuesFromProps:hR,createRenderState:uR,onMount:(e,t,{renderState:n,latestValues:r})=>{Qt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Qt.render(()=>{Nx(n,r,{enableHardwareAcceleration:!1},Lx(t.tagName),e.transformTemplate),fR(t,n)})}})},Xxe={useVisualState:mR({scrapeMotionValuesFromProps:Fx,createRenderState:Ix})};function e5e(e,{forwardMotionProps:t=!1},n,r){return{...Px(e)?Jxe:Xxe,preloadedFeatures:n,useRender:Gxe(t),createVisualElement:r,Component:e}}function Bo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const gR=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function cg(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const t5e=e=>t=>gR(t)&&e(t,cg(t));function zo(e,t,n,r){return Bo(e,t,t5e(n),r)}const n5e=(e,t)=>n=>t(e(n)),Ho=(...e)=>e.reduce(n5e);function vR(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const yR=vR("dragHorizontal"),bR=vR("dragVertical");function xR(e){let t=!1;if(e==="y")t=bR();else if(e==="x")t=yR();else{const n=yR(),r=bR();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function wR(){const e=xR(!0);return e?(e(),!1):!0}class Us{constructor(t){this.isMounted=!1,this.node=t}update(){}}function SR(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||wR())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Qt.update(()=>a[r](o,s))};return zo(e.current,n,i,{passive:!e.getProps()[r]})}class r5e extends Us{mount(){this.unmount=Ho(SR(this.node,!0),SR(this.node,!1))}unmount(){}}class i5e extends Us{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ho(Bo(this.node.current,"focus",()=>this.onFocus()),Bo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const CR=(e,t)=>t?e===t?!0:CR(e,t.parentElement):!1;function zx(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,cg(n))}class o5e extends Us{constructor(){super(...arguments),this.removeStartListeners=mn,this.removeEndListeners=mn,this.removeAccessibleListeners=mn,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=zo(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:d,globalTapTarget:f}=this.node.getProps();Qt.update(()=>{!f&&!CR(this.node.current,a.target)?d&&d(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=zo(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Ho(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||zx("up",(l,u)=>{const{onTap:d}=this.node.getProps();d&&Qt.update(()=>d(l,u))})};this.removeEndListeners(),this.removeEndListeners=Bo(this.node.current,"keyup",s),zx("down",(a,l)=>{this.startPress(a,l)})},n=Bo(this.node.current,"keydown",t),r=()=>{this.isPressing&&zx("cancel",(o,s)=>this.cancelPress(o,s))},i=Bo(this.node.current,"blur",r);this.removeAccessibleListeners=Ho(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Qt.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!wR()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Qt.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=zo(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Bo(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ho(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Hx=new WeakMap,Ux=new WeakMap,s5e=e=>{const t=Hx.get(e.target);t&&t(e)},a5e=e=>{e.forEach(s5e)};function l5e({root:e,...t}){const n=e||document;Ux.has(n)||Ux.set(n,{});const r=Ux.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(a5e,{root:e,...t})),r[i]}function u5e(e,t,n){const r=l5e(t);return Hx.set(e,n),r.observe(e),()=>{Hx.delete(e),r.unobserve(e)}}const c5e={some:0,all:1};class d5e extends Us{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:c5e[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),m=u?d:f;m&&m(l)};return u5e(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(f5e(t,n))&&this.startObserver()}unmount(){}}function f5e({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const h5e={inView:{Feature:d5e},tap:{Feature:o5e},focus:{Feature:i5e},hover:{Feature:r5e}};function TR(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function p5e(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function m5e(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function dg(e,t,n){const r=e.getProps();return jx(r,t,n!==void 0?n:r.custom,p5e(e),m5e(e))}let g5e=mn,Vx=mn;const Vs=e=>e*1e3,Uo=e=>e/1e3,v5e={current:!1},$R=e=>Array.isArray(e)&&typeof e[0]=="number";function ER(e){return!!(!e||typeof e=="string"&&kR[e]||$R(e)||Array.isArray(e)&&e.every(ER))}const Of=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,kR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Of([0,.65,.55,1]),circOut:Of([.55,0,1,.45]),backIn:Of([.31,.01,.66,-.59]),backOut:Of([.33,1.53,.69,.99])};function AR(e){if(e)return $R(e)?Of(e):Array.isArray(e)?e.map(AR):kR[e]}function y5e(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=AR(a);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function b5e(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const OR=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,x5e=1e-7,w5e=12;function S5e(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=OR(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>x5e&&++a<w5e);return s}function _f(e,t,n,r){if(e===t&&n===r)return mn;const i=o=>S5e(o,0,1,e,n);return o=>o===0||o===1?o:OR(i(o),t,r)}const C5e=_f(.42,0,1,1),T5e=_f(0,0,.58,1),_R=_f(.42,0,.58,1),$5e=e=>Array.isArray(e)&&typeof e[0]!="number",RR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,PR=e=>t=>1-e(1-t),Wx=e=>1-Math.sin(Math.acos(e)),DR=PR(Wx),E5e=RR(Wx),MR=_f(.33,1.53,.69,.99),qx=PR(MR),k5e=RR(qx),A5e={linear:mn,easeIn:C5e,easeInOut:_R,easeOut:T5e,circIn:Wx,circInOut:E5e,circOut:DR,backIn:qx,backInOut:k5e,backOut:MR,anticipate:e=>(e*=2)<1?.5*qx(e):.5*(2-Math.pow(2,-10*(e-1)))},IR=e=>{if(Array.isArray(e)){Vx(e.length===4);const[t,n,r,i]=e;return _f(t,n,r,i)}else if(typeof e=="string")return A5e[e];return e},Rf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},tn=(e,t,n)=>e+(t-e)*n;function Gx(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function O5e({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Gx(l,a,e+1/3),o=Gx(l,a,e),s=Gx(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Yx=(e,t)=>n=>!!(kf(n)&&Dxe.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),NR=(e,t,n)=>r=>{if(!kf(r))return r;const[i,o,s,a]=r.match(Dx);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},_5e=e=>zs(0,255,e),Zx={...Yu,transform:e=>Math.round(_5e(e))},nl={test:Yx("rgb","red"),parse:NR("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zx.transform(e)+", "+Zx.transform(t)+", "+Zx.transform(n)+", "+Ef($f.transform(r))+")"};function R5e(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Kx={test:Yx("#"),parse:R5e,transform:nl.transform},Zu={test:Yx("hsl","hue"),parse:NR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+no.transform(Ef(t))+", "+no.transform(Ef(n))+", "+Ef($f.transform(r))+")"},Qx=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},P5e=[Kx,nl,Zu],D5e=e=>P5e.find(t=>t.test(e));function LR(e){const t=D5e(e);let n=t.parse(e);return t===Zu&&(n=O5e(n)),n}const FR=(e,t)=>{const n=LR(e),r=LR(t),i={...n};return o=>(i.red=Qx(n.red,r.red,o),i.green=Qx(n.green,r.green,o),i.blue=Qx(n.blue,r.blue,o),i.alpha=tn(n.alpha,r.alpha,o),nl.transform(i))},Zn={test:e=>nl.test(e)||Kx.test(e)||Zu.test(e),parse:e=>nl.test(e)?nl.parse(e):Zu.test(e)?Zu.parse(e):Kx.parse(e),transform:e=>kf(e)?e:e.hasOwnProperty("red")?nl.transform(e):Zu.transform(e)};function M5e(e){var t,n;return isNaN(e)&&kf(e)&&(((t=e.match(Dx))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Pxe))===null||n===void 0?void 0:n.length)||0)>0}const jR="number",BR="color",I5e="var",N5e="var(",zR="${}",HR=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function fg(e){const t=e.toString(),n=t.match(HR)||[],r=[],i={color:[],number:[],var:[]},o=[];for(let l=0;l<n.length;l++){const u=n[l];Zn.test(u)?(i.color.push(l),o.push(BR),r.push(Zn.parse(u))):u.startsWith(N5e)?(i.var.push(l),o.push(I5e),r.push(u)):(i.number.push(l),o.push(jR),r.push(parseFloat(u)))}const a=t.replace(HR,zR).split(zR);return{values:r,split:a,indexes:i,types:o}}function UR(e){return fg(e).values}function VR(e){const{split:t,types:n}=fg(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const a=n[s];a===jR?o+=Ef(i[s]):a===BR?o+=Zn.transform(i[s]):o+=i[s]}return o}}const L5e=e=>typeof e=="number"?0:e;function F5e(e){const t=UR(e);return VR(e)(t.map(L5e))}const Ws={test:M5e,parse:UR,createTransformer:VR,getAnimatableNone:F5e};function Jx(e,t){return n=>n>0?t:e}function j5e(e,t){return n=>tn(e,t,n)}function Xx(e){return typeof e=="number"?j5e:typeof e=="string"?og(e)?Jx:Zn.test(e)?FR:H5e:Array.isArray(e)?WR:typeof e=="object"?Zn.test(e)?FR:B5e:Jx}function WR(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Xx(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function B5e(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Xx(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function z5e(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][i[s]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[o]=l,i[s]++}return r}const H5e=(e,t)=>{const n=Ws.createTransformer(t),r=fg(e),i=fg(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ho(WR(z5e(r,i),i.values),n):Jx(e,t)};function qR(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tn(e,t,n):Xx(e)(e,t)}function U5e(e,t,n){const r=[],i=n||qR,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||mn:t;a=Ho(l,a)}r.push(a)}return r}function V5e(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Vx(o===t.length),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=U5e(t,r,i),a=s.length,l=u=>{let d=0;if(a>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=Rf(e[d],e[d+1],u);return s[d](f)};return n?u=>l(zs(e[0],e[o-1],u)):l}function W5e(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Rf(0,t,r);e.push(tn(n,1,i))}}function q5e(e){const t=[0];return W5e(t,e.length-1),t}function G5e(e,t){return e.map(n=>n*t)}function Y5e(e,t){return e.map(()=>t||_R).splice(0,e.length-1)}function hg({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=$5e(r)?r.map(IR):IR(r),o={done:!1,value:t[0]},s=G5e(n&&n.length===t.length?n:q5e(t),e),a=V5e(s,t,{ease:Array.isArray(i)?i:Y5e(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function GR(e,t){return t?e*(1e3/t):0}const Z5e=5;function YR(e,t,n){const r=Math.max(t-Z5e,0);return GR(n-e(r),t-r)}const e5=.001,K5e=.01,ZR=10,Q5e=.05,J5e=1;function X5e({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;g5e(e<=Vs(ZR));let s=1-t;s=zs(Q5e,J5e,s),e=zs(K5e,ZR,Uo(e)),s<1?(i=u=>{const d=u*s,f=d*e,m=d-n,p=t5(u,s),g=Math.exp(-f);return e5-m/p*g},o=u=>{const f=u*s*e,m=f*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-f),v=t5(Math.pow(u,2),s);return(-i(u)+e5>0?-1:1)*((m-p)*g)/v}):(i=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-e5+d*f},o=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const a=5/e,l=t4e(i,o,a);if(e=Vs(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const e4e=12;function t4e(e,t,n){let r=n;for(let i=1;i<e4e;i++)r=r-e(r)/t(r);return r}function t5(e,t){return e*Math.sqrt(1-t*t)}const n4e=["duration","bounce"],r4e=["stiffness","damping","mass"];function KR(e,t){return t.some(n=>e[n]!==void 0)}function i4e(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!KR(e,r4e)&&KR(e,n4e)){const n=X5e(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function QR({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:m}=i4e({...r,velocity:-Uo(r.velocity||0)}),p=f||0,g=l/(2*Math.sqrt(a*u)),v=o-i,b=Uo(Math.sqrt(a/u)),x=Math.abs(v)<5;n||(n=x?.01:2),t||(t=x?.005:.5);let w;if(g<1){const S=t5(b,g);w=C=>{const E=Math.exp(-g*b*C);return o-E*((p+g*b*v)/S*Math.sin(S*C)+v*Math.cos(S*C))}}else if(g===1)w=S=>o-Math.exp(-b*S)*(v+(p+b*v)*S);else{const S=b*Math.sqrt(g*g-1);w=C=>{const E=Math.exp(-g*b*C),k=Math.min(S*C,300);return o-E*((p+g*b*v)*Math.sinh(k)+S*v*Math.cosh(k))/S}}return{calculatedDuration:m&&d||null,next:S=>{const C=w(S);if(m)s.done=S>=d;else{let E=p;S!==0&&(g<1?E=YR(w,S,C):E=0);const k=Math.abs(E)<=n,O=Math.abs(o-C)<=t;s.done=k&&O}return s.value=s.done?o:C,s}}}function JR({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:d}){const f=e[0],m={done:!1,value:f},p=A=>a!==void 0&&A<a||l!==void 0&&A>l,g=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let v=n*t;const b=f+v,x=s===void 0?b:s(b);x!==b&&(v=x-f);const w=A=>-v*Math.exp(-A/r),S=A=>x+w(A),C=A=>{const D=w(A),M=S(A);m.done=Math.abs(D)<=u,m.value=m.done?x:M};let E,k;const O=A=>{p(m.value)&&(E=A,k=QR({keyframes:[m.value,g(m.value)],velocity:YR(S,A,m.value),damping:i,stiffness:o,restDelta:u,restSpeed:d}))};return O(0),{calculatedDuration:null,next:A=>{let D=!1;return!k&&E===void 0&&(D=!0,C(A),O(A)),E!==void 0&&A>E?k.next(A-E):(!D&&C(A),m)}}}let pg;function o4e(){pg=void 0}const rl={now:()=>(pg===void 0&&rl.set(Bn.isProcessing||G_.useManualTiming?Bn.timestamp:performance.now()),pg),set:e=>{pg=e,queueMicrotask(o4e)}},s4e=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Qt.update(t,!0),stop:()=>jo(t),now:()=>Bn.isProcessing?Bn.timestamp:rl.now()}},XR=2e4;function eP(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<XR;)t+=n,r=e.next(t);return t>=XR?1/0:t}const a4e={decay:JR,inertia:JR,tween:hg,keyframes:hg,spring:QR},l4e=e=>e/100;function mg({autoplay:e=!0,delay:t=0,driver:n=s4e,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:d,onUpdate:f,...m}){let p=1,g=!1,v,b;const x=()=>{b=new Promise(se=>{v=se})};x();let w;const S=a4e[i]||hg;let C;S!==hg&&typeof r[0]!="number"&&(C=Ho(l4e,qR(r[0],r[1])),r=[0,100]);const E=S({...m,keyframes:r});let k;a==="mirror"&&(k=S({...m,keyframes:[...r].reverse(),velocity:-(m.velocity||0)}));let O="idle",A=null,D=null,M=null;E.calculatedDuration===null&&o&&(E.calculatedDuration=eP(E));const{calculatedDuration:B}=E;let F=1/0,H=1/0;B!==null&&(F=B+s,H=F*(o+1)-s);let z=0;const P=se=>{if(D===null)return;p>0&&(D=Math.min(D,se)),p<0&&(D=Math.min(se-H/p,D)),A!==null?z=A:z=Math.round(se-D)*p;const ke=z-t*(p>=0?1:-1),ve=p>=0?ke<0:ke>H;z=Math.max(ke,0),O==="finished"&&A===null&&(z=H);let pe=z,ye=E;if(o){const Ge=Math.min(z,H)/F;let rt=Math.floor(Ge),Re=Ge%1;!Re&&Ge>=1&&(Re=1),Re===1&&rt--,rt=Math.min(rt,o+1),!!(rt%2)&&(a==="reverse"?(Re=1-Re,s&&(Re-=s/F)):a==="mirror"&&(ye=k)),pe=zs(0,1,Re)*F}const Te=ve?{done:!1,value:r[0]}:ye.next(pe);C&&(Te.value=C(Te.value));let{done:qe}=Te;!ve&&B!==null&&(qe=p>=0?z>=H:z<=0);const Ae=A===null&&(O==="finished"||O==="running"&&qe);return f&&f(Te.value),Ae&&K(),Te},U=()=>{w&&w.stop(),w=void 0},G=()=>{O="idle",U(),v(),x(),D=M=null},K=()=>{O="finished",d&&d(),U(),v()},ne=()=>{if(g)return;w||(w=n(P));const se=w.now();l&&l(),A!==null?D=se-A:(!D||O==="finished")&&(D=se),O==="finished"&&x(),M=D,A=null,O="running",w.start()};e&&ne();const ee={then(se,ke){return b.then(se,ke)},get time(){return Uo(z)},set time(se){se=Vs(se),z=se,A!==null||!w||p===0?A=se:D=w.now()-se/p},get duration(){const se=E.calculatedDuration===null?eP(E):E.calculatedDuration;return Uo(se)},get speed(){return p},set speed(se){se===p||!w||(p=se,ee.time=Uo(z))},get state(){return O},play:ne,pause:()=>{O="paused",A=z},stop:()=>{g=!0,O!=="idle"&&(O="idle",u&&u(),G())},cancel:()=>{M!==null&&P(M),G()},complete:()=>{O="finished"},sample:se=>(D=0,P(se))};return ee}function u4e(e){let t;return()=>(t===void 0&&(t=e()),t)}const c4e=u4e(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),d4e=new Set(["opacity","clipPath","filter","transform"]),gg=10,f4e=2e4,h4e=(e,t)=>t.type==="spring"||e==="backgroundColor"||!ER(t.ease);function p4e(e,t,{onUpdate:n,onComplete:r,...i}){if(!(c4e()&&d4e.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const d=()=>{l=new Promise(S=>{a=S})};d();let{keyframes:f,duration:m=300,ease:p,times:g}=i;if(h4e(t,i)){const S=mg({...i,repeat:0,delay:0});let C={done:!1,value:f[0]};const E=[];let k=0;for(;!C.done&&k<f4e;)C=S.sample(k),E.push(C.value),k+=gg;g=void 0,f=E,m=k-gg,p="linear"}const v=y5e(e.owner.current,t,f,{...i,duration:m,ease:p,times:g}),b=()=>{u=!1,v.cancel()},x=()=>{u=!0,Qt.update(b),a(),d()};return v.onfinish=()=>{u||(e.set(b5e(f,i)),r&&r(),x())},{then(S,C){return l.then(S,C)},attachTimeline(S){return v.timeline=S,v.onfinish=null,mn},get time(){return Uo(v.currentTime||0)},set time(S){v.currentTime=Vs(S)},get speed(){return v.playbackRate},set speed(S){v.playbackRate=S},get duration(){return Uo(m)},play:()=>{s||(v.play(),jo(b))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:S}=v;if(S){const C=mg({...i,autoplay:!1});e.setWithVelocity(C.sample(S-gg).value,C.sample(S).value,gg)}x()},complete:()=>{u||v.finish()},cancel:x}}function m4e({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:mn,pause:mn,stop:mn,then:o=>(o(),Promise.resolve()),cancel:mn,complete:mn});return t?mg({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const g4e={type:"spring",stiffness:500,damping:25,restSpeed:10},v4e=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),y4e={type:"keyframes",duration:.8},b4e={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},x4e=(e,{keyframes:t})=>t.length>2?y4e:tl.has(e)?e.startsWith("scale")?v4e(t[1]):g4e:b4e,n5=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ws.test(t)||t==="0")&&!t.startsWith("url(")),w4e=new Set(["brightness","contrast","saturate","opacity"]);function S4e(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Dx)||[];if(!r)return e;const i=n.replace(r,"");let o=w4e.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const C4e=/([a-z-]*)\(.*?\)/g,r5={...Ws,getAnimatableNone:e=>{const t=e.match(C4e);return t?t.map(S4e).join(" "):e}},T4e={...oR,color:Zn,backgroundColor:Zn,outlineColor:Zn,fill:Zn,stroke:Zn,borderColor:Zn,borderTopColor:Zn,borderRightColor:Zn,borderBottomColor:Zn,borderLeftColor:Zn,filter:r5,WebkitFilter:r5},i5=e=>T4e[e];function tP(e,t){let n=i5(e);return n!==r5&&(n=Ws),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const nP=e=>/^0[^.\s]+$/.test(e);function $4e(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||nP(e)}function E4e(e,t,n,r){const i=n5(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;u<o.length;u++)o[u]===null&&(o[u]=u===0?s:o[u-1]),$4e(o[u])&&l.push(u),typeof o[u]=="string"&&o[u]!=="none"&&o[u]!=="0"&&(a=o[u]);if(i&&l.length&&a)for(let u=0;u<l.length;u++){const d=l[u];o[d]=tP(t,a)}return o}function k4e({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...d}){return!!Object.keys(d).length}function o5(e,t){return e[t]||e.default||e}const s5=(e,t,n,r={})=>i=>{const o=o5(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Vs(s);const l=E4e(t,e,n,o),u=l[0],d=l[l.length-1],f=n5(e,u),m=n5(e,d);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(k4e(o)||(p={...p,...x4e(e,p)}),p.duration&&(p.duration=Vs(p.duration)),p.repeatDelay&&(p.repeatDelay=Vs(p.repeatDelay)),!f||!m||v5e.current||o.type===!1||G_.skipAnimations)return m4e(p);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=p4e(t,e,p);if(g)return g}return mg(p)};function vg(e){return!!(br(e)&&e.add)}const rP=e=>/^\-?\d*\.?\d+$/.test(e);function a5(e,t){e.indexOf(t)===-1&&e.push(t)}function l5(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class u5{constructor(){this.subscriptions=[]}add(t){return a5(this.subscriptions,t),()=>l5(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const iP=30,A4e=e=>!isNaN(parseFloat(e));class O4e{constructor(t,n={}){this.version="11.0.8",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=rl.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),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(t),this.canTrackVelocity=A4e(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=rl.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new u5);const r=this.events[t].add(n);return t==="change"?()=>{r(),Qt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=rl.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>iP)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,iP);return GR(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ku(e,t){return new O4e(e,t)}const oP=e=>t=>t.test(e),sP=[Yu,Xe,no,Hs,Ixe,Mxe,{test:e=>e==="auto",parse:e=>e}],Pf=e=>sP.find(oP(e)),_4e=[...sP,Zn,Ws],R4e=e=>_4e.find(oP(e));function P4e(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ku(n))}function D4e(e,t){const n=dg(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=Zxe(o[s]);P4e(e,s,a)}}function M4e(e,t,n){var r,i;const o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],u=t[l];let d=null;Array.isArray(u)&&(d=u[0]),d===null&&(d=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),d!=null&&(typeof d=="string"&&(rP(d)||nP(d))?d=parseFloat(d):!R4e(d)&&Ws.test(u)&&(d=tP(l,u)),e.addValue(l,Ku(d,{owner:e})),n[l]===void 0&&(n[l]=d),d!==null&&e.setBaseTarget(l,d))}}function I4e(e,t){return t?(t[e]||t.default||t).from:void 0}function N4e(e,t,n){const r={};for(const i in e){const o=I4e(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function L4e({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function F4e(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function aP(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in a){const m=e.getValue(f),p=a[f];if(!m||p===void 0||d&&L4e(d,f))continue;const g={delay:n,elapsed:0,...o5(o||{},f)};if(window.HandoffAppearAnimations){const x=e.getProps()[q_];if(x){const w=window.HandoffAppearAnimations(x,f,m,Qt);w!==null&&(g.elapsed=w,g.isHandoff=!0)}}let v=!g.isHandoff&&!F4e(m,p);if(g.type==="spring"&&(m.getVelocity()||g.velocity)&&(v=!1),m.animation&&(v=!1),v)continue;m.start(s5(f,m,p,e.shouldReduceMotion&&tl.has(f)?{type:!1}:g));const b=m.animation;vg(l)&&(l.add(f),b.then(()=>l.remove(f))),u.push(b)}return s&&Promise.all(u).then(()=>{s&&D4e(e,s)}),u}function c5(e,t,n={}){const r=dg(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(aP(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return j4e(e,t,u+l,d,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function j4e(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(B4e).forEach((u,d)=>{u.notify("AnimationStart",t),s.push(c5(u,t,{...o,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function B4e(e,t){return e.sortNodePosition(t)}function z4e(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>c5(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=c5(e,t,n);else{const i=typeof t=="function"?dg(e,t,n.custom):t;r=Promise.all(aP(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const H4e=[...Ox].reverse(),U4e=Ox.length;function V4e(e){return t=>Promise.all(t.map(({animation:n,options:r})=>z4e(e,n,r)))}function W4e(e){let t=V4e(e);const n=G4e();let r=!0;const i=(l,u)=>{const d=dg(e,u);if(d){const{transition:f,transitionEnd:m,...p}=d;l={...l,...p,...m}}return l};function o(l){t=l(e)}function s(l,u){const d=e.getProps(),f=e.getVariantContext(!0)||{},m=[],p=new Set;let g={},v=1/0;for(let x=0;x<U4e;x++){const w=H4e[x],S=n[w],C=d[w]!==void 0?d[w]:f[w],E=Sf(C),k=w===u?S.isActive:null;k===!1&&(v=x);let O=C===f[w]&&C!==d[w]&&E;if(O&&r&&e.manuallyAnimateOnMount&&(O=!1),S.protectedKeys={...g},!S.isActive&&k===null||!C&&!S.prevProp||ng(C)||typeof C=="boolean")continue;let D=q4e(S.prevProp,C)||w===u&&S.isActive&&!O&&E||x>v&&E,M=!1;const B=Array.isArray(C)?C:[C];let F=B.reduce(i,{});k===!1&&(F={});const{prevResolvedValues:H={}}=S,z={...H,...F},P=U=>{D=!0,p.has(U)&&(M=!0,p.delete(U)),S.needsAnimating[U]=!0};for(const U in z){const G=F[U],K=H[U];if(g.hasOwnProperty(U))continue;let ne=!1;lg(G)&&lg(K)?ne=!TR(G,K):ne=G!==K,ne?G!==void 0?P(U):p.add(U):G!==void 0&&p.has(U)?P(U):S.protectedKeys[U]=!0}S.prevProp=C,S.prevResolvedValues=F,S.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(D=!1),D&&(!O||M)&&m.push(...B.map(U=>({animation:U,options:{type:w,...l}})))}if(p.size){const x={};p.forEach(w=>{const S=e.getBaseTarget(w);S!==void 0&&(x[w]=S)}),m.push({animation:x})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function a(l,u,d){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),n[l].isActive=u;const m=s(d,l);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function q4e(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!TR(t,e):!1}function il(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function G4e(){return{animate:il(!0),whileInView:il(),whileHover:il(),whileTap:il(),whileDrag:il(),whileFocus:il(),exit:il()}}class Y4e extends Us{constructor(t){super(t),t.animationState||(t.animationState=W4e(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ng(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Z4e=0;class K4e extends Us{constructor(){super(...arguments),this.id=Z4e++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Q4e={animation:{Feature:Y4e},exit:{Feature:K4e}},lP=(e,t)=>Math.abs(e-t);function J4e(e,t){const n=lP(e.x,t.x),r=lP(e.y,t.y);return Math.sqrt(n**2+r**2)}class uP{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!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 f=f5(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=J4e(f.offset,{x:0,y:0})>=3;if(!m&&!p)return;const{point:g}=f,{timestamp:v}=Bn;this.history.push({...g,timestamp:v});const{onStart:b,onMove:x}=this.handlers;m||(b&&b(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=d5(m,this.transformPagePoint),Qt.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=f5(f.type==="pointercancel"?this.lastMoveEventInfo:d5(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,b),g&&g(f,b)},!gR(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=cg(t),a=d5(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Bn;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,f5(a,this.history)),this.removeListeners=Ho(zo(this.contextWindow,"pointermove",this.handlePointerMove),zo(this.contextWindow,"pointerup",this.handlePointerUp),zo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),jo(this.updatePoint)}}function d5(e,t){return t?{point:t(e.point)}:e}function cP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function f5({point:e},t){return{point:e,delta:cP(e,dP(t)),offset:cP(e,X4e(t)),velocity:ewe(t,.1)}}function X4e(e){return e[0]}function dP(e){return e[e.length-1]}function ewe(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=dP(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Vs(t)));)n--;if(!r)return{x:0,y:0};const o=Uo(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Fr(e){return e.max-e.min}function h5(e,t=0,n=.01){return Math.abs(e-t)<=n}function fP(e,t,n,r=.5){e.origin=r,e.originPoint=tn(t.min,t.max,e.origin),e.scale=Fr(n)/Fr(t),(h5(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=tn(n.min,n.max,e.origin)-e.originPoint,(h5(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Df(e,t,n,r){fP(e.x,t.x,n.x,r?r.originX:void 0),fP(e.y,t.y,n.y,r?r.originY:void 0)}function hP(e,t,n){e.min=n.min+t.min,e.max=e.min+Fr(t)}function twe(e,t,n){hP(e.x,t.x,n.x),hP(e.y,t.y,n.y)}function pP(e,t,n){e.min=t.min-n.min,e.max=e.min+Fr(t)}function Mf(e,t,n){pP(e.x,t.x,n.x),pP(e.y,t.y,n.y)}function nwe(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tn(n,e,r.max):Math.min(e,n)),e}function mP(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function rwe(e,{top:t,left:n,bottom:r,right:i}){return{x:mP(e.x,n,i),y:mP(e.y,t,r)}}function gP(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function iwe(e,t){return{x:gP(e.x,t.x),y:gP(e.y,t.y)}}function owe(e,t){let n=.5;const r=Fr(e),i=Fr(t);return i>r?n=Rf(t.min,t.max-r,e.min):r>i&&(n=Rf(e.min,e.max-i,t.min)),zs(0,1,n)}function swe(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const p5=.35;function awe(e=p5){return e===!1?e=0:e===!0&&(e=p5),{x:vP(e,"left","right"),y:vP(e,"top","bottom")}}function vP(e,t,n){return{min:yP(e,t),max:yP(e,n)}}function yP(e,t){return typeof e=="number"?e:e[t]||0}const bP=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qu=()=>({x:bP(),y:bP()}),xP=()=>({min:0,max:0}),gn=()=>({x:xP(),y:xP()});function ai(e){return[e("x"),e("y")]}function wP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function lwe({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function uwe(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function m5(e){return e===void 0||e===1}function g5({scale:e,scaleX:t,scaleY:n}){return!m5(e)||!m5(t)||!m5(n)}function ol(e){return g5(e)||SP(e)||e.z||e.rotate||e.rotateX||e.rotateY}function SP(e){return CP(e.x)||CP(e.y)}function CP(e){return e&&e!=="0%"}function yg(e,t,n){const r=e-n,i=t*r;return n+i}function TP(e,t,n,r,i){return i!==void 0&&(e=yg(e,i,r)),yg(e,n,r)+t}function v5(e,t=0,n=1,r,i){e.min=TP(e.min,t,n,r,i),e.max=TP(e.max,t,n,r,i)}function $P(e,{x:t,y:n}){v5(e.x,t.translate,t.scale,t.originPoint),v5(e.y,n.translate,n.scale,n.originPoint)}function cwe(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ju(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,$P(e,s)),r&&ol(o.latestValues)&&Ju(e,o.latestValues))}t.x=EP(t.x),t.y=EP(t.y)}function EP(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function qs(e,t){e.min=e.min+t,e.max=e.max+t}function kP(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=tn(e.min,e.max,o);v5(e,t[n],t[r],s,t.scale)}const dwe=["x","scaleX","originX"],fwe=["y","scaleY","originY"];function Ju(e,t){kP(e.x,t,dwe),kP(e.y,t,fwe)}function AP(e,t){return wP(uwe(e.getBoundingClientRect(),t))}function hwe(e,t,n){const r=AP(e,n),{scroll:i}=t;return i&&(qs(r.x,i.offset.x),qs(r.y,i.offset.y)),r}const OP=({current:e})=>e?e.ownerDocument.defaultView:null,pwe=new WeakMap;class mwe{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(cg(d,"page").point)},o=(d,f)=>{const{drag:m,dragPropagation:p,onDragStart:g}=this.getProps();if(m&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=xR(m),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ai(b=>{let x=this.getAxisMotionValue(b).get()||0;if(no.test(x)){const{projection:w}=this.visualElement;if(w&&w.layout){const S=w.layout.layoutBox[b];S&&(x=Fr(S)*(parseFloat(x)/100))}}this.originPoint[b]=x}),g&&Qt.update(()=>g(d,f),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(d,f)=>{const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:g,onDrag:v}=this.getProps();if(!m&&!this.openGlobalLock)return;const{offset:b}=f;if(p&&this.currentDirection===null){this.currentDirection=gwe(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,b),this.updateAxis("y",f.point,b),this.visualElement.render(),v&&v(d,f)},a=(d,f)=>this.stop(d,f),l=()=>ai(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new uP(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:OP(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Qt.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!bg(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=nwe(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Gu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=rwe(i.layoutBox,n):this.constraints=!1,this.elastic=awe(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ai(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=swe(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gu(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=hwe(r,i.root,this.visualElement.getTransformPagePoint());let s=iwe(i.layout.layoutBox,o);if(n){const a=n(lwe(s));this.hasMutatedConstraints=!!a,a&&(s=wP(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=ai(d=>{if(!bg(d,n,this.currentDirection))return;let f=l&&l[d]||{};s&&(f={min:0,max:0});const m=i?200:1e6,p=i?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:m,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(s5(t,r,0,n))}stopAnimation(){ai(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ai(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ai(n=>{const{drag:r}=this.getProps();if(!bg(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-tn(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Gu(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ai(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=owe({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ai(s=>{if(!bg(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(tn(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;pwe.set(this.visualElement,this);const t=this.visualElement.current,n=zo(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Gu(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=Bo(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ai(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=p5,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function bg(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function gwe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class vwe extends Us{constructor(t){super(t),this.removeGroupControls=mn,this.removeListeners=mn,this.controls=new mwe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||mn}unmount(){this.removeGroupControls(),this.removeListeners()}}const _P=e=>(t,n)=>{e&&Qt.update(()=>e(t,n))};class ywe extends Us{constructor(){super(...arguments),this.removePointerDownListener=mn}onPointerDown(t){this.session=new uP(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:OP(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:_P(t),onStart:_P(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Qt.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=zo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function bwe(){const e=R.useContext(Xm);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=R.useId();return R.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const xg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function RP(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const If={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Xe.test(e))e=parseFloat(e);else return e;const n=RP(e,t.target.x),r=RP(e,t.target.y);return`${n}% ${r}%`}},xwe={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ws.parse(e);if(i.length>5)return r;const o=Ws.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=tn(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class wwe extends R.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;$xe(Swe),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),xg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Qt.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ax.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function PP(e){const[t,n]=bwe(),r=R.useContext(Rx);return R.createElement(wwe,{...e,layoutGroup:r,switchLayoutGroup:R.useContext(X_),isPresent:t,safeToRemove:n})}const Swe={borderRadius:{...If,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:If,borderTopRightRadius:If,borderBottomLeftRadius:If,borderBottomRightRadius:If,boxShadow:xwe},DP=["TopLeft","TopRight","BottomLeft","BottomRight"],Cwe=DP.length,MP=e=>typeof e=="string"?parseFloat(e):e,IP=e=>typeof e=="number"||Xe.test(e);function Twe(e,t,n,r,i,o){i?(e.opacity=tn(0,n.opacity!==void 0?n.opacity:1,$we(r)),e.opacityExit=tn(t.opacity!==void 0?t.opacity:1,0,Ewe(r))):o&&(e.opacity=tn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Cwe;s++){const a=`border${DP[s]}Radius`;let l=NP(t,a),u=NP(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||IP(l)===IP(u)?(e[a]=Math.max(tn(MP(l),MP(u),r),0),(no.test(u)||no.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=tn(t.rotate||0,n.rotate||0,r))}function NP(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const $we=LP(0,.5,DR),Ewe=LP(.5,.95,mn);function LP(e,t,n){return r=>r<e?0:r>t?1:n(Rf(e,t,r))}function FP(e,t){e.min=t.min,e.max=t.max}function li(e,t){FP(e.x,t.x),FP(e.y,t.y)}function jP(e,t,n,r,i){return e-=t,e=yg(e,1/n,r),i!==void 0&&(e=yg(e,1/i,r)),e}function kwe(e,t=0,n=1,r=.5,i,o=e,s=e){if(no.test(t)&&(t=parseFloat(t),t=tn(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=tn(o.min,o.max,r);e===o&&(a-=t),e.min=jP(e.min,t,n,a,i),e.max=jP(e.max,t,n,a,i)}function BP(e,t,[n,r,i],o,s){kwe(e,t[n],t[r],t[i],t.scale,o,s)}const Awe=["x","scaleX","originX"],Owe=["y","scaleY","originY"];function zP(e,t,n,r){BP(e.x,t,Awe,n?n.x:void 0,r?r.x:void 0),BP(e.y,t,Owe,n?n.y:void 0,r?r.y:void 0)}function HP(e){return e.translate===0&&e.scale===1}function UP(e){return HP(e.x)&&HP(e.y)}function _we(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function VP(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function WP(e){return Fr(e.x)/Fr(e.y)}class Rwe{constructor(){this.members=[]}add(t){a5(this.members,t),t.scheduleRender()}remove(t){if(l5(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function qP(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:d}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),d&&(r+=`rotateY(${d}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const Pwe=(e,t)=>e.depth-t.depth;class Dwe{constructor(){this.children=[],this.isDirty=!1}add(t){a5(this.children,t),this.isDirty=!0}remove(t){l5(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Pwe),this.isDirty=!1,this.children.forEach(t)}}function Mwe(e,t){const n=rl.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(jo(r),e(o-t))};return Qt.read(r,!0),()=>jo(r)}function Iwe(e){window.MotionDebug&&window.MotionDebug.record(e)}function Nwe(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Lwe(e,t,n){const r=br(e)?e:Ku(e);return r.start(s5("",r,t,n)),r.animation}const GP=["","X","Y","Z"],Fwe={visibility:"hidden"},YP=1e3;let jwe=0;const sl={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ZP({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=jwe++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,sl.totalNodes=sl.resolvedTargetDeltas=sl.recalculatedProjection=0,this.nodes.forEach(Hwe),this.nodes.forEach(Gwe),this.nodes.forEach(Ywe),this.nodes.forEach(Uwe),Iwe(sl)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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 Dwe)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new u5),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Nwe(s),this.instance=s;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const m=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Mwe(m,250),xg.hasAnimatedSinceResize&&(xg.hasAnimatedSinceResize=!1,this.nodes.forEach(QP))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:m,hasRelativeTargetChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||Xwe,{onLayoutAnimationStart:b,onLayoutAnimationComplete:x}=d.getProps(),w=!this.targetLayout||!VP(this.targetLayout,g)||p,S=!m&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||m&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const C={...o5(v,"layout"),onPlay:b,onComplete:x};(d.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else m||QP(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,jo(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(Zwe),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.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(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(KP);return}this.isUpdating||this.nodes.forEach(Wwe),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(qwe),this.nodes.forEach(Bwe),this.nodes.forEach(zwe),this.clearAllSnapshots();const a=rl.now();Bn.delta=zs(0,1e3/60,a-Bn.timestamp),Bn.timestamp=a,Bn.isProcessing=!0,Bx.update.process(Bn),Bx.preRender.process(Bn),Bx.render.process(Bn),Bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ax.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Vwe),this.sharedNodes.forEach(Kwe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qt.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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=gn(),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,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!UP(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&(a||ol(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),e8e(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return gn();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(qs(a.x,l.offset.x),qs(a.y,l.offset.y)),a}removeElementScroll(s){const a=gn();li(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:d,options:f}=u;if(u!==this.root&&d&&f.layoutScroll){if(d.isRoot){li(a,s);const{scroll:m}=this.root;m&&(qs(a.x,-m.offset.x),qs(a.y,-m.offset.y))}qs(a.x,d.offset.x),qs(a.y,d.offset.y)}}return a}applyTransform(s,a=!1){const l=gn();li(l,s);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ju(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),ol(d.latestValues)&&Ju(l,d.latestValues)}return ol(this.latestValues)&&Ju(l,this.latestValues),l}removeTransform(s){const a=gn();li(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ol(u.latestValues))continue;g5(u.latestValues)&&u.updateSnapshot();const d=gn(),f=u.measurePageBox();li(d,f),zP(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return ol(this.latestValues)&&zP(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!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(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:m}=this.options;if(!(!this.layout||!(f||m))){if(this.resolvedRelativeTargetAt=Bn.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gn(),this.relativeTargetOrigin=gn(),Mf(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),li(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=gn(),this.targetWithTransforms=gn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),twe(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):li(this.target,this.layout.layoutBox),$P(this.target,this.targetDelta)):li(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gn(),this.relativeTargetOrigin=gn(),Mf(this.relativeTargetOrigin,this.target,p.target),li(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}sl.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||g5(this.parent.latestValues)||SP(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 s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Bn.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;li(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,p=this.treeScale.y;cwe(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=gn());const{target:g}=a;if(!g){this.projectionTransform&&(this.projectionDelta=Qu(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Qu(),this.projectionDeltaWithTransform=Qu());const v=this.projectionTransform;Df(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=qP(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==m||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),sl.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=Qu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const m=gn(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,v=p!==g,b=this.getStack(),x=!b||b.members.length<=1,w=!!(v&&!x&&this.options.crossfade===!0&&!this.path.some(Jwe));this.animationProgress=0;let S;this.mixTargetDelta=C=>{const E=C/1e3;JP(f.x,s.x,E),JP(f.y,s.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mf(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Qwe(this.relativeTarget,this.relativeTargetOrigin,m,E),S&&_we(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=gn()),li(S,this.relativeTarget)),v&&(this.animationValues=d,Twe(d,u,this.latestValues,E,w,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(jo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qt.update(()=>{xg.hasAnimatedSinceResize=!0,this.currentAnimation=Lwe(0,YP,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(YP),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&rD(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||gn();const f=Fr(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const m=Fr(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+m}li(a,l),Ju(a,d),Df(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Rwe),this.sharedNodes.get(s).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 s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let d=0;d<GP.length;d++){const f="rotate"+GP[d];l[f]&&(u[f]=l[f],s.setStaticValue(f,0))}s.render();for(const d in u)s.setStaticValue(d,u[d]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Fwe;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=ug(s==null?void 0:s.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=ug(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ol(this.latestValues)&&(v.transform=d?d({},""):"none",this.hasProjected=!1),v}const m=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=qP(this.projectionDeltaWithTransform,this.treeScale,m),d&&(u.transform=d(m,u.transform));const{x:p,y:g}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${g.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(a=m.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:u.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const v in ig){if(m[v]===void 0)continue;const{correct:b,applyTo:x}=ig[v],w=u.transform==="none"?m[v]:b(m[v],f);if(x){const S=x.length;for(let C=0;C<S;C++)u[x[C]]=w}else u[v]=w}return this.options.layoutId&&(u.pointerEvents=f===this?ug(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(KP),this.root.sharedNodes.clear()}}}function Bwe(e){e.updateLayout()}function zwe(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?ai(f=>{const m=s?n.measuredBox[f]:n.layoutBox[f],p=Fr(m);m.min=r[f].min,m.max=m.min+p}):rD(o,n.layoutBox,r)&&ai(f=>{const m=s?n.measuredBox[f]:n.layoutBox[f],p=Fr(r[f]);m.max=m.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const a=Qu();Df(a,r,n.layoutBox);const l=Qu();s?Df(l,e.applyTransform(i,!0),n.measuredBox):Df(l,r,n.layoutBox);const u=!UP(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:m,layout:p}=f;if(m&&p){const g=gn();Mf(g,n.layoutBox,m.layoutBox);const v=gn();Mf(v,r,p.layoutBox),VP(g,v)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Hwe(e){sl.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Uwe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Vwe(e){e.clearSnapshot()}function KP(e){e.clearMeasurements()}function Wwe(e){e.isLayoutDirty=!1}function qwe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function QP(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Gwe(e){e.resolveTargetDelta()}function Ywe(e){e.calcProjection()}function Zwe(e){e.resetRotation()}function Kwe(e){e.removeLeadSnapshot()}function JP(e,t,n){e.translate=tn(t.translate,0,n),e.scale=tn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function XP(e,t,n,r){e.min=tn(t.min,n.min,r),e.max=tn(t.max,n.max,r)}function Qwe(e,t,n,r){XP(e.x,t.x,n.x,r),XP(e.y,t.y,n.y,r)}function Jwe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Xwe={duration:.45,ease:[.4,0,.1,1]},eD=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tD=eD("applewebkit/")&&!eD("chrome/")?Math.round:mn;function nD(e){e.min=tD(e.min),e.max=tD(e.max)}function e8e(e){nD(e.x),nD(e.y)}function rD(e,t,n){return e==="position"||e==="preserve-aspect"&&!h5(WP(t),WP(n),.2)}const t8e=ZP({attachResizeListener:(e,t)=>Bo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),y5={current:void 0},iD=ZP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!y5.current){const e=new t8e({});e.mount(window),e.setOptions({layoutScroll:!0}),y5.current=e}return y5.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),n8e={pan:{Feature:ywe},drag:{Feature:vwe,ProjectionNode:iD,MeasureLayout:PP}},r8e=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function i8e(e){const t=r8e.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function b5(e,t,n=1){const[r,i]=i8e(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return rP(s)?parseFloat(s):s}else return og(i)?b5(i,t,n+1):i}function o8e(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!og(o))return;const s=b5(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!og(o))continue;const s=b5(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const s8e=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),oD=e=>s8e.has(e),a8e=e=>Object.keys(e).some(oD),sD=e=>e===Yu||e===Xe,aD=(e,t)=>parseFloat(e.split(", ")[t]),lD=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return aD(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?aD(o[1],e):0}},l8e=new Set(["x","y","z"]),u8e=Tf.filter(e=>!l8e.has(e));function c8e(e){const t=[];return u8e.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Xu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:lD(4,13),y:lD(5,14)};Xu.translateX=Xu.x,Xu.translateY=Xu.y;const d8e=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Xu[u](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const d=t.getValue(u);d&&d.jump(a[u]),e[u]=Xu[u](l,o)}),e},f8e=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(oD);let o=[],s=!1;const a=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],f=Pf(d);const m=t[l];let p;if(lg(m)){const g=m.length,v=m[0]===null?1:0;d=m[v],f=Pf(d);for(let b=v;b<g&&m[b]!==null;b++)p?Vx(Pf(m[b])===p):p=Pf(m[b])}else p=Pf(m);if(f!==p)if(sD(f)&&sD(p)){const g=u.get();typeof g=="string"&&u.set(parseFloat(g)),typeof m=="string"?t[l]=parseFloat(m):Array.isArray(m)&&p===Xe&&(t[l]=m.map(parseFloat))}else f!=null&&f.transform&&(p!=null&&p.transform)&&(d===0||m===0)?d===0?u.set(p.transform(d)):t[l]=f.transform(m):(s||(o=c8e(e),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:t[l],u.jump(m))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,u=d8e(t,e,a);return o.length&&o.forEach(([d,f])=>{e.getValue(d).set(f)}),e.render(),eg&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function h8e(e,t,n,r){return a8e(t)?f8e(e,t,n,r):{target:t,transitionEnd:r}}const p8e=(e,t,n,r)=>{const i=o8e(e,t,r);return t=i.target,r=i.transitionEnd,h8e(e,t,n,r)},x5={current:null},uD={current:!1};function m8e(){if(uD.current=!0,!!eg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>x5.current=e.matches;e.addListener(t),t()}else x5.current=!1}function g8e(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(br(o))e.addValue(i,o),vg(r)&&r.add(i);else if(br(s))e.addValue(i,Ku(o,{owner:e})),vg(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,Ku(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const cD=new WeakMap,dD=Object.keys(Cf),v8e=dD.length,fD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],y8e=_x.length;class b8e{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>Qt.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=rg(n),this.isVariantNode=K_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{});for(const f in d){const m=d[f];a[f]!==void 0&&br(m)&&(m.set(a[f],!1),vg(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,cD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),uD.current||m8e(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:x5.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){cD.delete(this.current),this.projection&&this.projection.unmount(),jo(this.notifyUpdate),jo(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=tl.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Qt.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,a;for(let l=0;l<v8e;l++){const u=dD[l],{isEnabled:d,Feature:f,ProjectionNode:m,MeasureLayout:p}=Cf[u];m&&(s=m),d(n)&&(!this.features[u]&&f&&(this.features[u]=new f(this)),p&&(a=p))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:d,dragConstraints:f,layoutScroll:m,layoutRoot:p}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!d||f&&Gu(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:m,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<fD.length;r++){const i=fD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=g8e(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<y8e;r++){const i=_x[r],o=this.props[i];(Sf(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ku(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=jx(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!br(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new u5),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class hD extends b8e{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},i){const o=N4e(r,t||{},this);if(i){M4e(this,r,o);const s=p8e(this,r,o,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function x8e(e){return window.getComputedStyle(e)}class w8e extends hD{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(tl.has(n)){const r=i5(n);return r&&r.default||0}else{const r=x8e(t),i=(nR(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return AP(t,n)}build(t,n,r,i){Mx(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Fx(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;br(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){cR(t,n,r,i)}}class S8e extends hD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(tl.has(n)){const r=i5(n);return r&&r.default||0}return n=dR.has(n)?n:kx(n),t.getAttribute(n)}measureInstanceViewportBox(){return gn()}scrapeMotionValuesFromProps(t,n){return hR(t,n)}build(t,n,r,i){Nx(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){fR(t,n,r,i)}mount(t){this.isSVGTag=Lx(t.tagName),super.mount(t)}}const C8e=(e,t)=>Px(e)?new S8e(t,{enableHardwareAcceleration:!1}):new w8e(t,{enableHardwareAcceleration:!0}),T8e={...Q4e,...h5e,...n8e,...{layout:{ProjectionNode:iD,MeasureLayout:PP}}},al=Cxe((e,t)=>e5e(e,t,T8e,C8e));function pD(){const e=R.useRef(!1);return Ex(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function $8e(){const e=pD(),[t,n]=R.useState(0),r=R.useCallback(()=>{e.current&&n(t+1)},[t]);return[R.useCallback(()=>Qt.postRender(r),[r]),t]}class E8e extends j.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function k8e({children:e,isPresent:t}){const n=R.useId(),r=R.useRef(null),i=R.useRef({width:0,height:0,top:0,left:0});return R.useInsertionEffect(()=>{const{width:o,height:s,top:a,left:l}=i.current;if(t||!r.current||!o||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
274
274
  [data-motion-pop-id="${n}"] {
275
275
  position: absolute !important;
276
276
  width: ${o}px !important;
@@ -1158,6 +1158,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1158
1158
  --fc-today-bg-color: transparent !important;
1159
1159
  --fc-event-shadow-color: #d0d0d0 !important;
1160
1160
  }
1161
+
1162
+ .fc {
1163
+ font-size: 1rem !important;
1164
+ }
1161
1165
  .fc .fc-today-button {
1162
1166
  border: 0px !important;
1163
1167
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@timum/booking",
3
- "version": "1.6.7",
4
- "next_version": "1.6.7",
3
+ "version": "1.6.9",
4
+ "next_version": "1.6.9",
5
5
  "current_major_version": "1",
6
6
  "license": "CC-BY-ND-4.0",
7
7
  "type": "module",