1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9646],{38518:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o,a,i,s,u,l,c,f,d,p=n(64661),m=n(2265),v=n(73225),g=n(11566),y=n(42444),h=n(32040);function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var x=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(m),V=_interopDefaultLegacy(m),P=_interopDefaultLegacy(h),createDefinition=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},E={measureLayout:createDefinition(["layout","layoutId","drag","_layoutResetTransform"]),animation:createDefinition(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:createDefinition(["exit"]),drag:createDefinition(["drag","dragControls"]),focus:createDefinition(["whileFocus"]),hover:createDefinition(["whileHover","onHoverStart","onHoverEnd"]),tap:createDefinition(["whileTap","onTap","onTapStart","onTapCancel"]),pan:createDefinition(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:createDefinition(["layout","layoutId"])};function loadFeatures(e){for(var t in e){var n=e[t];null!==n&&(E[t].Component=n)}}var A=m.createContext({strict:!1}),_=Object.keys(E),b=_.length,C=m.createContext({transformPagePoint:function(e){return e},isStatic:!1}),S=m.createContext({});function useVisualElementContext(){return m.useContext(S).visualElement}var T=m.createContext(null);function useConstant(e){var t=m.useRef(null);return null===t.current&&(t.current=e()),t.current}function usePresence(){var e=m.useContext(T);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=useUniqueId();return m.useEffect(function(){return r(o)},[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function isPresent(e){return null===e||e.isPresent}var L=0,incrementId=function(){return L++},useUniqueId=function(){return useConstant(incrementId)},D=m.createContext(null),M="undefined"!=typeof window,w=M?m.useLayoutEffect:m.useEffect;function isRefObject(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function isVariantLabels(e){return Array.isArray(e)}function isVariantLabel(e){return"string"==typeof e||isVariantLabels(e)}function resolveVariantFromProps(e,t,n,r,o){var a;return void 0===r&&(r={}),void 0===o&&(o={}),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t?t(null!=n?n:e.custom,r,o):t}function resolveVariant(e,t,n){var r,o,a=e.getProps();return resolveVariantFromProps(a,t,null!=n?n:a.custom,(r={},e.forEachValue(function(e,t){return r[t]=e.get()}),r),(o={},e.forEachValue(function(e,t){return o[t]=e.getVelocity()}),o))}function checkIfControllingVariants(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||isVariantLabel(e.initial)||isVariantLabel(e.animate)||isVariantLabel(e.whileHover)||isVariantLabel(e.whileDrag)||isVariantLabel(e.whileTap)||isVariantLabel(e.whileFocus)||isVariantLabel(e.exit)}function checkIfVariantNode(e){return!!(checkIfControllingVariants(e)||e.variants)}function variantLabelsAsDependency(e){return Array.isArray(e)?e.join(" "):e}function createMotionComponent(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.useRender,o=e.useVisualState,a=e.Component;return t&&loadFeatures(t),m.forwardRef(function(e,t){var i,s,u,l,c,f,d,v,g,y,h,V,P,L,R=m.useContext(C).isStatic,k=null,O=(V=(h=function(e,t){if(checkIfControllingVariants(e)){var n=e.initial,r=e.animate;return{initial:!1===n||isVariantLabel(n)?n:void 0,animate:isVariantLabel(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,m.useContext(S))).initial,P=h.animate,m.useMemo(function(){return{initial:V,animate:P}},R?[variantLabelsAsDependency(V),variantLabelsAsDependency(P)]:[])),B=o(e,R);return!R&&M&&(O.visualElement=(i=n,l=m.useContext(C),c=m.useContext(A),f=useVisualElementContext(),d=m.useContext(T),s=e.layoutId,v=(u=m.useContext(D))&&void 0!==s?u+"-"+s:s,g=m.useRef(void 0),i||(i=c.renderer),!g.current&&i&&(g.current=i(a,{visualState:B,parent:f,props:p.__assign(p.__assign({},e),{layoutId:v}),presenceId:null==d?void 0:d.id,blockInitialAnimation:(null==d?void 0:d.initial)===!1}
1)),y=g.current,w(function(){y&&(y.setProps(p.__assign(p.__assign(p.__assign({},l),e),{layoutId:v})),y.isPresent=isPresent(d),y.isPresenceRoot=!f||f.presenceId!==(null==d?void 0:d.id),y.syncRender())}),m.useEffect(function(){var e;y&&(null===(e=y.animationState)||void 0===e||e.animateChanges())}),w(function(){return function(){return null==y?void 0:y.notifyUnmount()}},[]),y),k=function(e,t,n){var r=[];if(m.useContext(A),!t)return null;for(var o=0;o<b;o++){var a=_[o],i=E[a],s=i.isEnabled,u=i.Component;s(e)&&u&&r.push(x.createElement(u,p.__assign({key:a},e,{visualElement:t})))}return r}(e,O.visualElement,0)),x.createElement(x.Fragment,null,x.createElement(S.Provider,{value:O},r(a,e,(L=O.visualElement,m.useCallback(function(e){var n;e&&(null===(n=B.mount)||void 0===n||n.call(B,e)),L&&(e?L.mount(e):L.unmount()),t&&("function"==typeof t?t(e):isRefObject(t)&&(t.current=e))},[L])),B,R)),k)})}function createMotionProxy(e){function custom(t,n){return void 0===n&&(n={}),createMotionComponent(e(t,n))}var t=new Map;return new Proxy(custom,{get:function(e,n){return t.has(n)||t.set(n,custom(n)),t.get(n)}})}var R=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function isSVGComponent(e){if("string"!=typeof e||e.includes("-"));else if(R.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}var k={};function addScaleCorrection(e){for(var t in e)k[t]=e[t]}var O=["","X","Y","Z"],B=["transformPerspective","x","y","z"];function sortTransformProps(e,t){return B.indexOf(e)-B.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return O.forEach(function(t){return B.push(e+t)})});var j=new Set(B);function isTransformProp(e){return j.has(e)}var F=new Set(["originX","originY","originZ"]);function isForcedMotionValue(e,t){var n=t.layout,r=t.layoutId;return isTransformProp(e)||F.has(e)||(n||void 0!==r)&&(!!k[e]||"opacity"===e)}var isMotionValue=function(e){return null!==e&&"object"==typeof e&&e.getVelocity},I={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function isCSSVariable$1(e){return e.startsWith("--")}var U=p.__assign(p.__assign({},g.number),{transform:Math.round}),H={borderWidth:g.px,borderTopWidth:g.px,borderRightWidth:g.px,borderBottomWidth:g.px,borderLeftWidth:g.px,borderRadius:g.px,radius:g.px,borderTopLeftRadius:g.px,borderTopRightRadius:g.px,borderBottomRightRadius:g.px,borderBottomLeftRadius:g.px,width:g.px,maxWidth:g.px,height:g.px,maxHeight:g.px,size:g.px,top:g.px,right:g.px,bottom:g.px,left:g.px,padding:g.px,paddingTop:g.px,paddingRight:g.px,paddingBottom:g.px,paddingLeft:g.px,margin:g.px,marginTop:g.px,marginRight:g.px,marginBottom:g.px,marginLeft:g.px,rotate:g.degrees,rotateX:g.degrees,rotateY:g.degrees,rotateZ:g.degrees,scale:g.scale,scaleX:g.scale,scaleY:g.scale,scaleZ:g.scale,skew:g.degrees,skewX:g.degrees,skewY:g.degrees,distance:g.px,translateX:g.px,translateY:g.px,translateZ:g.px,x:g.px,y:g.px,z:g.px,perspective:g.px,transformPerspective:g.px,opacity:g.alpha,originX:g.progressPercentage,originY:g.progressPercentage,originZ:g.px,zIndex:U,fillOpacity:g.alpha,strokeOpacity:g.alpha,numOctaves:U};function buildHTMLStyles(e,t,n,r,o,a,i,s){var u,l,c,f,d=e.style,p=e.vars,m=e.transform,v=e.transformKeys,g=e.transformOrigin;v.length=0;var y=!1,h=!1,x=!0;for(var V in t){var P=t[V];if(isCSSVariable$1(V)){p[V]=P;continue}var E=H[V],A=E&&"number"==typeof P?E.transform(P):P;if(isTransformProp(V)){if(y=!0,m[V]=A,v.push(V),!x)continue;P!==(null!==(f=E.default)&&void 0!==f?f:0)&&(x=!1)}else if(F.has(V))g[V]=A,h=!0;else if((null==n?void 0:n.isHydrated)&&(null==r?void 0:r.isHydrated)&&k[V]){var _=k[V].process(P,r,n),b=k[V].applyTo;if(b)for(var C=b.length,S=0;S<C;S++)d[b[S]]=_;else d[V]=_}else d[V]=A}r&&n&&i&&s?(d.transform=i(r.deltaFinal,r.treeScale,y?m:void 0),a&&(d.transform=a(m,d.transform)),d.transformOrigin=s(r)):(y&&(d.transform=function(e,t,n,r){var o=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,s=t.allowTransformNone,u="";a.sort(sortTransformProps);for(var l=!1,c=a.length,f=0;f<c;f++){var d=a[f];u+=(I[d]||d)+"("+o[d]+") ","z"===d&&(l=!0)}return!l&&(void 0===i||i)?u+="translateZ(0)":u=u.trim(),r?u=r(o,n?"":u):(void 0===s||s)&&n&&(u="none"),u}(e,o,x,a)),h&&(d.transformOrigin=(void 0===(u=g.originX)?"50%":u)+" "+(void 0===(l=g.originY)?"50%":l)+" "+(void 0===(c=g.originZ)?0:c)))}var createHtmlRenderState=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function copyRawValuesOnly(e,t,n){for(var r in t)isMotionValue(t[r])||isForcedMotionValue(r,n)||(e[r]=t[r])}var N=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutRe
1setTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function isValidMotionProp(e){return N.has(e)}var shouldForward=function(e){return!isValidMotionProp(e)};try{var X=n(68773).Z;shouldForward=function(e){return e.startsWith("on")?!isValidMotionProp(e):X(e)}}catch(e){}function calcOrigin$1(e,t,n){return"string"==typeof e?e:g.px.transform(t+n*e)}var progressToPixels=function(e,t){return g.px.transform(e*t)},Y={offset:"stroke-dashoffset",array:"stroke-dasharray"},z={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGAttrs(e,t,n,r,o,a,i,s){var u,l,c,f,d,m,v,g,y=t.attrX,h=t.attrY,x=t.originX,V=t.originY,P=t.pathLength,E=t.pathSpacing,A=t.pathOffset;buildHTMLStyles(e,p.__rest(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r,o,a,i,s),e.attrs=e.style,e.style={};var _=e.attrs,b=e.style,C=e.dimensions,S=e.totalPathLength;_.transform&&(C&&(b.transform=_.transform),delete _.transform),C&&(void 0!==x||void 0!==V||b.transform)&&(b.transformOrigin=(u=void 0!==x?x:.5,l=void 0!==V?V:.5,calcOrigin$1(u,C.x,C.width)+" "+calcOrigin$1(l,C.y,C.height))),void 0!==y&&(_.x=y),void 0!==h&&(_.y=h),void 0!==S&&void 0!==P&&(d=!1,void 0===(c=void 0===E?1:E)&&(c=1),void 0===(f=void 0===A?0:A)&&(f=0),void 0===d&&(d=!0),_[(m=d?Y:z).offset]=progressToPixels(-f,S),v=progressToPixels(P,S),g=progressToPixels(c,S),_[m.array]=v+" "+g)}var createSvgRenderState=function(){return p.__assign(p.__assign({},createHtmlRenderState()),{attrs:{}})},K=/([a-z])([A-Z])/g,camelToDash=function(e){return e.replace(K,"$1-$2").toLowerCase()};function renderHTML(e,t){var n=t.style,r=t.vars;for(var o in Object.assign(e.style,n),r)e.style.setProperty(o,r[o])}var G=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);
1function renderSVG(e,t){for(var n in renderHTML(e,t),t.attrs)e.setAttribute(G.has(n)?n:camelToDash(n),t.attrs[n])}function scrapeMotionValuesFromProps$1(e){var t=e.style,n={};for(var r in t)(isMotionValue(t[r])||isForcedMotionValue(r,e))&&(n[r]=t[r]);return n}function scrapeMotionValuesFromProps(e){var t=scrapeMotionValuesFromProps$1(e);for(var n in e)isMotionValue(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function isAnimationControls(e){return"object"==typeof e&&"function"==typeof e.start}var isKeyframesTarget=function(e){return Array.isArray(e)};function resolveMotionValue(e){var t=isMotionValue(e)?e.get():e;return t&&"object"==typeof t&&t.mix&&t.toValue?t.toValue():t}function makeState(e,t,n,r){var o=e.scrapeMotionValuesFromProps,a=e.createRenderState,i=e.onMount,s={latestValues:function(e,t,n,r){var o={},a=(null==n?void 0:n.initial)===!1,i=r(e);for(var s in i)o[s]=resolveMotionValue(i[s]);var u=e.initial,l=e.animate,c=checkIfControllingVariants(e),f=checkIfVariantNode(e);t&&f&&!c&&!1!==e.inherit&&(null!=u||(u=t.initial),null!=l||(l=t.animate));var d=a||!1===u?l:u;return d&&"boolean"!=typeof d&&!isAnimationControls(d)&&(Array.isArray(d)?d:[d]).forEach(function(t){var n=resolveVariantFromProps(e,t);if(n){var r=n.transitionEnd;n.transition;var a=p.__rest(n,["transitionEnd","transition"]);for(var i in a)o[i]=a[i];for(var i in r)o[i]=r[i]}}),o}(t,n,r,o),renderState:a()};return i&&(s.mount=function(e){return i(t,e,s)}),s}var makeUseVisualState=function(e){return function(t,n){var r=m.useContext(S),o=m.useContext(T);return n?makeState(e,t,r,o):useConstant(function(){return makeState(e,t,r,o)})}},Z={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps,createRenderState:createSvgRenderState,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}"path"===t.tagName&&(r.totalPathLength=t.getTotalLength()),buildSVGAttrs(r,o,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),renderSVG(t,r)}})},W={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps$1,createRenderState:createHtmlRenderState})};function createDomMotionConfig(e,t,n,r){var o,a=t.forwardMotionProps,i=isSVGComponent(e)?Z:W;return p.__assign(p.__assign({},i),{preloadedFeatures:n,useRender:(void 0===(o=void 0!==a&&a)&&(o=!1),function(e,t,n,r,a){var i=r.latestValues,s=(isSVGComponent(e)?function(e,t){var n=m.useMemo(function(){var n=createSvgRenderState();return buildSVGAttrs(n,t,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),p.__assign(p.__assign({},n.attrs),{style:p.__assign({},n.style)})},[t]);if(e.style){var r={};copyRawValuesOnly(r,e.style,e),n.style=p.__assign(p.__assign({},r),n.style)}return n}:function(e,t,n){var r,o,a={},i=(copyRawValuesOnly(r={},e.style||{},e),Object.assign(r,(o=e.transformTemplate,m.useMemo(function(){var e=createHtmlRenderState();buildHTMLStyles(e,t,void 0,void 0,{enableHardwareAcceleration:!n},o);var r=e.vars,a=e.style;return p.__assign(p.__assign({},r),a)},[t]))),e.transformValues&&(r=e.transformValues(r)),r);return e.drag&&(a.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),a.style=i,a})(t,i,a),u=function(e,t,n){var r={};for(var o in e)(shouldForward(o)||!0===n&&isValidMotionProp(o)||!t&&!isValidMotionProp(o))&&(r[o]=e[o]);return r}(t,"string"==typeof e,o),l=p.__assign(p.__assign(p.__assign({},u),s),{ref:n});return m.createElement(e,l)}),createVisualElement:r,Component:e})}function addDomEvent(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function useDomEvent(e,t,n,r){m.useEffect(function(){var o=e.current;if(n&&o)return addDomEvent(o,t,n,r)},[e,t,n,r])}function isMouseEvent(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}(r=s||(s={})).Animate="animate",r.Hover="whileHover",r.Tap="whileTap",r.Drag="whileDrag",r.Focus="whileFocus",r.Exit="exit";var $={pageX:0,pageY:0};function extractEventInfo(e,t){var n,r,o;return void 0===t&&(t="page"),{point:e.touches?(void 0===(n=t)&&(n="page"),{x:(r=e.touches[0]||e.changedTouches[0]||$)[n+"X"],y:r[n+"Y"]}):(void 0===(o=t)&&(o="page"),{x:e[o+"X"],y:e[o+"Y"]})}}var wrapHandler=function(e,t){void 0===t&&(t=!1);var listener=function(t){return e(t,extractEventInfo(t))};return t?function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&listener(e)}:listener}
1,q={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},J={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function getPointerEventName(e){if(M&&null===window.onpointerdown);else if(M&&null===window.ontouchstart)return J[e];else if(M&&null===window.onmousedown)return q[e];return e}function addPointerEvent(e,t,n,r){return addDomEvent(e,getPointerEventName(t),wrapHandler(n,"pointerdown"===t),r)}function usePointerEvent(e,t,n,r){return useDomEvent(e,getPointerEventName(t),n&&wrapHandler(n,"pointerdown"===t),r)}function createLock(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Q=createLock("dragHorizontal"),ee=createLock("dragVertical");function getGlobalLock(e){var t=!1;if("y"===e)t=ee();else if("x"===e)t=Q();else{var n=Q(),r=ee();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function isDragActive(){var e=getGlobalLock(!0);return!e||(e(),!1)}function createHoverEvent(e,t,n){return function(r,o){var a;!isMouseEvent(r)||isDragActive()||(null==n||n(r,o),null===(a=e.animationState)||void 0===a||a.setActive(s.Hover,t))}}var isNodeOrChild=function(e,t){return!!t&&(e===t||isNodeOrChild(e,t.parentElement))};function useUnmountEffect(e){return m.useEffect(function(){return function(){return e()}},[])}var makeRenderlessComponent=function(e){return function(t){return e(t),null}},et={tap:makeRenderlessComponent(function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.whileTap,a=e.visualElement,i=t||n||r||o,u=m.useRef(!1),l=m.useRef(null);function removePointerEndListener(){var e;null===(e=l.current)||void 0===e||e.call(l),l.current=null}function checkPointerEnd(){var e;return removePointerEndListener(),u.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(s.Tap,!1),!isDragActive()}function onPointerUp(e,n){checkPointerEnd()&&(isNodeOrChild(a.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function onPointerCancel(e,t){checkPointerEnd()&&(null==r||r(e,t))}usePointerEvent(a,"pointerdown",i?function(e,t){var r;removePointerEndListener(),u.current||(u.current=!0,l.current=y.pipe(addPointerEvent(window,"pointerup",onPointerUp),addPointerEvent(window,"pointercancel",onPointerCancel)),null==n||n(e,t),null===(r=a.animationState)||void 0===r||r.setActive(s.Tap,!0))}:void 0),useUnmountEffect(removePointerEndListener)}),focus:makeRenderlessComponent(function(e){var t=e.whileFocus,n=e.visualElement;useDomEvent(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(s.Focus,!0)}:void 0),useDomEvent(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(s.Focus,!1)}:void 0)}),hover:makeRenderlessComponent(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;usePointerEvent(o,"pointerenter",t||r?createHoverEvent(o,!0,t):void 0),usePointerEvent(o,"pointerleave",n||r?createHoverEvent(o,!1,n):void 0)})};function shallowCompare(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var secondsToMilliseconds=function(e){return 1e3*e},en={linear:y.linear,easeIn:y.easeIn,easeInOut:y.easeInOut,easeOut:y.easeOut,circIn:y.circIn,circInOut:y.circInOut,circOut:y.circOut,backIn:y.backIn,backInOut:y.backInOut,backOut:y.backOut,anticipate:y.anticipate,bounceIn:y.bounceIn,bounceInOut:y.bounceInOut,bounceOut:y.bounceOut},easingDefinitionToFunction=function(e){if(Array.isArray(e)){v.invariant(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=p.__read(e,4),n=t[0],r=t[1],o=t[2],a=t[3];return y.cubicBezier(n,r,o,a)}return"string"==typeof e?(v.invariant(void 0!==en[e],"Invalid easing type '"+e+"'"),en[e]):e},isAnimatable=function(e,t){return"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&g.complex.test(t)&&!t.startsWith("url("))},underDampedSpring=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},criticallyDampedSpring=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},linearTween=function(){return{type:"keyframes",ease:"linear",duration:.3}},keyframes=function(e){return{type:"keyframes",duration:.8,values:e}}
1,er={x:underDampedSpring,y:underDampedSpring,z:underDampedSpring,rotate:underDampedSpring,rotateX:underDampedSpring,rotateY:underDampedSpring,rotateZ:underDampedSpring,scaleX:criticallyDampedSpring,scaleY:criticallyDampedSpring,scale:criticallyDampedSpring,opacity:linearTween,backgroundColor:linearTween,color:linearTween,default:criticallyDampedSpring},getDefaultTransition=function(e,t){var n;return n=isKeyframesTarget(t)?keyframes:er[e]||er.default,p.__assign({to:t},n(t))},eo=p.__assign(p.__assign({},H),{color:g.color,backgroundColor:g.color,outlineColor:g.color,fill:g.color,stroke:g.color,borderColor:g.color,borderTopColor:g.color,borderRightColor:g.color,borderBottomColor:g.color,borderLeftColor:g.color,filter:g.filter,WebkitFilter:g.filter}),getDefaultValueType=function(e){return eo[e]};function getAnimatableNone(e,t){var n,r=getDefaultValueType(e);return r!==g.filter&&(r=g.complex),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var ea=!1;function isZero(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function getZeroUnit(e){return"number"==typeof e?0:getAnimatableNone("",e)}function getValueTransition(e,t){return e[t]||e.default||e}function startAnimation(e,t,n,r){return void 0===r&&(r={}),t.start(function(o){var a,i,s,u,l,c,f,d,m,g=(i=n,l=null!==(s=(u=getValueTransition(r,e)).from)&&void 0!==s?s:t.get(),c=isAnimatable(e,i),"none"===l&&c&&"string"==typeof i?l=getAnimatableNone(e,i):isZero(l)&&"string"==typeof i?l=getZeroUnit(i):!Array.isArray(i)&&isZero(i)&&"string"==typeof l&&(i=getZeroUnit(l)),f=isAnimatable(e,l),v.warning(f===c,"You are trying to animate "+e+' from "'+l+'" to "'+i+'". '+l+" is not an animatable value - to enable this animation set "+l+" to a value animatable to "+i+" via the `style` property."),f&&c&&!1!==u.type?function(){var n,r,a,s,c,f,d,m,g,h,x,V,P,E={from:l,to:i,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===u.type||"decay"===u.type?y.inertia(p.__assign(p.__assign({},E),u)):y.animate(p.__assign(p.__assign({},(n=u,r=E,a=e,Array.isArray(r.to)&&(null!==(s=n.duration)&&void 0!==s||(n.duration=.8)),Array.isArray(r.to)&&null===r.to[0]&&(r.to=p.__spreadArray([],p.__read(r.to)),r.to[0]=r.from),(c=n).when,c.delay,c.delayChildren,c.staggerChildren,c.staggerDirection,c.repeat,c.repeatType,c.repeatDelay,c.from,Object.keys(p.__rest(c,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"])).length||(n=p.__assign(p.__assign({},n),getDefaultTransition(a,r.to))),p.__assign(p.__assign({},r),(d=(f=n).ease,m=f.times,g=f.yoyo,h=f.flip,x=f.loop,V=p.__rest(f,["ease","times","yoyo","flip","loop"]),P=p.__assign({},V),m&&(P.offset=m),V.duration&&(P.duration=secondsToMilliseconds(V.duration)),V.repeatDelay&&(P.repeatDelay=secondsToMilliseconds(V.repeatDelay)),d&&(P.ease=Array.isArray(d)&&"number"!=typeof d[0]?d.map(easingDefinitionToFunction):easingDefinitionToFunction(d)),"tween"===V.type&&(P.type="keyframes"),(g||x||h)&&(v.warning(!ea,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),ea=!0,g?P.repeatType="reverse":x?P.repeatType="loop":h&&(P.repeatType="mirror"),P.repeat=x||g||h||V.repeat),"spring"!==V.type&&(P.type="keyframes"),P)))),{onUpdate:function(e){var t;E.onUpdate(e),null===(t=u.onUpdate)||void 0===t||t.call(u,e)},onComplete:function(){var e;E.onComplete(),null===(e=u.onComplete)||void 0===e||e.call(u)}}))}:function(){var e;return t.set(i),o(),null===(e=null==u?void 0:u.onComplete)||void 0===e||e.call(u),{stop:function(){}}}),h=null!==(a=(getValueTransition(r,e)||{}).delay)&&void 0!==a?a:0,start=function(){return m=g()};return h?d=setTimeout(start,secondsToMilliseconds(h)):start(),function(){clearTimeout(d),null==m||m.stop()}})}function addUniqueItem(e,t){-1===e.indexOf(t)&&e.push(t)}function removeItem(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var ei=function(){function SubscriptionManager(){this.subscriptions=[]}return SubscriptionManager.prototype.add=function(e){var t=this;return addUniqueItem(this.subscriptions,e),function(){return removeItem(t.subscriptions,e)}},SubscriptionManager.prototype.notify=function(e,t,n){var r=this.subscriptions.length;
1if(r){if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var a=this.subscriptions[o];a&&a(e,t,n)}}},SubscriptionManager.prototype.getSize=function(){return this.subscriptions.length},SubscriptionManager.prototype.clear=function(){this.subscriptions.length=0},SubscriptionManager}(),es=function(){function MotionValue(e){var t=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new ei,this.velocityUpdateSubscribers=new ei,this.renderSubscribers=new ei,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=h.getFrameData(),o=r.delta,a=r.timestamp;t.lastUpdated!==a&&(t.timeDelta=o,t.lastUpdated=a,P.default.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return P.default.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=!isNaN(parseFloat(this.current))}return MotionValue.prototype.onChange=function(e){return this.updateSubscribers.add(e)},MotionValue.prototype.clearListeners=function(){this.updateSubscribers.clear()},MotionValue.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},MotionValue.prototype.attach=function(e){this.passiveEffect=e},MotionValue.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},MotionValue.prototype.get=function(){return this.current},MotionValue.prototype.getPrevious=function(){return this.prev},MotionValue.prototype.getVelocity=function(){return this.canTrackVelocity?y.velocityPerSecond(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},MotionValue.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(n){t.hasAnimated=!0,t.stopAnimation=e(n)}).then(function(){return t.clearAnimation()})},MotionValue.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},MotionValue.prototype.isAnimating=function(){return!!this.stopAnimation},MotionValue.prototype.clearAnimation=function(){this.stopAnimation=null},MotionValue.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},MotionValue}();function motionValue(e){return new es(e)}var testValueType=function(e){return function(t){return t.test(e)}},eu=[g.number,g.px,g.percent,g.degrees,g.vw,g.vh,{test:function(e){return"auto"===e},parse:function(e){return e}}],findDimensionValueType=function(e){return eu.find(testValueType(e))},el=p.__spreadArray(p.__spreadArray([],p.__read(eu)),[g.color,g.complex]);function setTarget(e,t){var n=resolveVariant(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o;r.transition;var i=p.__rest(r,["transitionEnd","transition"]);for(var s in i=p.__assign(p.__assign({},i),a)){var u,l=isKeyframesTarget(u=i[s])?u[u.length-1]||0:u;e.hasValue(s)?e.getValue(s).set(l):e.addValue(s,motionValue(l))}}function setVariants(e,t){p.__spreadArray([],p.__read(t)).reverse().forEach(function(n){var r,o=e.getVariant(n);o&&setTarget(e,o),null===(r=e.variantChildren)||void 0===r||r.forEach(function(e){setVariants(e,t)})})}function checkTargetForNewValues(e,t,n){var r,o,a,i=Object.keys(t).filter(function(t){return!e.hasValue(t)}),s=i.length;if(s)for(var u=0;u<s;u++){var l,c,f=i[u],d=t[f],p=null;Array.isArray(d)&&(p=d[0]),null===p&&(p=null!==(o=null!==(r=n[f])&&void 0!==r?r:e.readValue(f))&&void 0!==o?o:t[f]),null!=p&&("string"==typeof p&&(l=p,/^\-?\d*\.?\d+$/.test(l))?p=parseFloat(p):(c=p,!el.find(testValueType(c))&&g.complex.test(d)&&(p=getAnimatableNone(f,d))),e.addValue(f,motionValue(p)),null!==(a=n[f])&&void 0!==a||(n[f]=p),e.setBaseTarget(f,p))}}function getOrigin(e,t,n){var r,o,a={};for(var i in e)a[i]=null!==(r=function(e,t){if(t)return(t[e]||t.default||t).from}(i,t))&&void 0!==r?r:null===(o=n.getValue(i))||void 0===o?void 0:o.get();return a}function animateVisualElement(e,t,n){if(void 0===n&&(n={}),e.notifyAnimationStart(),Array.isArray(t)){var r;r=Promise.all(t.map(function(t){return animateVariant(e,t,n)}))}else if("string"==typeof t)r=animateVariant(e,t,n);else{var o="function"==typeof t?resolveVariant(e,t,n.custom):t;r=animateTarget(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function animateVariant(e,t,n){void 0===n&&(n={});var r,o=resolveVariant(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var s=o?function(){return animateTarget(e,o,n)}:function(){return Promise.resolve()},u=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o,a,s,u,l,c,f,d=i.delayChildren;return o=(void 0===d?0:d)+r,a=i.staggerChildren,s=i.staggerDirection,u=n,void 0===o&&(o=0),void 0===a&&(a=0),void 0===s&&(s=1),l=[],c=(e.variantChildren.size-1)*a,f=1===s?function(e){return void 0===e&&(e=0),e*a}:function(e){return void 0===e&&(e=0),c-e*a},Array.from(e.variantChildren).sort(sortByTreeOrder).forEach(function(e,n){l.push(animateVariant(e,t,p.__assign(p.__assign({},u),{delay:o+f(n)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(l)}:function(){return Promise.resolve()},l=i.when;if(!l)return Promise.all([s(),u(n.delay)]);var c=p.__read("beforeChildren"===l?[s,u]:[u,s],2),f=c[0],d=c[1];return f().then(d)}function animateTarget(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,s=o.transitionOverride,u=o.type,l=e.makeTargetAnimatable(t),c=l.transition,f=void 0===c?e.getDefaultTransition():c,d=l.transitionEnd,m=p.__rest(l,["transition","transitionEnd"]);s&&(f=s);var v=[],g=u&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[u]);for(var y in m){var h=e.getValue(y),x=m[y];if(!(!h||void 0===x||g&&function(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}(g,y))){var V=startAnimation(y,h,x,p.__assign({delay:i},f));v.push(V)}}return Promise.all(v).then(function(){d&&setTarget(e,d)})}function sortByTreeOrder(e,t){return e.sortNodePosition(t)}var ec=[s.Animate,s.Hover,s.Tap,s.Drag,s.Focus,s.Exit],ef=p.__spreadArray([],p.__read(ec)).reverse(),ed=ec.length;function createTypeState(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}
1var ep={animation:makeRenderlessComponent(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=function(e){var t,animate=function(t){return Promise.all(t.map(function(t){return animateVisualElement(e,t.animation,t.options)}))},n=((t={})[s.Animate]=createTypeState(!0),t[s.Hover]=createTypeState(),t[s.Tap]=createTypeState(),t[s.Drag]=createTypeState(),t[s.Focus]=createTypeState(),t[s.Exit]=createTypeState(),t),r={},o=!0,buildResolvedTypeValues=function(t,n){var r=resolveVariant(e,n);if(r){r.transition;var o=r.transitionEnd,a=p.__rest(r,["transition","transitionEnd"]);t=p.__assign(p.__assign(p.__assign({},t),a),o)}return t};function animateChanges(t,a){for(var i,s=e.getProps(),u=e.getVariantContext(!0)||{},l=[],c=new Set,f={},d=1/0,m=0;m<ed;m++)!function(r){var m,v=ef[r],g=n[v],y=null!==(i=s[v])&&void 0!==i?i:u[v],h=isVariantLabel(y),x=v===a?g.isActive:null;!1===x&&(d=r);var V=y===u[v]&&y!==s[v]&&h;if(V&&o&&e.manuallyAnimateOnMount&&(V=!1),g.protectedKeys=p.__assign({},f),!(!g.isActive&&null===x||!y&&!g.prevProp||isAnimationControls(y))&&"boolean"!=typeof y){var P=(m=g.prevProp,("string"==typeof y?y!==m:!!isVariantLabels(y)&&!shallowCompare(y,m))||v===a&&g.isActive&&!V&&h||r>d&&h),E=Array.isArray(y)?y:[y],A=E.reduce(buildResolvedTypeValues,{});!1===x&&(A={});var _=g.prevResolvedValues,b=void 0===_?{}:_,C=p.__assign(p.__assign({},b),A),markToAnimate=function(e){P=!0,c.delete(e),g.needsAnimating[e]=!0};for(var S in C){var T=A[S],L=b[S];f.hasOwnProperty(S)||(T!==L?isKeyframesTarget(T)&&isKeyframesTarget(L)?shallowCompare(T,L)?g.protectedKeys[S]=!0:markToAnimate(S):void 0!==T?markToAnimate(S):c.add(S):void 0!==T&&c.has(S)?markToAnimate(S):g.protectedKeys[S]=!0)}g.prevProp=y,g.prevResolvedValues=A,g.isActive&&(f=p.__assign(p.__assign({},f),A)),o&&e.blockInitialAnimation&&(P=!1),P&&!V&&l.push.apply(l,p.__spreadArray([],p.__read(E.map(function(e){return{animation:e,options:p.__assign({type:v},t)}}))))}}(m);if(r=p.__assign({},f),c.size){var v={};
1c.forEach(function(t){var n=e.getBaseTarget(t);void 0!==n&&(v[t]=n)}),l.push({animation:v})}var g=!!l.length;return o&&!1===s.initial&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?animate(l):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:animateChanges,setActive:function(t,r,o){var a;return n[t].isActive===r?Promise.resolve():(null===(a=e.variantChildren)||void 0===a||a.forEach(function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r,animateChanges(o,t))},setAnimateFunction:function(t){animate=t(e)},getState:function(){return n}}}(t)),isAnimationControls(n)&&m.useEffect(function(){return n.subscribe(t)},[n])}),exit:makeRenderlessComponent(function(e){var t=e.custom,n=e.visualElement,r=p.__read(usePresence(),2),o=r[0],a=r[1],i=m.useContext(T);m.useEffect(function(){var e,r,u=null===(e=n.animationState)||void 0===e?void 0:e.setActive(s.Exit,!o,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});o||null==u||u.then(a)},[o])})},em=function(){function PanSession(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=getPanInfo(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=y.distance(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=h.getFrameData().timestamp;r.history.push(p.__assign(p.__assign({},o),{timestamp:a}));var i=r.handlers,s=i.onStart,u=i.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),u&&u(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){if(r.lastMoveEvent=e,r.lastMoveEventInfo=transformPoint(t,r.transformPagePoint),isMouseEvent(e)&&0===e.buttons){r.handlePointerUp(e,t);return}P.default.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=getPanInfo(transformPoint(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!e.touches||!(e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=transformPoint(extractEventInfo(e),this.transformPagePoint),i=a.point,s=h.getFrameData().timestamp;this.history=[p.__assign(p.__assign({},i),{timestamp:s})];var u=t.onSessionStart;u&&u(e,getPanInfo(a,this.history)),this.removeListeners=y.pipe(addPointerEvent(window,"pointermove",this.handlePointerMove),addPointerEvent(window,"pointerup",this.handlePointerUp),addPointerEvent(window,"pointercancel",this.handlePointerUp))}}return PanSession.prototype.updateHandlers=function(e){this.handlers=e},PanSession.prototype.end=function(){this.removeListeners&&this.removeListeners(),h.cancelSync.update(this.updatePoint)},PanSession}();function transformPoint(e,t){return t?{point:t(e.point)}:e}function subtractPoint(e,t){return{x:e.x-t.x,y:e.y-t.y}}function getPanInfo(e,t){var n=e.point;return{point:n,delta:subtractPoint(n,lastDevicePoint(t)),offset:subtractPoint(n,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=lastDevicePoint(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>secondsToMilliseconds(.1)));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}(t,0)}}function lastDevicePoint(e){return e[e.length-1]}function noop(e){return e}function convertBoundingBoxToAxisBox(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function axisBox(){return{x:{min:0,max:1},y:{min:0,max:1}}}var ev={translate:0,scale:1,origin:0,originPoint:0};function delta(){return{x:p.__assign({},ev),y:p.__assign({},ev)}}function eachAxis(e){return[e("x"),e("y")]}function isNear(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),y.distance(e,t)<n}function calcLength(e){return e.max-e.min}function updateAxisDelta(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=y.mix(t.min,t.max,e.origin),e.scale=calcLength(n)/calcLength(t),isNear(e.scale,1,1e-4)&&(e.scale=1),e.translate=y.mix(n.min,n.max,e.origin)-e.originPoint,isNear(e.translate)&&(e.translate=0)}function updateBoxDelta(e,t,n,r){updateAxisDelta(e.x,t.x,n.x,defaultOrigin(r.originX)),updateAxisDelta(e.y,t.y,n.y,defaultOrigin(r.originY))}function defaultOrigin(e){return"number"==typeof e?e:.5}function calcRelativeAxis(e,t,n){e.min=n.min+t.min,e.max=e.min+calcLength(t)}
1function applyConstraints(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?y.mix(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?y.mix(o,e,n.max):Math.min(e,o)),e}function calcRelativeAxisConstraints(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function calcViewportAxisConstraints(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=p.__read([o,r],2))[0],o=n[1]),{min:e.min+r,max:e.min+o}}function resolveAxisElastic(e,t,n){return{min:resolvePointElastic(e,t),max:resolvePointElastic(e,n)}}function resolvePointElastic(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function getBoundingBox(e,t){var n,r,o,a,i,s,u,l;return convertBoundingBoxToAxisBox((n=e.getBoundingClientRect(),r=t,o=n.top,a=n.left,i=n.bottom,s=n.right,void 0===r&&(r=noop),u=r({x:a,y:o}),l=r({x:s,y:i}),{top:u.y,left:u.x,bottom:l.y,right:l.x}))}var compareByDepth=function(e,t){return e.depth-t.depth};function isProjecting(e){return e.projection.isEnabled||e.shouldResetTransform()}function collectProjectingAncestors(e,t){void 0===t&&(t=[]);var n=e.parent;return n&&collectProjectingAncestors(n,t),isProjecting(e)&&t.push(e),t}function updateLayoutMeasurement(e){if(!e.shouldResetTransform()){var t,n=e.getLayoutState();e.notifyBeforeLayoutMeasure(n.layout),n.isHydrated=!0,n.layout=e.measureViewportBox(),n.layoutCorrected=(t=n.layout,{x:p.__assign({},t.x),y:p.__assign({},t.y)}),e.notifyLayoutMeasure(n.layout,e.prevViewportBox||n.layout),P.default.update(function(){return e.rebaseProjectionTarget()})}}function snapshotViewportBox(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}function calcRelativeOffsetAxis(e,t){return{min:t.min-e.min,max:t.max-e.min}}function calcRelativeOffset(e,t){return{x:calcRelativeOffsetAxis(e.x,t.x),y:calcRelativeOffsetAxis(e.y,t.y)}}function isDraggable(e){var t=e.getProps(),n=t.drag,r=t._dragX;return n&&!r}function resetAxis(e,t){e.min=t.min,e.max=t.max}function applyPointDelta(e,t,n,r,o){return void 0!==o&&(e=r+o*(e-r)),r+n*(e-r)+t}function applyAxisDelta(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=applyPointDelta(e.min,t,n,r,o),e.max=applyPointDelta(e.max,t,n,r,o)}function applyAxisTransforms(e,t,n,r){var o=p.__read(r,3),a=o[0],i=o[1],s=o[2];e.min=t.min,e.max=t.max;var u=void 0!==n[s]?n[s]:.5,l=y.mix(t.min,t.max,u);applyAxisDelta(e,n[a],n[i],l,n.scale)}var eg=["x","scaleX","originX"],ey=["y","scaleY","originY"];function applyBoxTransforms(e,t,n){applyAxisTransforms(e.x,t.x,n,eg),applyAxisTransforms(e.y,t.y,n,ey)}function removePointDelta(e,t,n,r,o){return e-=t,e=r+1/n*(e-r),void 0!==o&&(e=r+1/o*(e-r)),e}function removeAxisTransforms(e,t,n){var r,o,a,i,s,u=p.__read(n,3),l=u[0],c=u[1],f=u[2];r=t[l],o=t[c],a=t[f],i=t.scale,void 0===r&&(r=0),void 0===o&&(o=1),void 0===a&&(a=.5),s=y.mix(e.min,e.max,a)-r,e.min=removePointDelta(e.min,r,o,s,i),e.max=removePointDelta(e.max,r,o,s,i)}function removeBoxTransforms(e,t){removeAxisTransforms(e.x,t,eg),removeAxisTransforms(e.y,t,ey)}var eh=new Set;function pushJob(e,t,n){e[n]||(e[n]=[]),e[n].push(t)}function batchLayout(e){return eh.add(e),function(){return eh.delete(e)}}function flushLayout(){if(eh.size){var e=0,t=[[]],n=[],setRead=function(n){return pushJob(t,n,e)},setWrite=function(t){pushJob(n,t,e),e++};eh.forEach(function(t){t(setRead,setWrite),e=0}),eh.clear();for(var r=n.length,o=0;o<=r;o++)t[o]&&t[o].forEach(executeJob),n[o]&&n[o].forEach(executeJob)}}var executeJob=function(e){return e()},ex=new WeakMap,eV=function(){function VisualElementDragControls(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic=axisBox(),this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),ex.set(t,this)}return VisualElementDragControls.prototype.start=function(e,t){var n=this,r=void 0===t?{}:t,o=r.snapToCursor,a=void 0!==o&&o,i=r.cursorProgress,l=this.props.transformPagePoint;this.panSession=new em(e,{onSessionStart:function(e){n.stopMotion();var t,r=extractEventInfo(e,"client").point;null===(t=n.cancelLayout)||void 0===t||t.call(n),n.cancelLayout=batchLayout(function(e,t){var o,s,u,l=collectProjectingAncestors(n.visualElement),c=(o=n.visualElement,s=[],u=function(e){isProjecting(e)&&s.push(e),e.children.forEac
1h(u)},o.children.forEach(u),s.sort(compareByDepth)),f=p.__spreadArray(p.__spreadArray([],p.__read(l)),p.__read(c)),d=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),t(function(){f.forEach(function(e){return e.resetTransform()})}),e(function(){updateLayoutMeasurement(n.visualElement),c.forEach(updateLayoutMeasurement)}),t(function(){f.forEach(function(e){return e.restoreTransform()}),a&&(d=n.snapToCursor(r))}),e(function(){n.getAxisMotionValue("x")&&!n.isExternalDrag()||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var e=n.visualElement.projection;eachAxis(function(t){if(!d){var o=e.target[t],a=o.min,s=o.max;n.cursorProgress[t]=i?i[t]:y.progress(a,s,r[t])}var u=n.getAxisMotionValue(t);u&&(n.originPoint[t]=u.get())})}),t(function(){h.flushSync.update(),h.flushSync.preRender(),h.flushSync.render(),h.flushSync.postRender()}),e(function(){return n.resolveDragConstraints()})})},onStart:function(e,t){var r,o,a,i=n.props,u=i.drag,l=i.dragPropagation;(!u||l||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=getGlobalLock(u),n.openGlobalLock))&&(flushLayout(),n.isDragging=!0,n.currentDirection=null,null===(o=(r=n.props).onDragStart)||void 0===o||o.call(r,e,t),null===(a=n.visualElement.animationState)||void 0===a||a.setActive(s.Drag,!0))},onMove:function(e,t){var r,o,a,i,s=n.props,l=s.dragPropagation,c=s.dragDirectionLock;if(l||n.openGlobalLock){var f,d,p=t.offset;if(c&&null===n.currentDirection){n.currentDirection=(void 0===f&&(f=10),d=null,Math.abs(p.y)>f?d="y":Math.abs(p.x)>f&&(d="x"),d),null!==n.currentDirection&&(null===(o=(r=n.props).onDirectionLock)||void 0===o||o.call(r,n.currentDirection));return}n.updateAxis("x",t.point,p),n.updateAxis("y",t.point,p),null===(i=(a=n.props).onDrag)||void 0===i||i.call(a,e,t),u=e}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:l})},VisualElementDragControls.prototype.resolveDragConstraints=function(){var e,t,n,r,o,a=this,i=this.props,s=i.dragConstraints,u=i.dragElastic,l=this.visualElement.getLayoutState().layoutCorrected;s?this.constraints=isRefObject(s)?this.resolveRefConstraints(l,s):(e=s.top,t=s.left,n=s.bottom,r=s.right,{x:calcRelativeAxisConstraints(l.x,t,r),y:calcRelativeAxisConstraints(l.y,e,n)}):this.constraints=!1,this.elastic=(!1===(o=u)?o=0:!0===o&&(o=.35),{x:resolveAxisElastic(o,"left","right"),y:resolveAxisElastic(o,"top","bottom")}),this.constraints&&!this.hasMutatedConstraints&&eachAxis(function(e){if(a.getAxisMotionValue(e)){var t,n,r;a.constraints[e]=(t=l[e],n=a.constraints[e],r={},void 0!==n.min&&(r.min=n.min-t.min),void 0!==n.max&&(r.max=n.max-t.min),r)}})},VisualElementDragControls.prototype.resolveRefConstraints=function(e,t){var n=this.props,r=n.onMeasureDragConstraints,o=n.transformPagePoint,a=t.current;v.invariant(null!==a,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop."),this.constraintsBox=getBoundingBox(a,o);var i=(s=this.constraintsBox,{x:calcViewportAxisConstraints(e.x,s.x),y:calcViewportAxisConstraints(e.y,s.y)});if(r){var s,u,l,c,f=r((l=(u=i).x,{top:(c=u.y).min,bottom:c.max,left:l.min,right:l.max}));this.hasMutatedConstraints=!!f,f&&(i=convertBoundingBoxToAxisBox(f))}return i},VisualElementDragControls.prototype.cancelDrag=function(){var e,t;this.visualElement.unlockProjectionTarget(),null===(e=this.cancelLayout)||void 0===e||e.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(s.Drag,!1)},VisualElementDragControls.prototype.stop=function(e,t){null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var n,r,o,a=this.isDragging;if(this.cancelDrag(),a){var i=t.velocity;this.animateDragEnd(i),null===(o=(r=this.props).onDragEnd)||void 0===o||o.call(r,e,t)}},VisualElementDragControls.prototype.snapToCursor=function(e){var t=this;return eachAxis(function(n){if(shouldDrag(n,t.props.drag,t.currentDirection)){var r=t.getAxisMotionValue(n);
1if(!r)return t.cursorProgress[n]=.5,!0;var o=t.visualElement.getLayoutState().layout,a=o[n].max-o[n].min,i=o[n].min+a/2,s=e[n]-i;t.originPoint[n]=e[n],r.set(s)}}).includes(!0)},VisualElementDragControls.prototype.updateAxis=function(e,t,n){if(shouldDrag(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,n):this.updateVisualElementAxis(e,t)},VisualElementDragControls.prototype.updateAxisMotionValue=function(e,t){var n=this.getAxisMotionValue(e);if(t&&n){var r=this.originPoint[e]+t[e],o=this.constraints?applyConstraints(r,this.constraints[e],this.elastic[e]):r;n.set(o)}},VisualElementDragControls.prototype.updateVisualElementAxis=function(e,t){var n,r,o,a,i,s=this.visualElement.getLayoutState().layout[e],u=s.max-s.min,l=this.cursorProgress[e],c=(n=t[e],r=null===(i=this.constraints)||void 0===i?void 0:i[e],o=this.elastic[e],a=n-u*l,r?applyConstraints(a,r,o):a);this.visualElement.setProjectionTargetAxis(e,c,c+u)},VisualElementDragControls.prototype.setProps=function(e){var t=e.drag,n=e.dragDirectionLock,r=e.dragPropagation,o=e.dragConstraints,a=e.dragElastic,i=e.dragMomentum,s=p.__rest(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=p.__assign({drag:void 0!==t&&t,dragDirectionLock:void 0!==n&&n,dragPropagation:void 0!==r&&r,dragConstraints:void 0!==o&&o,dragElastic:void 0===a?.35:a,dragMomentum:void 0===i||i},s)},VisualElementDragControls.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,r=t.layoutId,o="_drag"+e.toUpperCase();return this.props[o]?this.props[o]:n||void 0!==r?void 0:this.visualElement.getValue(e,0)},VisualElementDragControls.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},VisualElementDragControls.prototype.isExternalDrag=function(){var e=this.props,t=e._dragX,n=e._dragY;return t||n},VisualElementDragControls.prototype.animateDragEnd=function(e){var t,n,r,o,a=this,i=this.props,s=i.drag,u=i.dragMomentum,l=i.dragElastic,c=i.dragTransition,f=(t=this.visualElement,void 0===(n=this.isLayoutDrag()&&!this.isExternalDrag())&&(n=!0),!!(o=t.getProjectionParent())&&(n?removeBoxTransforms(r=calcRelativeOffset(o.projection.target,t.projection.target),o.getLatestValues()):r=calcRelativeOffset(o.getLayoutState().layout,t.getLayoutState().layout),eachAxis(function(e){return t.setProjectionTargetAxis(e,r[e].min,r[e].max,!0)}),!0)),d=this.constraints||{};if(f&&Object.keys(d).length&&this.isLayoutDrag()){var m=this.visualElement.getProjectionParent();if(m){var v=calcRelativeOffset(m.projection.targetFinal,d);eachAxis(function(e){var t=v[e],n=t.min,r=t.max;d[e]={min:isNaN(n)?void 0:n,max:isNaN(r)?void 0:r}})}}return Promise.all(eachAxis(function(t){if(shouldDrag(t,s,a.currentDirection)){var n,r=null!==(n=null==d?void 0:d[t])&&void 0!==n?n:{},o=p.__assign(p.__assign({type:"inertia",velocity:u?e[t]:0,bounceStiffness:l?200:1e6,bounceDamping:l?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},c),r);return a.getAxisMotionValue(t)?a.startAxisValueAnimation(t,o):a.visualElement.startLayoutAnimation(t,o,f)}})).then(function(){var e,t;null===(t=(e=a.props).onDragTransitionEnd)||void 0===t||t.call(e)})},VisualElementDragControls.prototype.stopMotion=function(){var e=this;eachAxis(function(t){var n=e.getAxisMotionValue(t);n?n.stop():e.visualElement.stopLayoutAnimation()})},VisualElementDragControls.prototype.startAxisValueAnimation=function(e,t){var n=this.getAxisMotionValue(e);if(n){var r=n.get();return n.set(r),n.set(r),startAnimation(e,n,0,t)}},VisualElementDragControls.prototype.scalePoint=function(){var e=this,t=this.props,n=t.drag;if(isRefObject(t.dragConstraints)&&this.constraintsBox){this.stopMotion();var r={x:0,y:0};eachAxis(function(t){var n,o,a,i,s,u;r[t]=(n=e.visualElement.projection.target[t],o=e.constraintsBox[t],a=.5,i=calcLength(n),(s=calcLength(o))>i?a=y.progress(o.min,o.max-i,n.min):i>s&&(a=y.progress(n.min,n.max-s,o.min)),u=a,y.clamp(0,1,u))}),this.updateConstraints(function(){eachAxis(function(t){if(shouldDrag(t,n,null)){var o,a,i,s,u,l=(o=e.visualElement.projection.target[t],a=e.constraintsBox[t],i=r[t],s=o.max-o.min,{min:u=y.mix(a.min,a.max-s,i),max:u+s}),c=l.min,f=l.max;e.visualElement.setProjectionTargetAxis(t,c,f)}})}),setTimeout(flushLayout,1)}},VisualElementDragControls.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=batchLayout(function(n,r){var o=collectProjectingAncestors(t.visualElement);r(function(){return o.forEach(function(e){return e.resetTransform()})}),n(function(){return updateLayoutMeasurement(t.visualElement)}),r(function(){return o.forEach(function(e){return e.restoreTransform()})}),n(function(){t.resolveDragConstraints()}),e&&r(e)})},VisualElementDragControls.prototype.mount=function(e){var t=this,n=addPointerEvent(e.getInstance(),"pointerdown",function(e){var n=t.props,r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)}),r=addDomEvent(window,"resize",function(){t.scalePoint()}),o=e.onLayoutUpdate(function(){t.isDragging&&t.resolveDragConstraints()}),a=e.prevDragCursor;return a&&this.start(u,{cursorProgress:a}),function(){null==n||n(),null==r||r(),null==o||o(),t.cancelDrag()}},VisualElementDragControls}();function shouldDrag(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}
1var eP={pan:makeRenderlessComponent(function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,i=t||n||r||o,s=m.useRef(null),u=m.useContext(C).transformPagePoint,l={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};m.useEffect(function(){null!==s.current&&s.current.updateHandlers(l)}),usePointerEvent(a,"pointerdown",i&&function(e){s.current=new em(e,l,{transformPagePoint:u})}),useUnmountEffect(function(){return s.current&&s.current.end()})}),drag:makeRenderlessComponent(function(e){var t=e.dragControls,n=e.visualElement,r=m.useContext(C).transformPagePoint,o=useConstant(function(){return new eV({visualElement:n})});o.setProps(p.__assign(p.__assign({},e),{transformPagePoint:r})),m.useEffect(function(){return t&&t.subscribe(o)},[o]),m.useEffect(function(){return o.mount(n)},[])})};function isCSSVariable(e){return"string"==typeof e&&e.startsWith("var(--")}(o=l||(l={}))[o.Entering=0]="Entering",o[o.Present=1]="Present",o[o.Exiting=2]="Exiting",t.VisibilityAction=void 0,(a=t.VisibilityAction||(t.VisibilityAction={}))[a.Hide=0]="Hide",a[a.Show=1]="Show";var eE=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function getVariableValue(e,t,n){void 0===n&&(n=1),v.invariant(n<=4,'Max CSS variable fallback depth detected in property "'+e+'". This may indicate a circular fallback dependency.');var r=p.__read(function(e){var t=eE.exec(e);if(!t)return[,];var n=p.__read(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():isCSSVariable(a)?getVariableValue(a,t,n+1):a}}function pixelsToPercent(e,t){return e/(t.max-t.min)*100}var eA="_$css",e_={process:function(e,t,n){var r=n.target;if("string"==typeof e){if(!g.px.test(e))return e;e=parseFloat(e)}return pixelsToPercent(e,r.x)+"% "+pixelsToPercent(e,r.y)+"%"}},eb={borderRadius:p.__assign(p.__assign({},e_),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:e_,borderTopRightRadius:e_,borderBottomLeftRadius:e_,borderBottomRightRadius:e_,boxShadow:{process:function(e,t){var n=t.delta,r=t.treeScale,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(eE,function(e){return i.push(e),eA}));var s=g.complex.parse(e);if(s.length>5)return o;var u=g.complex.createTransformer(e),l="number"!=typeof s[0]?1:0,c=n.x.scale*r.x,f=n.y.scale*r.y;s[0+l]/=c,s[1+l]/=f;var d=y.mix(c,f,.5);"number"==typeof s[2+l]&&(s[2+l]/=d),"number"==typeof s[3+l]&&(s[3+l]/=d);var p=u(s);if(a){var m=0;p=p.replace(eA,function(){var e=i[m];return m++,e})}return p}}},eC=function(e){function Animate(){var n=null!==e&&e.apply(this,arguments)||this;return n.frameTarget=axisBox(),n.currentAnimationTarget=axisBox(),n.isAnimating={x:!1,y:!1},n.stopAxisAnimation={x:void 0,y:void 0},n.isAnimatingTree=!1,n.animate=function(e,r,o){void 0===o&&(o={});var a=o.originBox,i=o.targetBox,s=o.visibilityAction,u=o.shouldStackAnimate,l=o.onComplete,c=o.prevParent,f=p.__rest(o,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),d=n.props,m=d.visualElement,v=d.layout;if(!1===u)return n.isAnimatingTree=!1,n.safeToRemove();if(!n.isAnimatingTree||!0===u){u&&(n.isAnimatingTree=!0),r=a||r,e=i||e;var g,y,h=!1,x=m.getProjectionParent();if(x){var V,P=x.prevViewportBox,E=x.getLayoutState().layout;c&&(i&&(E=c.getLayoutState().layout),a&&c.getLayoutId()===(V=x.getLayoutId())&&(void 0!==V||c===x)&&c.prevViewportBox&&(P=c.prevViewportBox)),P&&(c||!c&&!(a||i))&&(h=!0,r=calcRelativeOffset(P,r),e=calcRelativeOffset(E,e))}var A=(g=r,y=e,!isZeroBox(g)&&!isZeroBox(y)&&(!axisIsEqual(g.x,y.x)||!axisIsEqual(g.y,y.y))),_=eachAxis(function(o){var a,i;if("position"===v){var u=e[o].max-e[o].min;r[o].max=r[o].min+u}if(!m.projection.isTargetLocked){if(void 0!==s)m.setVisibility(s===t.VisibilityAction.Show);else if(A)return n.animateAxis(o,e[o],r[o],p.__assign(p.__assign({},f),{isRelative:h}));else return null===(i=(a=n.stopAxisAnimation)[o])||void 0===i||i.call(a),m.setProjectionTargetAxis(o,e[o].min,e[o].max,h)}});
1return m.syncRender(),Promise.all(_).then(function(){n.isAnimatingTree=!1,l&&l(),m.notifyLayoutAnimationComplete()})}},n}return p.__extends(Animate,e),Animate.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=startAnimation,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()},addScaleCorrection(eb)},Animate.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),eachAxis(function(t){var n,r;return null===(r=(n=e.stopAxisAnimation)[t])||void 0===r?void 0:r.call(n)})},Animate.prototype.animateAxis=function(e,t,n,r){var o,a,i=this,s=void 0===r?{}:r,u=s.transition,l=s.isRelative;if(!(this.isAnimating[e]&&axisIsEqual(t,this.currentAnimationTarget[e]))){null===(a=(o=this.stopAxisAnimation)[e])||void 0===a||a.call(o),this.isAnimating[e]=!0;var c=this.props.visualElement,f=this.frameTarget[e],d=c.getProjectionAnimationProgress()[e];d.clearListeners(),d.set(0),d.set(0);var frame=function(){var r=d.get()/1e3;f.min=y.mix(n.min,t.min,r),f.max=y.mix(n.max,t.max,r),c.setProjectionTargetAxis(e,f.min,f.max,l)};frame();var p=d.onChange(frame);this.stopAxisAnimation[e]=function(){i.isAnimating[e]=!1,d.stop(),p()},this.currentAnimationTarget[e]=t;var m=u||c.getDefaultTransition()||eT;return startAnimation("x"===e?"layoutX":"layoutY",d,1e3,m&&getValueTransition(m,"layout")).then(this.stopAxisAnimation[e])}},Animate.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},Animate.prototype.render=function(){return null},Animate}(x.Component),eS={min:0,max:0};function isZeroBox(e){return axisIsEqual(e.x,eS)&&axisIsEqual(e.y,eS)}function axisIsEqual(e,t){return e.min===t.min&&e.max===t.max}var eT={duration:.45,ease:[.4,0,.1,1]},eL={layoutReady:function(e){return e.notifyLayoutReady()}};function createBatcher(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var n=void 0===t?eL:t,r=n.layoutReady,o=n.parent;batchLayout(function(t,n){var a=Array.from(e).sort(compareByDepth),i=o?collectProjectingAncestors(o):[];n(function(){p.__spreadArray(p.__spreadArray([],p.__read(i)),p.__read(a)).forEach(function(e){return e.resetTransform()})}),t(function(){a.forEach(updateLayoutMeasurement)}),n(function(){i.forEach(function(e){return e.restoreTransform()}),a.forEach(r)}),t(function(){a.forEach(function(e){e.isPresent&&(e.presence=l.Present)})}),n(function(){h.flushSync.preRender(),h.flushSync.render()}),t(function(){P.default.postRender(function(){return a.forEach(assignProjectionToSnapshot)}),e.clear()})}),flushLayout()}}}function assignProjectionToSnapshot(e){e.prevViewportBox=e.projection.target}var eD=m.createContext(createBatcher()),eM=m.createContext(createBatcher());function isSharedLayout(e){return!!e.forceUpdate}var ew=function(e){function Measure(){return null!==e&&e.apply(this,arguments)||this}return p.__extends(Measure,e),Measure.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,n=e.framerSyncLayout,r=e.visualElement;isSharedLayout(t)&&t.register(r),isSharedLayout(n)&&n.register(r),r.onUnmount(function(){isSharedLayout(t)&&t.remove(r),isS
1haredLayout(n)&&n.remove(r)})},Measure.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return isSharedLayout(t)?t.syncUpdate():(snapshotViewportBox(n),t.add(n)),null},Measure.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;isSharedLayout(e)||e.flush()},Measure.prototype.render=function(){return null},Measure}(V.default.Component),eR={measureLayout:function(e){var t=m.useContext(eD),n=m.useContext(eM);return V.default.createElement(ew,p.__assign({},e,{syncLayout:t,framerSyncLayout:n}))},layoutAnimation:function(e){var t=p.__read(usePresence(),2)[1];return x.createElement(eC,p.__assign({},e,{safeToRemove:t}))}};function createLayoutState(){return{isHydrated:!1,layout:axisBox(),layoutCorrected:axisBox(),treeScale:{x:1,y:1},delta:delta(),deltaFinal:delta(),deltaTransform:""}}var ek=createLayoutState();function buildLayoutProjectionTransform(e,t,n){var r=e.x,o=e.y,a="translate3d("+r.translate/t.x+"px, "+o.translate/t.y+"px, 0) ";if(n){var i=n.rotate,s=n.rotateX,u=n.rotateY;i&&(a+="rotate("+i+") "),s&&(a+="rotateX("+s+") "),u&&(a+="rotateY("+u+") ")}return a+="scale("+r.scale+", "+o.scale+")",n||a!==eO?a:""}function buildLayoutProjectionTransformOrigin(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var eO=buildLayoutProjectionTransform(ek.delta,ek.treeScale,{x:1,y:1}),eB=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"],ej=function(){function FlatTree(){this.children=[],this.isDirty=!1}return FlatTree.prototype.add=function(e){addUniqueItem(this.children,e),this.isDirty=!0},FlatTree.prototype.remove=function(e){removeItem(this.children,e),this.isDirty=!0},FlatTree.prototype.forEach=function(e){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(e)},FlatTree}(),visualElement=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,u=e.readValueFromInstance,c=e.resetTransform,f=e.restoreTransform,d=e.removeValueFromRenderState,m=e.sortNodePosition,v=e.scrapeMotionValuesFromProps;return function(e,t){var g,x,V,E,A,_,b,C,S,T=e.parent,L=e.props,D=e.presenceId,M=e.blockInitialAnimation,w=e.visualState;void 0===t&&(t={});var R=w.latestValues,k=w.renderState,O=(g=eB.map(function(){return new ei}),x={},V={clearAllListeners:function(){return g.forEach(function(e){return e.clear()})},updatePropListeners:function(e){return eB.forEach(function(t){null===(n=x[t])||void 0===n||n.call(x);var n,r="on"+t,o=e[r];o&&(x[t]=V[r](o))})}},g.forEach(function(e,t){V["on"+eB[t]]=function(t){return e.add(t)},V["notify"+eB[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,p.__spreadArray([],p.__read(t)))}}),V),B={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:axisBox(),targetFinal:axisBox()},j=B,F=R,I=createLayoutState(),U=!1,H=new Map,N=new Map,X={},Y=p.__assign({},R);function render(){E&&($.isProjectionReady()&&(applyBoxTransforms(j.targetFinal,j.target,F),updateBoxDelta(I.deltaFinal,I.layoutCorrected,j.targetFinal,R)),triggerBuild(),s(E,k))}function triggerBuild(){var e=R;if(b&&b.isActive()){var n=b.getCrossfadeState($);n&&(e=n)}r($,k,e,j,I,t,L)}function update(){O.notifyUpdate(R)}function updateTreeLayoutProjection(){$.layoutTree.forEach(fireUpdateLayoutProjection)}var z=v(L);for(var K in z){var G=z[K];void 0!==R[K]&&isMotionValue(G)&&G.set(R[K],!1)}var Z=checkIfControllingVariants(L),W=checkIfVariantNode(L),$=p.__assign(p.__assign({treeType:n,current:null,depth:T?T.depth+1:0,parent:T,children:new Set,path:T?p.__spreadArray(p.__spreadArray([],p.__read(T.path)),[T]):[],layoutTree:T?T.layoutTree:new ej,presenceId:D,projection:B,variantChildren:W?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(null==T?void 0:T.isMounted()),blockInitialAnimation:M,isMounted:function(){return!!E},mount:function(e){E=$.current=e,$.pointTo($),W&&T&&!Z&&(S=null==T?void 0:T.addVariantChild($)),null==T||T.children.add($)},unmount:function(){h.cancelSync.update(update),h.cancelSync.render(render),h.cancelSync.preRender($.updateLayoutProjection),N.forEac
1h(function(e){return e()}),$.stopLayoutAnimation(),$.layoutTree.remove($),null==S||S(),null==T||T.children.delete($),null==_||_(),O.clearAllListeners()},addVariantChild:function(e){var t,n=$.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return m&&n===e.treeType?m($.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return W?$:null==T?void 0:T.getClosestVariantNode()},scheduleUpdateLayoutProjection:T?T.scheduleUpdateLayoutProjection:function(){return P.default.preRender($.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return L.layoutId},getInstance:function(){return E},getStaticValue:function(e){return R[e]},setStaticValue:function(e,t){return R[e]=t},getLatestValues:function(){return R},setVisibility:function(e){$.isVisible!==e&&($.isVisible=e,$.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a($,e,L,t)},addValue:function(e,t){var n,r;$.hasValue(e)&&$.removeValue(e),H.set(e,t),R[e]=t.get(),n=t.onChange(function(t){R[e]=t,L.onUpdate&&P.default.update(update,!1,!0)}),r=t.onRenderRequest($.scheduleRender),N.set(e,function(){n(),r()})},removeValue:function(e){var t;H.delete(e),null===(t=N.get(e))||void 0===t||t(),N.delete(e),delete R[e],d(e,k)},hasValue:function(e){return H.has(e)},getValue:function(e,t){var n=H.get(e);return void 0===n&&void 0!==t&&(n=motionValue(t),$.addValue(e,n)),n},forEachValue:function(e){return H.forEach(e)},readValue:function(e){var n;return null!==(n=R[e])&&void 0!==n?n:u(E,e,t)},setBaseTarget:function(e,t){Y[e]=t},getBaseTarget:function(e){if(o){var t=o(L,e);if(void 0!==t&&!isMotionValue(t))return t}return Y[e]}},O),{build:function(){return triggerBuild(),k},scheduleRender:function(){P.default.render(render,!1,!0)},syncRender:render,setProps:function(e){L=e,O.updatePropListeners(e),X=function(e,t,n){var r;for(var o in t){var a=t[o],i=n[o];if(isMotionValue(a))e.addValue(o,a);else if(isMotionValue(i))e.addValue(o,motionValue(a));else if(i!==a){if(e.hasValue(o)){var s=e.getValue(o);s.hasAnimated||s.set(a)}else e.addValue(o,motionValue(null!==(r=e.getStaticValue(o))&&void 0!==r?r:a))}}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}($,v(L),X)},getProps:function(){return L},getVariant:function(e){var t;return null===(t=L.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return L.transition},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==T?void 0:T.getVariantContext();if(!Z){var t=(null==T?void 0:T.getVariantContext())||{};return void 0!==L.initial&&(t.initial=L.initial),t}for(var n={},r=0;r<eI;r++){var o=eF[r],a=L[o];(isVariantLabel(a)||!1===a)&&(n[o]=a)}return n},enableLayoutProjection:function(){B.isEnabled=!0,$.layoutTree.add($)},lockProjectionTarget:function(){B.isTargetLocked=!0},unlockProjectionTarget:function(){$.stopLayoutAnimation(),B.isTargetLocked=!1},getLayoutState:function(){return I},setCrossfader:function(e){b=e},isProjectionReady:function(){return B.isEnabled&&B.isHydrated&&I.isHydrated},startLayoutAnimation:function(e,t,n){void 0===n&&(n=!1);var r=$.getProjectionAnimationProgress()[e],o=n?B.relativeTarget[e]:B.target[e],a=o.min,i=o.max-a;return r.clearListeners(),r.set(a),r.set(a),r.onChange(function(t){$.setProjectionTargetAxis(e,t,t+i,n)}),$.animateMotionValue(e,r,0,t)},stopLayoutAnimation:function(){eachAxis(function(e){return $.getProjectionAnimationProgress()[e].stop()})},measureViewportBox:function(e){void 0===e&&(e=!0);var n=i(E,t);return e||removeBoxTransforms(n,R),n},getProjectionAnimationProgress:function(){return C||(C={x:motionValue(0),y:motionValue(0)}),C},setProjectionTargetAxis:function(e,t,n,r){var o;void 0===r&&(r=!1),r?(B.relativeTarget||(B.relativeTarget=axisBox()),o=B.relativeTarget[e]):(B.relativeTarget=void 0,o=B.target[e]),B.isHydrated=!0,o.min=t,o.max=n,U=!0,O.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=I.layout);var n=$.getProjectionAnimationProgress(),r=n.x,o=n.y,a=!B.relativeTarget&&!B.isTargetLocked&&!r.isAnimating()&&!o.isA
1nimating();(e||a)&&eachAxis(function(e){var n=t[e],r=n.min,o=n.max;$.setProjectionTargetAxis(e,r,o)})},notifyLayoutReady:function(e){!function(e){var t=e.getProjectionParent();if(!t){e.rebaseProjectionTarget();return}var n=calcRelativeOffset(t.getLayoutState().layout,e.getLayoutState().layout);eachAxis(function(t){e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)})}($),$.notifyLayoutUpdate(I.layout,$.prevViewportBox||I.layout,e)},resetTransform:function(){return c($,E,L)},restoreTransform:function(){return f(E,k)},updateLayoutProjection:function(){if($.isProjectionReady()){var e,t,n,r,o,a,i,s=I.delta,u=I.treeScale,l=u.x,c=u.y,f=I.deltaTransform;e=j,t=$.path,n=I.delta,r=I.layout,o=I.layoutCorrected,a=I.treeScale,i=e.target,resetAxis(o.x,r.x),resetAxis(o.y,r.y),function(e,t,n){var r,o,a=n.length;if(a){t.x=t.y=1;for(var i=0;i<a;i++)o=(r=n[i]).getLayoutState().delta,t.x*=o.x.scale,t.y*=o.y.scale,function(e,t){var n=t.x,r=t.y;applyAxisDelta(e.x,n.translate,n.scale,n.originPoint),applyAxisDelta(e.y,r.translate,r.scale,r.originPoint)}(e,o),isDraggable(r)&&applyBoxTransforms(e,e,r.getLatestValues())}}(o,a,t),updateBoxDelta(n,o,i,R),U&&$.notifyViewportBoxUpdate(j.target,s),U=!1;var d=buildLayoutProjectionTransform(s,u);(d!==f||l!==u.x||c!==u.y)&&$.scheduleRender(),I.deltaTransform=d}},updateTreeLayoutProjection:function(){$.layoutTree.forEach(fireResolveRelativeTargetBox),P.default.preRender(updateTreeLayoutProjection,!1,!0)},getProjectionParent:function(){if(void 0===A){for(var e=!1,t=$.path.length-1;t>=0;t--){var n=$.path[t];if(n.projection.isEnabled){e=n;break}}A=e}return A},resolveRelativeTargetBox:function(){var e,t=$.getProjectionParent();if(B.relativeTarget&&t&&(e=t.projection,calcRelativeAxis(B.target.x,B.relativeTarget.x,e.target.x),calcRelativeAxis(B.target.y,B.relativeTarget.y,e.target.y),isDraggable(t))){var n=B.target;applyBoxTransforms(n,n,t.getLatestValues())}},shouldResetTransform:function(){return!!L._layoutResetTransform},pointTo:function(e){j=e.projection,F=e.getLatestValues(),null==_||_(),_=y.pipe(e.onSetAxisTarget($.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete(function(){var e;$.isPresent?$.presence=l.Present:null===(e=$.layoutSafeToRemove)||void 0===e||e.call($)}))},isPresent:!0,presence:l.Entering});return $}};function fireResolveRelativeTargetBox(e){e.resolveRelativeTargetBox()}function fireUpdateLayoutProjection(e){e.updateLayoutProjection()}var eF=p.__spreadArray(["initial"],p.__read(ec)),eI=eF.length,eU=new Set(["width","height","top","left","right","bottom","x","y"]),isPositionalKey=function(e){return eU.has(e)},setAndResetVelocity=function(e,t){e.set(t,!1),e.set(t)},isNumOrPxType=function(e){return e===g.number||e===g.px};(i=c||(c={})).width="width",i.height="height",i.left="left",i.right="right",i.top="top",i.bottom="bottom";var getPosFromMatrix=function(e,t){return parseFloat(e.split(", ")[t])},getTranslateFromMatrix=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return getPosFromMatrix(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?getPosFromMatrix(i[1],e):0}},eH=new Set(["x","y","z"]),eN=B.filter(function(e){return!eH.has(e)}),eX={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var n=e.y;return parseFloat(t.top)+(n.max-n.min)},right:function(e,t){var n=e.x;return parseFloat(t.left)+(n.max-n.min)},x:getTranslateFromMatrix(4,13),y:getTranslateFromMatrix(5,14)},convertChangedValueTypes=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),a=getComputedStyle(o),i=a.display,s={top:a.top,left:a.left,bottom:a.bottom,right:a.right,transform:a.transform};"none"===i&&t.setStaticValue("display",e.display||"block"),t.syncRender();var u=t.measureViewportBox();return n.forEach(function(n){setAndResetVelocity(t.getValue(n),eX[n](r,s)),e[n]=eX[n](u,a)}),e},checkAndConvertChangedValueTypes=function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=p.__assign({},t),r=p.__assign({},r);var o=Object.keys(t).filter(isPositionalKey),a=[],i=!1,s=[];
1if(o.forEach(function(o){var u,l=e.getValue(o);if(e.hasValue(o)){var c=n[o],f=t[o],d=findDimensionValueType(c);if(isKeyframesTarget(f))for(var p=f.length,m=null===f[0]?1:0;m<p;m++)u?v.invariant(findDimensionValueType(f[m])===u,"All keyframes must be of the same type"):(u=findDimensionValueType(f[m]),v.invariant(u===d||isNumOrPxType(d)&&isNumOrPxType(u),"Keyframes must be of the same dimension as the current value"));else u=findDimensionValueType(f);if(d!==u){if(isNumOrPxType(d)&&isNumOrPxType(u)){var y,h=l.get();"string"==typeof h&&l.set(parseFloat(h)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&u===g.px&&(t[o]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==u?void 0:u.transform)&&(0===c||0===f)?0===c?l.set(u.transform(c)):t[o]=d.transform(f):(i||(y=[],eN.forEach(function(t){var n=e.getValue(t);void 0!==n&&(y.push([t,n.get()]),n.set(t.startsWith("scale")?1:0))}),y.length&&e.syncRender(),a=y,i=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],setAndResetVelocity(l,f))}}}),!s.length)return{target:t,transitionEnd:r};var u=convertChangedValueTypes(t,e,s);return a.length&&a.forEach(function(t){var n=p.__read(t,2),r=n[0],o=n[1];e.getValue(r).set(o)}),e.syncRender(),{target:u,transitionEnd:r}},parseDomVariant=function(e,t,n,r){var o,a,i=function(e,t,n){var r,o=p.__rest(t,[]),a=e.getInstance();if(!(a instanceof HTMLElement))return{target:o,transitionEnd:n};for(var i in n&&(n=p.__assign({},n)),e.forEachValue(function(e){var t=e.get();if(isCSSVariable(t)){var n=getVariableValue(t,a);n&&e.set(n)}}),o){var s=o[i];if(isCSSVariable(s)){var u=getVariableValue(s,a);u&&(o[i]=u,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return o=t=i.target,a=r=i.transitionEnd,Object.keys(o).some(isPositionalKey)?checkAndConvertChangedValueTypes(e,o,n,a):{target:o,transitionEnd:a}},eY={treeType:"dom",readValueFromInstance:function(e,t){if(isTransformProp(t)){var n=getDefaultValueType(t);return n&&n.default||0}var r=window.getComputedStyle(e);return(isCSSVariable$1(t)?r.getPropertyValue(t):r[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return getBoundingBox(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var a=t.transition,i=t.transitionEnd,s=p.__rest(t,["transition","transitionEnd"]),u=getOrigin(s,a||{},e);if(o&&(i&&(i=o(i)),s&&(s=o(s)),u&&(u=o(u))),r){checkTargetForNewValues(e,s,u);var l=parseDomVariant(e,s,u,i);i=l.transitionEnd,s=l.target}return p.__assign({transition:a,transitionEnd:i},s)},scrapeMotionValuesFromProps:scrapeMotionValuesFromProps$1,build:function(e,t,n,r,o,a,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden");var s=r.isEnabled&&o.isHydrated;buildHTMLStyles(t,n,r,o,a,i.transformTemplate,s?buildLayoutProjectionTransform:void 0,s?buildLayoutProjectionTransformOrigin:void 0)},render:renderHTML},ez=visualElement(eY),eK=visualElement(p.__assign(p.__assign({},eY),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return isTransformProp(t)?(null===(n=getDefaultValueType(t))||void 0===n?void 0:n.default)||0:(t=G.has(t)?t:camelToDash(t),e.getAttribute(t))},scrapeMotionValuesFromProps:scrapeMotionValuesFromProps,build:function(e,t,n,r,o,a,i){var s=r.isEnabled&&o.isHydrated;buildSVGAttrs(t,n,r,o,a,i.transformTemplate,s?buildLayoutProjectionTransform:void 0,s?buildLayoutProjectionTransformOrigin:void 0)},render:renderSVG})),createDomVisualElement=function(e,t){return isSVGComponent(e)?eK(t,{enableHardwareAcceleration:!1}):ez(t,{enableHardwareAcceleration:!0})},eG=p.__assign(p.__assign(p.__assign(p.__assign({},ep),et),eP),eR),eZ=createMotionProxy(function(e,t){return createDomMotionConfig(e,t,eG,createDomVisualElement)}),eW=createMotionProxy(createDomMotionConfig),e$=0;function getPresenceId(){var e=e$;return e$++,e}var PresenceChild=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,a=e.custom,i=e.presenceAffectsLayout,s=useConstant(newChildrenMap),u=useConstant(getPresenceId),l=m.useMemo(function(){return{id:u,initial:n,isPresent:r,custom:a,onExitComplete:function(e){s.set(e,!0);var t=!0;
1s.forEach(function(e){e||(t=!1)}),t&&(null==o||o())},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}},i?void 0:[r]);return m.useMemo(function(){s.forEach(function(e,t){return s.set(t,!1)})},[r]),x.useEffect(function(){r||s.size||null==o||o()},[r]),x.createElement(T.Provider,{value:l},t)};function newChildrenMap(){return new Map}function getChildKey(e){return e.key||""}function animate(e,t,n){void 0===n&&(n={});var r=isMotionValue(e)?e:motionValue(e);return startAnimation("",r,t,n),{stop:function(){return r.stop()}}}function createCrossfader(){var e=motionValue(1),t={lead:void 0,follow:void 0,crossfadeOpacity:!1,preserveFollowOpacity:!1},n=p.__assign({},t),r={},o={},a=!1,i=null,s=0;function startCrossfadeAnimation(n,r){var o=t.lead,s=t.follow;a=!0,i=null;var u=!1,onUpdate=function(){u=!0,o&&o.scheduleRender(),s&&s.scheduleRender()},onComplete=function(){a=!1,i=h.getFrameData().timestamp};return r=r&&getValueTransition(r,"crossfade"),animate(e,n,p.__assign(p.__assign({},r),{onUpdate:onUpdate,onComplete:function(){u?onComplete():(e.set(n),P.default.read(onComplete)),onUpdate()}}))}return{isActive:function(){return r&&(a||h.getFrameData().timestamp===i)},fromLead:function(e){return startCrossfadeAnimation(0,e)},toLead:function(r){var o=0;return t.prevValues||t.follow?n.lead===t.follow&&n.follow===t.lead&&(o=1-e.get()):o=1,e.set(o),startCrossfadeAnimation(1,r)},reset:function(){return e.set(1)},stop:function(){return e.stop()},getCrossfadeState:function(n){return(!function(){var n,a,i=h.getFrameData().timestamp,u=t.lead,l=t.follow;if(i!==s&&u){s=i;var c=u.getLatestValues();Object.assign(r,c);var f=l?l.getLatestValues():t.prevValues;Object.assign(o,f);var d=e.get(),p=null!==(n=c.opacity)&&void 0!==n?n:1,m=null!==(a=null==f?void 0:f.opacity)&&void 0!==a?a:1;t.crossfadeOpacity&&l?(r.opacity=y.mix(!1!==l.isVisible?0:m,p,eq(d)),o.opacity=t.preserveFollowOpacity?m:y.mix(m,0,eJ(d))):l||(r.opacity=y.mix(m,p,d)),function(e,t,n,r,o,a){for(var i=0;i<e0;i++){var s="border"+eQ[i]+"Radius",u=getRadius(r,s),l=getRadius(n,s);if((void 0!==u||void 0!==l)&&(u||(u=0),l||(l=0),"number"==typeof u&&"number"==typeof l)){var c=Math.max(y.mix(u,l,a),0);e[s]=t[s]=c}}if(r.rotate||n.rotate){var f=y.mix(r.rotate||0,n.rotate||0,a);e.rotate=t.rotate=f}!o&&n.backgroundColor&&r.backgroundColor&&(e.backgroundColor=t.backgroundColor=y.mixColor(r.backgroundColor,n.backgroundColor)(a))}(r,o,c,f||{},!!l,d)}}(),n===t.lead)?r:n===t.follow?o:void 0},setOptions:function(e){n=t,t=e,r={},o={}},getLatestValues:function(){return r}}}var eq=compress(0,.5,y.circOut),eJ=compress(.5,.95,y.linear);function compress(e,t,n){return function(r){return r<e?0:r>t?1:n(y.progress(e,t,r))}}var eQ=["TopLeft","TopRight","BottomLeft","BottomRight"],e0=eQ.length;function getRadius(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var e1=function(e){function AnimateSharedLayout(){var t=null!==e&&e.apply(this,arguments)||this;return t.children=new Set,t.stacks=new Map,t.hasMounted=!1,t.updateScheduled=!1,t.renderScheduled=!1,t.syncContext=p.__assign(p.__assign({},createBatcher()),{syncUpdate:function(e){return t.scheduleUpdate(e)},forceUpdate:function(){t.syncContext=p.__assign({},t.syncContext),t.scheduleUpdate(!0)},register:function(e){return t.addChild(e)},remove:function(e){return t.removeChild(e)}}),t}return p.__extends(AnimateSharedLayout,e),AnimateSharedLayout.prototype.componentDidMount=function(){this.hasMounted=!0},AnimateSharedLayout.prototype.componentDidUpdate=function(){this.startLayoutAnimation()},AnimateSharedLayout.prototype.shouldComponentUpdate=function(){return this.renderScheduled=!0,!0},AnimateSharedLayout.prototype.startLayoutAnimation=function(){var e=this;this.renderScheduled=this.updateScheduled=!1;var t=this.props.type;this.children.forEach(function(e){e.isPresent?e.presence!==l.Entering&&(e.presence=e.presence===l.Exiting?l.Entering:l.Present):e.presence=l.Exiting}),this.updateStacks();var n={layoutReady:function(n){void 0!==n.getLayoutId()?e.getStack(n).animate(n,"crossfade"===t):n.notifyLayoutReady()},parent:this.context.visualElement};
1this.children.forEach(function(t){return e.syncContext.add(t)}),this.syncContext.flush(n),this.stacks.forEach(function(e){return e.clearSnapshot()})},AnimateSharedLayout.prototype.updateStacks=function(){this.stacks.forEach(function(e){return e.updateLeadAndFollow()})},AnimateSharedLayout.prototype.scheduleUpdate=function(e){void 0===e&&(e=!1),(e||!this.updateScheduled)&&(this.updateScheduled=!0,this.children.forEach(function(e){(function(e){for(var t=!1,n={},r=0;r<O.length;r++){var o="rotate"+O[r];e.hasValue(o)&&0!==e.getStaticValue(o)&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0))}if(t){for(var o in e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}})(e),e.shouldResetTransform()&&e.resetTransform()}),this.children.forEach(snapshotViewportBox),this.stacks.forEach(function(e){return e.updateSnapshot()}),(e||!this.renderScheduled)&&(this.renderScheduled=!0,this.forceUpdate()))},AnimateSharedLayout.prototype.addChild=function(e){this.children.add(e),this.addToStack(e),e.presence=this.hasMounted?l.Entering:l.Present},AnimateSharedLayout.prototype.removeChild=function(e){this.scheduleUpdate(),this.children.delete(e),this.removeFromStack(e)},AnimateSharedLayout.prototype.addToStack=function(e){var t=this.getStack(e);null==t||t.add(e)},AnimateSharedLayout.prototype.removeFromStack=function(e){var t=this.getStack(e);null==t||t.remove(e)},AnimateSharedLayout.prototype.getStack=function(e){var t,n,r,o,a,i,s,u,c=e.getLayoutId();if(void 0!==c)return this.stacks.has(c)||this.stacks.set(c,(o=new Set,a={leadIsExiting:!1},i=p.__assign({},a),s=createCrossfader(),u=!1,{add:function(e){e.setCrossfader(s),o.add(e),r&&(e.prevDragCursor=r),a.lead||(a.lead=e)},remove:function(e){o.delete(e)},getLead:function(){return a.lead},updateSnapshot:function(){if(a.lead){t=s.isActive()?s.getLatestValues():a.lead.getLatestValues(),n=a.lead.prevViewportBox;var e=ex.get(a.lead);e&&e.isDragging&&(r=e.cursorProgress)}},clearSnapshot:function(){r=n=void 0},updateLeadAndFollow:function(){i=p.__assign({},a);for(var e,n,r,c=Array.from(o),f=c.length;f--;f){var d=c[f];if(n&&(null!=r||(r=d)),null!=n||(n=d),n&&r)break}a.lead=n,a.follow=r,a.leadIsExiting=(null===(e=a.lead)||void 0===e?void 0:e.presence)===l.Exiting,s.setOptions({lead:n,follow:r,prevValues:t,crossfadeOpacity:(null==r?void 0:r.isPresenceRoot)||(null==n?void 0:n.isPresenceRoot)}),a.lead!==i.follow&&(i.lead!==a.lead||i.leadIsExiting!==a.leadIsExiting)&&(u=!0)},animate:function(e,t){var r;if(void 0===t&&(t=!1),e===a.lead){t?e.pointTo(a.lead):e.setVisibility(!0);var o,i={},c=null===(r=a.follow)||void 0===r?void 0:r.getProjectionParent();if((c&&(i.prevParent=c),e.presence===l.Entering)?i.originBox=a.follow?a.follow.prevViewportBox:n:e.presence===l.Exiting&&(i.targetBox=null===(o=a.follow)||void 0===o?void 0:o.getLayoutState().layout),u){u=!1;var f=e.getDefaultTransition();e.presence===l.Entering?s.toLead(f):s.fromLead(f)}e.notifyLayoutReady(i)}else t?a.lead&&e.pointTo(a.lead):e.setVisibility(!1)}})),this.stacks.get(c)},AnimateSharedLayout.prototype.render=function(){return x.createElement(eD.Provider,{value:this.syncContext},this.props.children)},AnimateSharedLayout.contextType=S,AnimateSharedLayout}(x.Component);function isLazyBundle(e){return"function"==typeof e}var e5=p.__assign(p.__assign({renderer:createDomVisualElement},ep),et),e2=p.__assign(p.__assign(p.__assign({},e5),eP),eR);function useMotionValue(e){var t=useConstant(function(){return motionValue(e)});if(m.useContext(C).isStatic){var n=p.__read(m.useState(e),2)[1];m.useEffect(function(){return t.onChange(n)},[])}return t}function useOnChange(e,t){m.useEffect(function(){if(isMotionValue(e))return e.onChange(t)},[t])}function useCombineMotionValues(e,t){var n,r=useMotionValue(t()),updateValue=function(){return r.set(t())};return updateValue(),n=function(){return P.default.update(updateValue,!1,!0)},m.useEffect(function(){var t=e.map(function(e){return e.onChange(n)});return function(){return t.forEach(function(e){return e()})}}),r}function transform(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=!Array.isArray(t[0]),o=r?0:-1,a=t[0+o],i=t[1+o],s=t[2+o],u=t[3+
1o],l=y.interpolate(i,s,p.__assign({mixer:"object"==typeof(e=s[0])&&e.mix?e.mix:void 0},u));return r?l(a):l}function useTransform(e,t,n,r){var o="function"==typeof t?t:transform(t,n,r);return Array.isArray(e)?useListTransform(e,o):useListTransform([e],function(e){return o(p.__read(e,1)[0])})}function useListTransform(e,t){var n=useConstant(function(){return[]});return useCombineMotionValues(e,function(){n.length=0;for(var r=e.length,o=0;o<r;o++)n[o]=e[o].get();return t(n)})}function createScrollMotionValues(){return{scrollX:motionValue(0),scrollY:motionValue(0),scrollXProgress:motionValue(0),scrollYProgress:motionValue(0)}}function setProgress(e,t,n){n.set(e&&t?e/t:0)}function createScrollUpdater(e,t){var update=function(){var n=t(),r=n.xOffset,o=n.yOffset,a=n.xMaxOffset,i=n.yMaxOffset;e.scrollX.set(r),e.scrollY.set(o),setProgress(r,a,e.scrollXProgress),setProgress(o,i,e.scrollYProgress)};return update(),update}function getViewportScrollOffsets(){return{xOffset:window.pageXOffset,yOffset:window.pageYOffset,xMaxOffset:document.body.clientWidth-window.innerWidth,yMaxOffset:document.body.clientHeight-window.innerHeight}}var e3=!1;function animationControls(){var e=!1,t=[],n=new Set,r={subscribe:function(e){return n.add(e),function(){n.delete(e)}},start:function(r,o){if(!e)return new Promise(function(e){t.push({animation:[r,o],resolve:e})});var a=[];return n.forEach(function(e){a.push(animateVisualElement(e,r,{transitionOverride:o}))}),Promise.all(a)},set:function(t){return v.invariant(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),n.forEach(function(e){Array.isArray(t)?setVariants(e,t):"string"==typeof t?setVariants(e,[t]):setTarget(e,t)})},stop:function(){n.forEach(function(e){!function(e){e.forEachValue(function(e){return e.stop()})}(e)})},mount:function(){return e=!0,t.forEach(function(e){var t=e.animation,n=e.resolve;r.start.apply(r,p.__spreadArray([],p.__read(t))).then(n)}),function(){e=!1,r.stop()}}};return r}var e4=function(){function DragControls(){this.componentControls=new Set}return DragControls.prototype.subscribe=function(e){var t=this;return this.componentControls.add(e),function(){return t.componentControls.delete(e)}},DragControls.prototype.start=function(e,t){this.componentControls.forEach(function(n){n.start(e.nativeEvent||e,t)})},DragControls.prototype.updateConstraints=function(e){void 0===e&&(e=!0),this.componentControls.forEach(function(e){e.updateConstraints()}),e&&flushLayout()},DragControls}(),createDragControls=function(){return new e4},createObject=function(){return{}},e6=visualElement({build:function(){},measureViewportBox:axisBox,resetTransform:function(){},restoreTransform:function(){},removeValueFromRenderState:function(){},render:function(){},scrapeMotionValuesFromProps:createObject,readValueFromInstance:function(e,t,n){return n.initialState[t]||0},makeTargetAnimatable:function(e,t){var n=t.transition,r=t.transitionEnd,o=p.__rest(t,["transition","transitionEnd"]),a=getOrigin(o,n||{},e);return checkTargetForNewValues(e,o,a),p.__assign({transition:n,transitionEnd:r},o)}}),e7=makeUseVisualState({scrapeMotionValuesFromProps:createObject,createRenderState:createObject}),invertScale=function(e){return e>.001?1/e:1e5},e8=!1;t.AnimatePresence=function(e){var t,n,r,o,a,i=e.children,s=e.custom,u=e.initial,l=void 0===u||u,c=e.onExitComplete,f=e.exitBeforeEnter,d=e.presenceAffectsLayout,v=void 0===d||d,g=(t=m.useRef(!1),r=(n=p.__read(m.useState(0),2))[0],o=n[1],useUnmountEffect(function(){return t.current=!0}),m.useCallback(function(){t.current||o(r+1)},[r])),y=m.useContext(eD);isSharedLayout(y)&&(g=y.forceUpdate);var h=m.useRef(!0),V=(a=[],m.Children.forEach(i,function(e){m.isValidElement(e)&&a.push(e)}),a),P=m.useRef(V),E=m.useRef(new Map).current,A=m.useRef(new Set).current;if(function(e,t){e.forEach(function(e){var n=getChildKey(e);t.set(n,e)})}(V,E),h.current)return h.current=!1,x.createElement(x.Fragment,null,V.map(function(e){return x.createElement(PresenceChild,{key:getChildKey(e),isPresent:!0,initial:!!l&&void 0,presenceAffectsLayout:v},e)}));for(var _=p.__spreadArray([],p.__read(V)),b=P.current.map(getChildKey),C=V.map(getChildKey),S=b.length,T=0;T<S;T++){var L=b[T];-1===C.indexOf(L)?A.add(L):A.delete(L)}return f&&A.size&&(_=[]),A.forEach(function(e){if(-1===C.indexOf(e)){var t=E.get(e);if(t){var n=b.indexOf(e);_.splice(n,0,x.createElement(PresenceChild,{key:getChildKey(t),isPresent:!1,onExitComplete:function(){E.delete(e),A.delete(e);var t=P.current.findIndex(function(t){return t.key===e});P.current.splice(t,1),!A.size&&(P.current=V,g(),c&&c())},custom:s,presenceAffectsLayout:v},t))}}}),_=_.map(function(e){var t=e.key;return A.has(t)?e:x.createElement(PresenceChild,{key:getChildKey(e),isPresent:!0,presenceAffectsLayout:v},e)}),P.current=_,x.createElement(x.Fragment,null,A.size?_:_.map(function(e){return m.cloneElement(e)}))},t.AnimateSharedLayout=e1,t.DragControls=e4,t.FlatTree=ej,t.FramerTreeLayoutContext=eM,t.LayoutGroupContext=D,t.LazyMotion=function(e){var t=e.children,n=e.features,r=e.strict,o=p.__read(m.useState(!isLazyBundle(n)),2)[1],a=m.useRef(void 0);if(!isLazyBundle(n)){var i=n.renderer,s=p.__rest(n,["renderer"]);a.current=i,loadFeatures(s)}return m.useEffect(function(){isLazyBundle(n)&&n().then(function(e){var t=e.renderer;loadFeatures(p.__rest(e,["renderer"])),a.current=t,o(!0)})},[]),x.createElement(A.Provider,{value:{renderer:a.current,strict:void 0!==r&&r}},t)},t.MotionConfig=function(e){var t=e.children,n=p.__rest(e,["children"]);(n=p.__assign(p.__assign({},m.useContext(C)),n)).isStatic=useConstant(function(){return n.isStatic});var r="object"==typeof n.transition?n.transition.toString():"",o=m.useMemo(function(){return n},[r,n.transformPagePoint]);return x.createElement(C.Provider,{value:o},t)},t.MotionConfigContext=C,t.MotionValue=es,t.PresenceContext=T,t.SharedLayoutContext=eD,t.addScaleCorrection=addScaleCorrection,t.animate=animate,t.animateVisualElement=animateVisualElement,t.animationControls=animationControls,t.batchLayout=batchLayout,t.createBatcher=createBatcher,t.createCrossfader=createCrossfader,t.createDomMotionComponent=function(e){return createMotionComponent(createDomMotionConfig(e,{forwardMotionProps:!1},eG,createDomVisualElement))},t.createMotionComponent=createMotionComponent,t.domAnimation=e5,t.domMax=e2,t.flushLayout=flushLayout,t.isValidMotionProp=isValidMotionProp,t.m=eW,t.motion=eZ,t.motionValue=motionValue,t.resolveMotionValue=resolveMotionValue,t.snapshotViewportBox=snapshotViewportBox,t.transform=transform,t.useAnimation=function(){var e=useConstant(animationControls);return m.useEffect(e.mount,[]),e},t.useCycle=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=m.useRef(0),r=p.__read(m.useState(e[n.current]),2),o=r[0],a=r[1];return[o,function(t){n.current="number"!=typeof t?y.wrap(0,e.length,n.current+1):t,a(e[n.current])}]},t.useDeprecatedAnimatedState=function(e){var t=p.__read(m.useState(e),2),n=t[0],r=t[1],o=e7({},!1),a=useConstant(function(){return e6({props:{},visualState:o},{initialState:e})});return m.useEffect(function(){return a.mount({}),a.unmount()},[]),m.useEffect(function(){a.setProps({onUpdate:function(e){return r(p.__assign({},e))}})}),[n,useConstant(function(){return function(e){return animateVisualElement(a,e)}})]},t.useDeprecatedInvertedScale=function(e){var t=useMotionValue(1),n=useMotionValue(1),r=useVisualElementContext();return v.invariant(!!(e||r),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),v.warning(e8,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),e8=!0,e?(t=e.scaleX||t,n=e.scaleY||n):r&&(t=r.getValue("scaleX",1),n=r.getValue("scaleY",1)),{scaleX:useTransform(t,invertScale),scaleY:useTransform(n,invertScale)}},t.useDomEvent=useDomEvent,t.useDragControls=function(){return useConstant(createDragControls)},t.useElementScroll=function(e){var t=useConstant(createScrollMotionValues);return w(function(){var n=e.current;if(v.invariant(!!n,"ref provided to useScroll must be passed into a HTML element."),n){var r=createScrollUpdater(t,function(){return{xOffset:n.scrollLeft,yOffset:n.scrollTop,xMaxOffset:n.scrollWidth-n.offsetWidth,yMaxOffset:n.scrollHeight-n.offsetHeight}}),o=addDomEvent(n,"scroll",r,{passive:!0}),a=addDomEvent(n,"resize",r);return function(){o&&o(),a&&a()}}},[]),t},t.useIsPresent=function(){return isPresent(m.useContext(T))},t.useMotionTemplate=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=e.length;return useCombineMotionValues(t,function(){for(var n="",o=0;o<r;
1o++)n+=e[o],t[o]&&(n+=t[o].get());return n})},t.useMotionValue=useMotionValue,t.usePresence=usePresence,t.useReducedMotion=function(){d||function(){if(d=motionValue(null),"undefined"!=typeof window){if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),setReducedMotionPreferences=function(){return d.set(e.matches)};e.addListener(setReducedMotionPreferences),setReducedMotionPreferences()}else d.set(!1)}}();var e=p.__read(m.useState(d.get()),2),t=e[0],n=e[1];return useOnChange(d,n),t},t.useSpring=function(e,t){void 0===t&&(t={});var n=m.useContext(C).isStatic,r=m.useRef(null),o=useMotionValue(isMotionValue(e)?e.get():e);return m.useMemo(function(){return o.attach(function(e,a){return n?a(e):(r.current&&r.current.stop(),r.current=y.animate(p.__assign(p.__assign({from:o.get(),to:e,velocity:o.getVelocity()},t),{onUpdate:a})),o.get())})},Object.values(t)),useOnChange(e,function(e){return o.set(parseFloat(e))}),o},t.useTransform=useTransform,t.useVelocity=function(e){var t=useMotionValue(e.getVelocity());return m.useEffect(function(){return e.velocityUpdateSubscribers.add(function(e){t.set(e)})},[e]),t},t.useViewportScroll=function(){return f||(f=createScrollMotionValues()),w(function(){e3||function(){if(e3=!0,"undefined"!=typeof window){var e=createScrollUpdater(f,getViewportScrollOffsets);addDomEvent(window,"scroll",e,{passive:!0}),addDomEvent(window,"resize",e)}}()},[]),f},t.visualElement=visualElement}}]);
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.