PageSourceSearch

https://timegarden.app/_next/static/chunks/523b430d810016c8.js?dpl=dpl_4ganfmCsbmsJonf844WbEG5fXs6k

js timegarden.app collected 2026-10-05 23:24:58 UTC 67,406 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,46932,t=>{"use strict";let e,i;var n,s=t.i(75737),o=t.i(86783),r=t.i(71645);let a=["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 l(t){if("string"!=typeof t||t.includes("-"));else if(a.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.i(47167);var h=t.i(18050);let u=(0,r.createContext)({}),c=(0,r.createContext)({strict:!1}),d=(0,r.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),m=(0,r.createContext)({});var p=t.i(87576),f=t.i(32525);function v(t){return Array.isArray(t)?t.join(" "):t}var y=t.i(83411),g=t.i(30789),x=t.i(44947);let P=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function w(t,e,i){for(let n in e)(0,y.isMotionValue)(e[n])||(0,g.isForcedMotionValue)(n,i)||(t[n]=e[n])}var E=t.i(81261),T=t.i(99951);let S=()=>({...P(),attrs:{}}),A=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 D(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||A.has(t)}let V=t=>!D(t);try{n=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof n&&(V=t=>t.startsWith("on")?!D(t):n(t))}catch{}var b=t.i(84049),b=b;function L(t){return(0,y.isMotionValue)(t)?t.get():t}var C=t.i(85983),R=t.i(86579);let B=(0,r.createContext)(null),M=t=>(e,i)=>{let n,s=(0,r.useContext)(m),o=(0,r.useContext)(B),a=()=>(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]=L(o[t]);let{initial:r,animate:a}=t,l=(0,p.isControllingVariants)(t),h=(0,p.isVariantNode)(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,C.isAnimationControls)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=(0,R.resolveVariantFromProps)(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,s,o);return i?a():(null===(n=(0,r.useRef)(null)).current&&(n.current=a()),n.current)},j=M({scrapeMotionValuesFromProps:b.scrapeMotionValuesFromProps,createRenderState:P});var k=t.i(67926),k=k;let F=M({scrapeMotionValuesFromProps:k.scrapeMotionValuesFromProps,createRenderState:S});var O=t.i(17218);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"]},U=!1;function N(){return!function(){if(U)return;let t={};for(let e in I)t[e]={isEnabled:t=>I[e].some(e=>!!t[e])};(0,O.setFeatureDefinitions)(t),U=!0}(),(0,O.getFeatureDefinitions)()}let W=Symbol.for("motionComponentSymbol");var H=t.i(35043);let z=(0,r.createContext)({});function G(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let $="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function X(t,{forwardMotionProps:e=!1,type:i}={},n,s){n&&function(t){let e=N();for(let i in t)e[i]={...e[i],...t[i]};(0,O.setFeatureDefinitions)(e)}(n);let o=i?"svg"===i:l(t),a=o?F:j;function g(i,n){var g;let A,b,L,C={...(0,r.useContext)(d),...i,layoutId:function({layoutId:t}){let e=(0,r.useContext)(u).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:R}=C,M=function(t){let{initial:e,animate:i}=function(t,e){if((0,p.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,f.isVariantLabel)(e)?e:void 0,animate:(0,f.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(m));return(0,r.useMemo)(()=>({initial:e,animate:i}),[v(e),v(i)])}(i),j=a(i,R);if(!R&&"undefined"!=typeof window){(0,r.useContext)(c).strict;let e=function(t){let{drag:e,layout:i}=N();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(C);A=e.MeasureLayout,M.visualElement=function(t,e,i,n,s,o){let{visualElement:a}=(0,r.useContext)(m),l=(0,r.useContext)(c),h=(0,r.useContext)(B),u=(0,r.useContext)(d),p=u.reducedMotion,f=u.skipAnimations,v=(0,r.useRef)(null),y=(0,r.useRef)(!1);n=n||l.renderer,!v.current&&n&&(v.current=n(t,{visualState:e,parent:a,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:p,skipAnimations:f,isSVG:o}),y.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));let g=v.current,x=(0,r.useContext)(z);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&&G(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,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{g&&P.current&&g.update(i,h)});let w=i[H.optimizedAppearDataAttribute],E=(0,r.useRef)(!!w&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return $(()=>{y.current=!0,g&&(P.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),E.current&&g.animationState&&g.animationState.animateChanges())}),(0,r.useEffect)(()=>{g&&(!E.current&&g.animationState&&g.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),E.current=!1),g.enteringChildren=void 0)}),g}(t,j,C,s,e.ProjectionNode,o)}return(0,h.jsxs)(m.Provider,{value:M,children:[A&&M.visualElement?(0,h.jsx)(A,{visualElement:M.visualElement,...C}):null,function(t,e,i,{latestValues:n},s,o=!1,a){let h=(a??l(t)?function(t,e,i,n){let s=(0,r.useMemo)(()=>{let i=S();return(0,E.buildSVGAttrs)(i,e,(0,T.isSVGTag)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};w(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i,n,s={},o=(i=t.style||{},w(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,r.useMemo)(()=>{let i=P();return(0,x.buildHTMLStyles)(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=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&!(0,y.isMotionValue)(t[s])&&(V(s)||!0===i&&D(s)||!e&&!D(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,o),c=t!==r.Fragment?{...u,...h,ref:i}:{},{children:d}=e,m=(0,r.useMemo)(()=>(0,y.isMotionValue)(d)?d.get():d,[d]);return(0,r.createElement)(t,{...c,children:m})}(t,i,(g=M.visualElement,b=(0,r.useRef)(n),(0,r.useInsertionEffect)(()=>{b.current=n}),L=(0,r.useRef)(null),(0,r.useCallback)(t=>{t&&j.onMount?.(t);let e=b.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(L.current=i)}else L.current?(L.current(),L.current=null):e(t);else e&&(e.current=t);g&&(t?g.mount(t):g.unmount())},[g])),j,R,e,o)]})}g.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let A=(0,r.forwardRef)(g);return A[W]=t,A}class Y{constructor(t){this.isMounted=!1,this.node=t}update(){}}var K=t.i(18812),_=t.i(72323);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 Z(t,e,i={}){let n=(0,K.resolveVariant)(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,_.animateTarget)(t,n,i)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;
1return 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(Z(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 J=t.i(6840);let Q=J.variantProps.length;var tt=t.i(73615);function te(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 ti=[...J.variantPriorityOrder].reverse(),tn=J.variantPriorityOrder.length;function ts(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function to(){return{animate:ts(!0),whileInView:ts(),whileHover:ts(),whileTap:ts(),whileDrag:ts(),whileFocus:ts(),exit:ts()}}let tr=0;var ta=t.i(60830),tl=t.i(30162),th=t.i(87022);function tu(t){return[t("x"),t("y")]}var tc=t.i(53689),td=t.i(27677),tm=t.i(80538),tp=t.i(39011),tf=t.i(706);function tv(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let ty={x:!1,y:!1};var tg=t.i(65091);function tx(t){return t.max-t.min}function tP(t,e,i,n=.5){t.origin=n,t.originPoint=(0,tf.mixNumber)(e.min,e.max,t.origin),t.scale=tx(i)/tx(e),t.translate=(0,tf.mixNumber)(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 tw(t,e,i,n){tP(t.x,e.x,i.x,n?n.originX:void 0),tP(t.y,e.y,i.y,n?n.originY:void 0)}function tE(t,e,i,n=0){t.min=(n?(0,tf.mixNumber)(i.min,i.max,n):i.min)+e.min,t.max=t.min+tx(e)}function tT(t,e,i,n=0){let s=n?(0,tf.mixNumber)(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+tx(e)}function tS(t,e,i,n){tT(t.x,e.x,i.x,n?.x),tT(t.y,e.y,i.y,n?.y)}var tA=t.i(89026),tD=t.i(49652);let tV=new WeakMap,tb=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:(0,tA.isSVGElement)(n)&&"getBBox"in n?n.getBBox()[e]:n[i],tL=tb("inline","width","offsetWidth"),tC=tb("block","height","offsetHeight");function tR({target:t,borderBoxSize:e}){tV.get(t)?.forEach(i=>{i(t,{get width(){return tL(t,e)},get height(){return tC(t,e)}})})}function tB(t){t.forEach(tR)}let tM=new Set;function tj(t,n){let s;return"function"==typeof t?(tM.add(t),i||(i=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};tM.forEach(e=>e(t))},window.addEventListener("resize",i)),()=>{tM.delete(t),tM.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(e||"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(tB)),(s=(0,tD.resolveElements)(t)).forEach(t=>{let i=tV.get(t);i||(i=new Set,tV.set(t,i)),i.add(n),e?.observe(t)}),()=>{s.forEach(t=>{let i=tV.get(t);i?.delete(n),i?.size||e?.unobserve(t)})})}let tk=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),tF=new Set(["INPUT","SELECT","TEXTAREA"]);var tO=t.i(65566);let tI=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tU(t){return{point:{x:t.pageX,y:t.pageY}}}function tN(t,e,i,n){return tv(t,e,t=>tI(t)&&i(t,tU(t)),n)}let tW=({current:t})=>t?t.ownerDocument.defaultView:null;var tH=t.i(38638),tz=t.i(63074);let tG=(t,e)=>Math.abs(t-e),t$=new Set(["auto","scroll"]);class tX{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=tY(this.lastRawMoveEventInfo,this.transformPagePoint));let i=t_(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(tG(t.x,e.x)**2+tG(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:o}=i,{timestamp:r}=th.frameData;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=tY(e,this.transformPagePoint),th.frame.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=t_("pointercancel"===t.type?this.lastMoveEventInfo:tY(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),n&&n(t,o)},!tI(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=n||window;const a=tY(tU(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=th.frameData;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,t_(a,this.history)),this.removeListeners=(0,tH.pipe)(tN(this.contextWindow,"pointermove",this.handlePointerMove),tN(this.contextWindow,"pointerup",this.handlePointerUp),tN(this.contextWindow,"pointercancel",this.handlePointerUp)),r&&this.startScrollTracking(r)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(t$.has(t.overflowX)||t$.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),th.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,th.cancelFrame)(this.updatePoint)}}function tY(t,e){return e?{point:e(t.point)}:t}function tK(t,e){return{x:t.x-e.x,y:t.y-e.y}}function t_({point:t},e){return{point:t,delta:tK(t,tq(e)),offset:tK(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=tq(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>(0,tz.secondsToMilliseconds)(.1)));)i--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&s.timestamp-n.timestamp>
12*(0,tz.secondsToMilliseconds)(.1)&&(n=t[1]);let o=(0,tz.millisecondsToSeconds)(s.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let r={x:(s.x-n.x)/o,y:(s.y-n.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e,.1)}}function tq(t){return t[t.length-1]}var tZ=t.i(83920),tJ=t.i(76959);function tQ(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 t0(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 t1(t,e,i){return{min:t3(t,e),max:t3(t,i)}}function t3(t,e){return"number"==typeof t?t:t[e]||0}let t6=new WeakMap;class t5{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,tl.createBox)(),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(tU(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(ty[t])return null;else return ty[t]=!0,()=>{ty[t]=!1};return ty.x||ty.y?null:(ty.x=ty.y=!0,()=>{ty.x=ty.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),tu(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tg.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=tx(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&th.frame.update(()=>s(t,e),!1,!0),(0,tm.addValueToWillChange)(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&&th.frame.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 tX(t,{onSessionStart:s,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:tW(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&&th.frame.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||!t8(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,tf.mixNumber)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,tf.mixNumber)(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&&G(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:tQ(t.x,i,s),y:tQ(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:t1(t,"left","right"),y:t1(t,"top","bottom")}}(e),n!==this.constraints&&!G(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&tu(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||!G(e))return!1;let n=e.current;(0,tO.invariant)(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;let o=(0,tc.measurePageBox)(n,s.root,this.visualElement.getTransformPagePoint()),r=(t=s.layout.layoutBox,{x:t0(t.x,o.x),y:t0(t.y,o.y)});if(i){let t=i((0,td.convertBoxToBoundingBox)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,td.convertBoundingBoxToBox)(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(tu(r=>{if(!t8(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,tm.addValueToWillChange)(this.visualElement,t),i.start((0,tp.animateMotionValue)(t,i,0,e,this.visualElement,!1))}stopAnimation(){tu(t=>this.getAxisMotionValue(t).stop())}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){tu(e=>{let{drag:i}=this.getProps();if(!t8(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,tf.mixNumber)(i,o,.5)+r)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!G(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};tu(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=tx(i),(a=tx(s))>r?o=(0,tZ.progress)(s.min,s.max-r,i.min):r>a&&(o=(0,tZ.progress)(i.min,i.max-a,s.min)),(0,tJ.clamp)(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(),tu(e=>{if(!t8(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];i.set((0,tf.mixNumber)(s,o,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;t6.set(this.visualElement,this);let e=this.visualElement.current,i=tN(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}
1=this.getProps(),s=t.target,o=s!==e&&(tF.has(s.tagName)||!0===s.isContentEditable);i&&n&&!o&&this.start(t)}),n=()=>{var i,n,s;let o,r,{dragConstraints:a}=this.getProps();G(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=a.current,o=tj(i,t7(s=()=>this.scalePositionWithinConstraints())),r=tj(n,t7(s)),t=()=>{o(),r()}))},{projection:s}=this.visualElement,o=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),th.frame.read(n);let r=tv(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tu(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 t7(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function t8(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let t2=t=>(e,i)=>{t&&th.frame.update(()=>t(e,i),!1,!0)},t9={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var t4=t.i(60140),et=r;let ee=!1;class ei extends et.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),ee&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),t9.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}),ee=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||th.frame.postRender(()=>{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(),t4.microtask.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;ee=!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 en(t){let[e,i]=function(t=!0){let e=(0,r.useContext)(B);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,o=(0,r.useId)();(0,r.useEffect)(()=>{if(t)return s(o)},[t]);let a=(0,r.useCallback)(()=>t&&n&&n(o),[o,n,t]);return!i&&n?[!1,a]:[!0]}(),n=(0,et.useContext)(u);return(0,h.jsx)(ei,{...t,layoutGroup:n,switchLayoutGroup:(0,et.useContext)(z),isPresent:e,safeToRemove:i})}var es=t.i(70596),eo=t.i(68705),er=t.i(16896),ea=t.i(87333),el=t.i(96173),eh=t.i(24463),eu=t.i(4169),ec=t.i(80248),ed=t.i(36331),em=t.i(86427),ep=t.i(91559);let ef=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],ev=ef.length,ey=t=>"string"==typeof t?parseFloat(t):t,eg=t=>"number"==typeof t||tg.px.test(t);function ex(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let eP=eE(0,.5,ep.circOut),ew=eE(.5,.95,ta.noop);function eE(t,e,i){return n=>n<t?0:n>e?1:i((0,tZ.progress)(t,e,n))}function eT(t,e){t.min=e.min,t.max=e.max}function eS(t,e){eT(t.x,e.x),eT(t.y,e.y)}function eA(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var eD=t.i(35636);function eV(t,e,i,n,s){return t-=e,t=(0,eD.scalePoint)(t,1/i,n),void 0!==s&&(t=(0,eD.scalePoint)(t,1/s,n)),t}function eb(t,e,[i,n,s],o,r){!function(t,e=0,i=1,n=.5,s,o=t,r=t){if(tg.percent.test(e)&&(e=parseFloat(e),e=(0,tf.mixNumber)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,tf.mixNumber)(o.min,o.max,n);t===o&&(a-=e),t.min=eV(t.min,e,i,a,s),t.max=eV(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,o,r)}let eL=["x","scaleX","originX"],eC=["y","scaleY","originY"];
1function eR(t,e,i,n){eb(t.x,e,eL,i?i.x:void 0,n?n.x:void 0),eb(t.y,e,eC,i?i.y:void 0,n?n.y:void 0)}function eB(t){return 0===t.translate&&1===t.scale}function eM(t){return eB(t.x)&&eB(t.y)}function ej(t,e){return t.min===e.min&&t.max===e.max}function ek(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eF(t,e){return ek(t.x,e.x)&&ek(t.y,e.y)}function eO(t){return tx(t.x)/tx(t.y)}function eI(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var eU=t.i(33887);class eN{constructor(){this.members=[]}add(t){(0,eU.addUniqueItem)(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,eU.removeItem)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,eU.removeItem)(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 eW=(t,e)=>t.depth-e.depth;class eH{constructor(){this.children=[],this.isDirty=!1}add(t){(0,eU.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,eU.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eW),this.isDirty=!1,this.children.forEach(t)}}var ez=t.i(77777);let eG={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},e$=["","X","Y","Z"],eX=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 eK({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=eX++,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,ec.statsBuffer.value&&(eG.nodes=eG.calculatedTargetDeltas=eG.calculatedProjections=0),this.nodes.forEach(eZ),this.nodes.forEach(e8),this.nodes.forEach(e2),this.nodes.forEach(eJ),ec.statsBuffer.addProjectionMetrics&&ec.statsBuffer.addProjectionMetrics(eG)},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 eH)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new es.SubscriptionManager),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,tA.isSVGElement)(e)&&!(0,ed.isSVGSVGElement)(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;th.frame.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=el.time.now(),o=({timestamp:t})=>{let i=t-e;i>=250&&((0,th.cancelFrame)(o),s(i-250))},th.frame.setup(o,!0),i=()=>(0,th.cancelFrame)(o),t9.hasAnimatedSinceResize&&(t9.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(e7))}})}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()||is,{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,ea.getValueTransition)(o,"layout"),onPlay:r,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||e7(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,th.cancelFrame)(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(e9),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,er.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",th.frame,!(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.forEach(e1),this.nodes.forEach(e0);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(e5),this.nodes.forEach(e_),this.nodes.forEach(eq)):this.nodes.forEach(e3),this.clearAllSnapshots();let t=el.time.now();th.frameData.delta=(0,tJ.clamp)(0,1e3/60,t-th.frameData.timestamp),th.frameData.timestamp=t,th.frameData.isProcessing=!0,th.frameSteps.update.process(th.frameData),th.frameSteps.preRender.process(th.frameData),th.frameSteps.render.process(th.frameData),th.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t4.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(eQ),this.sharedNodes.forEach(e4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,th.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){th.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||tx(this.snapshot.measuredBox.x)||tx(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,tl.createBox)()),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&&!eM(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,ez.hasTransform)(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)),ia((e=n).x),ia(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,tl.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ih))){let{scroll:t}=this.root;t&&((0,eD.translateAxis)(e.x,t.offset.x),(0,eD.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,tl.createBox)();if(eS(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&&eS(e,t),(0,eD.translateAxis)(e.x,s.offset.x),(0,eD.translateAxis)(e.y,s.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||(0,tl.createBox)();eS(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,eD.translateAxis)(n.x,-i.scroll.offset.x),(0,eD.translateAxis)(n.y,-i.scroll.offset.y)),(0,ez.hasTransform)(i.latestValues)&&(0,eD.transformBox)(n,i.latestValues,i.layout?.layoutBox)}return(0,ez.hasTransform)(this.latestValues)&&(0,eD.transformBox)(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=(0,tl.createBox)();eS(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];(0,ez.hasTransform)(n.latestValues)&&(n.instance&&((0,ez.hasScale)(n.latestValues)&&n.updateSnapshot(),eS(i=(0,tl.createBox)(),n.measurePageBox())),eR(e,n.latestValues,n.snapshot?.layoutBox,i))}return(0,ez.hasTransform)(this.latestValues)&&eR(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!==th.frameData.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=th.frameData.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,tl.createBox)(),this.targetWithTransforms=(0,tl.createBox)()),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,tE(r.x,a.x,l.x,h?.x),tE(r.y,a.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):eS(this.target,this.layout.layoutBox),(0,eD.applyBoxDelta)(this.target,this.targetDelta)):eS(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),ec.statsBuffer.value&&eG.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||(0,ez.hasScale)(this.parent.latestValues)||(0,ez.has2DTranslate)(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,tl.createBox)(),this.relativeTargetOrigin=(0,tl.createBox)(),tS(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),eS(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===th.frameData.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;eS(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,r=this.treeScale.y;(0,eD.applyTreeDeltas)(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,tl.createBox)());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(eA(this.prevProjectionDelta.x,this.projectionDelta.x),eA(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tw(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===r&&eI(this.projectionDelta.x,this.prevProjectionDelta.x)&&eI(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),ec.statsBuffer.value&&eG.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,tl.createDelta)(),this.projectionDelta=(0,tl.createDelta)(),this.projectionDeltaWithTransform=(0,tl.createDelta)()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,s=n?n.latestValues:{},o={...this.latestValues},r=(0,tl.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,tl.createBox)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(ii));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(it(r.x,t.x,n),it(r.y,t.y,n),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,d,m,p,f,v;tS(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,p=this.relativeTargetOrigin,f=a,v=n,ie(m.x,p.x,f.x,v),ie(m.y,p.y,f.y,v),i&&(h=this.relativeTarget,d=i,ej(h.x,d.x)&&ej(h.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,tl.createBox)()),eS(i,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,i,n,s,o){s?(t.opacity=(0,tf.mixNumber)(0,i.opacity??1,eP(n)),t.opacityExit=(0,tf.mixNumber)(e.opacity??1,0,ew(n))):o&&(t.opacity=(0,tf.mixNumber)(e.opacity??1,i.opacity??1,n));for(let s=0;s<ev;s++){let o=ef[s],r=ex(e,o),a=ex(i,o);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||eg(r)===eg(a)?(t[o]=Math.max((0,tf.mixNumber)(ey(r),ey(a),n),0),(tg.percent.test(a)||tg.percent.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,tf.mixNumber)(e.rotate||0,i.rotate||0,n))}(o,s,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,th.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=th.frame.update(()=>{t9.hasAnimatedSinceResize=!0,eu.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,em.motionValue)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(0,eo.animateSingleValue)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{eu.activeAnimations.layout--},onComplete:()=>{eu.activeAnimations.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&&il(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,tl.createBox)();let e=tx(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=tx(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}
1eS(e,i),(0,eD.transformBox)(e,s),tw(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new eN),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let 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<e$.length;e++)eY(`rotate${e$[e]}`,t,n,this.animationValues),eY(`skew${e$[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=L(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=L(e?.pointerEvents)||""),this.hasProjected&&!(0,ez.hasTransform)(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,rotateX:s,rotateY:o,skewX:r,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),o&&(n+=`rotateY(${o}deg) `),r&&(n+=`skewX(${r}deg) `),a&&(n+=`skewY(${a}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,eh.scaleCorrectors){if
1(void 0===s[e])continue;let{correct:i,applyTo:r,isCSSVariable:a}=eh.scaleCorrectors[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?L(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(e0),this.root.sharedNodes.clear()}}}function e_(t){t.updateLayout()}function eq(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)tu(t=>{let n=o?e.measuredBox[t]:e.layoutBox[t],s=tx(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";eT(o?e.measuredBox[t]:e.layoutBox[t],i[t])}else il(s,e.layoutBox,i)&&tu(n=>{let s=o?e.measuredBox[n]:e.layoutBox[n],r=tx(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,tl.createDelta)();tw(r,i,e.layoutBox);let a=(0,tl.createDelta)();o?tw(a,t.applyTransform(n,!0),e.measuredBox):tw(a,i,e.layoutBox);let l=!eM(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,tl.createBox)();tS(a,e.layoutBox,s.layoutBox,r);let l=(0,tl.createBox)();tS(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 eZ(t){ec.statsBuffer.value&&eG.nodes++,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 eJ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function eQ(t){t.clearSnapshot()}function e0(t){t.clearMeasurements()}function e1(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 e5(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function e7(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function e8(t){t.resolveTargetDelta()}function e2(t){t.calcProjection()}function e9(t){t.resetSkewAndRotation()}function e4(t){t.removeLeadSnapshot()}function it(t,e,i){t.translate=(0,tf.mixNumber)(e.translate,0,i),t.scale=(0,tf.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ie(t,e,i,n){t.min=(0,tf.mixNumber)(e.min,i.min,n),t.max=(0,tf.mixNumber)(e.max,i.max,n)}function ii(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let is={duration:.45,ease:[.4,0,.1,1]},io=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ir=io("applewebkit/")&&!io("chrome/")?Math.round:ta.noop;function ia(t){t.min=ir(t.min),t.max=ir(t.max)}function il(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(eO(e)-eO(i)))}function ih(t){return t!==t.root&&t.scroll?.wasRoot}let iu=eK({attachResizeListener:(t,e)=>tv(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ic={current:void 0},id=eK({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ic.current){let t=new iu({});t.mount(window),t.setOptions({layoutScroll:!0}),ic.current=t}return ic.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function im(t,e){let i=(0,tD.resolveElements)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function ip(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&th.frame.postRender(()=>s(e,tU(e)))}var iv=t.i(42824);let iy=(t,e)=>!!e&&(t===e||iy(t,e.parentElement)),ig=new WeakSet;function ix(t){return e=>{"Enter"===e.key&&t(e)}}function iP(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function iw(t){return tI(t)&&!(ty.x||ty.y)}let iE=new WeakSet;function iT(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&&th.frame.postRender(()=>s(e,tU(e)))}let iS=new WeakMap,iA=new WeakMap,iD=t=>{let e=iS.get(t.target);e&&e(t)}
1,iV=t=>{t.forEach(iD)},ib={some:0,all:1},iL=function(t,e){if("undefined"==typeof Proxy)return X;let i=new Map,n=(i,n)=>X(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,o)=>"create"===o?n:(i.has(o)||i.set(o,X(o,void 0,t,e)),i.get(o))})}({animation:{Feature:class extends Y{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=>Z(t,e,i)));else if("string"==typeof e)n=Z(t,e,i);else{let s="function"==typeof e?(0,K.resolveVariant)(t,e,i.custom):e;n=Promise.all((0,_.animateTarget)(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=to(),n=!0,s=!1,o=e=>(i,n)=>{let s=(0,K.resolveVariant)(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<Q;t++){let n=J.variantProps[t],s=e.props[n];((0,f.isVariantLabel)(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},h=[],u=new Set,c={},d=1/0;for(let e=0;e<tn;e++){var m,p;let v=ti[e],y=i[v],g=void 0!==a[v]?a[v]:l[v],x=(0,f.isVariantLabel)(g),P=v===r?y.isActive:null;!1===P&&(d=e);let w=g===l[v]&&g!==a[v]&&x;if(w&&(n||s)&&t.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...c},!y.isActive&&null===P||!g&&!y.prevProp||(0,C.isAnimationControls)(g)||"boolean"==typeof g)continue;if("exit"===v&&y.isActive&&!0!==P){y.prevResolvedValues&&(c={...c,...y.prevResolvedValues});continue}let E=(m=y.prevProp,"string"==typeof(p=g)?p!==m:!!Array.isArray(p)&&!te(p,m)),T=E||v===r&&y.isActive&&!w&&x||e>d&&x,S=!1,A=Array.isArray(g)?g:[g],D=A.reduce(o(v),{});!1===P&&(D={});let{prevResolvedValues:V={}}=y,b={...V,...D},L=e=>{T=!0,u.has(e)&&(S=!0,u.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in b){let e=D[t],i=V[t];if(!c.hasOwnProperty(t))((0,tt.isKeyframesTarget)(e)&&(0,tt.isKeyframesTarget)(i)?te(e,i):e===i)?void 0!==e&&u.has(t)?L(t):y.protectedKeys[t]=!0:null!=e?L(t):u.add(t)}y.prevProp=g,y.prevResolvedValues=D,y.isActive&&(c={...c,...D}),(n||s)&&t.blockInitialAnimation&&(T=!1);let R=w&&E,B=!R||S;T&&B&&h.push(...A.map(e=>{let i={type:v};if("string"==typeof e&&(n||s)&&!R&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=(0,K.resolveVariant)(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,K.resolveVariant)(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 v=!!h.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(v=!1),n=!1,s=!1,v?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=to(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,C.isAnimationControls)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends Y{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){let i=(0,K.resolveVariant)(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(()=>
1{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends Y{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:ib[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;iA.has(i)||iA.set(i,{});let n=iA.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(iV,{root:t,...e})),n[s]}(a),iS.set(t,l),e.observe(t),()=>{iS.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends Y{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,s,o]=im(t,i),r=t=>{let n=t.currentTarget;if(!iw(t)||iE.has(t))return;ig.add(n),i.stopPropagation&&iE.add(t);let o=e(n,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),ig.has(n)&&ig.delete(n),iw(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{r(t,n===window||n===document||i.useGlobalTarget||iy(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,iv.isObject)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=ix(()=>{if(ig.has(i))return;iP(i,"down");let t=ix(()=>{iP(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>iP(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),tk.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(t,(t,e)=>(iT(this.node,e,"Start"),(t,{success:e})=>iT(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends Y{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,tH.pipe)(tv(this.node.current,"focus",()=>this.onFocus()),tv(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Y{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,o]=im(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||ty.x||ty.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)=>(ip(this.node,e,"Start"),t=>ip(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends Y{constructor(){super(...arguments),this.removePointerDownListener=ta.noop}onPointerDown(t){this.session=new tX(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tW(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:t2(t),onStart:t2(e),onMove:t2(i),onEnd:(t,e)=>{delete this.session,n&&th.frame.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=tN(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Y{constructor(t){super(t),this.removeGroupControls=ta.noop,this.removeListeners=ta.noop,this.controls=new t5(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ta.noop}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()}},ProjectionNode:id,MeasureLayout:en},layout:{ProjectionNode:id,MeasureLayout:en}},(t,e)=>e.isSVG??l(t)?new s.SVGVisualElement(e):new o.HTMLVisualElement(e,{allowProjection:t!==r.Fragment}));t.s(["motion",()=>iL],46932)}]);

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.