1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="bf5cb2b1-1b89-4a20-9d87-ad7332349b6f",t._sentryDebugIdIdentifier="sentry-dbid-bf5cb2b1-1b89-4a20-9d87-ad7332349b6f")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54680],{60296:(t,e,i)=>{i.d(e,{L:()=>s});let s=(0,i(212115).createContext)({})},95221:(t,e,i)=>{i.d(e,{W:()=>s});let s={skipAnimations:!1,useManualTiming:!1}},145514:(t,e,i)=>{i.d(e,{l:()=>s});let s=t=>t},294416:(t,e,i)=>{i.d(e,{M:()=>r});var s=i(212115);function r(t){let e=(0,s.useRef)(null);return null===e.current&&(e.current=t()),e.current}},323315:(t,e,i)=>{i.d(e,{A:()=>P});var s=i(567810),r=i(988945),n=i(212115),o=i(302821),a=i(633065),l=i(157001),h=i(248116),u=i(16625),d=i(381852),c=i(985795),p=i(995195);function m(t){return(0,p.Ay)("MuiTypography",t)}(0,c.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var f=i(695155);let v=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],g=(0,h.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:i}=t;return[e.root,i.variant&&e[i.variant],"inherit"!==i.align&&e["align".concat((0,d.A)(i.align))],i.noWrap&&e.noWrap,i.gutterBottom&&e.gutterBottom,i.paragraph&&e.paragraph]}})(t=>{let{theme:e,ownerState:i}=t;return(0,r.A)({margin:0},"inherit"===i.variant&&{font:"inherit"},"inherit"!==i.variant&&e.typography[i.variant],"inherit"!==i.align&&{textAlign:i.align},i.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i.gutterBottom&&{marginBottom:"0.35em"},i.paragraph&&{marginBottom:16})}),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},x={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},P=n.forwardRef(function(t,e){let i,n=(0,u.b)({props:t,name:"MuiTypography"}),h=x[i=n.color]||i,c=(0,a.A)((0,r.A)({},n,{color:h})),{align:p="inherit",className:P,component:b,gutterBottom:w=!1,noWrap:T=!1,paragraph:A=!1,variant:S="body1",variantMapping:V=y}=c,E=(0,s.A)(c,v),M=(0,r.A)({},c,{align:p,color:h,className:P,component:b,gutterBottom:w,noWrap:T,paragraph:A,variant:S,variantMapping:V}),C=b||(A?"p":V[S]||y[S])||"span",R=(t=>{let{align:e,gutterBottom:i,noWrap:s,paragraph:r,variant:n,classes:o}=t,a={root:["root",n,"inherit"!==t.align&&"align".concat((0,d.A)(e)),i&&"gutterBottom",s&&"noWrap",r&&"paragraph"]};return(0,l.A)(a,m,o)})(M);return(0,f.jsx)(g,(0,r.A)({as:C,ref:e,ownerState:M,className:(0,o.A)(R.root,P)},E))})},345791:(t,e,i)=>{i.d(e,{$:()=>r,V:()=>n});var s=i(145514);let r=s.l,n=s.l},433577:(t,e,i)=>{i.d(e,{B:()=>s});let s="undefined"!=typeof document},497929:(t,e,i)=>{i.d(e,{Ci:()=>a,Gt:()=>r,WG:()=>n,uv:()=>o});var s=i(145514);let{schedule:r,cancel:n,state:o,steps:a}=(0,i(599267).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:s.l,!0)},599267:(t,e,i)=>{i.d(e,{I:()=>o});var s=i(95221);class r{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){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}let n=["read","resolveKeyframes","update","preRender","render","postRender"];function o(t,e){let i=!1,o=!0,a={delta:0,timestamp:0,isProcessing:!1},l=n.reduce((t,e)=>(t[e]=function(t){let e=new r,i=new r,s=0,n=!1,o=!1,a=new WeakSet,l={schedule:(t,r=!1,o=!1)=>{let l=o&&n,h=l?e:i;return r&&a.add(t),h.add(t)&&l&&n&&(s=e.order.length),t},cancel:t=>{i.remove(t),a.delete(t)},process:r=>{if(n){o=!0;return}if(n=!0,[e,i]=[i,e],i.clear(),s=e.order.length)for(let i=0;i<s;i++){let s=e.order[i];a.has(s)&&(l.schedule(s),t()),s(r)}n=!1,o&&(o=!1,l.process(r))}};return l}(()=>i=!0),t),{}),h=t=>{l[t].process(a)},u=()=>{let r=s.W.useManualTiming?a.timestamp:performance.now();i=!1,a.delta=o?1e3/60:Math.max(Math.min(r-a.timestamp,40),1),a.timestamp=r,a.isProcessing=!0,n.forEac
1h(h),a.isProcessing=!1,i&&e&&(o=!1,t(u))};return{schedule:n.reduce((e,s)=>{let r=l[s];return e[s]=(e,s=!1,n=!1)=>(!i&&(i=!0,o=!0,a.isProcessing||t(u)),r.schedule(e,s,n)),e},{}),cancel:t=>n.forEach(e=>l[e].cancel(t)),state:a,steps:l}}},759686:(t,e,i)=>{i.d(e,{t:()=>s});let s=(0,i(212115).createContext)(null)},788578:(t,e,i)=>{let s;i.d(e,{P:()=>rH});var r=i(695155),n=i(212115),o=i(953127);let a=(0,n.createContext)({});var l=i(759686),h=i(986553);let u=(0,n.createContext)({strict:!1}),d=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),c="data-"+d("framerAppearId"),{schedule:p,cancel:m}=(0,i(599267).I)(queueMicrotask,!1);function f(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function v(t){return"string"==typeof t||Array.isArray(t)}function g(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let y=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],x=["initial",...y];function P(t){return g(t.animate)||x.some(e=>v(t[e]))}function b(t){return!!(P(t)||t.variants)}function w(t){return Array.isArray(t)?t.join(" "):t}let T={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"]},A={};for(let t in T)A[t]={isEnabled:e=>T[t].some(t=>!!e[t])};var S=i(433577),V=i(60296);let E=(0,n.createContext)({}),M=Symbol.for("motionComponentSymbol"),C=["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 R(t){if("string"!=typeof t||t.includes("-"));else if(C.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let D={},k=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],L=new Set(k);function F(t,{layout:e,layoutId:i}){return L.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!D[t]||"opacity"===t)}let j=t=>!!(t&&t.getVelocity),B={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},O=k.length,I=t=>e=>"string"==typeof e&&e.startsWith(t),U=I("--"),W=I("var(--"),$=t=>!!W(t)&&N.test(t.split("/*")[0].trim()),N=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,G=(t,e)=>e&&"number"==typeof t?e.transform(t):t,H=(t,e,i)=>i>e?e:i<t?t:i,z={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},Y={...z,transform:t=>H(0,1,t)},K={...z,default:1},X=t=>Math.round(1e5*t)/1e5,q=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Z=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function J(t){return"string"==typeof t}let Q=t=>({test:e=>J(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tt=Q("deg"),te=Q("%"),ti=Q("px"),ts=Q("vh"),tr=Q("vw"),tn={...te,parse:t=>te.parse(t)/100,transform:t=>te.transform(100*t)},to={...z,transform:Math.round},ta={borderWidth:ti,borderTopWidth:ti,borderRightWidth:ti,borderBottomWidth:ti,borderLeftWidth:ti,borderRadius:ti,radius:ti,borderTopLeftRadius:ti,borderTopRightRadius:ti,borderBottomRightRadius:ti,borderBottomLeftRadius:ti,width:ti,maxWidth:ti,height:ti,maxHeight:ti,size:ti,top:ti,right:ti,bottom:ti,left:ti,padding:ti,paddingTop:ti,paddingRight:ti,paddingBottom:ti,paddingLeft:ti,margin:ti,marginTop:ti,marginRight:ti,marginBottom:ti,marginLeft:ti,rotate:tt,rotateX:tt,rotateY:tt,rotateZ:tt,scale:K,scaleX:K,scaleY:K,scaleZ:K,skew:tt,skewX:tt,skewY:tt,distance:ti,translateX:ti,translateY:ti,translateZ:ti,x:ti,y:ti,z:ti,perspective:ti,transformPerspective:ti,opacity:Y,originX:tn,originY:tn,originZ:ti,zIndex:to,backgroundPositionX:ti,backgroundPositionY:ti,fillOpacity:Y,strokeOpacity:Y,numOctaves:to};function tl(t,e,i,s){let{style:r,vars:n,transform:o,transformOrigin:a}=t,l=!1,h=!1,u=!0;for(let t in e){let i=e[t];if(U(t)){n[t]=i;continue}let s=ta[t],d=G(i,s);if(L.has(t)){if(l=!0,o[t]=d,!u)continue;i!==(s.default||0)&&(u=!1)}else t.startsWith("origin")?(h=!0,a[t]=d):r[t]=d}if(!e.transform&&(l||s?r.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:i=!0}
1,s,r){let n="";for(let e=0;e<O;e++){let i=k[e];if(void 0!==t[i]){let e=B[i]||i;n+=`${e}(${t[i]}) `}}return e&&!t.z&&(n+="translateZ(0)"),n=n.trim(),r?n=r(t,s?"":n):i&&s&&(n="none"),n}(t.transform,i,u,s):r.transform&&(r.transform="none")),h){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;r.transformOrigin=`${t} ${e} ${i}`}}let th=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tu(t,e,i){for(let s in e)j(e[s])||F(s,i)||(t[s]=e[s])}var td=i(959132);function tc(t,e,i){return"string"==typeof t?t:ti.transform(e+i*t)}let tp={offset:"stroke-dashoffset",array:"stroke-dasharray"},tm={offset:"strokeDashoffset",array:"strokeDasharray"};function tf(t,{attrX:e,attrY:i,attrScale:s,originX:r,originY:n,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...h},u,d,c){if(tl(t,h,u,c),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:p,style:m,dimensions:f}=t;p.transform&&(f&&(m.transform=p.transform),delete p.transform),f&&(void 0!==r||void 0!==n||m.transform)&&(m.transformOrigin=function(t,e,i){let s=tc(e,t.x,t.width),r=tc(i,t.y,t.height);return`${s} ${r}`}(f,void 0!==r?r:.5,void 0!==n?n:.5)),void 0!==e&&(p.x=e),void 0!==i&&(p.y=i),void 0!==s&&(p.scale=s),void 0!==o&&function(t,e,i=1,s=0,r=!0){t.pathLength=1;let n=r?tp:tm;t[n.offset]=ti.transform(-s);let o=ti.transform(e),a=ti.transform(i);t[n.array]=`${o} ${a}`}(p,o,a,l,!1)}let tv=()=>({...th(),attrs:{}}),tg=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ty(t,{style:e,vars:i},s,r){for(let n in Object.assign(t.style,e,r&&r.getProjectionStyles(s)),i)t.style.setProperty(n,i[n])}let tx=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 tP(t,e,i,s){for(let i in ty(t,e,void 0,s),e.attrs)t.setAttribute(tx.has(i)?i:d(i),e.attrs[i])}function tb(t,e,i){var s;let{style:r}=t,n={};for(let o in r)(j(r[o])||e.style&&j(e.style[o])||F(o,t)||(null==(s=null==i?void 0:i.getValue(o))?void 0:s.liveStyle)!==void 0)&&(n[o]=r[o]);return n}function tw(t,e,i){let s=tb(t,e,i);for(let i in t)(j(t[i])||j(e[i]))&&(s[-1!==k.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}function tT(t,e,i,s={},r={}){return"function"==typeof e&&(e=e(void 0!==i?i:t.custom,s,r)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==i?i:t.custom,s,r)),e}var tA=i(294416);let tS=t=>Array.isArray(t),tV=t=>tS(t)?t[t.length-1]||0:t;function tE(t){let e=j(t)?t.get():t;return e&&"object"==typeof e&&e.mix&&e.toValue?e.toValue():e}let tM=t=>(e,i)=>{let s=(0,n.useContext)(a),r=(0,n.useContext)(l.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},s,r,n){let o={latestValues:function(t,e,i,s){let r={},n=s(t,{});for(let t in n)r[t]=tE(n[t]);let{initial:o,animate:a}=t,l=P(t),h=b(t);e&&h&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===o)?a:o;return d&&"boolean"!=typeof d&&!g(d)&&(Array.isArray(d)?d:[d]).forEach(e=>{let i=tT(t,e);if(!i)return;let{transitionEnd:s,transition:n,...o}=i;for(let t in o){let e=o[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let t in s)r[t]=s[t]}),r}(s,r,n,t),renderState:e()};return i&&(o.mount=t=>i(s,t,o)),o})(t,e,s,r);return i?o():(0,tA.M)(o)};var tC=i(497929);let tR={useVisualState:tM({scrapeMotionValuesFromProps:tw,createRenderState:tv,onMount:(t,e,{renderState:i,latestValues:s})=>{tC.Gt.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),tC.Gt.render(()=>{tf(i,s,{enableHardwareAcceleration:!1},tg(e.tagName),t.transformTemplate),tP(e,i)})}})},tD={useVisualState:tM({scrapeMotionValuesFromProps:tb,createRenderState:th})};function tk(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}let tL=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tF(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}function tj(t,e,i,s){return tk(t,e,t=>tL(t)&&i(t,tF(t)),s)}let tB=(t,e)=>i=>e(t(i)),tO=(...t)=>t.reduce(tB);function tI(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tU=tI("dragHorizontal"),tW=tI("dragVertical");function t$(t){let e=!1;if("y"===t)e=tW();else if("x"===t)e=tU();else{let t=tU(),i=tW();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function tN(){let t=t$(!0);return!t||(t(),!1)}class tG{constructor(t){this.isMounted=!1,this.node=t}update(){}}function tH(t,e){let i=e?"onHoverStart":"onHoverEnd";return tj(t.current,e?"pointerenter":"pointerleave",(s,r)=>{if("touch"===s.pointerType||tN())return;let n=t.getProps();t.animationState&&n.whileHover&&t.animationState.setActive("whileHover",e);let o=n[i];o&&o(s,r)},{passive:!t.getProps()[i]})}class tz extends tG{mount(){this.unmount=tO(tH(this.node,!0),tH(this.node,!1))}unmount(){}}class tY extends tG{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tO(tk(this.node.current,"focus",()=>this.onFocus()),tk(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let tK=(t,e)=>!!e&&(t===e||tK(t,e.parentElement));var tX=i(145514);function tq(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,tF(i))}class t_ extends tG{constructor(){super(...arguments),this.removeStartListeners=tX.l,this.removeEndListeners=tX.l,this.removeAccessibleListeners=tX.l,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),s=tj(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:s,globalTapTarget:r}=this.node.getProps();r||tK(this.node.current,t.target)?i&&i(t,e):s&&s(t,e)},{passive:!(i.onTap||i.onPointerUp)}),r=tj(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=tO(s,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=t=>{if("Enter"!==t.key||this.isPressing)return;let e=t=>{"Enter"===t.key&&this.checkPressEnd()&&tq("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&i(t,e)})};this.removeEndListeners(),this.removeEndListeners=tk(this.node.current,"keyup",e),tq("down",(t,e)=>{this.startPress(t,e)})},e=tk(this.node.current,"keydown",t),i=()=>{this.isPressing&&tq("cancel",(t,e)=>this.cancelPress(t,e))},s=tk(this.node.current,"blur",i);this.removeAccessibleListeners=tO(e,s)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&i(t,e)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tN()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&i(t,e)}mount(){let t=this.node.getProps(),e=tj(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=tk(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tO(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let tZ=new WeakMap,tJ=new WeakMap,tQ=t=>{let e=tZ.get(t.target);e&&e(t)}
1,t0=t=>{t.forEach(tQ)},t1={some:0,all:1};class t5 extends tG{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:s="some",once:r}=t,n={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:t1[s]},o=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=e?i:s;n&&n(t)};var a=this.node.current;let l=function({root:t,...e}){let i=t||document;tJ.has(i)||tJ.set(i,{});let s=tJ.get(i),r=JSON.stringify(e);return s[r]||(s[r]=new IntersectionObserver(t0,{root:t,...e})),s[r]}(n);return tZ.set(a,o),l.observe(a),()=>{tZ.delete(a),l.unobserve(a)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}function t2(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}function t3(t,e,i){let s=t.getProps();return tT(s,e,void 0!==i?i:s.custom,function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.getVelocity()),e}(t))}let t9=t=>1e3*t,t6={type:"spring",stiffness:500,damping:25,restSpeed:10},t4={type:"keyframes",duration:.8},t7={type:"keyframes",ease:[.25,.1,.35,1],duration:.3};function t8(t,e){return t[e]||t.default||t}var et=i(95221);let ee={current:!1},ei=t=>null!==t;function es(t,{repeat:e,repeatType:i="loop"},s){let r=t.filter(ei),n=e&&"loop"!==i&&e%2==1?0:r.length-1;return n&&void 0!==s?s:r[n]}function er(){s=void 0}let en={now:()=>(void 0===s&&en.set(tC.uv.isProcessing||et.W.useManualTiming?tC.uv.timestamp:performance.now()),s),set:t=>{s=t,queueMicrotask(er)}},eo=t=>/^0[^.\s]+$/u.test(t);var ea=i(345791);let el=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),eh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eu=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ed=t=>t===z||t===ti,ec=(t,e)=>parseFloat(t.split(", ")[e]),ep=(t,e)=>(i,{transform:s})=>{if("none"===s||!s)return 0;let r=s.match(/^matrix3d\((.+)\)$/u);if(r)return ec(r[1],e);{let e=s.match(/^matrix\((.+)\)$/u);return e?ec(e[1],t):0}},em=new Set(["x","y","z"]),ef=k.filter(t=>!em.has(t)),ev={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:ep(4,13),y:ep(5,14)};ev.translateX=ev.x,ev.translateY=ev.y;let eg=t=>e=>e.test(t),ey=[z,ti,te,tt,tr,ts,{test:t=>"auto"===t,parse:t=>t}],ex=t=>ey.find(eg(t)),eP=new Set,eb=!1,ew=!1;function eT(){if(ew){let t=Array.from(eP).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return ef.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var s;null==(s=t.getValue(e))||s.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}ew=!1,eb=!1,eP.forEach(t=>t.complete()),eP.clear()}function eA(){eP.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ew=!0)})}class eS{constructor(t,e,i,s,r,n=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=r,this.isAsync=n}scheduleResolve(){this.isScheduled=!0,this.isAsync?(eP.add(this),eb||(eb=!0,tC.Gt.read(eA),tC.Gt.resolveKeyframes(eT))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;for(let r=0;r<t.length;r++)if(null===t[r])if(0===r){let r=null==s?void 0:s.get(),n=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let s=i.readValue(e,n);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=n),s&&void 0===r&&s.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),eP.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,eP.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let eV=(t,e)=>i=>!!(J(i)&&Z.test(i)&&i.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(i,e)),eE=(t,e,i)=>s=>{if(!J(s))return s;let[r,n,o,a]=s.match(q);return{[t]:parseFloat(r),[e]:parseFloat(n),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},eM={...z,transform:t=>Math.round(H(0,255,t))},eC={test:eV("rgb","red"),parse:eE("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+eM.transform(t)+", "+eM.transform(e)+", "+eM.transform(i)+", "+X(Y.transform(s))+")"},eR={test:eV("#"),parse:function(t){let e="",i="",s="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alph
1a:r?parseInt(r,16)/255:1}},transform:eC.transform},eD={test:eV("hsl","hue"),parse:eE("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+te.transform(X(e))+", "+te.transform(X(i))+", "+X(Y.transform(s))+")"},ek={test:t=>eC.test(t)||eR.test(t)||eD.test(t),parse:t=>eC.test(t)?eC.parse(t):eD.test(t)?eD.parse(t):eR.parse(t),transform:t=>J(t)?t:t.hasOwnProperty("red")?eC.transform(t):eD.transform(t)},eL="number",eF="color",ej=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function eB(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},r=[],n=0,o=e.replace(ej,t=>(ek.test(t)?(s.color.push(n),r.push(eF),i.push(ek.parse(t))):t.startsWith("var(")?(s.var.push(n),r.push("var"),i.push(t)):(s.number.push(n),r.push(eL),i.push(parseFloat(t))),++n,"${}")).split("${}");return{values:i,split:o,indexes:s,types:r}}function eO(t){return eB(t).values}function eI(t){let{split:e,types:i}=eB(t),s=e.length;return t=>{let r="";for(let n=0;n<s;n++)if(r+=e[n],void 0!==t[n]){let e=i[n];e===eL?r+=X(t[n]):e===eF?r+=ek.transform(t[n]):r+=t[n]}return r}}let eU=t=>"number"==typeof t?0:t,eW={test:function(t){var e,i;return isNaN(t)&&J(t)&&((null==(e=t.match(q))?void 0:e.length)||0)+((null==(i=t.match(_))?void 0:i.length)||0)>0},parse:eO,createTransformer:eI,getAnimatableNone:function(t){let e=eO(t);return eI(t)(e.map(eU))}},e$=new Set(["brightness","contrast","saturate","opacity"]);function eN(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(q)||[];if(!s)return t;let r=i.replace(s,""),n=+!!e$.has(e);return s!==i&&(n*=100),e+"("+n+r+")"}let eG=/\b([a-z-]*)\(.*?\)/gu,eH={...eW,getAnimatableNone:t=>{let e=t.match(eG);return e?e.map(eN).join(" "):t}},ez={...ta,color:ek,backgroundColor:ek,outlineColor:ek,fill:ek,stroke:ek,borderColor:ek,borderTopColor:ek,borderRightColor:ek,borderBottomColor:ek,borderLeftColor:ek,filter:eH,WebkitFilter:eH},eY=t=>ez[t];function eK(t,e){let i=eY(t);return i!==eH&&(i=eW),i.getAnimatableNone?i.getAnimatableNone(e):void 0}class eX extends eS{constructor(t,e,i,s){super(t,e,i,s,null==s?void 0:s.owner,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&$(s)){let r=function t(e,i,s=1){(0,ea.V)(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,n]=function(t){let e=eh.exec(t);if(!e)return[,];let[,i,s,r]=e;return[`--${null!=i?i:s}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return el(t)?parseFloat(t):t}return $(n)?t(n,i,s+1):n}(s,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=s)}}if(!eu.has(i)||2!==t.length)return this.resolveNoneKeyframes();let[s,r]=t,n=ex(s),o=ex(r);if(n!==o)if(ed(n)&&ed(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var s;("number"==typeof(s=t[e])?0===s:null===s||"none"===s||"0"===s||eo(s))&&i.push(e)}i.length&&function(t,e,i){let s,r=0;for(;r<t.length&&!s;)"string"==typeof t[r]&&"none"!==t[r]&&"0"!==t[r]&&(s=t[r]),r++;if(s&&i)for(let r of e)t[r]=eK(i,s)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ev[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:s}=this;if(!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let n=s.length-1,o=s[n];s[n]=ev[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let eq=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(eW.test(t)||"0"===t)&&!t.startsWith("url("));class e_{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:n="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:r,repeatType:n,...o},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(eA(),eT()),this._resolved}onKeyframesResolved(t,e){this.hasAttemptedResolve=!0;let{name:i,type:s,velocity:r,delay:n,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,s){let r=t[0];if(null===r)return!1;let n=t[t.length-1],o=eq(r,e),a=eq(n,e);return(0,ea.$)(o===a,`You are trying to animate ${e} from "${r}" to "${n}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${n} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||"spring"===i&&s)}(t,i,s,r))if(ee.current||!n){null==a||a(es(t,this.options,e)),null==o||o(),this.resolveFinishedPromise();return}else this.options.duration=0;let h=this.initPlayback(t,e);!1!==h&&(this._resolved={keyframes:t,finalKeyframe:e,...h},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function eZ(t,e,i){var s,r;let n=Math.max(e-5,0);return s=i-t(n),(r=e-n)?1e3/r*s:0}function eJ(t,e){return t*Math.sqrt(1-e*e)}let eQ=["duration","bounce"],e0=["stiffness","damping","mass"];function e1(t,e){return e.some(e=>void 0!==t[e])}function e5({keyframes:t,restDelta:e,restSpeed:i,...s}){let r,n=t[0],o=t[t.length-1],a={done:!1,value:n},{stiffness:l,damping:h,mass:u,duration:d,velocity:c,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!e1(t,e0)&&e1(t,eQ)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:s=1}){let r,n;(0,ea.$)(t<=t9(10),"Spring duration must be 10 seconds or less");let o=1-e;o=H(.05,1,o),t=H(.01,10,t/1e3),o<1?(r=e=>{let s=e*o,r=s*t;return .001-(s-i)/eJ(e,o)*Math.exp(-r)},n=e=>{let s=e*o*t,n=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-s),l=eJ(Math.pow(e,2),o);return(s*i+i-n)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),n=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(r,n,5/t);if(t=t9(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*s;return{stiffness:e,damping:2*o*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-((s.velocity||0)/1e3)}),m=c||0,f=h/(2*Math.sqrt(l*u)),v=o-n,g=Math.sqrt(l/u)/1e3,y=5>Math.abs(v);if(i||(i=y?.01:2),e||(e=y?.005:.5),f<1){let t=eJ(g,f);r=e=>o-Math.exp(-f*g*e)*((m+f*g*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===f)r=t=>o-Math.exp(-g*t)*(v+(m+g*v)*t);else{let t=g*Math.sqrt(f*f-1);r=e=>{let i=Math.exp(-f*g*e),s=Math.min(t*e,300);return o-i*((m+f*g*v)*Math.sinh(s)+t*v*Math.cosh(s))/t}}return{calculatedDuration:p&&d||null,next:t=>{let s=r(t);if(p)a.done=t>=d;else{let n=m;0!==t&&(n=f<1?eZ(r,t,s):0);let l=Math.abs(o-s)<=e;a.done=Math.abs(n)<=i&&l}return a.value=a.done?o:s,a}}}function e2({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,v=p+f,g=void 0===o?v:o(v);g!==v&&(f=g-p);let y=t=>-f*Math.exp(-t/s),x=t=>g+y(t),P=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=h,m.value=m.done?g:i},b=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;d=t,c=e5({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:eZ(x,t,m.value),damping:r,stiffness:n,restDelta:h,restSpeed:u})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,P(t),b(t)),void 0!==d&&t>=d)?c.next(t-d):(e||P(t),m)}}}let e3=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function e9(t,e,i,s){return t===e&&i===s?tX.l:r=>
10===r||1===r?r:e3(function(t,e,i,s,r){let n,o,a=0;do(n=e3(o=e+(i-e)/2,s,r)-t)>0?i=o:e=o;while(Math.abs(n)>1e-7&&++a<12);return o}(r,0,1,t,i),e,s)}let e6=e9(.42,0,1,1),e4=e9(0,0,.58,1),e7=e9(.42,0,.58,1),e8=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,it=t=>e=>1-t(1-e),ie=t=>1-Math.sin(Math.acos(t)),ii=it(ie),is=e8(ie),ir=e9(.33,1.53,.69,.99),io=it(ir),ia=e8(io),il={linear:tX.l,easeIn:e6,easeInOut:e7,easeOut:e4,circIn:ie,circInOut:is,circOut:ii,backIn:io,backInOut:ia,backOut:ir,anticipate:t=>(t*=2)<1?.5*io(t):.5*(2-Math.pow(2,-10*(t-1)))},ih=t=>{if(Array.isArray(t)){(0,ea.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,s,r]=t;return e9(e,i,s,r)}return"string"==typeof t?((0,ea.V)(void 0!==il[t],`Invalid easing type '${t}'`),il[t]):t},iu=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s},id=(t,e,i)=>t+(e-t)*i;function ic(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}let ip=(t,e,i)=>{let s=t*t,r=i*(e*e-s)+s;return r<0?0:Math.sqrt(r)},im=[eR,eC,eD];function iv(t){let e=im.find(e=>e.test(t));(0,ea.V)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===eD&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let r=0,n=0,o=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,a=2*i-s;r=ic(a,s,t+1/3),n=ic(a,s,t),o=ic(a,s,t-1/3)}else r=n=o=i;return{red:Math.round(255*r),green:Math.round(255*n),blue:Math.round(255*o),alpha:s}}(i)),i}let ig=(t,e)=>{let i=iv(t),s=iv(e),r={...i};return t=>(r.red=ip(i.red,s.red,t),r.green=ip(i.green,s.green,t),r.blue=ip(i.blue,s.blue,t),r.alpha=id(i.alpha,s.alpha,t),eC.transform(r))};function iy(t,e){return i=>i>0?e:t}function ix(t,e){return i=>id(t,e,i)}function iP(t){return"number"==typeof t?ix:"string"==typeof t?$(t)?iy:ek.test(t)?ig:iT:Array.isArray(t)?ib:"object"==typeof t?ek.test(t)?ig:iw:iy}function ib(t,e){let i=[...t],s=i.length,r=t.map((t,i)=>iP(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=r[e](t);return i}}function iw(t,e){let i={...t,...e},s={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(s[r]=iP(t[r])(t[r],e[r]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let iT=(t,e)=>{let i=eW.createTransformer(e),s=eB(t),r=eB(e);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?tO(ib(function(t,e){var i;let s=[],r={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let o=e.types[n],a=t.indexes[o][r[o]],l=null!=(i=t.values[a])?i:0;s[n]=l,r[o]++}return s}(s,r),r.values),i):((0,ea.$)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),iy(t,e))};function iA(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?id(t,e,i):iP(t)(t,e)}function iS({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var r;let n=Array.isArray(s)&&"number"!=typeof s[0]?s.map(ih):ih(s),o={done:!1,value:e[0]},a=function(t,e,{clamp:i=!0,ease:s,mixer:r}={}){let n=t.length;if((0,ea.V)(n===e.length,"Both input and output ranges must be the same length"),1===n)return()=>e[0];if(2===n&&t[0]===t[1])return()=>e[1];t[0]>t[n-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let s=[],r=i||iA,n=t.length-1;for(let i=0;i<n;i++){let n=r(t[i],t[i+1]);e&&(n=tO(Array.isArray(e)?e[i]||tX.l:e,n)),s.push(n)}return s}(e,s,r),a=o.length,l=e=>{let i=0;if(a>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let s=iu(t[i],t[i+1],e);return o[i](s)};return i?e=>l(H(t[0],t[n-1],e)):l}((r=i&&i.length===e.length?i:function(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let r=iu(0,e,s);t.push(id(i,1,r))}}(e,t.length-1),e}(e),r.map(e=>e*t)),e,{ease:Array.isArray(n)?n:e.map(()=>n||e7).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let iV=t=>{let e=({timestamp:e})=>t(e);return{start:()=>tC.Gt.update(e,!0),stop:()=>(0,tC.WG)(e),now:()=>tC.uv.isProcessing?tC.uv.timestamp:en.now()}},iE={decay:e2,inertia:e2,tween:iS,keyframes:iS,spring:e5},iM=t=>t/100;class iC extends e_{constructor({KeyframeResolver:t=eS,...e}){super(e),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle";let{name:i,motionValue:s,keyframes:r}=this.options,n=(t,e)=>this.onKeyframesResolved(t,e);i&&s&&s.owner?this.resolver=s.owner.resolveKeyframes(r,n,i,s):this.resolver=new t(r,n,i,s),this.resolver.scheduleResolve()}
1initPlayback(t){let e,i,{type:s="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:o,velocity:a=0}=this.options,l=iE[s]||iS;l!==iS&&"number"!=typeof t[0]&&(e=tO(iM,iA(t[0],t[1])),t=[0,100]);let h=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===h.calculatedDuration&&(h.calculatedDuration=function(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}(h));let{calculatedDuration:u}=h,d=u+n;return{generator:h,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(r+1)-n}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:s,generator:r,mirroredGenerator:n,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:h,resolvedDuration:u}=i;if(null===this.startTime)return r.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>h;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=h);let y=this.currentTime,x=r;if(c){let t=Math.min(this.currentTime,h)/u,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/u)):"mirror"===p&&(x=n)),y=H(0,1,i)*u}let P=g?{done:!1,value:a[0]}:x.next(y);o&&(P.value=o(P.value));let{done:b}=P;g||null===l||(b=this.speed>=0?this.currentTime>=h:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return w&&void 0!==s&&(P.value=es(a,this.options,s)),f&&f(P.value),w&&this.finish(),P}get duration(){let{resolved:t}=this;return t?t.calculatedDuration/1e3:0}get time(){return this.currentTime/1e3}set time(t){t=t9(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=iV,onPlay:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=i),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let iR=t=>Array.isArray(t)&&"number"==typeof t[0],iD=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,ik={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iD([0,.65,.55,1]),circOut:iD([.55,0,1,.45]),backIn:iD([.31,.01,.66,-.59]),backOut:iD([.33,1.53,.69,.99])};function iL(t){return iF(t)||ik.easeOut}
1function iF(t){if(t)return iR(t)?iD(t):Array.isArray(t)?t.map(iL):ik[t]}let ij=function(t){let e;return()=>(void 0===e&&(e=t()),e)}(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),iB=new Set(["opacity","clipPath","filter","transform"]);class iO extends e_{constructor(t){super(t);let{name:e,motionValue:i,keyframes:s}=this.options;this.resolver=new eX(s,(t,e)=>this.onKeyframesResolved(t,e),e,i),this.resolver.scheduleResolve()}initPlayback(t,e){var i,s;let{duration:r=300,times:n,ease:o,type:a,motionValue:l,name:h}=this.options;if(!(null==(i=l.owner)?void 0:i.current))return!1;if("spring"===(s=this.options).type||"backgroundColor"===s.name||!function t(e){return!!(!e||"string"==typeof e&&e in ik||iR(e)||Array.isArray(e)&&e.every(t))}(s.ease)){let{onComplete:e,onUpdate:i,motionValue:s,...l}=this.options,h=function(t,e){let i=new iC({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),s={done:!1,value:t[0]},r=[],n=0;for(;!s.done&&n<2e4;)r.push((s=i.sample(n)).value),n+=10;return{times:void 0,keyframes:r,duration:n-10,ease:"linear"}}(t,l);1===(t=h.keyframes).length&&(t[1]=t[0]),r=h.duration,n=h.times,o=h.ease,a="keyframes"}let u=function(t,e,i,{delay:s=0,duration:r=300,repeat:n=0,repeatType:o="loop",ease:a,times:l}={}){let h={[e]:i};l&&(h.offset=l);let u=iF(a);return Array.isArray(u)&&(h.easing=u),t.animate(h,{delay:s,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:n+1,direction:"reverse"===o?"alternate":"normal"})}(l.owner.current,h,t,{...this.options,duration:r,times:n,ease:o});return u.startTime=en.now(),this.pendingTimeline?(u.timeline=this.pendingTimeline,this.pendingTimeline=void 0):u.onfinish=()=>{let{onComplete:i}=this.options;l.set(es(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:n,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return e/1e3}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(e.currentTime||0)/1e3}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=t9(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return tX.l;let{animation:i}=e;i.timeline=t,i.onfinish=null}else this.pendingTimeline=t;return tX.l}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:s,type:r,ease:n,times:o}=t;if("idle"!==e.playState&&"finished"!==e.playState){if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,...l}=this.options,h=new iC({...l,keyframes:i,duration:s,type:r,ease:n,times:o,isGenerator:!0}),u=t9(this.time);t.setWithVelocity(h.sample(u-10).value,h.sample(u).value,10)}this.cancel()}}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:r,damping:n,type:o}=t;return ij()&&i&&iB.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!s&&"mirror"!==r&&0!==n&&"inertia"!==o}}let iI=(t,e,i,s={},r,n)=>o=>{let a=t8(s,t)||{},l=a.delay||s.delay||0,{elapsed:h=0}=s;h-=t9(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:n?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:r,repeat:n,repeatType:o,repeatDelay:a,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(a)&&(u={...u,...((t,{keyframes:e})=>e.length>2?t4:L.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:t6:t7)(t,u)}),u.duration&&(u.duration=t9(u.duration)),u.repeatDelay&&(u.repeatDelay=t9(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(u.duration=0,0===u.delay&&(d=!0)),(ee.current||et.W.ski
1pAnimations)&&(d=!0,u.duration=0,u.delay=0),d&&!n&&void 0!==e.get()){let t=es(u.keyframes,a);if(void 0!==t)return void tC.Gt.update(()=>{u.onUpdate(t),u.onComplete()})}return!n&&iO.supports(u)?new iO(u):new iC(u)};function iU(t){return!!(j(t)&&t.add)}function iW(t,e){-1===t.indexOf(e)&&t.push(e)}function i$(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class iN{constructor(){this.subscriptions=[]}add(t){return iW(this.subscriptions,t),()=>i$(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let r=0;r<s;r++){let s=this.subscriptions[r];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let iG={current:void 0};class iH{constructor(t,e={}){this.version="11.1.3",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=en.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=!isNaN(parseFloat(this.current)),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=en.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new iN);let i=this.events[t].add(e);return"change"===t?()=>{i(),tC.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return iG.current&&iG.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=en.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function iz(t,e){return new iH(t,e)}function iY(t,e,{delay:i=0,transitionOverride:s,type:r}={}){var n;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e,h=t.getValue("willChange");s&&(o=s);let u=[],d=r&&t.animationState&&t.animationState.getState()[r];for(let e in l){let s=t.getValue(e,null!=(n=t.latestValues[e])?n:null),r=l[e];if(void 0===r||d&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(d,e))continue;let a={delay:i,elapsed:0,...t8(o||{},e)},p=!1;if(window.HandoffAppearAnimations){let i=t.getProps()[c];if(i){let t=window.HandoffAppearAnimations(i,e);null!==t&&(a.elapsed=t,p=!0)}}s.start(iI(e,s,r,t.shouldReduceMotion&&L.has(e)?{type:!1}:a,t,p));let m=s.animation;m&&(iU(h)&&(h.add(e),m.then(()=>h.remove(e))),u.push(m))}return a&&Promise.all(u).then(()=>{tC.Gt.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:s={},...r}=t3(t,e)||{};for(let e in r={...r,...i}){let i=tV(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,iz(i))}}(t,a)})}),u}function iK(t,e,i={}){var s;let r=t3(t,e,"exit"===i.type?null==(s=t.presenceContext)?void 0:s.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let o=r?()=>Promise.all(iY(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=n;
1return function(t,e,i=0,s=0,r=1,n){let o=[],a=(t.variantChildren.size-1)*s,l=1===r?(t=0)=>t*s:(t=0)=>a-t*s;return Array.from(t.variantChildren).sort(iX).forEach((t,s)=>{t.notify("AnimationStart",e),o.push(iK(t,e,{...n,delay:i+l(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+s,o,a,i)}:()=>Promise.resolve(),{when:l}=n;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function iX(t,e){return t.sortNodePosition(e)}let iq=[...y].reverse(),i_=y.length;function iZ(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class iJ extends tG{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>iK(t,e,i)));else if("string"==typeof e)s=iK(t,e,i);else{let r="function"==typeof e?t3(t,e,i.custom):e;s=Promise.all(iY(t,r,i))}return s.then(()=>{tC.Gt.postRender(()=>{t.notify("AnimationComplete",e)})})})(t,e,i))),i={animate:iZ(!0),whileInView:iZ(),whileHover:iZ(),whileTap:iZ(),whileDrag:iZ(),whileFocus:iZ(),exit:iZ()},s=!0,r=e=>(i,s)=>{var r;let n=t3(t,s,"exit"===e?null==(r=t.presenceContext)?void 0:r.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function n(n){let o=t.getProps(),a=t.getVariantContext(!0)||{},l=[],h=new Set,u={},d=1/0;for(let e=0;e<i_;e++){var c,p;let m=iq[e],f=i[m],y=void 0!==o[m]?o[m]:a[m],x=v(y),P=m===n?f.isActive:null;!1===P&&(d=e);let b=y===a[m]&&y!==o[m]&&x;if(b&&s&&t.manuallyAnimateOnMount&&(b=!1),f.protectedKeys={...u},!f.isActive&&null===P||!y&&!f.prevProp||g(y)||"boolean"==typeof y)continue;let w=(c=f.prevProp,("string"==typeof(p=y)?p!==c:!!Array.isArray(p)&&!t2(p,c))||m===n&&f.isActive&&!b&&x||e>d&&x),T=!1,A=Array.isArray(y)?y:[y],S=A.reduce(r(m),{});!1===P&&(S={});let{prevResolvedValues:V={}}=f,E={...V,...S},M=e=>{w=!0,h.has(e)&&(T=!0,h.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in E){let e=S[t],i=V[t];if(!u.hasOwnProperty(t))(tS(e)&&tS(i)?t2(e,i):e===i)?void 0!==e&&h.has(t)?M(t):f.protectedKeys[t]=!0:null!=e?M(t):h.add(t)}f.prevProp=y,f.prevResolvedValues=S,f.isActive&&(u={...u,...S}),s&&t.blockInitialAnimation&&(w=!1),w&&(!b||T)&&l.push(...A.map(t=>({animation:t,options:{type:m}})))}if(h.size){let e={};h.forEach(i=>{let s=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=s?s:null}),l.push({animation:e})}let m=!!l.length;return s&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(m=!1),s=!1,m?e(l):Promise.resolve()}return{animateChanges:n,setActive:function(e,s){var r;if(i[e].isActive===s)return Promise.resolve();null==(r=t.variantChildren)||r.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,s)}),i[e].isActive=s;let o=n(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),g(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let iQ=0;class i0 extends tG{constructor(){super(...arguments),this.id=iQ++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let i1=(t,e)=>Math.abs(t-e);class i5{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=i9(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(i1(t.x,e.x)**2+i1(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:s}=t,{timestamp:r}=tC.uv;this.history.push({...s,timestamp:r});let{onStart:n,onMove:o}=this.handlers;e||(n&&n(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=i2(e,this.transformPagePoint),tC.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=i9("pointercancel"===t.type?this.lastMoveEventInfo:i2(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),s&&s(t,n)},!tL(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;let n=i2(tF(t),this.transformPagePoint),{point:o}=n,{timestamp:a}=tC.uv;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,i9(n,this.history)),this.removeListeners=tO(tj(this.contextWindow,"pointermove",this.handlePointerMove),tj(this.contextWindow,"pointerup",this.handlePointerUp),tj(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tC.WG)(this.updatePoint)}}function i2(t,e){return e?{point:e(t.point)}:t}function i3(t,e){return{x:t.x-e.x,y:t.y-e.y}}function i9({point:t},e){return{point:t,delta:i3(t,i6(e)),offset:i3(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,r=i6(t);for(;i>=0&&(s=t[i],!(r.timestamp-s.timestamp>
1t9(.1)));)i--;if(!s)return{x:0,y:0};let n=(r.timestamp-s.timestamp)/1e3;if(0===n)return{x:0,y:0};let o={x:(r.x-s.x)/n,y:(r.y-s.y)/n};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function i6(t){return t[t.length-1]}function i4(t){return t.max-t.min}function i7(t,e=0,i=.01){return Math.abs(t-e)<=i}function i8(t,e,i,s=.5){t.origin=s,t.originPoint=id(e.min,e.max,t.origin),t.scale=i4(i)/i4(e),(i7(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=id(i.min,i.max,t.origin)-t.originPoint,(i7(t.translate)||isNaN(t.translate))&&(t.translate=0)}function st(t,e,i,s){i8(t.x,e.x,i.x,s?s.originX:void 0),i8(t.y,e.y,i.y,s?s.originY:void 0)}function se(t,e,i){t.min=i.min+e.min,t.max=t.min+i4(e)}function si(t,e,i){t.min=e.min-i.min,t.max=t.min+i4(e)}function ss(t,e,i){si(t.x,e.x,i.x),si(t.y,e.y,i.y)}function sr(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function sn(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function so(t,e,i){return{min:sa(t,e),max:sa(t,i)}}function sa(t,e){return"number"==typeof t?t:t[e]||0}let sl=()=>({translate:0,scale:1,origin:0,originPoint:0}),sh=()=>({x:sl(),y:sl()}),su=()=>({min:0,max:0}),sd=()=>({x:su(),y:su()});function sc(t){return[t("x"),t("y")]}function sp({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function sm(t){return void 0===t||1===t}function sf({scale:t,scaleX:e,scaleY:i}){return!sm(t)||!sm(e)||!sm(i)}function sv(t){return sf(t)||sg(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function sg(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function sy(t,e,i,s,r){return void 0!==r&&(t=s+r*(t-s)),s+i*(t-s)+e}function sx(t,e=0,i=1,s,r){t.min=sy(t.min,e,i,s,r),t.max=sy(t.max,e,i,s,r)}function sP(t,{x:e,y:i}){sx(t.x,e.translate,e.scale,e.originPoint),sx(t.y,i.translate,i.scale,i.originPoint)}function sb(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function sw(t,e){t.min=t.min+e,t.max=t.max+e}function sT(t,e,[i,s,r]){let n=void 0!==e[r]?e[r]:.5,o=id(t.min,t.max,n);sx(t,e[i],e[s],o,e.scale)}let sA=["x","scaleX","originX"],sS=["y","scaleY","originY"];function sV(t,e){sT(t.x,e,sA),sT(t.y,e,sS)}function sE(t,e){return sp(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}let sM=({current:t})=>t?t.ownerDocument.defaultView:null,sC=new WeakMap;class sR{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=sd(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let s=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tF(t,"page").point)},r=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=t$(i),!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),sc(t=>{let e=this.getAxisMotionValue(t).get()||0;if(te.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=i4(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&r(t,e);let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},n=(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:n}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),n&&n(t,e)},o=(t,e)=>this.stop(t,e),a=()=>sc(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new i5(t,{onSessionStart:s,onStart:r,onMove:n,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:sM(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:r}=this.getProps();r&&r(t,e)}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!sD(t,s,this.currentDirection))return;let r=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?id(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?id(i,t,s.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),r.set(n)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,r=this.constraints;e&&f(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:r}){return{x:sr(t.x,i,r),y:sr(t.y,e,s)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:so(t,"left","right"),y:so(t,"top","bottom")}}(i),r!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&sc(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(s.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!f(e))return!1;let s=e.current;(0,ea.V)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;
1let n=function(t,e,i){let s=sE(t,i),{scroll:r}=e;return r&&(sw(s.x,r.offset.x),sw(s.y,r.offset.y)),s}(s,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:sn(t.x,n.x),y:sn(t.y,n.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=sp(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:n,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(sc(o=>{if(!sD(o,e,this.currentDirection))return;let l=a&&a[o]||{};n&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start(iI(t,i,0,e,this.visualElement))}stopAnimation(){sc(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){sc(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){sc(e=>{let{drag:i}=this.getProps();if(!sD(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[e];r.set(t[e]-id(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!f(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};sc(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=i4(t),r=i4(e);return r>s?i=iu(e.min,e.max-s,t.min):s>r&&(i=iu(t.min,t.max-r,e.min)),H(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),sc(e=>{if(!sD(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:n}=this.constraints[e];i.set(id(r,n,s[e]))})}addListeners(){if(!this.visualElement.current)return;sC.set(this.visualElement,this);let t=tj(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();f(t)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),e();let r=tk(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(sc(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),s(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:n=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:n,dragMomentum:o}}}function sD(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class sk extends tG{constructor(t){super(t),this.removeGroupControls=tX.l,this.removeListeners=tX.l,this.controls=new sR(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tX.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let sL=t=>(e,i)=>{t&&t(e,i)};class sF extends tG{constructor(){super(...arguments),this.removePointerDownListener=tX.l}onPointerDown(t){this.session=new i5(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sM(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:sL(t),onStart:sL(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&s(t,e)}}}mount(){this.removePointerDownListener=tj(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let sj={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function sB(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let sO={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!ti.test(t))return t;else t=parseFloat(t);let i=sB(t,e.target.x),s=sB(t,e.target.y);return`${i}% ${s}%`}};class sI extends n.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=t;Object.assign(D,sW),r&&(e.group&&e.group.add(r),i&&i.register&&s&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),sj.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:r}=this.props,n=i.projection;return n&&(n.isPresent=r,s||t.layoutDependency!==e||void 0===e?n.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?n.promote():n.relegate()||tC.Gt.postRender(()=>{let t=n.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),p.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sU(t){let[e,i]=function(){let t=(0,n.useContext)(l.t);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:s}=t,r=(0,n.useId)();return(0,n.useEffect)(()=>s(r),[]),!e&&i?[!1,()=>i&&i(r)]:[!0]}(),s=(0,n.useContext)(V.L);return(0,r.jsx)(sI,{...t,layoutGroup:s,switchLayoutGroup:(0,n.useContext)(E),isPresent:e,safeToRemove:i})}let sW={borderRadius:{...sO,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sO,borderTopRightRadius:sO,borderBottomLeftRadius:sO,borderBottomRightRadius:sO,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=eW.parse(t);if(s.length>5)return t;let r=eW.createTransformer(t),n=+("number"!=typeof s[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+n]/=o,s[1+n]/=a;let l=id(o,a,.5);return"number"==typeof s[2+n]&&(s[2+n]/=l),"number"==typeof s[3+n]&&(s[3+n]/=l),r(s)}}},s$=["TopLeft","TopRight","BottomLeft","BottomRight"],sN=s$.length,sG=t=>"string"==typeof t?parseFloat(t):t,sH=t=>"number"==typeof t||ti.test(t);function sz(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sY=sX(0,.5,ii),sK=sX(.5,.95,tX.l);function sX(t,e,i){return s=>s<t?0:s>e?1:i(iu(t,e,s))}function sq(t,e){t.min=e.min,t.max=e.max}function s_(t,e){sq(t.x,e.x),sq(t.y,e.y)}function sZ(t,e,i,s,r){return t-=e,t=s+1/i*(t-s),void 0!==r&&(t=s+1/r*(t-s)),t}function sJ(t,e,[i,s,r],n,o){!function(t,e=0,i=1,s=.5,r,n=t,o=t){if(te.test(e)&&(e=parseFloat(e),e=id(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=id(n.min,n.max,s);t===n&&(a-=e),t.min=sZ(t.min,e,i,a,r),t.max=sZ(t.max,e,i,a,r)}(t,e[i],e[s],e[r],e.scale,n,o)}let sQ=["x","scaleX","originX"],s0=["y","scaleY","originY"];function s1(t,e,i,s){sJ(t.x,e,sQ,i?i.x:void 0,s?s.x:void 0),sJ(t.y,e,s0,i?i.y:void 0,s?s.y:void 0)}function s5(t){return 0===t.translate&&1===t.scale}function s2(t){return s5(t.x)&&s5(t.y)}function s3(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}
1function s9(t){return i4(t.x)/i4(t.y)}class s6{constructor(){this.members=[]}add(t){iW(this.members,t),t.scheduleRender()}remove(t){if(i$(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function s4(t,e,i){let s="",r=t.x.translate/e.x,n=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||n||o)&&(s=`translate3d(${r}px, ${n}px, ${o}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:n,skewX:o,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),r&&(s+=`rotateX(${r}deg) `),n&&(s+=`rotateY(${n}deg) `),o&&(s+=`skewX(${o}deg) `),a&&(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}let s7=(t,e)=>t.depth-e.depth;class s8{constructor(){this.children=[],this.isDirty=!1}add(t){iW(this.children,t),this.isDirty=!0}remove(t){i$(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(s7),this.isDirty=!1,this.children.forEach(t)}}let rt=["","X","Y","Z"],re={visibility:"hidden"},ri=0,rs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function rr(t,e,i,s){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),s&&(s[t]=0))}function rn({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=ri++,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,rs.totalNodes=rs.resolvedTargetDeltas=rs.recalculatedProjection=0,this.nodes.forEach(rl),this.nodes.forEach(rf),this.nodes.forEach(rv),this.nodes.forEach(rh),window.MotionDebug&&window.MotionDebug.record(rs)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new s8)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new iN),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:s,layout:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||s)&&(this.isLayoutDirty=!0),t){let i,s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=en.now(),s=({timestamp:e})=>{let r=e-i;r>=250&&((0,tC.WG)(s),t(r-250))};return tC.Gt.read(s,!0),()=>(0,tC.WG)(s)}(s,250),sj.hasAnimatedSinceResize&&(sj.hasAnimatedSinceResize=!1,this.nodes.forEac
vendor: 6,600 bytes, line 1
1h(rm))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&n&&(s||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||rw,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!s3(this.targetLayout,s)||i,h=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...t8(r,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||rm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,tC.WG)(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(rg),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rd);return}this.isUpdating||this.nodes.forEach(rc),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(rp),this.nodes.forEach(ro),this.nodes.forEach(ra),this.clearAllSnapshots();let t=en.now();tC.uv.delta=H(0,1e3/60,t-tC.uv.timestamp),tC.uv.timestamp=t,tC.uv.isProcessing=!0,tC.Ci.update.process(tC.uv),tC.Ci.preRender.process(tC.uv),tC.Ci.render.process(tC.uv),tC.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,p.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(ru),this.sharedNodes.forEach(ry)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tC.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tC.Gt.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 t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=sd(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:s(this.instance),offset:i(this.instance)})}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!s2(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&&(e||sv(this.latestValues)||n)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),rS((e=s).x),rS(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return sd();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&(sw(e.x,i.offset.x),sw(e.y,i.offset.y)),e}removeElementScroll(t){let e=sd();s_(e,t);for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:r,options:n}=s;if(s!==this.root&&r&&n.layoutScroll){if(r.isRoot){s_(e,t);let{scroll:i}=this.root;i&&(sw(e.x,-i.offset.x),sw(e.y,-i.offset.y))}sw(e.x,r.offset.x),sw(e.y,r.offset.y)}}return e}applyTransform(t,e=!1){let i=sd();s_(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&sV(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),sv(s.latestValues)&&sV(i,s.latestValues)}return sv(this.latestValues)&&sV(i,this.latestValues),i}removeTransform(t){let e=sd();s_(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!sv(i.latestValues))continue;sf(i.latestValues)&&i.updateSnapshot();let s=sd();s_(s,i.measurePageBox()),s1(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return sv(this.latestValues)&&s1(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tC.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,s,r;let n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
1haredProjectionDirty);let o=!!this.resumingFrom||this!==n;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=tC.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=sd(),this.relativeTargetOrigin=sd(),ss(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),s_(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=sd(),this.targetWithTransforms=sd()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,r=this.relativeParent.target,se(i.x,s.x,r.x),se(i.y,s.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):s_(this.target,this.layout.layoutBox),sP(this.target,this.targetDelta)):s_(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=sd(),this.relativeTargetOrigin=sd(),ss(this.relativeTargetOrigin,this.target,t.target),s_(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rs.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||sf(this.parent.latestValues)||sg(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,s=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===tC.uv.timestamp&&(s=!1),s)return;let{layout:r,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||n))return;s_(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,s=!1){let r,n,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){n=(r=i[a]).projectionDelta;let o=r.instance;(!o||!o.style||"contents"!==o.style.display)&&(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&sV(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),n&&(e.x*=n.x.scale,e.y*=n.y.scale,sP(t,n)),s&&sv(r.latestValues)&&sV(t,r.latestValues))}e.x=sb(e.x),e.y=sb(e.y)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=sd());let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=sh(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=sh(),this.projectionDeltaWithTransform=sh());let h=this.projectionTransform;st(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=s4(this.projectionDelta,this.treeScale),(this.projectionTransform!==h||this.treeScale.x!==o||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rs.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,r=s?s.latestValues:{},n={...this.latestValues},o=sh();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=sd(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(rb));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(rx(o.x,t.x,s),rx(o.y,t.y,s),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,p,m,f,v;ss(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,v=s,rP(p.x,m.x,f.x,v),rP(p.y,m.y,f.y,v),i&&(h=this.relativeTarget,c=i,h.x.min===c.x.min&&h.x.max===c.x.max&&h.y.min===c.y.min&&h.y.max===c.y.max)&&(this.isProjectionDirty=!1),i||(i=sd()),s_(i,this.relativeTarget)}
1l&&(this.animationValues=n,function(t,e,i,s,r,n){r?(t.opacity=id(0,void 0!==i.opacity?i.opacity:1,sY(s)),t.opacityExit=id(void 0!==e.opacity?e.opacity:1,0,sK(s))):n&&(t.opacity=id(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let r=0;r<sN;r++){let n=`border${s$[r]}Radius`,o=sz(e,n),a=sz(i,n);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||sH(o)===sH(a)?(t[n]=Math.max(id(sG(o),sG(a),s),0),(te.test(a)||te.test(o))&&(t[n]+="%")):t[n]=a)}(e.rotate||i.rotate)&&(t.rotate=id(e.rotate||0,i.rotate||0,s))}(n,r,this.latestValues,s,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,tC.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tC.Gt.update(()=>{sj.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let s=j(0)?0:iz(t);return s.start(iI("",s,1e3,i)),s.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.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);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:r}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&rV(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||sd();let e=i4(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=i4(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}s_(e,i),sV(e,r),st(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new s6),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&rr("z",t,s,this.animationValues);for(let e=0;e<rt.length;e++)rr(`rotate${rt[e]}`,t,s,this.animationValues),rr(`skew${rt[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return re;let s={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=tE(null==t?void 0:t.pointerEvents)||"",s.transform=r?r(this.latestValues,""):"none",s;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tE(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!sv(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=n.animationValues||n.latestValues;this.applyTransformsToTarget(),s.transform=s4(this.projectionDeltaWithTransform,this.treeScale,o),r&&(s.transform=r(o,s.transform));let{x:a,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,n.animationValues?s.opacity=n===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:s.opacity=n===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,D){if(void 0===o[t])continue;let{correct:e,applyTo:i}=D[t],r="none"===s.transform?o[t]:e(o[t],n);if(i){let t=i.length;for(let e=0;e<t;e++)s[i[e]]=r}else s[t]=r}
1return this.options.layoutId&&(s.pointerEvents=n===this?tE(null==t?void 0:t.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(rd),this.root.sharedNodes.clear()}}}function ro(t){t.updateLayout()}function ra(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:s}=t.layout,{animationType:r}=t.options,n=i.source!==t.layout.source;"size"===r?sc(t=>{let s=n?i.measuredBox[t]:i.layoutBox[t],r=i4(s);s.min=e[t].min,s.max=s.min+r}):rV(r,i.layoutBox,e)&&sc(s=>{let r=n?i.measuredBox[s]:i.layoutBox[s],o=i4(e[s]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=sh();st(o,e,i.layoutBox);let a=sh();n?st(a,t.applyTransform(s,!0),i.measuredBox):st(a,e,i.layoutBox);let l=!s2(o),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:n}=s;if(r&&n){let o=sd();ss(o,i.layoutBox,r.layoutBox);let a=sd();ss(a,e,n.layoutBox),s3(o,a)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rl(t){rs.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ru(t){t.clearSnapshot()}function rd(t){t.clearMeasurements()}function rc(t){t.isLayoutDirty=!1}function rp(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rm(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rf(t){t.resolveTargetDelta()}function rv(t){t.calcProjection()}function rg(t){t.resetSkewAndRotation()}function ry(t){t.removeLeadSnapshot()}function rx(t,e,i){t.translate=id(e.translate,0,i),t.scale=id(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rP(t,e,i,s){t.min=id(e.min,i.min,s),t.max=id(e.max,i.max,s)}function rb(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rw={duration:.45,ease:[.4,0,.1,1]},rT=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rA=rT("applewebkit/")&&!rT("chrome/")?Math.round:tX.l;function rS(t){t.min=rA(t.min),t.max=rA(t.max)}function rV(t,e,i){return"position"===t||"preserve-aspect"===t&&!i7(s9(e),s9(i),.2)}let rE=rn({attachResizeListener:(t,e)=>tk(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rM={current:void 0},rC=rn({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rM.current){let t=new rE({});t.mount(window),t.setOptions({layoutScroll:!0}),rM.current=t}return rM.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),rR={current:null},rD={current:!1},rk=new WeakMap,rL=[...ey,ek,eW],rF=Object.keys(A),rj=rF.length,rB=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rO=x.length;class rI{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:r,visualState:n},o={}){this.resolveKeyframes=(t,e,i,s)=>new this.KeyframeResolver(t,e,i,s,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eS,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=()=>tC.Gt.render(this.render,!1,!0);let{latestValues:a,renderState:l}=n;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=P(e),this.isVariantNode=b(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...u}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in u){let e=u[t];void 0!==a[t]&&j(e)&&(e.set(a[t],!1),iU(h)&&h.add(t))}}mount(t){this.current=t,rk.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.forEac
1h((t,e)=>this.bindToMotionValue(e,t)),rD.current||function(){if(rD.current=!0,S.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rR.current=t.matches;t.addListener(e),e()}else rR.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rR.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;for(let t in rk.delete(this.current),this.projection&&this.projection.unmount(),(0,tC.WG)(this.notifyUpdate),(0,tC.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let e in this.features)null==(t=this.features[e])||t.unmount();this.current=null}bindToMotionValue(t,e){let i=L.has(t),s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tC.Gt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{s(),r(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},i,s,r){let n,o;for(let t=0;t<rj;t++){let i=rF[t],{isEnabled:s,Feature:r,ProjectionNode:a,MeasureLayout:l}=A[i];a&&(n=a),s(e)&&(!this.features[i]&&r&&(this.features[i]=new r(this)),l&&(o=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&n){this.projection=new n(this.latestValues,function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(this.parent));let{layoutId:t,layout:i,drag:s,dragConstraints:o,layoutScroll:a,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:i,alwaysMeasureLayout:!!s||o&&f(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}return o}updateFeatures(){for(let t in this.features){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):sd()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<rB.length;e++){let i=rB[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(t,e,i){let{willChange:s}=e;for(let r in e){let n=e[r],o=i[r];if(j(n))t.addValue(r,n),iU(s)&&s.add(r);else if(j(o))t.addValue(r,iz(n,{owner:t})),iU(s)&&s.remove(r);else if(o!==n)if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(r);t.addValue(r,iz(void 0!==e?e:n,{owner:t}))}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<rO;t++){let i=x[t],s=this.props[i];(v(s)||!1===s)&&(e[i]=s)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=iz(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let s=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=s){if("string"==typeof s&&(el(s)||eo(s)))s=parseFloat(s);else{let i;i=s,!rL.find(eg(i))&&eW.test(e)&&(s=eK(t,e))}this.setBaseTarget(t,j(s)?s.get():s)}return j(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:s}=this.props;if("string"==typeof s||"object"==typeof s){let r=tT(this.props,s,null==(e=this.presenceContext)?void 0:e.custom);r&&(i=r[t])}if(s&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||j(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new iN),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class rU extends rI{constructor(){super(...arguments),this.KeyframeResolver=eX}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}}class rW extends rU{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(L.has(e)){let t=eY(e);return t&&t.default||0}{let i=window.getComputedStyle(t),s=(U(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return sE(t,e)}build(t,e,i,s){tl(t,e,i,s.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return tb(t,e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;j(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,s){ty(t,e,i,s)}}class r$ extends rU{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(L.has(e)){let t=eY(e);return t&&t.default||0}return e=tx.has(e)?e:d(e),t.getAttribute(e)}measureInstanceViewportBox(){return sd()}scrapeMotionValuesFromProps(t,e,i){return tw(t,e,i)}build(t,e,i,s){tf(t,e,i,this.isSVGTag,s.transformTemplate)}renderInstance(t,e,i,s){tP(t,e,i,s)}mount(t){this.isSVGTag=tg(t.tagName),super.mount(t)}}let rN=(t,e)=>R(t)?new r$(e,{enableHardwareAcceleration:!1}):new rW(e,{allowProjection:t!==n.Fragment,enableHardwareAcceleration:!0}),rG={animation:{Feature:iJ},exit:{Feature:i0},inView:{Feature:t5},tap:{Feature:t_},focus:{Feature:tY},hover:{Feature:tz},pan:{Feature:sF},drag:{Feature:sk,ProjectionNode:rC,MeasureLayout:sU},layout:{ProjectionNode:rC,MeasureLayout:sU}},rH=function(t){function e(i,s={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:s,Component:d}){t&&function(t){for(let e in t)A[e]={...A[e],...t[e]}}(t);let m=(0,n.forwardRef)(function(m,g){var y;let x,b={...(0,n.useContext)(o.Q),...m,layoutId:function({layoutId:t}){let e=(0,n.useContext)(V.L).id;return e&&void 0!==t?e+"-"+t:t}(m)},{isStatic:T}=b,A=function(t){let{initial:e,animate:i}=function(t,e){if(P(t)){let{initial:e,animate:i}=t;return{initial:!1===e||v(e)?e:void 0,animate:v(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,n.useContext)(a));return(0,n.useMemo)(()=>({initial:e,animate:i}),[w(e),w(i)])}(m),M=s(m,T);if(!T&&S.B){A.visualElement=function(t,e,i,s){let{visualElement:r}=(0,n.useContext)(a),d=(0,n.useContext)(u),m=(0,n.useContext)(l.t),f=(0,n.useContext)(o.Q).reducedMotion,v=(0,n.useRef)();s=s||d.renderer,!v.current&&s&&(v.current=s(t,{visualState:e,parent:r,props:i,presenceContext:m,blockInitialAnimation:!!m&&!1===m.initial,reducedMotionConfig:f}));let g=v.current;(0,n.useInsertionEffect)(()=>{g&&g.update(i,m)});let y=(0,n.useRef)(!!(i[c]&&!window.HandoffComplete));return(0,h.E)(()=>{g&&(p.postRender(g.render),y.current&&g.animationState&&g.animationState.animateChanges())}),(0,n.useEffect)(()=>{g&&(g.updateFeatures(),!y.current&&g.animationState&&g.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),g}(d,M,b,e);let i=(0,n.useContext)(E),s=(0,n.useContext)(u).strict;A.visualElement&&(x=A.visualElement.loadFeatures(b,s,t,i))}return(0,r.jsxs)(a.Provider,{value:A,children:[x&&A.visualElement?(0,r.jsx)(x,{visualElement:A.visualElement,...b}):null,i(d,m,(y=A.visualElement,(0,n.useCallback)(t=>{t&&M.mount&&M.mount(t),y&&(t?y.mount(t):y.unmount()),g&&("function"==typeof g?g(t):f(g)&&(g.current=t))},[y])),M,T,A.visualElement)]})});return m[M]=d,m}(t(i,s))}if("undefined"==typeof Proxy)return e;let i=new Map;return new Proxy(e,{get:(t,s)=>(i.has(s)||i.set(s,e(s)),i.get(s))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},i,s){return{...R(t)?tR:tD,preloadedFeatures:i,useRender:function(t=!1){return(e,i,s,{latestValues:r},o)=>{let a=(R(e)?function(t,e,i,s){let r=(0,n.useMemo)(()=>{let i=tv();return tf(i,e,{enableHardwareAcceleration:!1},tg(s),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};tu(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e,i){let s={},r=function(t,e,i){let s=t.style||{},r={};return tu(r,s,t),Object.assign(r,function({transformTemplate:t},e,i){return(0,n.useMemo)(()=>{let s=th();return tl(s,e,{enableHardwareAcceleration:!i},t),Object.assign({},s.vars,s.style)},[e])}(t,e,i)),r}(t,e,i);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=r,s})(i,r,o,e),l=(0,td.J)(i,"string"==typeof e,t),h=e!==n.Fragment?{...l,...a,ref:s}:{},{children:u}=i,d=(0,n.useMemo)(()=>j(u)?u.get():u,[u]);return(0,n.createElement)(e,{...h,children:d})}}(e),createVisualElement:s,Component:t}})(t,e,rG,rN))},953127:(t,e,i)=>{i.d(e,{Q:()=>s});
1let s=(0,i(212115).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},959132:(t,e,i)=>{i.d(e,{J:()=>a,D:()=>o});let s=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 r(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||s.has(t)}let n=t=>!r(t);function o(t){t&&(n=e=>e.startsWith("on")?!r(e):t(e))}try{o(require("@emotion/is-prop-valid").default)}catch(t){}function a(t,e,i){let s={};for(let o in t)("values"!==o||"object"!=typeof t.values)&&(n(o)||!0===i&&r(o)||!e&&!r(o)||t.draggable&&o.startsWith("onDrag"))&&(s[o]=t[o]);return s}},986553:(t,e,i)=>{i.d(e,{E:()=>r});var s=i(212115);let r=i(433577).B?s.useLayoutEffect:s.useEffect}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.