1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="5f7423cf-5daf-45ae-0402-29f2ccae2c7e")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,846932,137541,61175,461054,583662,891305,49048,646816,454292,t=>{"use strict";var e=t.i(154505),i=t.i(907051),s=t.i(223070),o=t.i(311129),a=t.i(260830),r=t.i(287022),n=t.i(100706),l=t.i(919880),h=t.i(439676);function u(t){if("x"===t||"y"===t)if(h.isDragging[t])return null;else return h.isDragging[t]=!0,()=>{h.isDragging[t]=!1};return h.isDragging.x||h.isDragging.y?null:(h.isDragging.x=h.isDragging.y=!0,()=>{h.isDragging.x=h.isDragging.y=!1})}t.s(["setDragLock",0,u],137541);var c=t.i(265091),m=t.i(965566),d=t.i(982363),p=t.i(426368),g=t.i(665536);function f(t,e,i,s){return(0,p.addDomEvent)(t,e,(0,g.addPointerInfo)(i),s)}t.s(["addPointerEvent",0,f],61175);var y=t.i(149587);function v(t){return t.max-t.min}function x(t,e,i){return Math.abs(t-e)<=i}function P(t,e,i,s=.5){t.origin=s,t.originPoint=(0,n.mixNumber)(e.min,e.max,t.origin),t.scale=v(i)/v(e),t.translate=(0,n.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 D(t,e,i,s){P(t.x,e.x,i.x,s?s.originX:void 0),P(t.y,e.y,i.y,s?s.originY:void 0)}function T(t,e,i){t.min=i.min+e.min,t.max=t.min+v(e)}function E(t,e,i){T(t.x,e.x,i.x),T(t.y,e.y,i.y)}function A(t,e,i){t.min=e.min-i.min,t.max=t.min+v(e)}function S(t,e,i){A(t.x,e.x,i.x),A(t.y,e.y,i.y)}t.s(["calcBoxDelta",0,D,"calcLength",0,v,"calcRelativeBox",0,E,"calcRelativePosition",0,S,"isNear",0,x],461054);var B=t.i(181699);function R(t){return[t("x"),t("y")]}var j=t.i(245504);let V=({current:t})=>t?t.ownerDocument.defaultView:null;var L=t.i(325522),w=t.i(593521),M=t.i(341327),C=t.i(738638),b=t.i(763074);let k=(t,e)=>Math.abs(t-e);function U(t,e){return Math.sqrt(k(t.x,e.x)**2+k(t.y,e.y)**2)}t.s(["distance",0,k,"distance2D",0,U],583662);class F{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:o=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=N(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=U(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;let{point:s}=t,{timestamp:o}=r.frameData;this.history.push({...s,timestamp:o});let{onStart:a,onMove:n}=this.handlers;e||(a&&a(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),n&&n(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=I(e,this.transformPagePoint),r.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:o}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&o&&o(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=N("pointercancel"===t.type?this.lastMoveEventInfo:I(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,a),s&&s(t,a)},!(0,M.isPrimaryPointer)(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=a,this.contextWindow=s||window;const n=I((0,g.extractEventInfo)(t),this.transformPagePoint),{point:l}=n,{timestamp:h}=r.frameData;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,N(n,this.history)),this.removeListeners=(0,C.pipe)(f(this.contextWindow,"pointermove",this.handlePointerMove),f(this.contextWindow,"pointerup",this.handlePointerUp),f(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,r.cancelFrame)(this.updatePoint)}}function I(t,e){return e?{point:e(t.point)}:t}function O(t,e){return{x:t.x-e.x,y:t.y-e.y}}function N({point:t},e){return{point:t,delta:O(t,W(e)),offset:O(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,s=W(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>(0,b.secondsToMilliseconds)(.1)));)e--;if(!i)return{x:0,y:0};let o=(0,b.millisecondsToSeconds)(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};let a={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e)}}function W(t){return t[t.length-1]}var $=t.i(783920),z=t.i(476959);function G(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 H(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 X(t,e,i){return{min:Y(t,e),max:Y(t,i)}}function Y(t,e){return"number"==typeof t?t:t[e]||0}
2let q=new WeakMap;class K{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,B.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 o=t=>{e?(this.stopAnimation(),this.snapToCursor((0,g.extractEventInfo)(t).point)):this.pauseAnimation()},a=(t,e)=>{this.stopAnimation();let{drag:i,dragPropagation:s,onDragStart:o}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=u(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),R(t=>{let e=this.getAxisMotionValue(t).get()||0;if(c.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=v(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),o&&r.frame.postRender(()=>o(t,e)),(0,w.addValueToWillChange)(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},n=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:o,onDrag:a}=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&&o&&o(this.currentDirection);return}this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),a&&a(t,e)},l=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>R(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:m}=this.getProps();this.panSession=new F(t,{onSessionStart:o,onStart:a,onMove:n,onSessionEnd:l,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:i,contextWindow:V(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!s||!i)return;let{velocity:a}=s;this.startAnimation(a);let{onDragEnd:n}=this.getProps();n&&r.frame.postRender(()=>n(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||!Z(t,s,this.currentDirection))return;let o=this.getAxisMotionValue(t),a=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(a=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,n.mixNumber)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,n.mixNumber)(i,t,s.max):Math.min(t,i)),t}(a,this.constraints[t],this.elastic[t])),o.set(a)}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&&(0,L.isRefObject)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:o}){return{x:G(t.x,i,o),y:G(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:X(t,"left","right"),y:X(t,"top","bottom")}}(e),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&R(t=>{var e,s;let o;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],o={},void 0!==s.min&&(o.min=s.min-e.min),void 0!==s.max&&(o.max=s.max-e.min),o))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,L.isRefObject)(e))return!1;let s=e.current;(0,m.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:o}=this.visualElement;if(!o||!o.layout)return!1;let a=(0,j.measurePageBox)(s,o.root,this.visualElement.getTransformPagePoint()),r=(t=o.layout.layoutBox,{x:H(t.x,a.x),y:H(t.y,a.y)});if(i){let t=i((0,y.convertBoxToBoundingBox)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,y.convertBoundingBoxToBox)(t))}return r}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:r}=this.getProps(),n=this.constraints||{};return Promise.all(R(r=>{if(!Z(r,e,this.currentDirection))return;let l=n&&n[r]||{};a&&(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,...o,...l};return this.startAxisValueAnimation(r,h)})).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,w.addValueToWillChange)(this.visualElement,t),i.start((0,d.animateMotionValue)(t,i,0,e,this.visualElement,!1))}stopAnimation(){R(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){R(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){R(e=>{let{drag:i}=this.getProps();if(!Z(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,o=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:a}=s.layout.layoutBox[e],r=o.get()||0;o.set(t[e]-(0,n.mixNumber)(i,a,.5)+r)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,L.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};R(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,o;let a,r,n,l=e.get();s[t]=(i={min:l,max:l},o=this.constraints[t],a=.5,r=v(i),(n=v(o))>r?a=(0,$.progress)(o.min,o.max-r,i.min):r>n&&(a=(0,$.progress)(i.min,i.max-n,o.min)),(0,z.clamp)(0,1,a))}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),R(e=>{if(!Z(e,t,null))return;let i=this.getAxisMotionValue(e),{min:o,max:a}=this.constraints[e];i.set((0,n.mixNumber)(o,a,s[e]))})}addListeners(){if(!this.visualElement.current)return;q.set(this.visualElement,this);let t=f(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&!(0,l.isElementKeyboardAccessible)(t.target)&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,L.isRefObject)(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()),r.frame.read(e);let o=(0,p.addDomEvent)(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(R(e=>{let i=this.getAxisMotionValue(e);
2i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),t(),s(),a&&a()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:a=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:o,dragElastic:a,dragMomentum:r}}}function Z(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class _ extends o.Feature{constructor(t){super(t),this.removeGroupControls=a.noop,this.removeListeners=a.noop,this.controls=new K(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||a.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()}}var J=o;let Q=t=>(e,i)=>{t&&r.frame.postRender(()=>t(e,i))};class tt extends J.Feature{constructor(){super(...arguments),this.removePointerDownListener=a.noop}onPointerDown(t){this.session=new F(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:V(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:Q(t),onStart:Q(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&r.frame.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=f(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var te=t.i(843476),ti=t.i(560140),ts=t.i(271645),to=t.i(464978),ta=t.i(231178),tr=t.i(104035);let tn={hasAnimatedSinceResize:!0,hasEverUpdated:!1},tl=!1;class th extends ts.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:o}=t;o&&(e.group&&e.group.add(o),i&&i.register&&s&&i.register(o),tl&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),tn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:o}=this.props,{projection:a}=i;return a&&(a.isPresent=o,tl=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||r.frame.postRender(()=>{let t=a.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ti.microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;tl=!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 tu(t){let[e,i]=(0,to.usePresence)(),s=(0,ts.useContext)(ta.LayoutGroupContext);return(0,te.jsx)(th,{...t,layoutGroup:s,switchLayoutGroup:(0,ts.useContext)(tr.SwitchLayoutGroupContext),isPresent:e,safeToRemove:i})}var tc=t.i(880248),tm=t.i(889026),td=t.i(836331),tp=t.i(987333),tg=t.i(496173),tf=t.i(504169),ty=t.i(486427),tv=t.i(570596),tx=t.i(969122),tP=t.i(767369),tD=t.i(133887);let tT=(t,e)=>t.depth-e.depth;class tE{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tD.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,tD.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tT),this.isDirty=!1,this.children.forEach(t)}}function tA(t,e){let i=tg.time.now(),s=({timestamp:o})=>{let a=o-i;a>=e&&((0,r.cancelFrame)(s),t(a-e))};return r.frame.setup(s,!0),()=>(0,r.cancelFrame)(s)}t.s(["delay",0,tA],891305);var tS=t.i(528987),tB=t.i(791559);let tR=["TopLeft","TopRight","BottomLeft","BottomRight"],tj=tR.length,tV=t=>"string"==typeof t?parseFloat(t):t,tL=t=>"number"==typeof t||c.px.test(t);function tw(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tM=tb(0,.5,tB.circOut),tC=tb(.5,.95,a.noop);function tb(t,e,i){return s=>s<t?0:s>e?1:i((0,$.progress)(t,e,s))}function tk(t,e){t.min=e.min,t.max=e.max}function tU(t,e){tk(t.x,e.x),tk(t.y,e.y)}function tF(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tI=t.i(789234);function tO(t,e,i,s,o){return t-=e,t=(0,tI.scalePoint)(t,1/i,s),void 0!==o&&(t=(0,tI.scalePoint)(t,1/o,s)),t}function tN(t,e,[i,s,o],a,r){!function(t,e=0,i=1,s=.5,o,a=t,r=t){if(c.percent.test(e)&&(e=parseFloat(e),e=(0,n.mixNumber)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let l=(0,n.mixNumber)(a.min,a.max,s);t===a&&(l-=e),t.min=tO(t.min,e,i,l,o),t.max=tO(t.max,e,i,l,o)}(t,e[i],e[s],e[o],e.scale,a,r)}let tW=["x","scaleX","originX"],t$=["y","scaleY","originY"];function tz(t,e,i,s){tN(t.x,e,tW,i?i.x:void 0,s?s.x:void 0),tN(t.y,e,t$,i?i.y:void 0,s?s.y:void 0)}function tG(t){return 0===t.translate&&1===t.scale}function tH(t){return tG(t.x)&&tG(t.y)}function tX(t,e){return t.min===e.min&&t.max===e.max}function tY(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function tq(t,e){return tY(t.x,e.x)&&tY(t.y,e.y)}function tK(t){return v(t.x)/v(t.y)}function tZ(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class t_{constructor(){this.members=[]}add(t){(0,tD.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,tD.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)}
2}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 tJ=t.i(852383),tQ=t.i(672696);let t0={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},t1=["","X","Y","Z"],t5=0;function t6(t,e,i,s){let{latestValues:o}=e;o[t]&&(i[t]=o[t],e.setStaticValue(t,0),s&&(s[t]=0))}function t3({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(t={},i=e?.()){this.id=t5++,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,tc.statsBuffer.value&&(t0.nodes=t0.calculatedTargetDeltas=t0.calculatedProjections=0),this.nodes.forEach(t9),this.nodes.forEach(eo),this.nodes.forEach(ea),this.nodes.forEach(t8),tc.statsBuffer.addProjectionMetrics&&tc.statsBuffer.addProjectionMetrics(t0)},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 tE)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tv.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,tm.isSVGElement)(e)&&!(0,td.isSVGSVGElement)(e),this.instance=e;let{layoutId:i,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.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,o=()=>this.root.updateBlockedByResize=!1;r.frame.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==s&&(s=t,this.root.updateBlockedByResize=!0,i&&i(),i=tA(o,250),tn.hasAnimatedSinceResize&&(tn.hasAnimatedSinceResize=!1,this.nodes.forEach(es)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(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 a=this.options.transition||o.getDefaultTransition()||ec,{onLayoutAnimationStart:r,onLayoutAnimationComplete:n}=o.getProps(),l=!this.targetLayout||!tq(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,tp.getValueTransition)(a,"layout"),onPlay:r,onComplete:n};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||es(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,r.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.forEac
2h(er),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,tP.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",r.frame,!(t||i))}let{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&t(o)}(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.forEach(et);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(ee);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ei),this.nodes.forEach(t2),this.nodes.forEach(t4)):this.nodes.forEach(ee),this.clearAllSnapshots();let t=tg.time.now();r.frameData.delta=(0,z.clamp)(0,1e3/60,t-r.frameData.timestamp),r.frameData.timestamp=t,r.frameData.isProcessing=!0,r.frameSteps.update.process(r.frameData),r.frameSteps.preRender.process(r.frameData),r.frameSteps.render.process(r.frameData),r.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ti.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(t7),this.sharedNodes.forEach(en)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,r.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){r.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||v(this.snapshot.measuredBox.x)||v(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=(0,B.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(!o)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!tH(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,a=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,tQ.hasTransform)(this.latestValues)||a)&&(o(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)),ep((e=s).x),ep(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,B.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ef))){let{scroll:t}=this.root;t&&((0,tI.translateAxis)(e.x,t.offset.x),(0,tI.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,B.createBox)();if(tU(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:o,options:a}=s;s!==this.root&&o&&a.layoutScroll&&(o.wasRoot&&tU(e,t),(0,tI.translateAxis)(e.x,o.offset.x),(0,tI.translateAxis)(e.y,o.offset.y))}return e}applyTransform(t,e=!1){let i=(0,B.createBox)();tU(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,tI.transformBox)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,tQ.hasTransform)(s.latestValues)&&(0,tI.transformBox)(i,s.latestValues)}return(0,tQ.hasTransform)(this.latestValues)&&(0,tI.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,B.createBox)();tU(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,tQ.hasTransform)(i.latestValues))continue;(0,tQ.hasScale)(i.latestValues)&&i.updateSnapshot();let s=(0,B.createBox)();tU(s,i.measurePageBox()),tz(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,tQ.hasTransform)(this.latestValues)&&tz(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!==r.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:o}=this.options;if(!this.layout||!(s||o))return;this.resolvedRelativeTargetAt=r.frameData.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=(0,B.createBox)(),this.targetWithTransforms=(0,B.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),E(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tU(this.target,this.layout.layoutBox),(0,tI.applyBoxDelta)(this.target,this.targetDelta)):tU(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),tc.statsBuffer.value&&t0.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||(0,tQ.hasScale)(this.parent.latestValues)||(0,tQ.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,B.createBox)(),this.relativeTargetOrigin=(0,B.createBox)(),S(this.relativeTargetOrigin,e,i),tU(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
2if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===r.frameData.timestamp&&(i=!1),i)return;let{layout:s,layoutId:o}=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||o))return;tU(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,n=this.treeScale.y;(0,tI.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,B.createBox)());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(tF(this.prevProjectionDelta.x,this.projectionDelta.x),tF(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),D(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===n&&tZ(this.projectionDelta.x,this.prevProjectionDelta.x)&&tZ(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),tc.statsBuffer.value&&t0.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,B.createDelta)(),this.projectionDelta=(0,B.createDelta)(),this.projectionDeltaWithTransform=(0,B.createDelta)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,o=s?s.latestValues:{},a={...this.latestValues},r=(0,B.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=(0,B.createBox)(),h=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),m=!u||u.members.length<=1,d=!!(h&&!m&&!0===this.options.crossfade&&!this.path.some(eu));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(el(r.x,t.x,s),el(r.y,t.y,s),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,p,g,f,y,v;S(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),g=this.relativeTarget,f=this.relativeTargetOrigin,y=l,v=s,eh(g.x,f.x,y.x,v),eh(g.y,f.y,y.y,v),i&&(u=this.relativeTarget,p=i,tX(u.x,p.x)&&tX(u.y,p.y))&&(this.isProjectionDirty=!1),i||(i=(0,B.createBox)()),tU(i,this.relativeTarget)}h&&(this.animationValues=a,function(t,e,i,s,o,a){o?(t.opacity=(0,n.mixNumber)(0,i.opacity??1,tM(s)),t.opacityExit=(0,n.mixNumber)(e.opacity??1,0,tC(s))):a&&(t.opacity=(0,n.mixNumber)(e.opacity??1,i.opacity??1,s));for(let o=0;o<tj;o++){let a=`border${tR[o]}Radius`,r=tw(e,a),l=tw(i,a);(void 0!==r||void 0!==l)&&(r||(r=0),l||(l=0),0===r||0===l||tL(r)===tL(l)?(t[a]=Math.max((0,n.mixNumber)(tV(r),tV(l),s),0),(c.percent.test(l)||c.percent.test(r))&&(t[a]+="%")):t[a]=l)}(e.rotate||i.rotate)&&(t.rotate=(0,n.mixNumber)(e.rotate||0,i.rotate||0,s))}(a,o,this.latestValues,s,d,m)),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,r.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=r.frame.update(()=>{tn.hasAnimatedSinceResize=!0,tf.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,ty.motionValue)(0)),this.currentAnimation=(0,tx.animateSingleValue)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{tf.activeAnimations.layout--},onComplete:()=>{tf.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:o}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&eg(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,B.createBox)();let e=v(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=v(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}tU(e,i),(0,tI.transformBox)(e,o),D(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new t_),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;
2return 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&&t6("z",t,s,this.animationValues);for(let e=0;e<t1.length;e++)t6(`rotate${t1[e]}`,t,s,this.animationValues),t6(`skew${t1[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,tS.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,tS.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!(0,tQ.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let o=s.animationValues||s.latestValues;this.applyTransformsToTarget();let a=function(t,e,i){let s="",o=t.x.translate/e.x,a=t.y.translate/e.y,r=i?.z||0;if((o||a||r)&&(s=`translate3d(${o}px, ${a}px, ${r}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:o,rotateY:a,skewX:r,skewY:n}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),o&&(s+=`rotateX(${o}deg) `),a&&(s+=`rotateY(${a}deg) `),r&&(s+=`skewX(${r}deg) `),n&&(s+=`skewY(${n}deg) `)}let n=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==n||1!==l)&&(s+=`scale(${n}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,o);i&&(a=i(o,a)),t.transform=a;let{x:r,y:n}=this.projectionDelta;for(let e in t.transformOrigin=`${100*r.origin}% ${100*n.origin}% 0`,s.animationValues?t.opacity=s===this?o.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:t.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,tJ.scaleCorrectors){if
2(void 0===o[e])continue;let{correct:i,applyTo:r,isCSSVariable:n}=tJ.scaleCorrectors[e],l="none"===a?o[e]:i(o[e],s);if(r){let e=r.length;for(let i=0;i<e;i++)t[r[i]]=l}else n?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?(0,tS.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(et),this.root.sharedNodes.clear()}}}function t2(t){t.updateLayout()}function t4(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:o}=t.options,a=e.source!==t.layout.source;"size"===o?R(t=>{let s=a?e.measuredBox[t]:e.layoutBox[t],o=v(s);s.min=i[t].min,s.max=s.min+o}):eg(o,e.layoutBox,i)&&R(s=>{let o=a?e.measuredBox[s]:e.layoutBox[s],r=v(i[s]);o.max=o.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+r)});let r=(0,B.createDelta)();D(r,i,e.layoutBox);let n=(0,B.createDelta)();a?D(n,t.applyTransform(s,!0),e.measuredBox):D(n,i,e.layoutBox);let l=!tH(r),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:o,layout:a}=s;if(o&&a){let r=(0,B.createBox)();S(r,e.layoutBox,o.layoutBox);let n=(0,B.createBox)();S(n,i,a.layoutBox),tq(r,n)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=n,t.relativeTargetOrigin=r,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:n,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function t9(t){tc.statsBuffer.value&&t0.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 t8(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function t7(t){t.clearSnapshot()}function et(t){t.clearMeasurements()}function ee(t){t.isLayoutDirty=!1}function ei(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function es(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eo(t){t.resolveTargetDelta()}function ea(t){t.calcProjection()}function er(t){t.resetSkewAndRotation()}function en(t){t.removeLeadSnapshot()}function el(t,e,i){t.translate=(0,n.mixNumber)(e.translate,0,i),t.scale=(0,n.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eh(t,e,i,s){t.min=(0,n.mixNumber)(e.min,i.min,s),t.max=(0,n.mixNumber)(e.max,i.max,s)}function eu(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ec={duration:.45,ease:[.4,0,.1,1]},em=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ed=em("applewebkit/")&&!em("chrome/")?Math.round:a.noop;function ep(t){t.min=ed(t.min),t.max=ed(t.max)}function eg(t,e,i){return"position"===t||"preserve-aspect"===t&&!x(tK(e),tK(i),.2)}function ef(t){return t!==t.root&&t.scroll?.wasRoot}let ey=t3({attachResizeListener:(t,e)=>(0,p.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ev={current:void 0},ex=t3({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ev.current){let t=new ey({});t.mount(window),t.setOptions({layoutScroll:!0}),ev.current=t}return ev.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});t.s(["HTMLProjectionNode",0,ex,"rootProjectionNode",0,ev],49048);let eP={pan:{Feature:tt},drag:{Feature:_,ProjectionNode:ex,MeasureLayout:tu}};t.s(["drag",0,eP],646816);
2var eD=t.i(708149);let eT={layout:{ProjectionNode:ex,MeasureLayout:tu}};t.s(["layout",0,eT],454292);let eE={...s.animations,...eD.gestureAnimations,...eP,...eT},eA=(0,i.createMotionProxy)(eE,e.createDomVisualElement);t.s(["motion",0,eA],846932)}]); 3 4//# debugId=5f7423cf-5daf-45ae-0402-29f2ccae2c7e
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.