PageSourceSearch

https://fortherestofus.app/_next/static/chunks/7833-423ccdda3328a1f6.js

js fortherestofus.app collected 2026-10-02 01:13:45 UTC 70,895 bytes, 9 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7833],{642:(t,e,i)=>{i.d(e,{N:()=>x});var n=i(5155),s=i(2115),o=i(9551),r=i(8819),a=i(5239),l=i(5131),h=i(8757),u=i(4866);function c(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class d extends s.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if((0,h.s)(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,i=(0,h.s)(t)&&t.offsetWidth||0,n=(0,h.s)(t)&&t.offsetHeight||0,s=getComputedStyle(e),o=this.props.sizeRef.current;o.height=parseFloat(s.height),o.width=parseFloat(s.width),o.top=e.offsetTop,o.left=e.offsetLeft,o.right=i-o.width-o.left,o.bottom=n-o.height-o.top,o.direction=s.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function p({children:t,isPresent:e,anchorX:i,anchorY:o,root:r,pop:a}){let l=(0,s.useId)(),h=(0,s.useRef)(null),m=(0,s.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:f}=(0,s.useContext)(u.Q),v=function(...t){return s.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=c(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():c(t[e],null)}}}}(...t),t)}(h,t.props?.ref??t?.ref);return(0,s.useInsertionEffect)(()=>{let{width:t,height:n,top:s,left:u,right:c,bottom:d,direction:p}=m.current;if(e||!1===a||!h.current||!t||!n)return;let v="rtl"===p,y="left"===i?v?`right: ${c}`:`left: ${u}`:v?`left: ${u}`:`right: ${c}`,g="bottom"===o?`bottom: ${d}`:`top: ${s}`;h.current.dataset.motionPopId=l;let x=document.createElement("style");f&&(x.nonce=f);let P=r??document.head;return P.appendChild(x),x.sheet&&x.sheet.insertRule(`
2          [data-motion-pop-id="${l}"] {
3            position: absolute !important;
4            width: ${t}px !important;
5            height: ${n}px !important;
6            ${y}px !important;
7            ${g}px !important;
8          }
9        `),()=>{h.current?.removeAttribute("data-motion-pop-id"),P.contains(x)&&P.removeChild(x)}},[e]),(0,n.jsx)(d,{isPresent:e,childRef:h,sizeRef:m,pop:a,children:!1===a?t:s.cloneElement(t,{ref:v})})}let m=({children:t,initial:e,isPresent:i,onExitComplete:o,custom:a,presenceAffectsLayout:h,mode:u,anchorX:c,anchorY:d,root:m})=>{let v=(0,r.M)(f),y=(0,s.useId)(),g=!0,x=(0,s.useMemo)(()=>(g=!1,{id:y,initial:e,isPresent:i,custom:a,onExitComplete:t=>
9{for(let e of(v.set(t,!0),v.values()))if(!e)return;o&&o()},register:t=>(v.set(t,!1),()=>v.delete(t))}),[i,v,o]);return h&&g&&(x={...x}),(0,s.useMemo)(()=>{v.forEach((t,e)=>v.set(e,!1))},[i]),s.useEffect(()=>{i||v.size||!o||o()},[i]),t=(0,n.jsx)(p,{pop:"popLayout"===u,isPresent:i,anchorX:c,anchorY:d,root:m,children:t}),(0,n.jsx)(l.t.Provider,{value:x,children:t})};function f(){return new Map}var v=i(9196);let y=t=>t.key||"";function g(t){let e=[];return s.Children.forEach(t,t=>{(0,s.isValidElement)(t)&&e.push(t)}),e}let x=({children:t,custom:e,initial:i=!0,onExitComplete:l,presenceAffectsLayout:h=!0,mode:u="sync",propagate:c=!1,anchorX:d="left",anchorY:p="top",root:f})=>{let[x,P]=(0,v.xQ)(c),w=(0,s.useMemo)(()=>g(t),[t]),E=c&&!x?[]:w.map(y),S=(0,s.useRef)(!0),T=(0,s.useRef)(w),A=(0,r.M)(()=>new Map),D=(0,s.useRef)(new Set),[L,C]=(0,s.useState)(w),[R,b]=(0,s.useState)(w);(0,a.E)(()=>{S.current=!1,T.current=w;for(let t=0;t<R.length;t++){let e=y(R[t]);E.includes(e)?(A.delete(e),D.current.delete(e)):!0!==A.get(e)&&A.set(e,!1)}},[R,E.length,E.join("-")]);let k=[];if(w!==L){let t=[...w];for(let e=0;e<R.length;e++){let i=R[e],n=y(i);E.includes(n)||(t.splice(e,0,i),k.push(i))}return"wait"===u&&k.length&&(t=k),b(g(t)),C(w),null}let{forceRender:j}=(0,s.useContext)(o.L);return(0,n.jsx)(n.Fragment,{children:R.map(t=>{let s=y(t),o=(!c||!!x)&&(w===R||E.includes(s));return(0,n.jsx)(m,{isPresent:o,initial:(!S.current||!!i)&&void 0,custom:e,presenceAffectsLayout:h,mode:u,root:f,onExitComplete:o?void 0:()=>{if(D.current.has(s)||!A.has(s))return;D.current.add(s),A.set(s,!0);let t=!0;A.forEach(e=>{e||(t=!1)}),t&&(j?.(),b(T.current),c&&P?.(),l&&l())},anchorX:d,anchorY:p,children:t},s)})})}},1041:(t,e,i)=>{let n,s;i.d(e,{P:()=>iU});var o=i(5152),r=i(2038),a=i(2115);let l=["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 h(t){if("string"!=typeof t||t.includes("-"));else if(l.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var u=i(5155),c=i(9551);let d=(0,a.createContext)({strict:!1});var p=i(4866);let m=(0,a.createContext)({});var f=i(2235),v=i(3290);function y(t){return Array.isArray(t)?t.join(" "):t}var g=i(1469),x=i(9274),P=i(3200);let w=()=>({style:{},transform:{},transformOrigin:{},vars:{}});
9function E(t,e,i){for(let n in e)(0,g.S)(e[n])||(0,x.zK)(n,i)||(t[n]=e[n])}var S=i(4425),T=i(3148);let A=()=>({...w(),attrs:{}});var D=i(8721),L=i(3891);function C(t){return(0,g.S)(t)?t.get():t}var R=i(6087),b=i(6792),k=i(5131),j=i(8819);let V=t=>(e,i)=>{let n=(0,a.useContext)(m),s=(0,a.useContext)(k.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},o=n(t,{});for(let t in o)s[t]=C(o[t]);let{initial:r,animate:a}=t,l=(0,f.e)(t),h=(0,f.O)(t);e&&h&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,c=(u=u||!1===r)?a:r;if(c&&"boolean"!=typeof c&&!(0,R.N)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=(0,b.a)(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()}})(t,e,n,s);return i?o():(0,j.M)(o)},M=V({scrapeMotionValuesFromProps:L.x,createRenderState:w}),B=V({scrapeMotionValuesFromProps:i(2687).x,createRenderState:A});var U=i(4666);let I={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"]},O=!1;function F(){return!function(){if(O)return;let t={};for(let e in I)t[e]={isEnabled:t=>I[e].some(e=>!!t[e])};(0,U.lr)(t),O=!0}(),(0,U.vK)()}let W=Symbol.for("motionComponentSymbol");var G=i(3261);let H=(0,a.createContext)({});function z(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var N=i(5239);function $(t,{forwardMotionProps:e=!1,type:i}={},n,s){n&&function(t){let e=F();for(let i in t)e[i]={...e[i],...t[i]};(0,U.lr)(e)}(n);let o=i?"svg"===i:h(t),r=o?B:M;function l(i,n){var l;let x,L,C,R={...(0,a.useContext)(p.Q),...i,layoutId:function({layoutId:t}){let e=(0,a.useContext)(c.L).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:b}=R,j=function(t){let{initial:e,animate:i}=function(t,e){if((0,f.e)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,v.w)(e)?e:void 0,animate:(0,v.w)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,a.useContext)(m));return(0,a.useMemo)(()=>({initial:e,animate:i}),[y(e),y(i)])}(i),V=r(i,b);if(!b&&"u">typeof window){(0,a.useContext)(d).strict;let e=function(t){let{drag:e,layout:i}=F();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(R);x=e.MeasureLayout,j.visualElement=function(t,e,i,n,s,o){let{visualElement:r}=(0,a.useContext)(m),l=(0,a.useContext)(d),h=(0,a.useContext)(k.t),u=(0,a.useContext)(p.Q),c=u.reducedMotion,f=u.skipAnimations,v=(0,a.useRef)(null),y=(0,a.useRef)(!1);n=n||l.renderer,!v.current&&n&&(v.current=n(t,{visualState:e,parent:r,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:c,skipAnimations:f,isSVG:o}),y.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));let g=v.current,x=(0,a.useContext)(H);g&&!g.projection&&s&&("html"===g.type||"svg"===g.type)&&function(t,e,i,n){let{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutAnchor:u,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!r||a&&z(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:h,layoutAnchor:u})}(v.current,i,s,x);let P=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{g&&P.current&&g.update(i,h)});let w=i[G.n],E=(0,a.useRef)(!!w&&"u">typeof window&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return(0,N.E)(()=>{y.current=!0,g&&(P.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),E.current&&g.animationState&&g.animationState.animateChanges())}),(0,a.useEffect)(()=>{g&&(!E.current&&g.animationState&&g.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),E.current=!1),g.enteringChildren=void 0)}),g}(t,V,R,s,e.ProjectionNode,o)}return(0,u.jsxs)(m.Provider,{value:j,children:[x&&j.visualElement?(0,u.jsx)(x,{visualElement:j.visualElement,...R}
9):null,function(t,e,i,{latestValues:n},s,o=!1,r){let l=(r??h(t)?function(t,e,i,n){let s=(0,a.useMemo)(()=>{let i=A();return(0,S.B)(i,e,(0,T.n)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};E(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i,n,s={},o=(i=t.style||{},E(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,a.useMemo)(()=>{let i=w();return(0,P.O)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=o,s})(e,n,s,t),u=(0,D.J)(e,"string"==typeof t,o),c=t!==a.Fragment?{...u,...l,ref:i}:{},{children:d}=e,p=(0,a.useMemo)(()=>(0,g.S)(d)?d.get():d,[d]);return(0,a.createElement)(t,{...c,children:p})}(t,i,(l=j.visualElement,L=(0,a.useRef)(n),(0,a.useInsertionEffect)(()=>{L.current=n}),C=(0,a.useRef)(null),(0,a.useCallback)(t=>{t&&V.onMount?.(t),l&&(t?l.mount(t):l.unmount());let e=L.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(C.current=i)}else C.current?(C.current(),C.current=null):e(t);else e&&(e.current=t)},[l])),V,b,e,o)]})}l.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let x=(0,a.forwardRef)(l);return x[W]=t,x}class K{constructor(t){this.isMounted=!1,this.node=t}update(){}}var Q=i(3140),X=i(4514);function q(t,e,i,n=0,s=1){let o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),r=t.size,a=(r-1)*n;return"function"==typeof i?i(o,r):1===s?o*n:a-o*n}function Y(t,e,i={}){let n=(0,Q.K)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let o=n?()=>Promise.all((0,X.$)(t,n,i)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;return function(t,e,i=0,n=0,s=0,o=1,r){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(Y(l,e,{...r,delay:i+("function"==typeof n?0:n)+q(t.variantChildren,l,n,s,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,o,r,a,i)}:()=>Promise.resolve(),{when:a}=s;if(!a)return Promise.all([o(),r(i.delay)]);{let[t,e]="beforeChildren"===a?[o,r]:[r,o];return t().then(()=>e())}}var _=i(1129);let J=_._.length;var Z=i(1909);function tt(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let te=[..._.U].reverse(),ti=_.U.length;function tn(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ts(){return{animate:tn(!0),whileInView:tn(),whileHover:tn(),whileTap:tn(),whileDrag:tn(),whileFocus:tn(),exit:tn()}}class to extends K{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 n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>Y(t,e,i)));else if("string"==typeof e)n=Y(t,e,i);else{let s="function"==typeof e?(0,Q.K)(t,e,i.custom):e;n=Promise.all((0,X.$)(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=ts(),n=!0,s=!1,o=e=>(i,n)=>{let s=(0,Q.K)(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function r(r){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<J;t++){let n=_._[t],s=e.props[n];((0,v.w)(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},h=[],u=new Set,c={},d=1/0;for(let e=0;e<ti;e++){var p,m;let f=te[e],y=i[f],g=void 0!==a[f]?a[f]:l[f],x=(0,v.w)(g),P=f===r?y.isActive:null;!1===P&&(d=e);let w=g===l[f]&&g!==a[f]&&x;if(w&&(n||s)&&t.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...c},!y.isActive&&null===P||!g&&!y.prevProp||(0,R.N)(g)||"boolean"==typeof g)continue;if("exit"===f&&y.isActive&&!0!==P){y.prevResolvedValues&&(c={...c,...y.prevResolvedValues});continue}let E=(p=y.prevProp,"string"==typeof(m=g)?m!==p:!!Array.isArray(m)&&!tt(m,p)),S=E||f===r&&y.isActive&&!w&&x||e>d&&x,T=!1,A=Array.isArray(g)?g:[g],D=A.reduce(o(f),{});!1===P&&(D={});let{prevResolvedValues:L={}}=y,C={...L,...D},b=e=>{S=!0,u.has(e)&&(T=!0,u.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);
9i&&(i.liveStyle=!1)};for(let t in C){let e=D[t],i=L[t];if(!c.hasOwnProperty(t))((0,Z.p)(e)&&(0,Z.p)(i)?!tt(e,i)||E:e!==i)?null!=e?b(t):u.add(t):void 0!==e&&u.has(t)?b(t):y.protectedKeys[t]=!0}y.prevProp=g,y.prevResolvedValues=D,y.isActive&&(c={...c,...D}),(n||s)&&t.blockInitialAnimation&&(S=!1);let k=w&&E,j=!k||T;S&&j&&h.push(...A.map(e=>{let i={type:f};if("string"==typeof e&&(n||s)&&!k&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=(0,Q.K)(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=q(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=(0,Q.K)(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let f=!!h.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,s=!1,f?e(h):Promise.resolve()}return{animateChanges:r,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=r(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=ts(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,R.N)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let tr=0;class ta extends K{constructor(){super(...arguments),this.id=tr++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=(0,Q.K)(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
9e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var tl=i(4406),th=i(4287);let tu={x:!1,y:!1};function tc(t){return[t("x"),t("y")]}var td=i(1048),tp=i(6260);function tm(t){return t.max-t.min}function tf(t,e,i,n=.5){t.origin=n,t.originPoint=(0,tp.k)(e.min,e.max,t.origin),t.scale=tm(i)/tm(e),t.translate=(0,tp.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function tv(t,e,i,n){tf(t.x,e.x,i.x,n?n.originX:void 0),tf(t.y,e.y,i.y,n?n.originY:void 0)}function ty(t,e,i,n=0){t.min=(n?(0,tp.k)(i.min,i.max,n):i.min)+e.min,t.max=t.min+tm(e)}function tg(t,e,i,n=0){let s=n?(0,tp.k)(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+tm(e)}function tx(t,e,i,n){tg(t.x,e.x,i.x,n?.x),tg(t.y,e.y,i.y,n?.y)}var tP=i(314),tw=i(1638),tE=i(3560),tS=i(7669),tT=i(5788);let tA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),tD=new Set(["INPUT","SELECT","TEXTAREA"]);function tL(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}var tC=i(9028),tR=i(8392);let tb=new WeakMap,tk=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:(0,tC.x)(n)&&"getBBox"in n?n.getBBox()[e]:n[i],tj=tk("inline","width","offsetWidth"),tV=tk("block","height","offsetHeight");function tM({target:t,borderBoxSize:e}){tb.get(t)?.forEach(i=>{i(t,{get width(){return tj(t,e)},get height(){return tV(t,e)}})})}function tB(t){t.forEach(tM)}let tU=new Set;function tI(t,e){let i;return"function"==typeof t?(tU.add(t),s||(s=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};tU.forEach(e=>e(t))},window.addEventListener("resize",s)),()=>{tU.delete(t),tU.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!n&&"u">typeof ResizeObserver&&(n=new ResizeObserver(tB)),(i=(0,tR.K)(t)).forEach(t=>{let i=tb.get(t);i||(i=new Set,tb.set(t,i)),i.add(e),n?.observe(t)}),()=>{i.forEach(t=>{let i=tb.get(t);i?.delete(e),i?.size||n?.unobserve(t)})})}var tO=i(5556);let tF=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tW(t){return{point:{x:t.pageX,y:t.pageY}}}function tG(t,e,i,n){return tL(t,e,t=>tF(t)&&i(t,tW(t)),n)}let tH=({current:t})=>t?t.ownerDocument.defaultView:null;var tz=i(4017),tN=i(8621);let t$=(t,e)=>Math.abs(t-e),tK=new Set(["auto","scroll"]);class tQ{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3,element:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=tX(this.lastRawMoveEventInfo,this.transformPagePoint));let i=tY(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(t$(t.x,e.x)**2+t$(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:o}=i,{timestamp:r}=tP.uv;this.history.push({...o,timestamp:r});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=tX(e,this.transformPagePoint),tP.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=tY("pointercancel"===t.type?this.lastMoveEventInfo:tX(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),n&&n(t,o)},!tF(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=n||window;const a=tX(tW(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=tP.uv;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,tY(a,this.history)),this.removeListeners=(0,tz.F)(tG(this.contextWindow,"pointermove",this.handlePointerMove),tG(this.contextWindow,"pointerup",this.handlePointerUp),tG(this.contextWindow,"pointercancel",this.handlePointerUp)),r&&this.startScrollTracking(r)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(tK.has(t.overflowX)||tK.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),tP.Gt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,tP.WG)(this.updatePoint)}}function tX(t,e){return e?{point:e(t.point)}:t}function tq(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tY({point:t},e){return{point:t,delta:tq(t,t_(e)),offset:tq(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=t_(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>(0,tN.f)(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>2*(0,tN.f)(.1)&&(i=t[1]);let s=(0,tN.X)(n.timestamp-i.timestamp);if(0===s)return{x:0,y:0};let o={x:(n.x-i.x)/s,y:(n.y-i.y)/s}
9;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e)}}function t_(t){return t[t.length-1]}var tJ=i(8844),tZ=i(4712);function t0(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 t1(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function t5(t,e,i){return{min:t2(t,e),max:t2(t,i)}}function t2(t,e){return"number"==typeof t?t:t[e]||0}let t8=new WeakMap;class t3{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,th.ge)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let s=t=>{e&&this.snapToCursor(tW(t).point),this.stopAnimation()},o=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(tu[t])return null;else return tu[t]=!0,()=>{tu[t]=!1};return tu.x||tu.y?null:(tu.x=tu.y=!0,()=>{tu.x=tu.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tc(t=>{let e=this.getAxisMotionValue(t).get()||0;if(td.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=tm(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&tP.Gt.update(()=>s(t,e),!1,!0),(0,tw.g)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},r=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:o}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:r}=e;if(n&&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}(r),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&tP.Gt.update(()=>o(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new tQ(t,{onSessionStart:s,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:tH(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:o}=n;this.startAnimation(o);let{onDragEnd:r}=this.getProps();r&&tP.Gt.postRender(()=>r(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!t4(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,tp.k)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,tp.k)(i,t,n.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&z(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:t0(t.x,i,s),y:t0(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:t5(t,"left","right"),y:t5(t,"top","bottom")}}(e),n!==this.constraints&&!z(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&tc(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!z(e))return!1;let n=e.current;(0,tO.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());let o=(0,tE.L)(n,s.root,this.visualElement.getTransformPagePoint()),r=(t=s.layout.layoutBox,{x:t1(t.x,o.x),y:t1(t.y,o.y)});if(i){let t=i((0,tS.pA)(r));
9this.hasMutatedConstraints=!!t,t&&(r=(0,tS.FY)(t))}return r}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{};return Promise.all(tc(r=>{if(!t4(r,e,this.currentDirection))return;let l=a&&a[r]||{};(!0===o||o===r)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[r]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,h)})).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,tw.g)(this.visualElement,t),i.start((0,tT.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){tc(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){tc(e=>{let{drag:i}=this.getProps();if(!t4(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:o}=n.layout.layoutBox[e],r=s.get()||0;s.set(t[e]-(0,tp.k)(i,o,.5)+r)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!z(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};tc(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let o,r,a,l=e.get();n[t]=(i={min:l,max:l},s=this.constraints[t],o=.5,r=tm(i),(a=tm(s))>r?o=(0,tJ.q)(s.min,s.max-r,i.min):r>a&&(o=(0,tJ.q)(i.min,i.max-a,s.min)),(0,tZ.q)(0,1,o))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),tc(e=>{if(!t4(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];i.set((0,tp.k)(s,o,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;t8.set(this.visualElement,this);let e=this.visualElement.current,i=tG(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),s=t.target,o=s!==e&&(tD.has(s.tagName)||!0===s.isContentEditable);i&&n&&!o&&this.start(t)}),n=()=>{var i,n,s;let o,r,{dragConstraints:a}=this.getProps();z(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=a.current,o=tI(i,t6(s=()=>this.scalePositionWithinConstraints())),r=tI(n,t6(s)),t=()=>{o(),r()}))},{projection:s}=this.visualElement,o=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),tP.Gt.read(n);let r=tL(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tc(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(),i(),o(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:o=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function t6(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function t4(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class t9 extends K{constructor(t){super(t),this.removeGroupControls=tl.l,this.removeListeners=tl.l,this.controls=new t3(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tl.l}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let t7=t=>(e,i)=>{t&&tP.Gt.update(()=>t(e,i),!1,!0)};class et extends K{constructor(){super(...arguments),this.removePointerDownListener=tl.l}onPointerDown(t){this.session=new tQ(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tH(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:t7(t),onStart:t7(e),onMove:t7(i),onEnd:(t,e)=>{delete this.session,n&&tP.Gt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=tG(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 ee={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ei=i(8873),en=i(9196);let es=!1;class eo extends a.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),es&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ee.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:o}=i;return o&&(o.isPresent=s,t.layoutDependency!==e&&o.setOptions({...o.options,layoutDependency:e}),es=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||tP.Gt.postRender(()=>
9{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),ei.k.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;es=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function er(t){let[e,i]=(0,en.xQ)(),n=(0,a.useContext)(c.L);return(0,u.jsx)(eo,{...t,layoutGroup:n,switchLayoutGroup:(0,a.useContext)(H),isPresent:e,safeToRemove:i})}var ea=i(3852),el=i(2721),eh=i(1151),eu=i(5319),ec=i(7035),ed=i(1872),ep=i(7026),em=i(1342),ef=i(4681),ev=i(6900),ey=i(9722);let eg=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],ex=eg.length,eP=t=>"string"==typeof t?parseFloat(t):t,ew=t=>"number"==typeof t||td.px.test(t);function eE(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let eS=eA(0,.5,ey.yT),eT=eA(.5,.95,tl.l);function eA(t,e,i){return n=>n<t?0:n>e?1:i((0,tJ.q)(t,e,n))}function eD(t,e){t.min=e.min,t.max=e.max}function eL(t,e){eD(t.x,e.x),eD(t.y,e.y)}function eC(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var eR=i(2988);function eb(t,e,i,n,s){return t-=e,t=(0,eR.hq)(t,1/i,n),void 0!==s&&(t=(0,eR.hq)(t,1/s,n)),t}function ek(t,e,[i,n,s],o,r){!function(t,e=0,i=1,n=.5,s,o=t,r=t){if(td.KN.test(e)&&(e=parseFloat(e),e=(0,tp.k)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,tp.k)(o.min,o.max,n);t===o&&(a-=e),t.min=eb(t.min,e,i,a,s),t.max=eb(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,o,r)}let ej=["x","scaleX","originX"],eV=["y","scaleY","originY"];function eM(t,e,i,n){ek(t.x,e,ej,i?i.x:void 0,n?n.x:void 0),ek(t.y,e,eV,i?i.y:void 0,n?n.y:void 0)}function eB(t){return 0===t.translate&&1===t.scale}function eU(t){return eB(t.x)&&eB(t.y)}function eI(t,e){return t.min===e.min&&t.max===e.max}function eO(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eF(t,e){return eO(t.x,e.x)&&eO(t.y,e.y)}function eW(t){return tm(t.x)/tm(t.y)}function eG(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var eH=i(8170);class ez{constructor(){this.members=[]}add(t){(0,eH.Kq)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||((0,eH.Ai)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,eH.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:s}=t.options;(void 0===n||n!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let eN=(t,e)=>t.depth-e.depth;class e${constructor(){this.children=[],this.isDirty=!1}add(t){(0,eH.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,eH.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eN),this.isDirty=!1,this.children.forEach(t)}}var eK=i(3411);let eQ={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},eX=["","X","Y","Z"],eq=0;function eY(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function e_({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=eq++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,em.Q.value&&(eQ.nodes=eQ.calculatedTargetDeltas=eQ.calculatedProjections=0),this.nodes.forEac
9h(e0),this.nodes.forEach(e7),this.nodes.forEach(it),this.nodes.forEach(e1),em.Q.addProjectionMetrics&&em.Q.addProjectionMetrics(eQ)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new e$)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ea.v),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,tC.x)(e)&&!(0,ef.h)(e),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;tP.Gt.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,o;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=ec.k.now(),o=({timestamp:t})=>{let i=t-e;i>=250&&((0,tP.WG)(o),s())},tP.Gt.setup(o,!0),i=()=>(0,tP.WG)(o),ee.hasAnimatedSinceResize&&(ee.hasAnimatedSinceResize=!1,this.nodes.forEach(e9))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||s.getDefaultTransition()||ia,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!eF(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,eu.r)(o,"layout"),onPlay:r,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h,e.path)}else e||e9(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,tP.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(ie),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=(0,eh.P)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tP.Gt,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEac
9h(e8),this.nodes.forEach(e2);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(e3);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(e6),this.nodes.forEach(e4),this.nodes.forEach(eJ),this.nodes.forEach(eZ)):this.nodes.forEach(e3),this.clearAllSnapshots();let t=ec.k.now();tP.uv.delta=(0,tZ.q)(0,1e3/60,t-tP.uv.timestamp),tP.uv.timestamp=t,tP.uv.isProcessing=!0,tP.PP.update.process(tP.uv),tP.PP.preRender.process(tP.uv),tP.PP.render.process(tP.uv),tP.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ei.k.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(e5),this.sharedNodes.forEach(ii)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tP.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tP.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||tm(this.snapshot.measuredBox.x)||tm(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=(0,th.ge)()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!eU(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,eK.HD)(this.latestValues)||o)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),iu((e=n).x),iu(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,th.ge)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(id))){let{scroll:t}=this.root;t&&((0,eR.Ql)(e.x,t.offset.x),(0,eR.Ql)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,th.ge)();if(eL(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:o}=n;n!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&eL(e,t),(0,eR.Ql)(e.x,s.offset.x),(0,eR.Ql)(e.y,s.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||(0,th.ge)();eL(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&((0,eR.Ql)(n.x,-i.scroll.offset.x),(0,eR.Ql)(n.y,-i.scroll.offset.y)),(0,eK.HD)(i.latestValues)&&(0,eR.Ww)(n,i.latestValues,i.layout?.layoutBox)}return(0,eK.HD)(this.latestValues)&&(0,eR.Ww)(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=(0,th.ge)();eL(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];(0,eK.HD)(n.latestValues)&&(n.instance&&((0,eK.vk)(n.latestValues)&&n.updateSnapshot(),eL(i=(0,th.ge)(),n.measurePageBox())),eM(e,n.latestValues,n.snapshot?.layoutBox,i))}return(0,eK.HD)(this.latestValues)&&eM(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!==tP.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=tP.uv.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,th.ge)(),this.targetWithTransforms=(0,th.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var r,a,l,h;this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,ty(r.x,a.x,l.x,h?.x),ty(r.y,a.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):eL(this.target,this.layout.layoutBox),(0,eR.o4)(this.target,this.targetDelta)):eL(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),em.Q.value&&eQ.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||(0,eK.vk)(this.parent.latestValues)||(0,eK.vF)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,th.ge)(),this.relativeTargetOrigin=(0,th.ge)(),tx(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),eL(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
9if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tP.uv.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;eL(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,r=this.treeScale.y;(0,eR.OU)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,th.ge)());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(eC(this.prevProjectionDelta.x,this.projectionDelta.x),eC(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tv(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===r&&eG(this.projectionDelta.x,this.prevProjectionDelta.x)&&eG(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),em.Q.value&&eQ.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,th.xU)(),this.projectionDelta=(0,th.xU)(),this.projectionDeltaWithTransform=(0,th.xU)()}setAnimationOrigin(t,e=!1,i){let n,s=this.snapshot,o=s?s.latestValues:{},r={...this.latestValues},a=(0,th.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=(0,th.ge)(),h=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(h&&!c&&!0===this.options.crossfade&&!this.path.some(ir));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,s=p?.(i);if(s?(a.x.translate=s.x,a.x.scale=(0,tp.k)(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=s.y,a.y.scale=(0,tp.k)(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(is(a.x,t.x,i),is(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,m,f,v,y,g;tx(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,v=this.relativeTargetOrigin,y=l,g=i,io(f.x,v.x,y.x,g),io(f.y,v.y,y.y,g),n&&(u=this.relativeTarget,m=n,eI(u.x,m.x)&&eI(u.y,m.y))&&(this.isProjectionDirty=!1),n||(n=(0,th.ge)()),eL(n,this.relativeTarget)}h&&(this.animationValues=r,function(t,e,i,n,s,o){s?(t.opacity=(0,tp.k)(0,i.opacity??1,eS(n)),t.opacityExit=(0,tp.k)(e.opacity??1,0,eT(n))):o&&(t.opacity=(0,tp.k)(e.opacity??1,i.opacity??1,n));for(let s=0;s<ex;s++){let o=eg[s],r=eE(e,o),a=eE(i,o);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||ew(r)===ew(a)?(t[o]=Math.max((0,tp.k)(eP(r),eP(a),n),0),(td.KN.test(a)||td.KN.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,tp.k)(e.rotate||0,i.rotate||0,n))}(r,o,this.latestValues,i,d,c)),s&&void 0!==s.rotate&&(this.animationValues||(this.animationValues=r),this.animationValues.pathRotation=s.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,tP.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tP.Gt.update(()=>{ee.hasAnimatedSinceResize=!0,ep.q.layout++,this.motionValue||(this.motionValue=(0,ev.OQ)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(0,el.z)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ep.q.layout--},onComplete:()=>{ep.q.layout--,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:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&ic(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,th.ge)();let e=tm(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=tm(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}eL(e,i),(0,eR.Ww)(e,s),tv(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ez),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
9return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.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 n={};i.z&&eY("z",t,n,this.animationValues);for(let e=0;e<eX.length;e++)eY(`rotate${eX[e]}`,t,n,this.animationValues),eY(`skew${eX[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=C(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=C(e?.pointerEvents)||""),this.hasProjected&&!(0,eK.HD)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let o=function(t,e,i){let n="",s=t.x.translate/e.x,o=t.y.translate/e.y,r=i?.z||0;if((s||o||r)&&(n=`translate3d(${s}px, ${o}px, ${r}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:s,rotateX:o,rotateY:r,skewX:a,skewY:l}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotate(${s}deg) `),o&&(n+=`rotateX(${o}deg) `),r&&(n+=`rotateY(${r}deg) `),a&&(n+=`skewX(${a}deg) `),l&&(n+=`skewY(${l}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(o=i(s,o)),t.transform=o;let{x:r,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,ed.H){if(void 0===s[e])continue;let{correct:i,applyTo:r,isCSSVariable:a}=ed.H[e],l="none"===o?s[e]:i(s[e],n);if(r){let e=r.length;for(let i=0;i<e;i++)t[r[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?C(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(e2),this.root.sharedNodes.clear()}}}function eJ(t){t.updateLayout()}function eZ(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,o=e.source!==t.layout.source;if("size"===s)tc(t=>{let n=o?e.measuredBox[t]:e.layoutBox[t],s=tm(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";eD(o?e.measuredBox[t]:e.layoutBox[t],i[t])}else ic(s,e.layoutBox,i)&&tc(n=>{let s=o?e.measuredBox[n]:e.layoutBox[n],r=tm(i[n]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+r)});let r=(0,th.xU)();tv(r,i,e.layoutBox);let a=(0,th.xU)();o?tv(a,t.applyTransform(n,!0),e.measuredBox):tv(a,i,e.layoutBox);let l=!eU(r),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:o}=n;if(s&&o){let r=t.options.layoutAnchor||void 0,a=(0,th.ge)();tx(a,e.layoutBox,s.layoutBox,r);let l=(0,th.ge)();tx(l,i,o.layoutBox,r),eF(a,l)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function e0(t){em.Q.value&&eQ.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
9isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function e1(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function e5(t){t.clearSnapshot()}function e2(t){t.clearMeasurements()}function e8(t){t.isLayoutDirty=!0,t.updateLayout()}function e3(t){t.isLayoutDirty=!1}function e6(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function e4(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function e9(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function e7(t){t.resolveTargetDelta()}function it(t){t.calcProjection()}function ie(t){t.resetSkewAndRotation()}function ii(t){t.removeLeadSnapshot()}function is(t,e,i){t.translate=(0,tp.k)(e.translate,0,i),t.scale=(0,tp.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function io(t,e,i,n){t.min=(0,tp.k)(e.min,i.min,n),t.max=(0,tp.k)(e.max,i.max,n)}function ir(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ia={duration:.45,ease:[.4,0,.1,1]},il=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ih=il("applewebkit/")&&!il("chrome/")?Math.round:tl.l;function iu(t){t.min=ih(t.min),t.max=ih(t.max)}function ic(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(eW(e)-eW(i)))}function id(t){return t!==t.root&&t.scroll?.wasRoot}let ip=e_({attachResizeListener:(t,e)=>tL(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),im={current:void 0},iv=e_({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!im.current){let t=new ip({});t.mount(window),t.setOptions({layoutScroll:!0}),im.current=t}return im.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function iy(t,e){let i=(0,tR.K)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function ig(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&tP.Gt.postRender(()=>s(e,tW(e)))}class ix extends K{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,o]=iy(t,i);return n.forEach(t=>{let i,n=!1,o=!1,r=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),o&&(o=!1,r(t))},l=t=>{if("touch"!==t.pointerType){if(n){o=!0;return}r(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||tu.x||tu.y)return;o=!1;let r=e(t,n);"function"==typeof r&&(i=r,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",a,s)},s)}),o}(t,(t,e)=>(ig(this.node,e,"Start"),t=>ig(this.node,t,"End"))))}unmount(){}}class iP extends K{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=(0,tz.F)(tL(this.node.current,"focus",()=>this.onFocus()),tL(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var iw=i(8757);let iE=(t,e)=>!!e&&(t===e||iE(t,e.parentElement)),iS=new WeakSet;function iT(t){return e=>{"Enter"===e.key&&t(e)}}function iA(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function iD(t){return tF(t)&&!(tu.x||tu.y)}let iL=new WeakSet;function iC(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&tP.Gt.postRender(()=>s(e,tW(e)))}class iR extends K{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;
9this.unmount=function(t,e,i={}){let[n,s,o]=iy(t,i),r=t=>{let n=t.currentTarget;if(!iD(t)||iL.has(t))return;iS.add(n),i.stopPropagation&&iL.add(t);let o=e(n,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),iS.has(n)&&iS.delete(n),iD(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{r(t,n===window||n===document||i.useGlobalTarget||iE(n,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",r,s),(0,iw.s)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=iT(()=>{if(iS.has(i))return;iA(i,"down");let t=iT(()=>{iA(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>iA(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),tA.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(t,(t,e)=>(iC(this.node,e,"Start"),(t,{success:e})=>iC(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}let ib=new WeakMap,ik=new WeakMap,ij=t=>{let e=ib.get(t.target);e&&e(t)},iV=t=>{t.forEach(ij)},iM={some:0,all:1};class iB extends K{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:o="some",once:r}=i,a={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof o?o:iM[o]},l=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:n}=this.node.getProps(),s=e?i:n;s&&s(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;ik.has(i)||ik.set(i,{});let n=ik.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(iV,{root:t,...e})),n[s]}(a),ib.set(t,l),e.observe(t),()=>{ib.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let iU=function(t,e){if("u"<typeof Proxy)return $;let i=new Map,n=(i,n)=>$(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,o)=>"create"===o?n:(i.has(o)||i.set(o,$(o,void 0,t,e)),i.get(o))})}({animation:{Feature:to},exit:{Feature:ta},inView:{Feature:iB},tap:{Feature:iR},focus:{Feature:iP},hover:{Feature:ix},pan:{Feature:et},drag:{Feature:t9,ProjectionNode:iv,MeasureLayout:er},layout:{ProjectionNode:iv,MeasureLayout:er}},(t,e)=>e.isSVG??h(t)?new o.l(e):new r.M(e,{allowProjection:t!==a.Fragment}))},4866:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(2115).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},5131:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(2115).createContext)(null)},5239:(t,e,i)=>{i.d(e,{E:()=>s});var n=i(2115);let s="u">typeof window?n.useLayoutEffect:n.useEffect},5772:(t,e,i)=>{i.d(e,{default:()=>s.a});var n=i(7651),s=i.n(n)},7651:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0});var n={default:function(){return u},getImageProps:function(){return h}};for(var s in n)Object.defineProperty(e,s,{enumerable:!0,get:n[s]});let o=i(3623),r=i(5413),a=i(8437),l=o._(i(6095));function h(t){let{props:e}=(0,r.getImgProps)(t,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let u=a.Image},8721:(t,e,i)=>{i.d(e,{J:()=>l,D:()=>a});var n=i(1469);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","propagate","ignoreStrict","viewport"]);function o(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 r=t=>!o(t);function a(t){"function"==typeof t&&(r=e=>e.startsWith("on")?!o(e):t(e))}try{a(require("@emotion/is-prop-valid").default)}catch{}function l(t,e,i){let s={};for(let a in t)("values"!==a||"object"!=typeof t.values)&&!(0,n.S)(t[a])&&
9(r(a)||!0===i&&o(a)||!e&&!o(a)||t.draggable&&a.startsWith("onDrag"))&&(s[a]=t[a]);return s}},8757:(t,e,i)=>{i.d(e,{s:()=>s});var n=i(4601);function s(t){return(0,n.G)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}},8819:(t,e,i)=>{i.d(e,{M:()=>s});var n=i(2115);function s(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},9196:(t,e,i)=>{i.d(e,{xQ:()=>o});var n=i(2115),s=i(5131);function o(t=!0){let e=(0,n.useContext)(s.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:a}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return a(l)},[t]);let h=(0,n.useCallback)(()=>t&&r&&r(l),[l,r,t]);return!i&&r?[!1,h]:[!0]}},9551:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(2115).createContext)({})}}]);

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.