PageSourceSearch

https://www.skult.ai/_next/static/chunks/2658-5f4da4fd26f454f2.js

js skult.ai collected 2026-10-05 13:32:17 UTC 52,828 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2658],{1233:function(t,e,i){i.d(e,{D:function(){return r}});var s=i(804),o=i(8322),n=i(3250);function r(t,e,i){let r=(0,o.i)(t)?t:(0,s.BX)(t);return r.start((0,n.v)("",r,e,i)),r.animation}},3241:function(t,e,i){i.d(e,{oO:function(){return n}});var s=i(2265),o=i(7797);function n(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,s.useContext)(o.O);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,a=(0,s.useId)();(0,s.useEffect)(()=>{t&&r(a)},[t]);let l=(0,s.useCallback)(()=>t&&n&&n(a),[a,n,t]);return!i&&n?[!1,l]:[!0]}},5050:function(t,e,i){i.d(e,{p:function(){return s}});let s=(0,i(2265).createContext)({})},9791:function(t,e,i){i.d(e,{_:function(){return s}});let s=(0,i(2265).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},7797:function(t,e,i){i.d(e,{O:function(){return s}});let s=(0,i(2265).createContext)(null)},6094:function(t,e,i){i.d(e,{g:function(){return s}});let s=(0,i(2265).createContext)({})},8172:function(t,e,i){i.d(e,{g:function(){return s}});let{schedule:s,cancel:o}=(0,i(2981).Z)(queueMicrotask,!1)},1292:function(t,e,i){i.d(e,{x:function(){return X}});var s,o=i(7437),n=i(2265),r=i(5050),a=i(6539),l=i(9791);let h=(0,n.createContext)({});var u=i(6859),d=i(3795);function c(t){return Array.isArray(t)?t.join(" "):t}var m=i(7282),p=i(6317),f=i(344);let v=Symbol.for("motionComponentSymbol");var g=i(7576),y=i(7797),x=i(9033),P=i(5908),D=i(8172),T=i(6094),E=i(2860),S=i(6219),w=i(4572),A=i(8595),R=i(458),j=i(2404);let L=t=>(e,i)=>{let s=(0,n.useContext)(h),o=(0,n.useContext)(y.O),r=()=>(function(t,e,i,s){let{scrapeMotionValuesFromProps:o,createRenderState:n,onUpdate:r}=t,a={latestValues:function(t,e,i,s){let o={},n=s(t,{});for(let t in n)o[t]=(0,j.b)(n[t]);let{initial:r,animate:a}=t,l=(0,d.G)(t),h=(0,d.M)(t);e&&h&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,c=(u=u||!1===r)?a:r;if(c&&"boolean"!=typeof c&&!(0,w.H)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let s=(0,A.o)(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=u?e.length-1:0;e=e[t]}null!==e&&(o[t]=e)}for(let e in t)o[e]=t[e]}}}return o}(e,i,s,o),renderState:n()};return r&&(a.onMount=t=>r({props:e,current:t,...a}),a.onUpdate=t=>r(t)),a})(t,e,s,o);return i?r():(0,R.h)(r)};var M=i(6097),C=i(2622);let b=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),B=()=>({...b(),attrs:{}});var V=i(5969),k=i(545),O=i(875);let U=["x","y","width","height","cx","cy","r"],F={useVisualState:L({scrapeMotionValuesFromProps:O.U,createRenderState:B,onUpdate:t=>{let{props:e,prevProps:i,current:s,renderState:o,latestValues:n}=t;if(!s)return;let r=!!e.drag;if(!r){for(let t in n)if(M.G.has(t)){r=!0;break}}if(!r)return;let a=!i;if(i)for(let t=0;t<U.length;t++){let s=U[t];e[s]!==i[s]&&(a=!0)}a&&S.Wi.read(()=>{!function(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}(s,o),S.Wi.render(()=>{(0,C.i)(o,n,(0,V.a)(s.tagName),e.transformTemplate),(0,k.K)(s,o)})})}})},W={useVisualState:L({scrapeMotionValuesFromProps:i(1315).U,createRenderState:b})};var I=i(2020),N=i(8322),$=i(4651);function z(t,e,i){for(let s in e)(0,N.i)(e[s])||(0,I.j)(s,i)||(t[s]=e[s])}let H=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")||H.has(t)}let G=t=>!Y(t);try{(s=require("@emotion/is-prop-valid").default)&&(G=t=>t.startsWith("on")?!Y(t):s(t))}catch(t){}function X(t,e){return function(i){let{forwardMotionProps:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forwardMotionProps:!1};return function(t){var e,i;let{preloadedFeatures:s,createVisualElement:E,useRender:S,useVisualState:w,Component:A}=t;function R(t,e){var i;let s;let f={...(0,n.useContext)(l._),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,n.useContext)(r.p).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:v}=f,R=function(t){let{initial:e,animate:i}=function(t,e){if((0,d.G)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,u.$)(e)?e:void 0,animate:(0,u.$)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,n.useContext)(h));return(0,n.useMemo)(()=>({initial:e,animate:i}),[c(e),c(i)])}(t),j=w(t,v);if(!v&&m.j){(0,n.useContext)(a.u).strict;let t=function(t){let{drag:e,layout:i}=p.featureDefinitions;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
1(f);s=t.MeasureLayout,R.visualElement=function(t,e,i,s,o){var r,u;let{visualElement:d}=(0,n.useContext)(h),c=(0,n.useContext)(a.u),m=(0,n.useContext)(y.O),p=(0,n.useContext)(l._).reducedMotion,f=(0,n.useRef)(null);s=s||c.renderer,!f.current&&s&&(f.current=s(t,{visualState:e,parent:d,props:i,presenceContext:m,blockInitialAnimation:!!m&&!1===m.initial,reducedMotionConfig:p}));let v=f.current,E=(0,n.useContext)(T.g);v&&!v.projection&&o&&("html"===v.type||"svg"===v.type)&&function(t,e,i,s){let{layoutId:o,layout:n,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:h}=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:o,layout:n,alwaysMeasureLayout:!!r||a&&(0,g.I)(a),visualElement:t,animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:h})}(f.current,i,o,E);let S=(0,n.useRef)(!1);(0,n.useInsertionEffect)(()=>{v&&S.current&&v.update(i,m)});let w=i[P.M],A=(0,n.useRef)(!!w&&!(null===(r=window.MotionHandoffIsComplete)||void 0===r?void 0:r.call(window,w))&&(null===(u=window.MotionHasOptimisedAnimation)||void 0===u?void 0:u.call(window,w)));return(0,x.L)(()=>{v&&(S.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),D.g.render(v.render),A.current&&v.animationState&&v.animationState.animateChanges())}),(0,n.useEffect)(()=>{v&&(!A.current&&v.animationState&&v.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,w)}),A.current=!1))}),v}(A,j,f,E,t.ProjectionNode)}return(0,o.jsxs)(h.Provider,{value:R,children:[s&&R.visualElement?(0,o.jsx)(s,{visualElement:R.visualElement,...f}):null,S(A,t,(i=R.visualElement,(0,n.useCallback)(t=>{t&&j.onMount&&j.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):(0,g.I)(e)&&(e.current=t))},[i])),j,v,R.visualElement)]})}s&&(0,f.K)(s),R.displayName=`motion.${"string"==typeof A?A:`create(${null!==(i=null!==(e=A.displayName)&&void 0!==e?e:A.name)&&void 0!==i?i:""})`}`;let j=(0,n.forwardRef)(R);return j[v]=A,j}({...(0,E.q)(i)?F:W,preloadedFeatures:t,useRender:function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e,i,s,o,r)=>{let{latestValues:a}=o,l=((0,E.q)(e)?function(t,e,i,s){let o=(0,n.useMemo)(()=>{let i=B();return(0,C.i)(i,e,(0,V.a)(s),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};z(e,t.style,t),o.style={...e,...o.style}}return o}:function(t,e){let i={},s=function(t,e){let i=t.style||{},s={};return z(s,i,t),Object.assign(s,function(t,e){let{transformTemplate:i}=t;return(0,n.useMemo)(()=>{let t=b();return(0,$.r)(t,e,i),Object.assign({},t.vars,t.style)},[e])}(t,e)),s}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i})(i,a,r,e),h=function(t,e,i){let s={};for(let o in t)("values"!==o||"object"!=typeof t.values)&&(G(o)||!0===i&&Y(o)||!e&&!Y(o)||t.draggable&&o.startsWith("onDrag"))&&(s[o]=t[o]);return s}(i,"string"==typeof e,t),u=e!==n.Fragment?{...h,...l,ref:s}:{},{children:d}=i,c=(0,n.useMemo)(()=>(0,N.i)(d)?d.get():d,[d]);return(0,n.createElement)(e,{...u,children:c})}}(s),createVisualElement:e,Component:i})}}},6863:function(t,e,i){i.d(e,{c:function(){return s}});function s(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy(function(){for(var e=arguments.length,i=Array(e),s=0;s<e;s++)i[s]=arguments[s];return t(...i)},{get:(i,s)=>"create"===s?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}},2658:function(t,e,i){i.d(e,{E:function(){return eg}});var s=i(6863),o=i(8367),n=i(847),r=i(5085),a=i(2159),l=i(6167),h=i(4757),u=i(3731),d=i(3280);function c(t,e,i,s){return(0,u.E)(t,e,(0,d.s)(i),s)}let m=(t,e)=>Math.abs(t-e);var p=i(9654),f=i(6219);class v{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:o=!1}={}){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=x(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,o=(t=i.offset,e={x:0,y:0},Math.sqrt(m(t.x,e.x)**2+m(t.y,e.y)**2)>=3);if(!s&&!o)return;let{point:n}=i,{timestamp:r}=f.frameData;this.history.push({...n,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=g(e,this.transformPagePoint),f.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=x("pointercancel"===t.type?this.lastMoveEventInfo:g(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),s&&s(t,n)},!(0,l.DJ)(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;let n=g((0,d.Q)(t),this.transformPagePoint),{point:r}=n,{timestamp:a}=f.frameData;this.history=[{...r,timestamp:a}];let{onSessionStart:h}=e;h&&h(t,x(n,this.history)),this.removeListeners=(0,p.z)(c(this.contextWindow,"pointermove",this.handlePointerMove),c(this.contextWindow,"pointerup",this.handlePointerUp),c(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,f.Pn)(this.updatePoint)}}function g(t,e){return e?{point:e(t.point)}:t}function y(t,e){return{x:t.x-e.x,y:t.y-e.y}}function x(t,e){let{point:i}=t;return{point:i,delta:y(i,P(e)),offset:y(i,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,o=P(t);for(;i>=0&&(s=t[i],!(o.timestamp-s.timestamp>(0,h.w)(.1)));)i--;if(!s)return{x:0,y:0};let n=(0,h.X)(o.timestamp-s.timestamp);if(0===n)return{x:0,y:0};let r={x:(o.x-s.x)/n,y:(o.y-s.y)/n};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e,0)}}function P(t){return t[t.length-1]}var D=i(7576),T=i(3892),E=i(5004);function S(t){return t.max-t.min}function w(t,e,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=s,t.originPoint=(0,E.t)(e.min,e.max,t.origin),t.scale=S(i)/S(e),t.translate=(0,E.t)(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 A(t,e,i,s){w(t.x,e.x,i.x,s?s.originX:void 0),w(t.y,e.y,i.y,s?s.originY:void 0)}function R(t,e,i){t.min=i.min+e.min,t.max=t.min+S(e)}function j(t,e,i){t.min=e.min-i.min,t.max=t.min+S(e)}function L(t,e,i){j(t.x,e.x,i.x),j(t.y,e.y,i.y)}var M=i(1506);function C(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 b(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 B(t,e,i){return{min:V(t,e),max:V(t,i)}}function V(t,e){return"number"==typeof t?t:t[e]||0}var k=i(8250);function O(t){return[t("x"),t("y")]}var U=i(7684),F=i(3005),W=i(5480),I=i(3250);let N=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null};var $=i(9081);let z=new WeakMap;class H{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,k.dO)(),this.visualElement=t}start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:s}=this.getProps();this.panSession=new v(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor((0,d.Q)(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:o}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,l.KV)(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),O(t=>{let e=this.getAxisMotionValue(t).get()||0;if(W.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];if(s){let t=S(s);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),o&&f.Wi.postRender(()=>o(t,e)),(0,$.K)(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:o,onDrag:n}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:r}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,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(),n&&n(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>O(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:N(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&f.Wi.postRender(()=>o(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!Y(t,s,this.currentDirection))return;let o=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];
1this.constraints&&this.constraints[t]&&(n=function(t,e,i){let{min:s,max:o}=e;return void 0!==s&&t<s?t=i?(0,E.t)(s,t,i.min):Math.max(t,s):void 0!==o&&t>o&&(t=i?(0,E.t)(o,t,i.max):Math.min(t,o)),t}(n,this.constraints[t],this.elastic[t])),o.set(n)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,o=this.constraints;e&&(0,D.I)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,e){let{top:i,left:s,bottom:o,right:n}=e;return{x:C(t.x,s,n),y:C(t.y,i,o)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:B(t,"left","right"),y:B(t,"top","bottom")}}(i),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&O(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(s.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,D.I)(e))return!1;let s=e.current;(0,a.k)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let n=(0,U.z)(s,o.root,this.visualElement.getTransformPagePoint()),r={x:b((t=o.layout.layoutBox).x,n.x),y:b(t.y,n.y)};if(i){let t=i((0,F.z2)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,F.i8)(t))}return r}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:o,dragSnapToOrigin:n,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{};return Promise.all(O(r=>{if(!Y(r,e,this.currentDirection))return;let l=a&&a[r]||{};n&&(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,$.K)(this.visualElement,t),i.start((0,I.v)(t,i,0,e,this.visualElement,!1))}stopAnimation(){O(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){O(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){O(e=>{let{drag:i}=this.getProps();if(!Y(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,o=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[e];o.set(t[e]-(0,E.t)(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,D.I)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};O(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=S(t),o=S(e);return o>s?i=(0,T.Y)(e.min,e.max-s,t.min):s>o&&(i=(0,T.Y)(t.min,t.max-o,e.min)),(0,M.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),O(e=>{if(!Y(e,t,null))return;let i=this.getAxisMotionValue(e),{min:o,max:n}=this.constraints[e];i.set((0,E.t)(o,n,s[e]))})}addListeners(){if(!this.visualElement.current)return;z.set(this.visualElement,this);let t=c(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,D.I)(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()),f.Wi.read(e);let o=(0,u.E)(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i}=t;this.isDragging&&i&&(O(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),s(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:n=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:o,dragElastic:n,dragMomentum:r}}}function Y(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class G extends n.L{constructor(t){super(t),this.removeGroupControls=r.Z,this.removeListeners=r.Z,this.controls=new H(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||r.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}
1let X=t=>(e,i)=>{t&&f.Wi.postRender(()=>t(e,i))};class _ extends n.L{constructor(){super(...arguments),this.removePointerDownListener=r.Z}onPointerDown(t){this.session=new v(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:N(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:X(t),onStart:X(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&f.Wi.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=c(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 Z=i(7437),q=i(2265),Q=i(3241),K=i(5050),J=i(6094);let tt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function te(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ti={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!W.px.test(t))return t;t=parseFloat(t)}let i=te(t,e.target.x),s=te(t,e.target.y);return`${i}% ${s}%`}};var ts=i(9116),to=i(7290),tn=i(8172);class tr extends q.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:o}=t;(0,to.B)(tl),o&&(e.group&&e.group.add(o),i&&i.register&&s&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),tt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:o}=this.props,n=i.projection;return n&&(n.isPresent=o,s||t.layoutDependency!==e||void 0===e?n.willUpdate():this.safeToRemove(),t.isPresent===o||(o?n.promote():n.relegate()||f.Wi.postRender(()=>{let t=n.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tn.g.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ta(t){let[e,i]=(0,Q.oO)(),s=(0,q.useContext)(K.p);return(0,Z.jsx)(tr,{...t,layoutGroup:s,switchLayoutGroup:(0,q.useContext)(J.g),isPresent:e,safeToRemove:i})}let tl={borderRadius:{...ti,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ti,borderTopRightRadius:ti,borderBottomLeftRadius:ti,borderBottomRightRadius:ti,boxShadow:{correct:(t,e)=>{let{treeScale:i,projectionDelta:s}=e,o=ts.P.parse(t);if(o.length>5)return t;let n=ts.P.createTransformer(t),r="number"!=typeof o[0]?1:0,a=s.x.scale*i.x,l=s.y.scale*i.y;o[0+r]/=a,o[1+r]/=l;let h=(0,E.t)(a,l,.5);return"number"==typeof o[2+r]&&(o[2+r]/=h),"number"==typeof o[3+r]&&(o[3+r]/=h),n(o)}}};var th=i(1233),tu=i(2087),td=i(9993),tc=i(8170),tm=i(8746);let tp=(t,e)=>t.depth-e.depth;class tf{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tm.y4)(this.children,t),this.isDirty=!0}remove(t){(0,tm.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tp),this.isDirty=!1,this.children.forEach(t)}}var tv=i(2428),tg=i(2404),ty=i(8536);let tx=["TopLeft","TopRight","BottomLeft","BottomRight"],tP=tx.length,tD=t=>"string"==typeof t?parseFloat(t):t,tT=t=>"number"==typeof t||W.px.test(t);function tE(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tS=tA(0,.5,ty.Bn),tw=tA(.5,.95,r.Z);function tA(t,e,i){return s=>s<t?0:s>e?1:i((0,T.Y)(t,e,s))}function tR(t,e){t.min=e.min,t.max=e.max}function tj(t,e){tR(t.x,e.x),tR(t.y,e.y)}function tL(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tM=i(6711);function tC(t,e,i,s,o){return t-=e,t=(0,tM.q2)(t,1/i,s),void 0!==o&&(t=(0,tM.q2)(t,1/o,s)),t}function tb(t,e,i,s,o){let[n,r,a]=i;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,o=arguments.length>4?arguments[4]:void 0,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(W.aQ.test(e)&&(e=parseFloat(e),e=(0,E.t)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,E.t)(n.min,n.max,s);t===n&&(a-=e),t.min=tC(t.min,e,i,a,o),t.max=tC(t.max,e,i,a,o)}(t,e[n],e[r],e[a],e.scale,s,o)}let tB=["x","scaleX","originX"],tV=["y","scaleY","originY"];function tk(t,e,i,s){tb(t.x,e,tB,i?i.x:void 0,s?s.x:void 0),tb(t.y,e,tV,i?i.y:void 0,s?s.y:void 0)}function tO(t){return 0===t.translate&&1===t.scale}function tU(t){return tO(t.x)&&tO(t.y)}function tF(t,e){return t.min===e.min&&t.max===e.max}function tW(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function tI(t,e){return tW(t.x,e.x)&&tW(t.y,e.y)}function tN(t){return S(t.x)/S(t.y)}function t$(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class tz{constructor(){this.members=[]}add(t){(0,tm.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,tm.cl)(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)}
1}relegate(t){let e;let 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 tH=i(8107);let tY={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},tG="undefined"!=typeof window&&void 0!==window.MotionDebug,tX=["","X","Y","Z"],t_={visibility:"hidden"},tZ=0;function tq(t,e,i,s){let{latestValues:o}=e;o[t]&&(i[t]=o[t],e.setStaticValue(t,0),s&&(s[t]=0))}function tQ(t){let{attachResizeListener:e,defaultParent:i,measureScroll:s,checkIsScrollRoot:o,resetTransform:n}=t;return class{constructor(t={},e=null==i?void 0:i()){this.id=tZ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.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,tG&&(tY.totalNodes=tY.resolvedTargetDeltas=tY.recalculatedProjection=0),this.nodes.forEach(t0),this.nodes.forEach(t8),this.nodes.forEach(t9),this.nodes.forEach(t1),tG&&window.MotionDebug.record(tY)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new tf)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tv.L),this.eventHandlers.get(t).add(e)}notifyListeners(t){for(var e=arguments.length,i=Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];let o=this.eventHandlers.get(t);o&&o.notify(...i)}hasListeners(t){return this.eventHandlers.has(t)}mount(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;this.isSVG=(0,tc.v)(t),this.instance=t;let{layoutId:s,layout:o,visualElement:n}=this.options;if(n&&!n.current&&n.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(o||s)&&(this.isLayoutDirty=!0),e){let i;let s=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=td.X.now(),s=e=>{let{timestamp:o}=e,n=o-i;n>=250&&((0,f.Pn)(s),t(n-250))};return f.Wi.read(s,!0),()=>(0,f.Pn)(s)}(s,0),tt.hasAnimatedSinceResize&&(tt.hasAnimatedSinceResize=!1,this.nodes.forEach(t6))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&n&&(s||o)&&this.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i,hasRelativeTargetChanged:s,layout:o}=t;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||eo,{onLayoutAnimationStart:a,onLayoutAnimationComplete:h}=n.getProps(),u=!this.targetLayout||!tI(this.targetLayout,o)||s,d=!i&&s;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||d||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,d);let t={...(0,l.ev)(r,"layout"),onPlay:a,onComplete:h};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else i||t6(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,f.Pn)(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
1h(t4),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[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,tu.s)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",f.Wi,!(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(t5);return}this.isUpdating||this.nodes.forEach(t3),this.isUpdating=!1,this.nodes.forEach(t7),this.nodes.forEach(tK),this.nodes.forEach(tJ),this.clearAllSnapshots();let t=td.X.now();f.frameData.delta=(0,M.u)(0,1e3/60,t-f.frameData.timestamp),f.frameData.timestamp=t,f.frameData.isProcessing=!0,f.yL.update.process(f.frameData),f.yL.preRender.process(f.frameData),f.yL.render.process(f.frameData),f.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tn.g.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(t2),this.sharedNodes.forEach(et)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,f.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){f.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,k.dO)(),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(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=o(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:s(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&&!tU(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,o=s!==this.prevTransformTemplateValue;t&&(e||(0,tH.ud)(this.latestValues)||o)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],i=this.measurePageBox(),s=this.removeElementScroll(i);return e&&(s=this.removeTransform(s)),ea((t=s).x),ea(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return(0,k.dO)();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(eh))){let{scroll:t}=this.root;t&&((0,tM.am)(i.x,t.offset.x),(0,tM.am)(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=(0,k.dO)();if(tj(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let s=this.path[e],{scroll:o,options:n}=s;s!==this.root&&o&&n.layoutScroll&&(o.wasRoot&&tj(i,t),(0,tM.am)(i.x,o.offset.x),(0,tM.am)(i.y,o.offset.y))}return i}applyTransform(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(0,k.dO)();tj(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,tM.D2)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,tH.ud)(s.latestValues)&&(0,tM.D2)(i,s.latestValues)}return(0,tH.ud)(this.latestValues)&&(0,tM.D2)(i,this.latestValues),i}removeTransform(t){let e=(0,k.dO)();tj(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,tH.ud)(i.latestValues))continue;(0,tH.Lj)(i.latestValues)&&i.updateSnapshot();let s=(0,k.dO)();tj(s,i.measurePageBox()),tk(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,tH.ud)(this.latestValues)&&tk(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!==f.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){var t,e,i,s;let o=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
1haredProjectionDirty);let r=!!this.resumingFrom||this!==n;if(!(o||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=f.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,k.dO)(),this.relativeTargetOrigin=(0,k.dO)(),L(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tj(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,k.dO)(),this.targetWithTransforms=(0,k.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),e=this.target,i=this.relativeTarget,s=this.relativeParent.target,R(e.x,i.x,s.x),R(e.y,i.y,s.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tj(this.target,this.layout.layoutBox),(0,tM.o2)(this.target,this.targetDelta)):tj(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,k.dO)(),this.relativeTargetOrigin=(0,k.dO)(),L(this.relativeTargetOrigin,this.target,t.target),tj(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tG&&tY.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||(0,tH.Lj)(this.parent.latestValues)||(0,tH.D_)(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,s=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===f.frameData.timestamp&&(s=!1),s)return;let{layout:o,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||!(o||n))return;tj(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;(0,tM.YY)(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,k.dO)());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(tL(this.prevProjectionDelta.x,this.projectionDelta.x),tL(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),A(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&t$(this.projectionDelta.x,this.prevProjectionDelta.x)&&t$(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),tG&&tY.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,k.wc)(),this.projectionDelta=(0,k.wc)(),this.projectionDeltaWithTransform=(0,k.wc)()}setAnimationOrigin(t){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=this.snapshot,o=s?s.latestValues:{},n={...this.latestValues},r=(0,k.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let a=(0,k.dO)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(es));this.animationProgress=0,this.mixTargetDelta=i=>{let s=i/1e3;if(ee(r.x,t.x,s),ee(r.y,t.y,s),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,m,p;L(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,ei(m.x,p.x,a.x,s),ei(m.y,p.y,a.y,s),e&&(h=this.relativeTarget,c=e,tF(h.x,c.x)&&tF(h.y,c.y))&&(this.isProjectionDirty=!1),e||(e=(0,k.dO)()),tj(e,this.relativeTarget)}
1l&&(this.animationValues=n,function(t,e,i,s,o,n){o?(t.opacity=(0,E.t)(0,void 0!==i.opacity?i.opacity:1,tS(s)),t.opacityExit=(0,E.t)(void 0!==e.opacity?e.opacity:1,0,tw(s))):n&&(t.opacity=(0,E.t)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let o=0;o<tP;o++){let n=`border${tx[o]}Radius`,r=tE(e,n),a=tE(i,n);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||tT(r)===tT(a)?(t[n]=Math.max((0,E.t)(tD(r),tD(a),s),0),(W.aQ.test(a)||W.aQ.test(r))&&(t[n]+="%")):t[n]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,E.t)(e.rotate||0,i.rotate||0,s))}(n,o,this.latestValues,s,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,f.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=f.Wi.update(()=>{tt.hasAnimatedSinceResize=!0,this.currentAnimation=(0,th.D)(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:o}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&el(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,k.dO)();let e=S(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=S(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}tj(e,i),(0,tM.D2)(e,o),A(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new tz),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},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&&tq("z",t,s,this.animationValues);for(let e=0;e<tX.length;e++)tq(`rotate${tX[e]}`,t,s,this.animationValues),tq(`skew${tX[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return t_;let s={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=(0,tg.b)(null==t?void 0:t.pointerEvents)||"",s.transform=o?o(this.latestValues,""):"none",s;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=(0,tg.b)(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,tH.ud)(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}let r=n.animationValues||n.latestValues;
1this.applyTransformsToTarget(),s.transform=function(t,e,i){let s="",o=t.x.translate/e.x,n=t.y.translate/e.y,r=(null==i?void 0:i.z)||0;if((o||n||r)&&(s=`translate3d(${o}px, ${n}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:n,skewX:r,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),o&&(s+=`rotateX(${o}deg) `),n&&(s+=`rotateY(${n}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,r),o&&(s.transform=o(r,s.transform));let{x:a,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,n.animationValues?s.opacity=n===this?null!==(i=null!==(e=r.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:s.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,to.P){if(void 0===r[t])continue;let{correct:e,applyTo:i}=to.P[t],o="none"===s.transform?r[t]:e(r[t],n);if(i){let t=i.length;for(let e=0;e<t;e++)s[i[e]]=o}else s[t]=o}return this.options.layoutId&&(s.pointerEvents=n===this?(0,tg.b)(null==t?void 0:t.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(t5),this.root.sharedNodes.clear()}}}function tK(t){t.updateLayout()}function tJ(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:s}=t.layout,{animationType:o}=t.options,n=i.source!==t.layout.source;"size"===o?O(t=>{let s=n?i.measuredBox[t]:i.layoutBox[t],o=S(s);s.min=e[t].min,s.max=s.min+o}):el(o,i.layoutBox,e)&&O(s=>{let o=n?i.measuredBox[s]:i.layoutBox[s],r=S(e[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,k.wc)();A(r,e,i.layoutBox);let a=(0,k.wc)();n?A(a,t.applyTransform(s,!0),i.measuredBox):A(a,e,i.layoutBox);let l=!tU(r),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:o,layout:n}=s;if(o&&n){let r=(0,k.dO)();L(r,i.layoutBox,o.layoutBox);let a=(0,k.dO)();L(a,e,n.layoutBox),tI(r,a)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function t0(t){tG&&tY.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function t1(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function t2(t){t.clearSnapshot()}function t5(t){t.clearMeasurements()}function t3(t){t.isLayoutDirty=!1}function t7(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function t6(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function t8(t){t.resolveTargetDelta()}function t9(t){t.calcProjection()}function t4(t){t.resetSkewAndRotation()}function et(t){t.removeLeadSnapshot()}function ee(t,e,i){t.translate=(0,E.t)(e.translate,0,i),t.scale=(0,E.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ei(t,e,i,s){t.min=(0,E.t)(e.min,i.min,s),t.max=(0,E.t)(e.max,i.max,s)}function es(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eo={duration:.45,ease:[.4,0,.1,1]},en=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),er=en("applewebkit/")&&!en("chrome/")?Math.round:r.Z;function ea(t){t.min=er(t.min),t.max=er(t.max)}function el(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(tN(e)-tN(i)))}function eh(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let eu=tQ({attachResizeListener:(t,e)=>(0,u.E)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ed={current:void 0},ec=tQ({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ed.current){let t=new eu({});t.mount(window),t.setOptions({layoutScroll:!0}),ed.current=t}return ed.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var em=i(874),ep=i(1292),ef=i(85);let ev=(0,ep.x)({...o.s,...em.E,pan:{Feature:_},drag:{Feature:G,ProjectionNode:ec,MeasureLayout:ta},layout:{ProjectionNode:ec,MeasureLayout:ta}},ef.b),eg=(0,s.c)(ev)}
1,8170:function(t,e,i){i.d(e,{v:function(){return s}});function s(t){return t instanceof SVGElement&&"svg"!==t.tagName}},7576:function(t,e,i){i.d(e,{I:function(){return s}});function s(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}},458:function(t,e,i){i.d(e,{h:function(){return o}});var s=i(2265);function o(t){let e=(0,s.useRef)(null);return null===e.current&&(e.current=t()),e.current}},9033:function(t,e,i){i.d(e,{L:function(){return o}});var s=i(2265);let o=i(7282).j?s.useLayoutEffect:s.useEffect},2404:function(t,e,i){i.d(e,{b:function(){return n}});var s=i(9155),o=i(8322);function n(t){let e=(0,o.i)(t)?t.get():t;return(0,s.p)(e)?e.toValue():e}}}]);

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.