PageSourceSearch

https://www.fancycomponents.dev/_next/static/chunks/6c0b278e0b43d24b.js

js fancycomponents.dev collected 2026-10-04 00:06:18 UTC 64,524 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,54505,44966,t=>{"use strict";var e=t.i(71645),i=t.i(57044),s=t.i(78310);let n=["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 o(t){if("string"!=typeof t||t.includes("-"));else if(n.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.s(["isSVGComponent",()=>o],44966);let r=(t,n)=>o(t)?new s.SVGVisualElement(n):new i.HTMLVisualElement(n,{allowProjection:t!==e.Fragment});t.s(["createDomVisualElement",()=>r],54505)},31178,t=>{"use strict";let e=(0,t.i(71645).createContext)({});t.s(["LayoutGroupContext",()=>e])},48070,88291,82474,86549,11587,8576,t=>{"use strict";var e,i=t.i(71645);let s=(0,i.createContext)({strict:!1});t.s(["LazyContext",()=>s],48070);let n=(0,i.createContext)({});t.s(["MotionContext",()=>n],88291);var o=t.i(98922),r=t.i(42531);function a(t){let{initial:e,animate:s}=function(t,e){if((0,o.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,r.isVariantLabel)(e)?e:void 0,animate:(0,r.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i.useContext)(n));return(0,i.useMemo)(()=>({initial:e,animate:s}),[l(e),l(s)])}function l(t){return Array.isArray(t)?t.join(" "):t}t.s(["useCreateMotionContext",()=>a],82474);var h=t.i(83411),u=t.i(19026),c=t.i(58768);let d=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function m(t,e,i){for(let s in e)(0,h.isMotionValue)(e[s])||(0,u.isForcedMotionValue)(s,i)||(t[s]=e[s])}t.s(["createHtmlRenderState",()=>d],86549);var p=t.i(33203);let f=()=>({...d(),attrs:{}});t.s(["createSvgRenderState",()=>f],11587);var v=t.i(50514);let g=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function y(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||g.has(t)}let x=t=>!y(t);try{e=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof e&&(x=t=>t.startsWith("on")?!y(t):e(t))}catch{}var P=t.i(44966);function T(t,e,s,{latestValues:n},o,r=!1){let a=((0,P.isSVGComponent)(t)?function(t,e,s,n){let o=(0,i.useMemo)(()=>{let i=f();return(0,p.buildSVGAttrs)(i,e,(0,v.isSVGTag)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};m(e,t.style,t),o.style={...e,...o.style}}return o}:function(t,e){let s,n,o={},r=(s=t.style||{},m(n={},s,t),Object.assign(n,function({transformTemplate:t},e){return(0,i.useMemo)(()=>{let i=d();return(0,c.buildHTMLStyles)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(o.tabIndex=0),o.style=r,o})(e,n,o,t),l=function(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(x(n)||!0===i&&y(n)||!e&&!y(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}(e,"string"==typeof t,r),u=t!==i.Fragment?{...l,...a,ref:s}:{},{children:g}=e,D=(0,i.useMemo)(()=>(0,h.isMotionValue)(g)?g.get():g,[g]);return(0,i.createElement)(t,{...u,children:D})}t.s(["useRender",()=>T],8576)},21476,t=>{"use strict";let e=(0,t.i(71645).createContext)(null);t.s(["PresenceContext",()=>e])},7051,28987,4035,45161,11129,23070,39676,26368,41327,65536,61054,76673,33986,85651,t=>{"use strict";t.i(47167);var e=t.i(43476),i=t.i(71645),s=t.i(31178),n=t.i(48070),o=t.i(37806),r=t.i(88291),a=t.i(82474),l=t.i(8576),h=t.i(44966),u=t.i(44974),c=t.
1i(21476),d=t.i(98922),m=t.i(43190),p=t.i(47414),f=t.i(83411);function v(t){return(0,f.isMotionValue)(t)?t.get():t}t.s(["resolveMotionValue",()=>v],28987);let g=t=>(e,s)=>{let n=(0,i.useContext)(r.MotionContext),o=(0,i.useContext)(c.PresenceContext),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,s,n){return{latestValues:function(t,e,i,s){let n={},o=s(t,{});for(let t in o)n[t]=v(o[t]);let{initial:r,animate:a}=t,l=(0,d.isControllingVariants)(t),h=(0,d.isVariantNode)(t);e&&h&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let c=!!i&&!1===i.initial,p=(c=c||!1===r)?a:r;if(p&&"boolean"!=typeof p&&!(0,u.isAnimationControls)(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let s=(0,m.resolveVariantFromProps)(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(i,s,n,t),renderState:e()}})(t,e,n,o);return s?a():(0,p.useConstant)(a)};var y=t.i(86549);let x=g({scrapeMotionValuesFromProps:t.i(32313).scrapeMotionValuesFromProps,createRenderState:y.createHtmlRenderState});var P=t.i(11587);let T=g({scrapeMotionValuesFromProps:t.i(25954).scrapeMotionValuesFromProps,createRenderState:P.createSvgRenderState});var D=t.i(92936),A=t.i(76948);let E=Symbol.for("motionComponentSymbol");function S(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var w=t.i(79386);let C=(0,i.createContext)({});t.s(["SwitchLayoutGroupContext",()=>C],4035);var b=t.i(74008);function L(t,{forwardMotionProps:u=!1}={},d,m){d&&function(t){for(let e in t)A.featureDefinitions[e]={...A.featureDefinitions[e],...t[e]}}(d);let p=(0,h.isSVGComponent)(t)?T:x;function f(h,d){var f;let v,g={...(0,i.useContext)(o.MotionConfigContext),...h,layoutId:function({layoutId:t}){let e=(0,i.useContext)(s.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(h)},{isStatic:y}=g,x=(0,a.useCreateMotionContext)(h),P=p(h,y);if(!y&&D.isBrowser){(0,i.useContext)(n.LazyContext).strict;let e=function(t){let{drag:e,layout:i}=A.featureDefinitions;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(g);v=e.MeasureLayout,x.visualElement=function(t,e,s,a,l){let{visualElement:h}=(0,i.useContext)(r.MotionContext),u=(0,i.useContext)(n.LazyContext),d=(0,i.useContext)(c.PresenceContext),m=(0,i.useContext)(o.MotionConfigContext).reducedMotion,p=(0,i.useRef)(null);a=a||u.renderer,!p.current&&a&&(p.current=a(t,{visualState:e,parent:h,props:s,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:m}));let f=p.current,v=(0,i.useContext)(C);f&&!f.projection&&l&&("html"===f.type||"svg"===f.type)&&function(t,e,i,s){let{layoutId:n,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutCrossfade:u}=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:n,layout:o,alwaysMeasureLayout:!!r||a&&S(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:h})}(p.current,s,l,v);let g=(0,i.useRef)(!1);(0,i.useInsertionEffect)(()=>{f&&g.current&&f.update(s,d)});let y=s[w.optimizedAppearDataAttribute],x=(0,i.useRef)(!!y&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return(0,b.useIsomorphicLayoutEffect)(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),x.current&&f.animationState&&f.animationState.animateChanges())}),(0,i.useEffect)(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),x.current=!1),f.enteringChildren=void 0)}),f}(t,P,g,m,e.ProjectionNode)}return(0,e.jsxs)(r.MotionContext.Provider,{value:x,children:[v&&x.visualElement?(0,e.jsx)(v,{visualElement:x.visualElement,...g}):null,(0,l.useRender)(t,h,(f=x.visualElement,(0,i.useCallback)(t=>{t&&P.onMount&&P.onMount(t),f&&(t?f.mount(t):f.unmount()),d&&("function"==typeof d?d(t):S(d)&&(d.current=t))},[f])),P,y,u)]})}f.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let v=(0,i.forwardRef)(f);return v[E]=t,v}function V(t,e){if("undefined"==typeof Proxy)return L;let i=new Map,s=(i,s)=>L(i,s,t,e);return new Proxy((t,e)=>s(t,e),{get:(n,o)=>"create"===o?s:(i.has(o)||i.set(o,L(o,void 0,t,e)),i.get(o))})}t.s(["createMotionProxy",()=>V],7051);var R=t.i(70452),B=t.i(6327);function M(t,e,i,s=0,n=1){let o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),r=t.size,a=(r-1)*s;return"function"==typeof i?i(o,r):1===n?o*s:a-o*s}function j(t,e,i={}){let s=(0,R.resolveVariant)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let o=s?()=>Promise.all((0,B.animateTarget)(t,s,i)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=n;
1return function(t,e,i=0,s=0,n=0,o=1,r){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(j(l,e,{...r,delay:i+("function"==typeof s?0:s)+M(t.variantChildren,l,s,n,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,s,o,r,a,i)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([o(),r(i.delay)]);{let[t,e]="beforeChildren"===a?[o,r]:[r,o];return t().then(()=>e())}}function k(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>j(t,e,i)));else if("string"==typeof e)s=j(t,e,i);else{let n="function"==typeof e?(0,R.resolveVariant)(t,e,i.custom):e;s=Promise.all((0,B.animateTarget)(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})}t.s(["animateVisualElement",()=>k],45161);var F=t.i(77894);function U(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}var O=t.i(42531),I=t.i(89607);let N=I.variantProps.length,W=[...I.variantPriorityOrder].reverse(),G=I.variantPriorityOrder.length;function H(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $(){return{animate:H(!0),whileInView:H(),whileHover:H(),whileTap:H(),whileDrag:H(),whileFocus:H(),exit:H()}}class z{constructor(t){this.isMounted=!1,this.node=t}update(){}}t.s(["Feature",()=>z],11129);let X=0,Y={animation:{Feature:class extends z{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>k(t,e,i))),i=$(),s=!0,n=e=>(i,s)=>{let n=(0,R.resolveVariant)(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function o(o){let{props:r}=t,a=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<N;t++){let s=I.variantProps[t],n=e.props[s];((0,O.isVariantLabel)(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},l=[],h=new Set,c={},d=1/0;for(let e=0;e<G;e++){var m,p;let f=W[e],v=i[f],g=void 0!==r[f]?r[f]:a[f],y=(0,O.isVariantLabel)(g),x=f===o?v.isActive:null;!1===x&&(d=e);let P=g===a[f]&&g!==r[f]&&y;if(P&&s&&t.manuallyAnimateOnMount&&(P=!1),v.protectedKeys={...c},!v.isActive&&null===x||!g&&!v.prevProp||(0,u.isAnimationControls)(g)||"boolean"==typeof g)continue;let T=(m=v.prevProp,"string"==typeof(p=g)?p!==m:!!Array.isArray(p)&&!U(p,m)),D=T||f===o&&v.isActive&&!P&&y||e>d&&y,A=!1,E=Array.isArray(g)?g:[g],S=E.reduce(n(f),{});!1===x&&(S={});let{prevResolvedValues:w={}}=v,C={...w,...S},b=e=>{D=!0,h.has(e)&&(A=!0,h.delete(e)),v.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=S[t],i=w[t];if(!c.hasOwnProperty(t))((0,F.isKeyframesTarget)(e)&&(0,F.isKeyframesTarget)(i)?U(e,i):e===i)?void 0!==e&&h.has(t)?b(t):v.protectedKeys[t]=!0:null!=e?b(t):h.add(t)}v.prevProp=g,v.prevResolvedValues=S,v.isActive&&(c={...c,...S}),s&&t.blockInitialAnimation&&(D=!1);let L=P&&T,V=!L||A;D&&V&&l.push(...E.map(e=>{let i={type:f};if("string"==typeof e&&s&&!L&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,n=(0,R.resolveVariant)(s,e);if(s.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=M(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof r.initial){let i=(0,R.resolveVariant)(t,Array.isArray(r.initial)?r.initial[0]:r.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),l.push({animation:e})}let f=!!l.length;return s&&(!1===r.initial||r.initial===r.animate)&&!t.manuallyAnimateOnMount&&(f=!1),s=!1,f?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,s){if(i[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),i[e].isActive=s;let n=o(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=$()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,u.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 z{constructor(){super(...arguments),this.id=X++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>
1{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};t.s(["animations",()=>Y],23070);var K=t.i(60830),_=t.i(87022),q=t.i(706);let Z={x:!1,y:!1};function J(){return Z.x||Z.y}t.s(["isDragActive",()=>J,"isDragging",()=>Z],39676);var Q=t.i(65091),tt=t.i(65566),te=t.i(82363);function ti(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}t.s(["addDomEvent",()=>ti],26368);let ts=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tn(t){return{point:{x:t.pageX,y:t.pageY}}}t.s(["isPrimaryPointer",()=>ts],41327);let to=t=>e=>ts(e)&&t(e,tn(e));function tr(t,e,i,s){return ti(t,e,to(i),s)}t.s(["addPointerInfo",()=>to,"extractEventInfo",()=>tn],65536);var ta=t.i(49587);function tl(t){return t.max-t.min}function th(t,e,i){return Math.abs(t-e)<=i}function tu(t,e,i,s=.5){t.origin=s,t.originPoint=(0,q.mixNumber)(e.min,e.max,t.origin),t.scale=tl(i)/tl(e),t.translate=(0,q.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 tc(t,e,i,s){tu(t.x,e.x,i.x,s?s.originX:void 0),tu(t.y,e.y,i.y,s?s.originY:void 0)}function td(t,e,i){t.min=i.min+e.min,t.max=t.min+tl(e)}function tm(t,e,i){td(t.x,e.x,i.x),td(t.y,e.y,i.y)}function tp(t,e,i){t.min=e.min-i.min,t.max=t.min+tl(e)}function tf(t,e,i){tp(t.x,e.x,i.x),tp(t.y,e.y,i.y)}t.s(["calcBoxDelta",()=>tc,"calcLength",()=>tl,"calcRelativeBox",()=>tm,"calcRelativePosition",()=>tf,"isNear",()=>th],61054);var tv=t.i(81699);function tg(t){return[t("x"),t("y")]}t.s(["eachAxis",()=>tg],76673);var ty=t.i(45504);let tx=({current:t})=>t?t.ownerDocument.defaultView:null;var tP=t.i(93521),tT=t.i(38638),tD=t.i(63074);let tA=(t,e)=>Math.abs(t-e);class tE{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=tC(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(tA(t.x,e.x)**2+tA(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:o}=i,{timestamp:r}=_.frameData;this.history.push({...o,timestamp:r});let{onStart:a,onMove:l}=this.handlers;s||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=tS(e,this.transformPagePoint),_.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=tC("pointercancel"===t.type?this.lastMoveEventInfo:tS(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),s&&s(t,o)},!ts(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=s||window;const r=tS(tn(t),this.transformPagePoint),{point:a}=r,{timestamp:l}=_.frameData;this.history=[{...a,timestamp:l}];const{onSessionStart:h}=e;h&&h(t,tC(r,this.history)),this.removeListeners=(0,tT.pipe)(tr(this.contextWindow,"pointermove",this.handlePointerMove),tr(this.contextWindow,"pointerup",this.handlePointerUp),tr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,_.cancelFrame)(this.updatePoint)}}function tS(t,e){return e?{point:e(t.point)}:t}function tw(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tC({point:t},e){return{point:t,delta:tw(t,tb(e)),offset:tw(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,n=tb(t);for(;i>=0&&(s=t[i],!(n.timestamp-s.timestamp>(0,tD.secondsToMilliseconds)(.1)));)i--;if(!s)return{x:0,y:0};let o=(0,tD.millisecondsToSeconds)(n.timestamp-s.timestamp);if(0===o)return{x:0,y:0};let r={x:(n.x-s.x)/o,y:(n.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e,.1)}}function tb(t){return t[t.length-1]}var tL=t.i(83920),tV=t.i(76959);function tR(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 tB(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function tM(t,e,i){return{min:tj(t,e),max:tj(t,i)}}function tj(t,e){return"number"==typeof t?t:t[e]||0}let tk=new WeakMap;class tF{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,tv.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tn(t).point)},o=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(Z[t])return null;else return Z[t]=!0,()=>{Z[t]=!1};return Z.x||Z.y?null:(Z.x=Z.y=!0,()=>{Z.x=Z.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),tg(t=>{let e=this.getAxisMotionValue(t).get()||0;if(Q.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=tl(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&_.frame.postRender(()=>n(t,e)),(0,tP.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:s,onDirectionLock:n,onDrag:o}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:r}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(r),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>tg(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:h}=this.getProps();
1this.panSession=new tE(t,{onSessionStart:n,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:tx(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:o}=s;this.startAnimation(o);let{onDragEnd:r}=this.getProps();r&&_.frame.postRender(()=>r(i,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!tU(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,q.mixNumber)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,q.mixNumber)(i,t,s.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),n.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,s=this.constraints;t&&S(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:tR(t.x,i,n),y:tR(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:tM(t,"left","right"),y:tM(t,"top","bottom")}}(e),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tg(t=>{var e,s;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],n={},void 0!==s.min&&(n.min=s.min-e.min),void 0!==s.max&&(n.max=s.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!S(e))return!1;let s=e.current;(0,tt.invariant)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let o=(0,ty.measurePageBox)(s,n.root,this.visualElement.getTransformPagePoint()),r=(t=n.layout.layoutBox,{x:tB(t.x,o.x),y:tB(t.y,o.y)});if(i){let t=i((0,ta.convertBoxToBoundingBox)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,ta.convertBoundingBoxToBox)(t))}return r}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{};return Promise.all(tg(r=>{if(!tU(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[r]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(r,h)})).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,tP.addValueToWillChange)(this.visualElement,t),i.start((0,te.animateMotionValue)(t,i,0,e,this.visualElement,!1))}stopAnimation(){tg(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tg(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){tg(e=>{let{drag:i}=this.getProps();if(!tU(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:o}=s.layout.layoutBox[e];n.set(t[e]-(0,q.mixNumber)(i,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!S(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};tg(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let o,r,a,l=e.get();s[t]=(i={min:l,max:l},n=this.constraints[t],o=.5,r=tl(i),(a=tl(n))>r?o=(0,tL.progress)(n.min,n.max-r,i.min):r>a&&(o=(0,tL.progress)(i.min,i.max-a,n.min)),(0,tV.clamp)(0,1,o))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),tg(e=>{if(!tU(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:o}=this.constraints[e];i.set((0,q.mixNumber)(n,o,s[e]))})}addListeners(){if(!this.visualElement.current)return;tk.set(this.visualElement,this);let t=tr(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();S(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),_.frame.read(e);let n=ti(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tg(e=>{let i=this.getAxisMotionValue(e);
1i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),s(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:o=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:o,dragMomentum:r}}}function tU(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tO extends z{constructor(t){super(t),this.removeGroupControls=K.noop,this.removeListeners=K.noop,this.controls=new tF(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||K.noop}unmount(){this.removeGroupControls(),this.removeListeners()}}t.s(["DragGesture",()=>tO],33986);let tI=t=>(e,i)=>{t&&_.frame.postRender(()=>t(e,i))};class tN extends z{constructor(){super(...arguments),this.removePointerDownListener=K.noop}onPointerDown(t){this.session=new tE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tx(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:tI(t),onStart:tI(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&_.frame.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=tr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}t.s(["PanGesture",()=>tN],85651)},64978,t=>{"use strict";var e=t.i(71645),i=t.i(21476);function s(t=!0){let n=(0,e.useContext)(i.PresenceContext);if(null===n)return[!0,null];let{isPresent:o,onExitComplete:r,register:a}=n,l=(0,e.useId)();(0,e.useEffect)(()=>{if(t)return a(l)},[t]);let h=(0,e.useCallback)(()=>t&&r&&r(l),[l,r,t]);return!o&&r?[!1,h]:[!0]}t.s(["usePresence",()=>s])},46932,t=>{"use strict";var e=t.i(54505),i=t.i(7051),s=t.i(23070),n=t.i(33986),o=t.i(85651),r=t.i(43476),a=t.i(87022),l=t.i(60140),h=t.i(71645),u=t.i(64978),c=t.i(31178),d=t.i(4035);let m={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var p=t.i(65091);function f(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let v={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!p.px.test(t))return t;else t=parseFloat(t);let i=f(t,e.target.x),s=f(t,e.target.y);return`${i}% ${s}%`}};var g=t.i(69577),y=t.i(706),x=t.i(52383);let P=!1;class T extends h.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;(0,x.addScaleCorrector)(A),n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),P&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),m.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,{projection:o}=i;return o&&(o.isPresent=n,P=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?o.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?o.promote():o.relegate()||a.frame.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),l.microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;P=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function D(t){let[e,i]=(0,u.usePresence)(),s=(0,h.useContext)(c.LayoutGroupContext);return(0,r.jsx)(T,{...t,layoutGroup:s,switchLayoutGroup:(0,h.useContext)(d.SwitchLayoutGroupContext),isPresent:e,safeToRemove:i})}let A={borderRadius:{...v,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:v,borderTopRightRadius:v,borderBottomLeftRadius:v,borderBottomRightRadius:v,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=g.complex.parse(t);if(s.length>5)return t;let n=g.complex.createTransformer(t),o=+("number"!=typeof s[0]),r=i.x.scale*e.x,a=i.y.scale*e.y;s[0+o]/=r,s[1+o]/=a;let l=(0,y.mixNumber)(r,a,.5);return"number"==typeof s[2+o]&&(s[2+o]/=l),"number"==typeof s[3+o]&&(s[3+o]/=l),n(s)}}};var E=t.i(80248),S=t.i(89026),w=t.i(36331),C=t.i(87333),b=t.i(96173),L=t.i(4169),V=t.i(86427),R=t.i(70596),B=t.i(
176959),M=t.i(60830),j=t.i(69122),k=t.i(67369),F=t.i(33887);let U=(t,e)=>t.depth-e.depth;class O{constructor(){this.children=[],this.isDirty=!1}add(t){(0,F.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,F.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(U),this.isDirty=!1,this.children.forEach(t)}}t.i(63074);var I=t.i(28987),N=t.i(83920),W=t.i(91559);let G=["TopLeft","TopRight","BottomLeft","BottomRight"],H=G.length,$=t=>"string"==typeof t?parseFloat(t):t,z=t=>"number"==typeof t||p.px.test(t);function X(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let Y=_(0,.5,W.circOut),K=_(.5,.95,M.noop);function _(t,e,i){return s=>s<t?0:s>e?1:i((0,N.progress)(t,e,s))}function q(t,e){t.min=e.min,t.max=e.max}function Z(t,e){q(t.x,e.x),q(t.y,e.y)}function J(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var Q=t.i(89234),tt=t.i(61054);function te(t,e,i,s,n){return t-=e,t=(0,Q.scalePoint)(t,1/i,s),void 0!==n&&(t=(0,Q.scalePoint)(t,1/n,s)),t}function ti(t,e,[i,s,n],o,r){!function(t,e=0,i=1,s=.5,n,o=t,r=t){if(p.percent.test(e)&&(e=parseFloat(e),e=(0,y.mixNumber)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,y.mixNumber)(o.min,o.max,s);t===o&&(a-=e),t.min=te(t.min,e,i,a,n),t.max=te(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,o,r)}let ts=["x","scaleX","originX"],tn=["y","scaleY","originY"];function to(t,e,i,s){ti(t.x,e,ts,i?i.x:void 0,s?s.x:void 0),ti(t.y,e,tn,i?i.y:void 0,s?s.y:void 0)}var tr=t.i(81699);function ta(t){return 0===t.translate&&1===t.scale}function tl(t){return ta(t.x)&&ta(t.y)}function th(t,e){return t.min===e.min&&t.max===e.max}function tu(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function tc(t,e){return tu(t.x,e.x)&&tu(t.y,e.y)}function td(t){return(0,tt.calcLength)(t.x)/(0,tt.calcLength)(t.y)}function tm(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class tp{constructor(){this.members=[]}add(t){(0,F.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,F.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){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var tf=t.i(76673),tv=t.i(72696);let tg={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ty=["","X","Y","Z"],tx=0;function tP(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function tT({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=tx++,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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,E.statsBuffer.value&&(tg.nodes=tg.calculatedTargetDeltas=tg.calculatedProjections=0),this.nodes.forEac
1h(tE),this.nodes.forEach(tR),this.nodes.forEach(tB),this.nodes.forEach(tS),E.statsBuffer.addProjectionMetrics&&E.statsBuffer.addProjectionMetrics(tg)},this.resolvedRelativeTargetAt=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 O)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new R.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,S.isSVGElement)(e)&&!(0,w.isSVGSVGElement)(e),this.instance=e;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;a.frame.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==s){let e,o;s=t,this.root.updateBlockedByResize=!0,i&&i(),e=b.time.now(),o=({timestamp:t})=>{let i=t-e;i>=250&&((0,a.cancelFrame)(o),n(i-250))},a.frame.setup(o,!0),i=()=>(0,a.cancelFrame)(o),m.hasAnimatedSinceResize&&(m.hasAnimatedSinceResize=!1,this.nodes.forEach(tV))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||n.getDefaultTransition()||tO,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!tc(this.targetLayout,s),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,C.getValueTransition)(o,"layout"),onPlay:r,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||tV(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,a.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(tM),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 s=(0,k.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",a.frame,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(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,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
1h(tC);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(tb);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(tL),this.nodes.forEach(tD),this.nodes.forEach(tA)):this.nodes.forEach(tb),this.clearAllSnapshots();let t=b.time.now();a.frameData.delta=(0,B.clamp)(0,1e3/60,t-a.frameData.timestamp),a.frameData.timestamp=t,a.frameData.isProcessing=!0,a.frameSteps.update.process(a.frameData),a.frameSteps.preRender.process(a.frameData),a.frameSteps.render.process(a.frameData),a.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,l.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tw),this.sharedNodes.forEach(tj)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,a.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){a.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,tt.calcLength)(this.snapshot.measuredBox.x)||(0,tt.calcLength)(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.layoutCorrected=(0,tr.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=s(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(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!tl(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,o=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,tv.hasTransform)(this.latestValues)||o)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),tW((e=s).x),tW(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,tr.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tH))){let{scroll:t}=this.root;t&&((0,Q.translateAxis)(e.x,t.offset.x),(0,Q.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,tr.createBox)();if(Z(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:o}=s;s!==this.root&&n&&o.layoutScroll&&(n.wasRoot&&Z(e,t),(0,Q.translateAxis)(e.x,n.offset.x),(0,Q.translateAxis)(e.y,n.offset.y))}return e}applyTransform(t,e=!1){let i=(0,tr.createBox)();Z(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(0,Q.transformBox)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,tv.hasTransform)(s.latestValues)&&(0,Q.transformBox)(i,s.latestValues)}return(0,tv.hasTransform)(this.latestValues)&&(0,Q.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,tr.createBox)();Z(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,tv.hasTransform)(i.latestValues))continue;(0,tv.hasScale)(i.latestValues)&&i.updateSnapshot();let s=(0,tr.createBox)();Z(s,i.measurePageBox()),to(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,tv.hasTransform)(this.latestValues)&&to(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!==a.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:s,layoutId:n}=this.options;if(this.layout&&(s||n)){if(this.resolvedRelativeTargetAt=a.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tr.createBox)(),this.relativeTargetOrigin=(0,tr.createBox)(),(0,tt.calcRelativePosition)(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Z(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,tr.createBox)(),this.targetWithTransforms=(0,tr.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,tt.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Z(this.target,this.layout.layoutBox),(0,Q.applyBoxDelta)(this.target,this.targetDelta)):Z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tr.createBox)(),this.relativeTargetOrigin=(0,tr.createBox)(),(0,tt.calcRelativePosition)(this.relativeTargetOrigin,this.target,t.target),Z(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}E.statsBuffer.value&&tg.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||(0,tv.hasScale)(this.parent.latestValues)||(0,tv.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)}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===a.frameData.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;Z(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,r=this.treeScale.y;(0,Q.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,tr.createBox)());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(J(this.prevProjectionDelta.x,this.projectionDelta.x),J(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,tt.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===r&&tm(this.projectionDelta.x,this.prevProjectionDelta.x)&&tm(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),E.statsBuffer.value&&tg.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,tr.createDelta)(),this.projectionDelta=(0,tr.createDelta)(),this.projectionDeltaWithTransform=(0,tr.createDelta)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,n=s?s.latestValues:{},o={...this.latestValues},r=(0,tr.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,tr.createBox)(),l=(s?s.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(tU));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(tk(r.x,t.x,s),tk(r.y,t.y,s),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,d,m,f,v,g;(0,tt.calcRelativePosition)(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,f=this.relativeTargetOrigin,v=a,g=s,tF(m.x,f.x,v.x,g),tF(m.y,f.y,v.y,g),i&&(h=this.relativeTarget,d=i,th(h.x,d.x)&&th(h.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,tr.createBox)()),Z(i,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,i,s,n,o){n?(t.opacity=(0,y.mixNumber)(0,i.opacity??1,Y(s)),t.opacityExit=(0,y.mixNumber)(e.opacity??1,0,K(s))):o&&(t.opacity=(0,y.mixNumber)(e.opacity??1,i.opacity??1,s));for(let n=0;n<H;n++){let o=`border${G[n]}Radius`,r=X(e,o),a=X(i,o);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||z(r)===z(a)?(t[o]=Math.max((0,y.mixNumber)($(r),$(a),s),0),(p.percent.test(a)||p.percent.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,y.mixNumber)(e.rotate||0,i.rotate||0,s))}(o,n,this.latestValues,s,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,a.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=a.frame.update(()=>{m.hasAnimatedSinceResize=!0,L.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,V.motionValue)(0)),this.currentAnimation=(0,j.animateSingleValue)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{L.activeAnimations.layout--},onComplete:()=>{L.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:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&tG(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,tr.createBox)();let e=(0,tt.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=(0,tt.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}Z(e,i),(0,Q.transformBox)(e,n),(0,tt.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new tp),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;
1return 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 s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&tP("z",t,s,this.animationValues);for(let e=0;e<ty.length;e++)tP(`rotate${ty[e]}`,t,s,this.animationValues),tP(`skew${ty[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}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=(0,I.resolveMotionValue)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,I.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!(0,tv.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let o=function(t,e,i){let s="",n=t.x.translate/e.x,o=t.y.translate/e.y,r=i?.z||0;if((n||o||r)&&(s=`translate3d(${n}px, ${o}px, ${r}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:o,skewX:r,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),o&&(s+=`rotateY(${o}deg) `),r&&(s+=`skewX(${r}deg) `),a&&(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(o=i(n,o)),t.transform=o;let{x:r,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,s.animationValues?t.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,x.scaleCorrectors){if
1(void 0===n[e])continue;let{correct:i,applyTo:r,isCSSVariable:a}=x.scaleCorrectors[e],l="none"===o?n[e]:i(n[e],s);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=s===this?(0,I.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(tC),this.root.sharedNodes.clear()}}}function tD(t){t.updateLayout()}function tA(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,o=e.source!==t.layout.source;"size"===n?(0,tf.eachAxis)(t=>{let s=o?e.measuredBox[t]:e.layoutBox[t],n=(0,tt.calcLength)(s);s.min=i[t].min,s.max=s.min+n}):tG(n,e.layoutBox,i)&&(0,tf.eachAxis)(s=>{let n=o?e.measuredBox[s]:e.layoutBox[s],r=(0,tt.calcLength)(i[s]);n.max=n.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+r)});let r=(0,tr.createDelta)();(0,tt.calcBoxDelta)(r,i,e.layoutBox);let a=(0,tr.createDelta)();o?(0,tt.calcBoxDelta)(a,t.applyTransform(s,!0),e.measuredBox):(0,tt.calcBoxDelta)(a,i,e.layoutBox);let l=!tl(r),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:o}=s;if(n&&o){let r=(0,tr.createBox)();(0,tt.calcRelativePosition)(r,e.layoutBox,n.layoutBox);let a=(0,tr.createBox)();(0,tt.calcRelativePosition)(a,i,o.layoutBox),tc(r,a)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=s)}}}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 tE(t){E.statsBuffer.value&&tg.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 tS(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tw(t){t.clearSnapshot()}function tC(t){t.clearMeasurements()}function tb(t){t.isLayoutDirty=!1}function tL(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tV(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tR(t){t.resolveTargetDelta()}function tB(t){t.calcProjection()}function tM(t){t.resetSkewAndRotation()}function tj(t){t.removeLeadSnapshot()}function tk(t,e,i){t.translate=(0,y.mixNumber)(e.translate,0,i),t.scale=(0,y.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tF(t,e,i,s){t.min=(0,y.mixNumber)(e.min,i.min,s),t.max=(0,y.mixNumber)(e.max,i.max,s)}function tU(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tO={duration:.45,ease:[.4,0,.1,1]},tI=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tN=tI("applewebkit/")&&!tI("chrome/")?Math.round:M.noop;function tW(t){t.min=tN(t.min),t.max=tN(t.max)}function tG(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,tt.isNear)(td(e),td(i),.2)}function tH(t){return t!==t.root&&t.scroll?.wasRoot}var t$=t.i(26368);let tz=tT({attachResizeListener:(t,e)=>(0,t$.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tX={current:void 0},tY=tT({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tX.current){let t=new tz({});t.mount(window),t.setOptions({layoutScroll:!0}),tX.current=t}return tX.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),tK={pan:{Feature:o.PanGesture},drag:{Feature:n.DragGesture,ProjectionNode:tY,MeasureLayout:D}};var t_=t.i(39676),tq=t.i(49652);function tZ(t,e){let i=(0,tq.resolveElements)(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function tJ(t){return!("touch"===t.pointerType||(0,t_.isDragActive)())}var tQ=t.i(65536),t0=t.i(11129);function t1(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&a.frame.postRender(()=>n(e,(0,tQ.extractEventInfo)(e)))}class t6 extends t0.Feature{mount(){let{current:t}=this.node;
1t&&(this.unmount=function(t,e,i={}){let[s,n,o]=tZ(t,i),r=t=>{if(!tJ(t))return;let{target:i}=t,s=e(i,t);if("function"!=typeof s||!i)return;let o=t=>{tJ(t)&&(s(t),i.removeEventListener("pointerleave",o))};i.addEventListener("pointerleave",o,n)};return s.forEach(t=>{t.addEventListener("pointerenter",r,n)}),o}(t,(t,e)=>(t1(this.node,e,"Start"),t=>t1(this.node,t,"End"))))}unmount(){}}var t5=t.i(38638),t3=t0;class t4 extends t3.Feature{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,t5.pipe)((0,t$.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,t$.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var t7=t.i(72846);let t8=(t,e)=>!!e&&(t===e||t8(t,e.parentElement));var t9=t.i(41327);let t2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),et=new WeakSet;function ee(t){return e=>{"Enter"===e.key&&t(e)}}function ei(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function es(t){return(0,t9.isPrimaryPointer)(t)&&!(0,t_.isDragActive)()}var en=t0;function eo(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&a.frame.postRender(()=>n(e,(0,tQ.extractEventInfo)(e)))}class er extends en.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,o]=tZ(t,i),r=t=>{let s=t.currentTarget;if(!es(t))return;et.add(s);let o=e(s,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),et.has(s)&&et.delete(s),es(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{r(t,s===window||s===document||i.useGlobalTarget||t8(s,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return s.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",r,n),(0,t7.isHTMLElement)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=ee(()=>{if(et.has(i))return;ei(i,"down");let t=ee(()=>{ei(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>ei(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n)),t2.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(t,(t,e)=>(eo(this.node,e,"Start"),(t,{success:e})=>eo(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}var ea=t0;let el=new WeakMap,eh=new WeakMap,eu=t=>{let e=el.get(t.target);e&&e(t)},ec=t=>{t.forEach(eu)},ed={some:0,all:1};class em extends ea.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:o="some",once:r}=i,a={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:ed[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:s}=this.node.getProps(),n=e?i:s;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;eh.has(i)||eh.set(i,{});let s=eh.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(ec,{root:t,...e})),s[n]}(a),el.set(t,l),e.observe(t),()=>{el.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(){}}let ep={...s.animations,inView:{Feature:em},tap:{Feature:er},focus:{Feature:t4},hover:{Feature:t6},...tK,layout:{ProjectionNode:tY,MeasureLayout:D}},ef=(0,i.createMotionProxy)(ep,e.createDomVisualElement);t.s(["motion",()=>ef],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.