text: (self.webpackChunkjcamilomnvia_portfolio=self.webpackChunkjcamilomnvia_portfolio||[]).push([[430],{6898:function(t,n,e){"use strict";e.d(n,{M_:function(){return Ar},sm:function(){return Mr},EA:function(){return yr},vs:function(){return Ir},_7:function(){return $r},c$:function(){return Br},Hm:function(){return jr},ME:function(){return Wr}});e(5827);var r,o,i=e(7724),a=e(1793),u=e(5518),s=e(2677),c=e(9550),l=e(7294);function f(t){return[t("x"),t("y")]}function d(t){return t}function p(t){var n=t.top;return{x:{min:t.left,max:t.right},y:{min:n,max:t.bottom}}}function v(){return{x:{min:0,max:1},y:{min:0,max:1}}}!function(t){t[t.Entering=0]="Entering",t[t.Present=1]="Present",t[t.Exiting=2]="Exiting"}(r||(r={})),function(t){t[t.Hide=0]="Hide",t[t.Show=1]="Show"}(o||(o={}));var m={translate:0,scale:1,origin:0,originPoint:0};function h(){return{x:(0,i.pi)({},m),y:(0,i.pi)({},m)}}function g(t,n){t.min=n.min,t.max=n.max}function y(t,n,e){return e+n*(t-e)}function x(t,n,e,r,o){return void 0!==o&&(t=y(t,o,r)),y(t,e,r)+n}function E(t,n,e,r,o){void 0===n&&(n=0),void 0===e&&(e=1),t.min=x(t.min,n,e,r,o),t.max=x(t.max,n,e,r,o)}function C(t,n){var e=n.x,r=n.y;E(t.x,e.translate,e.scale,e.originPoint),E(t.y,r.translate,r.scale,r.originPoint)}function b(t,n,e,r){var o=(0,i.CR)(r,3),a=o[0],s=o[1],c=o[2];t.min=n.min,t.max=n.max;var l=void 0!==e[c]?e[c]:.5,f=(0,u.CD)(n.min,n.max,l);E(t,e[a],e[s],f,e.scale)}var P=["x","scaleX","originX"],A=["y","scaleY","originY"];function w(t,n,e,r,o){return t=y(t-=n,1/e,r),void 0!==o&&(t=y(t,1/o,r)),t}function S(t,n,e){var r=(0,i.CR)(e,3),o=r[0],a=r[1],s=r[2];!function(t,n,e,r,o){void 0===n&&(n=0),void 0===e&&(e=1),void 0===r&&(r=.5);var i=(0,u.CD)(t.min,t.max,r)-n;t.min=w(t.min,n,e,i,o),t.max=w(t.max,n,e,i,o)}(t,n[o],n[a],n[s],n.scale)}function T(t,n,e){return void 0===n&&(n=0),void 0===e&&(e=.01),(0,u.TE)(t,n)<e}function V(t){return t.max-t.min}function L(t,n){var e,r=.5,o=V(t),i=V(n);return i>o?r=(0,u.YD)(n.min,n.max-o,t.min):o>i&&(r=(0,u.YD)(t.min,t.max-i,n.min)),e=r,(0,u.uZ)(0,1,e)}function k(t,n,e,r){void 0===r&&(r=.5),t.origin=r,t.originPoint=(0,u.CD)(n.min,n.max,t.origin),t.scale=V(e)/V(n),T(t.scale,1,1e-4)&&(t.scale=1),t.translate=(0,u.CD)(e.min,e.max,t.origin)-t.originPoint,T(t.translate)&&(t.translate=0)}function R(t,n,e,r){k(t.x,n.x,e.x,D(r.originX)),k(t.y,n.y,e.y,D(r.originY))}function D(t){return"number"==typeof t?t:.5}function M(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function B(){var t=[];return{add:function(n){var e,r;return r=n,-1===(e=t).indexOf(r)&&e.push(r),function(){return function(t,n){var e=t.indexOf(n);e>-1&&t.splice(e,1)}(t,n)}},notify:function(n,e,r){var o=t.length;if(o)if(1===o)t[0](n,e,r);else for(var i=0;i<o;i++){var a=t[i];a&&a(n,e,r)}},getSize:function(){return t.length},clear:function(){t.length=0}}}var O=function(){function t(t){var n,e=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=B(),this.renderSubscribers=B(),this.canTrackVelocity=!1,this.updateAndNotify=function(t,n){void 0===n&&(n=!0),e.prev=e.current,e.current=t,e.prev!==e.current&&e.updateSubscribers.notify(e.current),n&&e.renderSubscribers.notify(e.current);var r=(0,a.$B)(),o=r.delta,i=r.timestamp;e.lastUpdated!==i&&(e.timeDelta=o,e.lastUpdated=i,a.ZP.postRender(e.scheduleVelocityCheck))},this.scheduleVelocityCheck=function(){return a.ZP.postRender(e.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==e.lastUpdated&&(e.prev=e.current)},this.hasAnimated=!1,this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n)))}return t.prototype.onChange=function(t){return this.updateSubscribers.add(t)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},t.prototype.attach=function(t){this.passiveEffect=t},t.prototype.set=function(t,n){void 0===n&&(n=!0),n&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,n)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?(0,u.Rv)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(t){var n=this;return this.stop(),new Promise((function(e){n.hasAnimated=!0,n.stopAnimation=t(e)})).then((function(){return n.clearAnimation()}))},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function F(t){return new O(t)}var I=function(t){return t instanceof O},j=["","X","Y","Z"],U=["transformPerspective","x","y","z"];function Y(t,n){return U.indexOf(t)-U.indexOf(n)}["perspective","translate","scale","rotate","skew"].forEach((function(t){j.forEach((function(n){var e=t+n;U.push(e)}))}));var H=new Set(U);function X(t){return H.has(t)}var _=new Set(["originX","originY","originZ"]);function Z(t){return _.has(t)}var z=function(t){return 1e3*t},W={linear:u.GE,easeIn:u.YQ,easeInOut:u.mZ,easeOut:u.Vv,circIn:u.Z7,circInOut:u.X7,circOut:u.Bn,backIn:u.G2,backInOut:u.XL,backOut:u.CG,anticipate:u.LU,bounceIn:u.h9,bounceInOut:u.yD,bounceOut:u.gJ},$=function(t){if(Array.isArray(t)){(0,s.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");var n=(0,i.CR)(t,4),e=n[0],r=n[1],o=n[2],a=n[3];return(0,u._s)(e,r,o,a)}return"string"==typeof t?((0,s.k)(void 0!==W[t],"Invalid easing type '"+t+"'"),W[t]):t},G=function(t,n){return"zIndex"!==t&&(!("number"!=typeof n&&!Array.isArray(n))||!("string"!=typeof n||!c.PY.test(n)||n.startsWith("url(")))},N=function(t){return Array.isArray(t)},q=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},K=function(t){return{type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},Q=function(){return{type:"keyframes",ease:"linear",duration:.3}},J=function(t){return{type:"keyframes",duration:.8,values:t}},tt={x:q,y:q,z:q,rotate:q,rotateX:q,rotateY:q,rotateZ:q,scaleX:K,scaleY:K,scale:K,opacity:Q,backgroundColor:Q,color:Q,default:K},nt=(0,i.pi)((0,i.pi)({},c.Rx),{transform:Math.round}),et={color:c.$_,backgroundColor:c.$_,outlineColor:c.$_,fill:c.$_,stroke:c.$_,borderColor:c.$_,borderTopColor:c.$_,borderRightColor:c.$_,borderBottomColor:c.$_,borderLeftColor:c.$_,borderWidth:c.px,borderTopWidth:c.px,borderRightWidth:c.px,borderBottomWidth:c.px,borderLeftWidth:c.px,borderRadius:c.px,radius:c.px,borderTopLeftRadius:c.px,borderTopRightRadius:c.px,borderBottomRightRadius:c.px,borderBottomLeftRadius:c.px,width:c.px,maxWidth:c.px,height:c.px,maxHeight:c.px,size:c.px,top:c.px,right:c.px,bottom:c.px,left:c.px,padding:c.px,paddingTop:c.px,paddingRight:c.px,paddingBottom:c.px,paddingLeft:c.px,margin:c.px,marginTop:c.px,marginRight:c.px,marginBottom:c.px,marginLeft:c.px,rotate:c.RW,rotateX:c.RW,rotateY:c.RW,rotateZ:c.RW,scale:c.bA,scaleX:c.bA,scaleY:c.bA,scaleZ:c.bA,skew:c.RW,skewX:c.RW,skewY:c.RW,distance:c.px,translateX:c.px,translateY:c.px,translateZ:c.px,x:c.px,y:c.px,z:c.px,perspective:c.px,transformPerspective:c.px,opacity:c.Fq,originX:c.$C,originY:c.$C,originZ:c.px,zIndex:nt,filter:c.hX,WebkitFilter:c.hX,fillOpacity:c.Fq,strokeOpacity:c.Fq,numOctaves:nt},rt=[c.Rx,c.px,c.aQ,c.RW,c.vw,c.vh,{test:function(t){return"auto"===t},parse:function(t){return t}}],ot=function(t){return function(n){return n.test(t)}},it=function(t){return rt.find(ot(t))},at=(0,i.fl)(rt,[c.$_,c.PY]),ut=function(t){return at.find(ot(t))},st=function(t){return et[t]},ct=function(t,n){return n&&"number"==typeof t?n.transform(t):t};function lt(t,n){var e,r=st(t);return r!==c.hX&&(r=c.PY),null===(e=r.getAnimatableNone)||void 0===e?void 0:e.call(r,n)}var ft=!1;function dt(t){var n=t.ease,e=t.times,r=t.yoyo,o=t.flip,a=t.loop,u=(0,i._T)(t,["ease","times","yoyo","flip","loop"]),c=(0,i.pi)({},u);return e&&(c.offset=e),u.duration&&(c.duration=z(u.duration)),u.repeatDelay&&(c.repeatDelay=z(u.repeatDelay)),n&&(c.ease=function(t){return Array.isArray(t)&&"number"!=typeof t[0]}(n)?n.map($):$(n)),"tween"===u.type&&(c.type="keyframes"),(r||a||o)&&((0,s.K)(!ft,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),ft=!0,r?c.repeatType="reverse":a?c.repeatType="loop":o&&(c.repeatType="mirror"),c.repeat=a||r||o||u.repeat),"spring"!==u.type&&(c.type="keyframes"),c}function pt(t,n,e){var r,o,a,u;return Array.isArray(n.to)&&(null!==(r=t.duration)&&void 0!==r||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=(0,i.fl)(t.to),t.to[0]=t.from)}(n),function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var n=(0,i._T)(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(n).length}(t)||(t=(0,i.pi)((0,i.pi)({},t),(o=e,a=n.to,u=N(a)?J:tt[o]||tt.default,(0,i.pi)({to:a},u(a))))),(0,i.pi)((0,i.pi)({},n),dt(t))}function vt(t,n,e,r){return void 0===r&&(r={}),n.start((function(o){var a,c,l=function(t,n,e,r,o){var a,c=function(t,n){return t[n]||t.default||t}(r,t),l=null!==(a=c.from)&&void 0!==a?a:n.get(),f=G(t,e);"none"===l&&f&&"string"==typeof e&&(l=lt(t,e));var d=G(t,l);return(0,s.K)(d===f,"You are trying to animate "+t+' from "'+l+'" to "'+e+'". '+l+" is not an animatable value - to enable this animation set "+l+" to a value animatable to "+e+" via the `style` property."),d&&f&&!1!==c.type?function(){var r={from:l,to:e,velocity:n.getVelocity(),onComplete:o,onUpdate:function(t){return n.set(t)}};return"inertia"===c.type||"decay"===c.type?(0,u.II)((0,i.pi)((0,i.pi)({},r),c)):(0,u.jt)((0,i.pi)((0,i.pi)({},pt(c,r,t)),{onUpdate:function(t){var n;r.onUpdate(t),null===(n=c.onUpdate)||void 0===n||n.call(c,t)},onComplete:function(){var t;r.onComplete(),null===(t=c.onComplete)||void 0===t||t.call(c)}}))}:function(){var t;return n.set(e),o(),null===(t=null==c?void 0:c.onComplete)||void 0===t||t.call(c),{stop:function(){}}}}(t,n,e,r,o),f=function(t,n){var e,r,o,i,a;return null!==(a=null!==(i=null!==(r=null===(e=t[n])||void 0===e?void 0:e.delay)&&void 0!==r?r:null===(o=t.default)||void 0===o?void 0:o.delay)&&void 0!==i?i:t.delay)&&void 0!==a?a:0}(r,t),d=function(){return c=l()};return f?a=setTimeout(d,z(f)):d(),function(){clearTimeout(a),null==c||c.stop()}}))}function mt(t){return Array.isArray(t)}function ht(t){return"string"==typeof t||mt(t)}function gt(t,n,e,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"string"==typeof n&&(n=null===(i=t.variants)||void 0===i?void 0:i[n]),"function"==typeof n?n(null!=e?e:t.custom,r,o):n}function yt(t,n,e){var r=t.getProps();return gt(r,n,null!=e?e:r.custom,function(t){var n={};return t.forEachValue((function(t,e){return n[e]=t.get()})),n}(t),function(t){var n={};return t.forEachValue((function(t,e){return n[e]=t.getVelocity()})),n}(t))}function xt(t){var n;return"function"==typeof(null===(n=t.animate)||void 0===n?void 0:n.start)||ht(t.animate)||ht(t.whileHover)||ht(t.whileDrag)||ht(t.whileTap)||ht(t.whileFocus)||ht(t.exit)}function Et(t,n,e){t.hasValue(n)?t.getValue(n).set(e):t.addValue(n,F(e))}function Ct(t,n){var e,r=yt(t,n),o=r?t.makeTargetAnimatable(r,!1):{},a=o.transitionEnd,u=void 0===a?{}:a,s=(o.transition,(0,i._T)(o,["transitionEnd","transition"]));for(var c in s=(0,i.pi)((0,i.pi)({},s),u)){Et(t,c,(e=s[c],N(e)?e[e.length-1]||0:e))}}function bt(t,n){(0,i.fl)(n).reverse().forEach((function(e){var r,o=t.getVariant(e);o&&Ct(t,o),null===(r=t.variantChildren)||void 0===r||r.forEach((function(t){bt(t,n)}))}))}function Pt(t,n,e){var r,o,i,a,u=Object.keys(n).filter((function(n){return!t.hasValue(n)})),s=u.length;if(s)for(var l=0;l<s;l++){var f=u[l],d=n[f],p=null;Array.isArray(d)&&(p=d[0]),null===p&&(p=null!==(o=null!==(r=e[f])&&void 0!==r?r:t.readValue(f))&&void 0!==o?o:n[f]),null!=p&&("string"==typeof p&&/^\-?\d*\.?\d+$/.test(p)?p=parseFloat(p):!ut(p)&&c.PY.test(d)&&(p=lt(f,d)),t.addValue(f,F(p)),null!==(i=(a=e)[f])&&void 0!==i||(a[f]=p),t.setBaseTarget(f,p))}}function At(t,n){if(n)return(n[t]||n.default||n).from}function wt(t,n,e){var r,o,i={};for(var a in t)i[a]=null!==(r=At(a,n))&&void 0!==r?r:null===(o=e.getValue(a))||void 0===o?void 0:o.get();return i}function St(t,n,e){var r;if(t.notifyAnimationStart(),Array.isArray(n)){var o=n.map((function(n){return Tt(t,n,e)}));r=Promise.all(o)}else r="string"==typeof n?Tt(t,n,e):Vt(t,n,e);return r.then((function(){return t.notifyAnimationComplete(n)}))}function Tt(t,n,e){var r;void 0===e&&(e={});var o=yt(t,n,e.custom),a=(o||{}).transition,u=void 0===a?t.getDefaultTransition()||{}:a;e.transitionOverride&&(u=e.transitionOverride);var s=o?function(){return Vt(t,o,e)}:function(){return Promise.resolve()},c=(null===(r=t.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=u.delayChildren,a=void 0===o?0:o,s=u.staggerChildren,c=u.staggerDirection;return function(t,n,e,r,o,a){void 0===e&&(e=0);void 0===r&&(r=0);void 0===o&&(o=1);var u=[],s=(t.variantChildren.size-1)*r,c=1===o?function(t){return void 0===t&&(t=0),t*r}:function(t){return void 0===t&&(t=0),s-t*r};return Array.from(t.variantChildren).sort(Lt).forEach((function(t,r){u.push(Tt(t,n,(0,i.pi)((0,i.pi)({},a),{delay:e+c(r)})).then((function(){return t.notifyAnimationComplete(n)})))})),Promise.all(u)}(t,n,a+r,s,c,e)}:function(){return Promise.resolve()},l=u.when;if(l){var f=(0,i.CR)("beforeChildren"===l?[s,c]:[c,s],2),d=f[0],p=f[1];return d().then(p)}return Promise.all([s(),c(e.delay)])}function Vt(t,n,e){var r,o=void 0===e?{}:e,a=o.delay,u=void 0===a?0:a,s=o.transitionOverride,c=o.type,l=t.makeTargetAnimatable(n),f=l.transition,d=void 0===f?t.getDefaultTransition():f,p=l.transitionEnd,v=(0,i._T)(l,["transition","transitionEnd"]);s&&(d=s);var m=[],h=c&&(null===(r=t.animationState)||void 0===r?void 0:r.getState()[c]);for(var g in v){var y=t.getValue(g),x=v[g];if(!(!y||void 0===x||h&&kt(h,g))){var E=vt(g,y,x,(0,i.pi)({delay:u},d));m.push(E)}}return Promise.all(m).then((function(){p&&Ct(t,p)}))}function Lt(t,n){return t.sortNodePosition(n)}function kt(t,n){var e=t.protectedKeys,r=t.needsAnimating,o=e.hasOwnProperty(n)&&!0!==r[n];return r[n]=!1,o}function Rt(){var t=!1,n=[],e=new Set,r={subscribe:function(t){return e.add(t),function(){e.delete(t)}},start:function(r,o){if(t){var i=[];return e.forEach((function(t){i.push(St(t,r,{transitionOverride:o}))})),Promise.all(i)}return new Promise((function(t){n.push({animation:[r,o],resolve:t})}))},set:function(n){return(0,s.k)(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach((function(t){!function(t,n){Array.isArray(n)?bt(t,n):"string"==typeof n?bt(t,[n]):Ct(t,n)}(t,n)}))},stop:function(){e.forEach((function(t){!function(t){t.forEachValue((function(t){return t.stop()}))}(t)}))},mount:function(){return t=!0,n.forEach((function(t){var n=t.animation,e=t.resolve;r.start.apply(r,(0,i.fl)(n)).then(e)})),function(){t=!1,r.stop()}}};return r}function Dt(t){return"object"==typeof t&&"function"==typeof t.start}function Mt(t){return"string"==typeof t&&t.startsWith("var(--")}var Bt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ot(t,n,e){void 0===e&&(e=1),(0,s.k)(e<=4,'Max CSS variable fallback depth detected in property "'+t+'". This may indicate a circular fallback dependency.');var r=(0,i.CR)(function(t){var n=Bt.exec(t);if(!n)return[,];var e=(0,i.CR)(n,3);return[e[1],e[2]]}(t),2),o=r[0],a=r[1];if(o){var u=window.getComputedStyle(n).getPropertyValue(o);return u?u.trim():Mt(a)?Ot(a,n,e+1):a}}function Ft(t,n){return t/(n.max-n.min)*100}var It="_$css";var jt={process:function(t,n,e){var r=e.target;if("string"==typeof t){if(!c.px.test(t))return t;t=parseFloat(t)}return Ft(t,r.x)+"% "+Ft(t,r.y)+"%"}},Ut={borderRadius:(0,i.pi)((0,i.pi)({},jt),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:jt,borderTopRightRadius:jt,borderBottomLeftRadius:jt,borderBottomRightRadius:jt,boxShadow:{process:function(t,n){var e=n.delta,r=n.treeScale,o=t,i=t.includes("var("),a=[];i&&(t=t.replace(Bt,(function(t){return a.push(t),It})));var s=c.PY.parse(t);if(s.length>5)return o;var l=c.PY.createTransformer(t),f="number"!=typeof s[0]?1:0,d=e.x.scale*r.x,p=e.y.scale*r.y;s[0+f]/=d,s[1+f]/=p;var v=(0,u.CD)(d,p,.5);"number"==typeof s[2+f]&&(s[2+f]/=v),"number"==typeof s[3+f]&&(s[3+f]/=v);var m=l(s);if(i){var h=0;m=m.replace(It,(function(){var t=a[h];return h++,t}))}return m}}};function Yt(t,n){var e=n.layout,r=n.layoutId;return X(t)||Z(t)||(e||void 0!==r)&&!!Ut[t]}function Ht(t,n,e){var r=t.style,o={};for(var a in r)I(r[a])?o[a]=r[a].get():Yt(a,t)&&(o[a]=r[a]);var u=t.initial,s=t.animate,c=xt(t);if((c||t.variants)&&!c&&!1!==t.inherit){var l=null==n?void 0:n.getVariantContext();l&&(null!=u||(u=l.initial),null!=s||(s=l.animate))}var f=e||!1===u?s:u;f&&"boolean"!=typeof f&&!Dt(f)&&(Array.isArray(f)?f:[f]).forEach((function(n){var e=gt(t,n);if(e){var r=e.transitionEnd,a=(e.transition,(0,i._T)(e,["transitionEnd","transition"]));for(var u in a)o[u]=a[u];for(var u in r)o[u]=r[u]}}));return o}function Xt(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:h(),deltaFinal:h(),deltaTransform:""}}var _t=Xt(),Zt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function zt(t,n,e){var r=t.x,o=t.y,i="translate3d("+r.translate/n.x+"px, "+o.translate/n.y+"px, 0) ";if(e){var a=e.rotate,u=e.rotateX,s=e.rotateY;a&&(i+="rotate("+a+") "),u&&(i+="rotateX("+u+") "),s&&(i+="rotateY("+s+") ")}return i+="scale("+r.scale+", "+o.scale+")",e||i!==$t?i:""}var Wt,$t=zt(_t.delta,_t.treeScale,{x:1,y:1});function Gt(t,n){if(!Array.isArray(n))return!1;var e=n.length;if(e!==t.length)return!1;for(var r=0;r<e;r++)if(n[r]!==t[r])return!1;return!0}!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.Exit="exit"}(Wt||(Wt={}));var Nt=[Wt.Animate,Wt.Hover,Wt.Tap,Wt.Drag,Wt.Focus,Wt.Exit],qt=(0,i.fl)(Nt).reverse(),Kt=Nt.length;function Qt(t){var n,e=function(t){return function(n){return Promise.all(n.map((function(n){var e=n.animation,r=n.options;return St(t,e,r)})))}}(t),r=((n={})[Wt.Animate]=Jt(!0),n[Wt.Hover]=Jt(),n[Wt.Tap]=Jt(),n[Wt.Drag]=Jt(),n[Wt.Focus]=Jt(),n[Wt.Exit]=Jt(),n),o={},a=!0,u=function(n,e){var r=yt(t,e);if(r){r.transition;var o=r.transitionEnd,a=(0,i._T)(r,["transition","transitionEnd"]);n=(0,i.pi)((0,i.pi)((0,i.pi)({},n),a),o)}return n};function s(n,s){for(var c=t.getProps(),l=t.getVariantContext(!0)||{},f=[],d=new Set,p={},v=1/0,m=function(e){var o=qt[e],m=r[o],h=null!==(P=c[o])&&void 0!==P?P:l[o],g=ht(h),y=o===s?m.isActive:null;!1===y&&(v=e);var x=h===l[o]&&h!==c[o]&&g;if(x&&a&&t.manuallyAnimateOnMount&&(x=!1),m.protectedKeys=(0,i.pi)({},p),!m.isActive&&null===y||!h&&!m.prevProp||Dt(h)||"boolean"==typeof h)return"continue";var E=function(t,n){if("string"==typeof n)return n!==t;if(mt(n))return!Gt(n,t);return!1}(m.prevProp,h)||o===s&&m.isActive&&!x&&g||e>v&&g,C=Array.isArray(h)?h:[h],b=C.reduce(u,{});!1===y&&(b={});var P=m.prevResolvedValues,A=void 0===P?{}:P,w=(0,i.pi)((0,i.pi)({},A),b),S=function(t){E=!0,d.delete(t),m.needsAnimating[t]=!0};for(var T in w){var V=b[T],L=A[T];p.hasOwnProperty(T)||(V!==L?N(V)&&N(L)?Gt(V,L)?m.protectedKeys[T]=!0:S(T):void 0!==V?S(T):d.add(T):void 0!==V&&d.has(T)?S(T):m.protectedKeys[T]=!0)}m.prevProp=h,m.prevResolvedValues=b,m.isActive&&(p=(0,i.pi)((0,i.pi)({},p),b)),a&&t.blockInitialAnimation&&(E=!1),E&&!x&&f.push.apply(f,(0,i.fl)(C.map((function(t){return{animation:t,options:(0,i.pi)({type:o},n)}}))))},h=0;h<Kt;h++)m(h);if(o=(0,i.pi)({},p),d.size){var g={};d.forEach((function(n){var e=t.getBaseTarget(n);void 0!==e&&(g[n]=e)})),f.push({animation:g})}var y=Boolean(f.length);return a&&!1===c.initial&&!t.manuallyAnimateOnMount&&(y=!1),a=!1,y?e(f):Promise.resolve()}return{isAnimated:function(t){return void 0!==o[t]},animateChanges:s,setActive:function(n,e,o){var i;return r[n].isActive===e?Promise.resolve():(null===(i=t.variantChildren)||void 0===i||i.forEach((function(t){var r;return null===(r=t.animationState)||void 0===r?void 0:r.setActive(n,e)})),r[n].isActive=e,s(o,n))},setAnimateFunction:function(n){e=n(t)},getState:function(){return r}}}function Jt(t){return void 0===t&&(t=!1),{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var tn=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget"];function nn(t,n,e,r){var o,i,a=t.delta,u=t.layout,s=t.layoutCorrected,c=t.treeScale,l=n.target;i=u,g((o=s).x,i.x),g(o.y,i.y),function(t,n,e){var r=e.length;if(r){n.x=n.y=1;for(var o=0;o<r;o++){var i=e[o].getLayoutState().delta;n.x*=i.x.scale,n.y*=i.y.scale,C(t,i)}}}(s,c,e),R(a,s,l,r)}var en=function(t){var n=t.treeType,e=void 0===n?"":n,o=t.createRenderState,s=t.build,c=t.getBaseTarget,l=t.makeTargetAnimatable,d=t.measureViewportBox,p=t.onMount,v=t.render,m=t.readValueFromInstance,h=t.resetTransform,g=t.restoreTransform,y=t.removeValueFromMutableState,x=t.sortNodePosition,E=t.scrapeMotionValuesFromProps;return function(t,n){var C,w=t.parent,T=t.ref,V=t.props,L=t.isStatic,k=t.presenceId,D=t.blockInitialAnimation;void 0===n&&(n={});var O,j,U,Y,H,X=new Set,_=function(){var t=tn.map(B),n={},e={clearAllListeners:function(){return t.forEach((function(t){return t.clear()}))},updatePropListeners:function(t){return tn.forEach((function(r){var o;null===(o=n[r])||void 0===o||o.call(n);var i="on"+r,a=t[i];a&&(n[r]=e[i](a))}))}};return t.forEach((function(t,n){e["on"+tn[n]]=t.add,e["notify"+tn[n]]=t.notify})),e}(),Z={isEnabled:!1,isTargetLocked:!1,target:{x:{min:0,max:1},y:{min:0,max:1}},targetFinal:{x:{min:0,max:1},y:{min:0,max:1}}},z=Ht(V,w,D),W=Z,$=z,G=Xt(),N=o(),q=!1,K=new Map,Q=new Map,J={},tt=(0,i.pi)({},z);function nt(){return Z.isEnabled&&G.isHydrated}function et(){var t,n,e;C&&(nt()&&(t=W.targetFinal,n=W.target,e=$,b(t.x,n.x,e,P),b(t.y,n.y,e,A),R(G.deltaFinal,G.layoutCorrected,W.targetFinal,z)),rt(),v(C,N))}function rt(){var t=z;j&&j.isActive()&&(t=j.getCrossfadeState(ft)),s(ft,N,t,W,G,n,V)}function ot(){_.notifyUpdate(z)}var it=E(V);for(var at in it){var ut=it[at];void 0!==z[at]&&I(ut)&&ut.set(z[at],!1)}var st=xt(V),ct=ht(V.initial),lt=Boolean(ct||st||V.variants),ft=(0,i.pi)((0,i.pi)({treeType:e,current:null,depth:w?w.depth+1:0,path:w?(0,i.fl)(w.path,[w]):[],presenceId:k,projection:Z,variantChildren:lt?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==w?void 0:w.isMounted()),blockInitialAnimation:D,isStatic:L,isHoverEventsEnabled:!0,isMounted:function(){return Boolean(C)},addChild:function(t){return X.add(t),function(){return X.delete(t)}},addVariantChild:function(t){var n,e=ft.getClosestVariantNode();if(e)return null===(n=e.variantChildren)||void 0===n||n.add(t),function(){return e.variantChildren.delete(t)}},sortNodePosition:function(t){return x&&e===t.treeType?x(ft.getInstance(),t.getInstance()):0},getClosestVariantNode:function(){return lt?ft:null==w?void 0:w.getClosestVariantNode()},scheduleUpdateLayoutProjection:w?w.scheduleUpdateLayoutProjection:function(){return a.ZP.preRender(ft.updateLayoutProjection,!1,!0)},getLayoutId:function(){return V.layoutId},getInstance:function(){return C},getStaticValue:function(t){return z[t]},setStaticValue:function(t,n){return z[t]=n},getLatestValues:function(){return z},clearState:function(t){K.clear(),$=z=Ht(V=t,w,D),N=o()},setVisibility:function(t){ft.isVisible!==t&&(ft.isVisible=t,ft.scheduleRender())},makeTargetAnimatable:function(t,n){return void 0===n&&(n=!0),l(ft,t,V,n)},suspendHoverEvents:function(){ft.isHoverEventsEnabled=!1,a.ZP.postRender((function(){return setTimeout((function(){return ft.isHoverEventsEnabled=!0}),10)}))},addValue:function(t,n){ft.hasValue(t)&&ft.removeValue(t),K.set(t,n),z[t]=n.get(),function(t,n){var e=n.onChange((function(n){z[t]=n,V.onUpdate&&a.ZP.update(ot,!1,!0)})),r=n.onRenderRequest(ft.scheduleRender);Q.set(t,(function(){e(),r()}))}(t,n)},removeValue:function(t){var n;K.delete(t),null===(n=Q.get(t))||void 0===n||n(),Q.delete(t),delete z[t],y(t,N)},hasValue:function(t){return K.has(t)},getValue:function(t,n){var e=K.get(t);return void 0===e&&void 0!==n&&(e=F(n),ft.addValue(t,e)),e},forEachValue:function(t){return K.forEach(t)},readValue:function(t){var e;return null!==(e=z[t])&&void 0!==e?e:m(C,t,n)},setBaseTarget:function(t,n){tt[t]=n},getBaseTarget:function(t){if(c){var n=c(V,t);if(void 0!==n&&!I(n))return n}return tt[t]}},_),{ref:function(t){C=ft.current=t,t?(ft.pointTo(ft),Y=null==w?void 0:w.addChild(ft),lt&&w&&!st&&(H=null==w?void 0:w.addVariantChild(ft)),null==p||p(ft,C,N)):(a.qY.update(ot),a.qY.render(et),a.qY.preRender(ft.updateLayoutProjection),Q.forEach((function(t){return t()})),ft.stopLayoutAnimation(),null==Y||Y(),null==H||H(),null==O||O(),_.clearAllListeners()),T&&("function"==typeof T?T(t):M(T)&&(T.current=t))},build:function(){return rt(),N},scheduleRender:function(){a.ZP.render(et,!1,!0)},syncRender:et,setProps:function(t){V=t,_.updatePropListeners(t),J=function(t,n,e){var r;for(var o in n){var i=n[o],a=e[o];if(I(i))t.addValue(o,i);else if(I(a))t.addValue(o,F(i));else if(a!==i)if(t.hasValue(o)){var u=t.getValue(o);!u.hasAnimated&&u.set(i)}else t.addValue(o,F(null!==(r=t.getStaticValue(o))&&void 0!==r?r:i))}for(var o in e)void 0===n[o]&&t.removeValue(o);return n}(ft,E(V),J)},getProps:function(){return V},getVariant:function(t){var n;return null===(n=V.variants)||void 0===n?void 0:n[t]},getDefaultTransition:function(){return V.transition},getVariantContext:function(t){if(void 0===t&&(t=!1),t)return null==w?void 0:w.getVariantContext();if(!st){var n=(null==w?void 0:w.getVariantContext())||{};return void 0!==V.initial&&(n.initial=V.initial),n}for(var e={},r=0;r<an;r++){var o=on[r],i=V[o];(ht(i)||!1===i)&&(e[o]=i)}return e},enableLayoutProjection:function(){Z.isEnabled=!0},lockProjectionTarget:function(){Z.isTargetLocked=!0},unlockProjectionTarget:function(){ft.stopLayoutAnimation(),Z.isTargetLocked=!1},snapshotViewportBox:function(){ft.prevViewportBox=ft.measureViewportBox(!1),ft.rebaseProjectionTarget(!1,ft.prevViewportBox)},getLayoutState:function(){return G},setCrossfader:function(t){j=t},startLayoutAnimation:function(t,n){var e=ft.getProjectionAnimationProgress()[t],r=Z.target[t],o=r.min,i=r.max-o;return e.clearListeners(),e.set(o),e.set(o),e.onChange((function(n){return ft.setProjectionTargetAxis(t,n,n+i)})),ft.animateMotionValue(t,e,0,n)},stopLayoutAnimation:function(){f((function(t){return ft.getProjectionAnimationProgress()[t].stop()}))},measureViewportBox:function(t){void 0===t&&(t=!0);var e,r,o=d(C,n);return t||(r=z,S((e=o).x,r,P),S(e.y,r,A)),o},updateLayoutMeasurement:function(){var t;ft.notifyBeforeLayoutMeasure(G.layout),G.isHydrated=!0,G.layout=ft.measureViewportBox(),G.layoutCorrected=(t=G.layout,{x:(0,i.pi)({},t.x),y:(0,i.pi)({},t.y)}),ft.notifyLayoutMeasure(G.layout,ft.prevViewportBox||G.layout),a.ZP.update((function(){return ft.rebaseProjectionTarget()}))},getProjectionAnimationProgress:function(){return U||(U={x:F(0),y:F(0)}),U},setProjectionTargetAxis:function(t,n,e){var r=Z.target[t];r.min=n,r.max=e,q=!0,_.notifySetAxisTarget()},rebaseProjectionTarget:function(t,n){void 0===n&&(n=G.layout);var e=ft.getProjectionAnimationProgress(),r=e.x,o=e.y,i=!Z.isTargetLocked&&!r.isAnimating()&&!o.isAnimating();(t||i)&&f((function(t){var e=n[t],r=e.min,o=e.max;ft.setProjectionTargetAxis(t,r,o)}))},notifyLayoutReady:function(t){ft.notifyLayoutUpdate(G.layout,ft.prevViewportBox||G.layout,t)},resetTransform:function(){return h(ft,C,V)},withoutTransform:function(t){var n=Z.isEnabled;n&&ft.resetTransform(),w?w.withoutTransform(t):t(),n&&g(C,N)},updateLayoutProjection:function(){nt()&&function(){var t=G.delta,n=G.treeScale,e=n.x,r=n.x,o=G.deltaTransform;nn(G,W,ft.path,z),q&&ft.notifyViewportBoxUpdate(W.target,t),q=!1;var i=zt(t,n);i===o&&e===n.x&&r===n.y||ft.scheduleRender(),G.deltaTransform=i}(),X.forEach(rn)},pointTo:function(t){W=t.projection,$=t.getLatestValues(),null==O||O(),O=(0,u.zG)(t.onSetAxisTarget(ft.scheduleUpdateLayoutProjection),t.onLayoutAnimationComplete((function(){var t;ft.isPresent?ft.presence=r.Present:null===(t=ft.layoutSafeToRemove)||void 0===t||t.call(ft)})))},isPresent:!0,presence:r.Entering});return ft}};function rn(t){t.updateLayoutProjection()}var on=(0,i.fl)(["initial"],Nt),an=on.length;function un(t,n){return p(function(t,n){var e=t.top,r=t.left,o=t.bottom,i=t.right;void 0===n&&(n=d);var a=n({x:r,y:e}),u=n({x:i,y:o});return{top:a.y,left:a.x,bottom:u.y,right:u.x}}(t.getBoundingClientRect(),n))}function sn(t){return t.startsWith("--")}function cn(t,n,e,r,o,i){var a,u=t.style,s=t.vars,c=t.transform,l=t.transformKeys,f=t.transformOrigin;l.length=0;var d=!1,p=!1,v=!0;for(var m in n){var h=n[m];if(sn(m))s[m]=h;else{var g=st(m),y=ct(h,g);if(X(m)){if(d=!0,c[m]=y,l.push(m),!v)continue;h!==(null!==(a=g.default)&&void 0!==a?a:0)&&(v=!1)}else if(Z(m))f[m]=y,p=!0;else if(r.isHydrated&&Ut[m]){var x=Ut[m].process(h,r,e),E=Ut[m].applyTo;if(E)for(var C=E.length,b=0;b<C;b++)u[E[b]]=x;else u[m]=x}else u[m]=y}}e.isEnabled&&r.isHydrated?(u.transform=zt(r.deltaFinal,r.treeScale,d?c:void 0),i&&(u.transform=i(c,u.transform)),u.transformOrigin=function(t){var n=t.deltaFinal;return 100*n.x.origin+"% "+100*n.y.origin+"% 0"}(r)):(d&&(u.transform=function(t,n,e,r){var o=t.transform,i=t.transformKeys,a=n.enableHardwareAcceleration,u=void 0===a||a,s=n.allowTransformNone,c=void 0===s||s,l="";i.sort(Y);for(var f=!1,d=i.length,p=0;p<d;p++){var v=i[p];l+=(Zt[v]||v)+"("+o[v]+") ","z"===v&&(f=!0)}return!f&&u?l+="translateZ(0)":l=l.trim(),r?l=r(o,e?"":l):c&&e&&(l="none"),l}(t,o,v,i)),p&&(u.transformOrigin=function(t){var n=t.originX,e=void 0===n?"50%":n,r=t.originY,o=void 0===r?"50%":r,i=t.originZ;return e+" "+o+" "+(void 0===i?0:i)}(f)))}var ln,fn=new Set(["width","height","top","left","right","bottom","x","y"]),dn=function(t){return fn.has(t)},pn=function(t,n){t.set(n,!1),t.set(n)},vn=function(t){return t===c.Rx||t===c.px};!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(ln||(ln={}));var mn=function(t,n){return parseFloat(t.split(", ")[n])},hn=function(t,n){return function(e,r){var o=r.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return mn(i[1],n);var a=o.match(/^matrix\((.+)\)$/);return a?mn(a[1],t):0}},gn=new Set(["x","y","z"]),yn=U.filter((function(t){return!gn.has(t)}));var xn={width:function(t){var n=t.x;return n.max-n.min},height:function(t){var n=t.y;return n.max-n.min},top:function(t,n){var e=n.top;return parseFloat(e)},left:function(t,n){var e=n.left;return parseFloat(e)},bottom:function(t,n){var e=t.y,r=n.top;return parseFloat(r)+(e.max-e.min)},right:function(t,n){var e=t.x,r=n.left;return parseFloat(r)+(e.max-e.min)},x:hn(4,13),y:hn(5,14)},En=function(t,n,e,r){void 0===e&&(e={}),void 0===r&&(r={}),n=(0,i.pi)({},n),r=(0,i.pi)({},r);var o=Object.keys(n).filter(dn),a=[],u=!1,l=[];if(o.forEach((function(o){var i=t.getValue(o);if(t.hasValue(o)){var f,d=e[o],p=n[o],v=it(d);if(N(p))for(var m=p.length,h=null===p[0]?1:0;h<m;h++)f?(0,s.k)(it(p[h])===f,"All keyframes must be of the same type"):(f=it(p[h]),(0,s.k)(f===v||vn(v)&&vn(f),"Keyframes must be of the same dimension as the current value"));else f=it(p);if(v!==f)if(vn(v)&&vn(f)){var g=i.get();"string"==typeof g&&i.set(parseFloat(g)),"string"==typeof p?n[o]=parseFloat(p):Array.isArray(p)&&f===c.px&&(n[o]=p.map(parseFloat))}else(null==v?void 0:v.transform)&&(null==f?void 0:f.transform)&&(0===d||0===p)?0===d?i.set(f.transform(d)):n[o]=v.transform(p):(u||(a=function(t){var n=[];return yn.forEach((function(e){var r=t.getValue(e);void 0!==r&&(n.push([e,r.get()]),r.set(e.startsWith("scale")?1:0))})),n.length&&t.syncRender(),n}(t),u=!0),l.push(o),r[o]=void 0!==r[o]?r[o]:n[o],pn(i,p))}})),l.length){var f=function(t,n,e){var r=n.measureViewportBox(),o=n.getInstance(),i=getComputedStyle(o),a=i.display,u={top:i.top,left:i.left,bottom:i.bottom,right:i.right,transform:i.transform};"none"===a&&n.setStaticValue("display",t.display||"block"),n.syncRender();var s=n.measureViewportBox();return e.forEach((function(e){var o=n.getValue(e);pn(o,xn[e](r,u)),t[e]=xn[e](s,i)})),t}(n,t,l);return a.length&&a.forEach((function(n){var e=(0,i.CR)(n,2),r=e[0],o=e[1];t.getValue(r).set(o)})),t.syncRender(),{target:f,transitionEnd:r}}return{target:n,transitionEnd:r}};function Cn(t,n,e,r){return function(t){return Object.keys(t).some(dn)}(n)?En(t,n,e,r):{target:n,transitionEnd:r}}var bn=function(t,n,e,r){var o=function(t,n,e){var r,o=(0,i._T)(n,[]),a=t.getInstance();if(!(a instanceof HTMLElement))return{target:o,transitionEnd:e};for(var u in e&&(e=(0,i.pi)({},e)),t.forEachValue((function(t){var n=t.get();if(Mt(n)){var e=Ot(n,a);e&&t.set(e)}})),o){var s=o[u];if(Mt(s)){var c=Ot(s,a);c&&(o[u]=c,e&&(null!==(r=e[u])&&void 0!==r||(e[u]=s)))}}return{target:o,transitionEnd:e}}(t,n,r);return Cn(t,n=o.target,e,r=o.transitionEnd)};var Pn={treeType:"dom",readValueFromInstance:function(t,n){if(X(n)){var e=st(n);return e&&e.default||0}var r,o=(r=t,window.getComputedStyle(r));return(sn(n)?o.getPropertyValue(n):o[n])||0},createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}},sortNodePosition:function(t,n){return 2&t.compareDocumentPosition(n)?1:-1},getBaseTarget:function(t,n){var e;return null===(e=t.style)||void 0===e?void 0:e[n]},measureViewportBox:function(t,n){return un(t,n.transformPagePoint)},resetTransform:function(t,n,e){t.suspendHoverEvents();var r=e.transformTemplate;n.style.transform=r?r({},""):"none",t.scheduleRender()},restoreTransform:function(t,n){t.style.transform=n.style.transform},removeValueFromMutableState:function(t,n){var e=n.vars,r=n.style;delete e[t],delete r[t]},makeTargetAnimatable:function(t,n,e,r){var o=e.transformValues;void 0===r&&(r=!0);var a=n.transition,u=n.transitionEnd,s=(0,i._T)(n,["transition","transitionEnd"]),c=wt(s,a||{},t);if(o&&(u&&(u=o(u)),s&&(s=o(s)),c&&(c=o(c))),r){Pt(t,s,c);var l=bn(t,s,c,u);u=l.transitionEnd,s=l.target}return(0,i.pi)({transition:a,transitionEnd:u},s)},scrapeMotionValuesFromProps:function(t){var n=t.style,e={};for(var r in n)(I(n[r])||Yt(r,t))&&(e[r]=n[r]);return e},build:function(t,n,e,r,o,i,a){void 0!==t.isVisible&&(n.style.visibility=t.isVisible?"visible":"hidden"),cn(n,e,r,o,i,a.transformTemplate)},render:function(t,n){var e=n.style,r=n.vars;for(var o in Object.assign(t.style,e),r)t.style.setProperty(o,r[o])}},An=en(Pn);function wn(t,n,e){return"string"==typeof t?t:c.px.transform(n+e*t)}var Sn=function(t,n){return c.px.transform(t*n)},Tn={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vn={offset:"strokeDashoffset",array:"strokeDasharray"};function Ln(t,n,e,r,o,a){var u=n.attrX,s=n.attrY,c=n.originX,l=n.originY,f=n.pathLength,d=n.pathSpacing,p=void 0===d?1:d,v=n.pathOffset,m=void 0===v?0:v;cn(t,(0,i._T)(n,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),e,r,o,a),t.attrs=t.style,t.style={};var h=t.attrs,g=t.style,y=t.dimensions,x=t.totalPathLength;h.transform&&(g.transform=h.transform,delete h.transform),(void 0!==c||void 0!==l||g.transform)&&(g.transformOrigin=function(t,n,e){return wn(n,t.x,t.width)+" "+wn(e,t.y,t.height)}(y,void 0!==c?c:.5,void 0!==l?l:.5)),void 0!==u&&(h.x=u),void 0!==s&&(h.y=s),void 0!==x&&void 0!==f&&function(t,n,e,r,o,i){void 0===r&&(r=1),void 0===o&&(o=0),void 0===i&&(i=!0);var a=i?Tn:Vn;t[a.offset]=Sn(-o,n);var u=Sn(e,n),s=Sn(r,n);t[a.array]=u+" "+s}(h,x,f,p,m,!1)}var kn=/([a-z])([A-Z])/g,Rn=function(t){return t.replace(kn,"$1-$2").toLowerCase()},Dn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox"]),Mn={x:0,y:0,width:0,height:0},Bn=en((0,i.pi)((0,i.pi)({},Pn),{createRenderState:function(){return(0,i.pi)((0,i.pi)({},Pn.createRenderState()),{attrs:{},dimensions:Mn})},onMount:function(t,n,e){try{e.dimensions="function"==typeof n.getBBox?n.getBBox():n.getBoundingClientRect()}catch(r){e.dimensions=Mn}(function(t){return"path"===t.tagName})(n)&&(e.totalPathLength=n.getTotalLength()),t.scheduleRender()},getBaseTarget:function(t,n){return t[n]},readValueFromInstance:function(t,n){var e;return X(n)?(null===(e=st(n))||void 0===e?void 0:e.default)||0:(n=Dn.has(n)?n:Rn(n),t.getAttribute(n))},scrapeMotionValuesFromProps:function(t){var n=Pn.scrapeMotionValuesFromProps(t);for(var e in t)I(t[e])&&("x"!==e&&"y"!==e||(e="attr"+e.toUpperCase()),n[e]=t[e]);return n},build:function(t,n,e,r,o,i,a){Ln(n,e,r,o,i,a.transformTemplate)},render:function(t,n){for(var e in Pn.render(t,n),n.attrs)t.setAttribute(Dn.has(e)?e:Rn(e),n.attrs[e])}}));var On=["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 Fn(t){return"string"==typeof t&&(!t.includes("-")&&(On.indexOf(t)>-1||(!!/[A-Z]/.test(t)||void 0)))}function In(t){var n=(0,l.useRef)(null);return null===n.current&&(n.current=t()),n.current}function jn(t,n){var e=n.style||{},r={};for(var o in e)I(e[o])||Yt(o,n)||(r[o]=e[o]);return r=(0,i.pi)((0,i.pi)({},r),function(t){var n=function(){var n=t.build(),e=n.vars,r=n.style;return(0,i.pi)((0,i.pi)({},e),r)};return t.isStatic?n():In(n)}(t)),n.transformValues&&(r=n.transformValues(r)),r}function Un(t,n){var e={},r=jn(t,n);return Boolean(n.drag)&&(e.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===n.drag?"none":"pan-"+("x"===n.drag?"y":"x")),e.style=r,e}var Yn=(0,l.createContext)({transformPagePoint:function(t){return t},features:[],isStatic:!1});function Hn(t){return(0,l.useEffect)((function(){return function(){return t()}}),[])}function Xn(t,n,e,r){return t.addEventListener(n,e,r),function(){return t.removeEventListener(n,e,r)}}function _n(t,n,e,r){(0,l.useEffect)((function(){var o=t.current;if(e&&o)return Xn(o,n,e,r)}),[t,n,e,r])}function Zn(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function zn(t){return!!t.touches}var Wn={pageX:0,pageY:0};function $n(t,n){void 0===n&&(n="page");var e=t.touches[0]||t.changedTouches[0]||Wn;return{x:e[n+"X"],y:e[n+"Y"]}}function Gn(t,n){return void 0===n&&(n="page"),{x:t[n+"X"],y:t[n+"Y"]}}function Nn(t,n){return void 0===n&&(n="page"),{point:zn(t)?$n(t,n):Gn(t,n)}}function qn(t){return Nn(t,"client")}var Kn=function(t,n){void 0===n&&(n=!1);var e,r=function(n){return t(n,Nn(n))};return n?(e=r,function(t){var n=t instanceof MouseEvent;(!n||n&&0===t.button)&&e(t)}):r},Qn="undefined"!=typeof window,Jn={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},te={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function ne(t){return Qn&&null===window.onpointerdown?t:Qn&&null===window.ontouchstart?te[t]:Qn&&null===window.onmousedown?Jn[t]:t}function ee(t,n,e,r){return Xn(t,ne(n),Kn(e,"pointerdown"===n),r)}function re(t,n,e,r){return _n(t,ne(n),e&&Kn(e,"pointerdown"===n),r)}var oe=function(){function t(t,n,e){var r=this,o=(void 0===e?{}:e).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var t=ue(r.lastMoveEventInfo,r.history),n=null!==r.startEvent,e=(0,u.TE)(t.offset,{x:0,y:0})>=3;if(n||e){var o=t.point,s=(0,a.$B)().timestamp;r.history.push((0,i.pi)((0,i.pi)({},o),{timestamp:s}));var c=r.handlers,l=c.onStart,f=c.onMove;n||(l&&l(r.lastMoveEvent,t),r.startEvent=r.lastMoveEvent),f&&f(r.lastMoveEvent,t)}}},this.handlePointerMove=function(t,n){r.lastMoveEvent=t,r.lastMoveEventInfo=ie(n,r.transformPagePoint),Zn(t)&&0===t.buttons?r.handlePointerUp(t,n):a.ZP.update(r.updatePoint,!0)},this.handlePointerUp=function(t,n){r.end();var e=r.handlers.onEnd;if(e&&r.startEvent){var o=ue(ie(n,r.transformPagePoint),r.history);e&&e(t,o)}},!(zn(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=o;var s=ie(Nn(t),this.transformPagePoint),c=s.point,l=(0,a.$B)().timestamp;this.history=[(0,i.pi)((0,i.pi)({},c),{timestamp:l})];var f=n.onSessionStart;f&&f(t,ue(s,this.history)),this.removeListeners=(0,u.zG)(ee(window,"pointermove",this.handlePointerMove),ee(window,"pointerup",this.handlePointerUp),ee(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),a.qY.update(this.updatePoint)},t}();function ie(t,n){return n?{point:n(t.point)}:t}function ae(t,n){return{x:t.x-n.x,y:t.y-n.y}}function ue(t,n){var e=t.point;return{point:e,delta:ae(e,ce(n)),offset:ae(e,se(n)),velocity:le(n,.1)}}function se(t){return t[0]}function ce(t){return t[t.length-1]}function le(t,n){if(t.length<2)return{x:0,y:0};for(var e=t.length-1,r=null,o=ce(t);e>=0&&(r=t[e],!(o.timestamp-r.timestamp>z(n)));)e--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var fe=function t(n,e){return!!e&&(n===e||t(n,e.parentElement))};function de(t){var n=null;return function(){return null===n&&(n=t,function(){n=null})}}var pe=de("dragHorizontal"),ve=de("dragVertical");function me(t){var n=!1;if("y"===t)n=ve();else if("x"===t)n=pe();else{var e=pe(),r=ve();e&&r?n=function(){e(),r()}:(e&&e(),r&&r())}return n}function he(t,n){var e=t.onTap,r=t.onTapStart,o=t.onTapCancel,i=t.whileTap,a=e||r||o||i,s=(0,l.useRef)(!1),c=(0,l.useRef)(null);function f(){var t;null===(t=c.current)||void 0===t||t.call(c),c.current=null}function d(){var t,e;return f(),s.current=!1,null===(t=n.animationState)||void 0===t||t.setActive(Wt.Tap,!1),!(!(e=me(!0))||(e(),0))}function p(t,r){d()&&(fe(n.getInstance(),t.target)?null==e||e(t,r):null==o||o(t,r))}function v(t,n){d()&&(null==o||o(t,n))}re(n,"pointerdown",a?function(t,e){var o;f(),s.current||(s.current=!0,c.current=(0,u.zG)(ee(window,"pointerup",p),ee(window,"pointercancel",v)),null==r||r(t,e),null===(o=n.animationState)||void 0===o||o.setActive(Wt.Tap,!0))}:void 0),Hn(f)}function ge(t,n,e){return function(r,o){var i;Zn(r)&&t.isHoverEventsEnabled&&(null==e||e(r,o),null===(i=t.animationState)||void 0===i||i.setActive(Wt.Hover,n))}}function ye(t,n){var e,r,o,i,a,u,s,c,f,d;r=n,o=(e=t).onPan,i=e.onPanStart,a=e.onPanEnd,u=e.onPanSessionStart,s=o||i||a||u,c=(0,l.useRef)(null),f=(0,l.useContext)(Yn).transformPagePoint,d={onSessionStart:u,onStart:i,onMove:o,onEnd:function(t,n){c.current=null,a&&a(t,n)}},(0,l.useEffect)((function(){null!==c.current&&c.current.updateHandlers(d)})),re(r,"pointerdown",s&&function(t){c.current=new oe(t,d,{transformPagePoint:f})}),Hn((function(){return c.current&&c.current.end()})),he(t,n),function(t,n){var e=t.onHoverStart,r=t.onHoverEnd,o=t.whileHover;re(n,"pointerenter",e||o?ge(n,!0,e):void 0),re(n,"pointerleave",r||o?ge(n,!1,r):void 0)}(t,n),function(t,n){var e=t.whileFocus;_n(n,"focus",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(Wt.Focus,!0)}:void 0),_n(n,"blur",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(Wt.Focus,!1)}:void 0)}(t,n)}var xe=function(t){return function(n){return t(n),null}},Ee=["onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"],Ce=xe((function(t){var n=t.visualElement;ye((0,i._T)(t,["visualElement"]),n)})),be={key:"gestures",shouldRender:function(t){return Ee.some((function(n){return t.hasOwnProperty(n)}))},getComponent:function(){return Ce}},Pe=new Set((0,i.fl)(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","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"],Ee));function Ae(t){return Pe.has(t)}var we=function(t){return!Ae(t)};try{var Se=e(5264).Z;we=function(t){return t.startsWith("on")?!Ae(t):Se(t)}}catch(Gr){}function Te(t,n){var e=function(t,n){var e=function(){var e=t.build().attrs,r={};for(var o in n)I(n[o])&&(r[o]=n[o].get());return(0,i.pi)((0,i.pi)({},e),r)};return t.isStatic?e():In(e)}(t,n),r=jn(t,n);return delete r.transform,delete r.transformOrigin,e.style=r,e}var Ve=(0,l.createContext)(void 0);function Le(){return(0,l.useContext)(Ve)}var ke=(0,l.createContext)(null);function Re(){var t=(0,l.useContext)(ke);if(null===t)return[!0,null];var n=t.isPresent,e=t.onExitComplete,r=t.register,o=Oe();(0,l.useEffect)((function(){return r(o)}),[]);return!n&&e?[!1,function(){return null==e?void 0:e(o)}]:[!0]}function De(t){return null===t||t.isPresent}var Me=0,Be=function(){return Me++},Oe=function(){return In(Be)},Fe=(0,l.createContext)(null),Ie={measureLayout:function(t){return t.updateLayoutMeasurement()},layoutReady:function(t){return t.notifyLayoutReady()}};function je(){var t=new Set;return{add:function(n){return t.add(n)},flush:function(n){var e=void 0===n?Ie:n,o=e.measureLayout,i=e.layoutReady,a=e.parent,u=Array.from(t).sort((function(t,n){return t.depth-n.depth})),s=function(){u.forEach((function(t){return t.resetTransform()})),u.forEach(o)};a?a.withoutTransform(s):s(),u.forEach(i),u.forEach((function(t){t.isPresent&&(t.presence=r.Present)})),t.clear()}}}function Ue(t){return!!t.forceUpdate}var Ye=(0,l.createContext)(je()),He=(0,l.createContext)(je()),Xe="undefined"!=typeof window?l.useLayoutEffect:l.useEffect;function _e(t,n,e,r,o){var a=(0,l.useContext)(Yn),u=Le(),s=(0,l.useContext)(ke),c=function(t){var n=t.layoutId,e=(0,l.useContext)(Fe);return e&&void 0!==n?e+"-"+n:n}(e),f=(0,l.useRef)(null);r&&f.current?f.current.clearState(e):f.current||(f.current=t(n,r,{parent:u,ref:o,isStatic:r,props:(0,i.pi)((0,i.pi)({},e),{layoutId:c}),presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial)}));var d=f.current;return Xe((function(){d.setProps((0,i.pi)((0,i.pi)((0,i.pi)({},a),e),{layoutId:c})),d.isPresent=De(s),d.isPresenceRoot=!u||u.presenceId!==(null==s?void 0:s.id),d.isStatic||d.syncRender()})),r||((0,l.useEffect)((function(){var t;null===(t=d.animationState)||void 0===t||t.animateChanges()})),function(t){var n=(0,l.useContext)(Ye),e=(0,l.useContext)(He);Xe((function(){return function(){Ue(n)&&n.remove(t),Ue(e)&&e.remove(t)}}),[])}(d)),d}function Ze(t,n){var e=n.defaultFeatures,r=n.createVisualElement,o=n.useRender;return(0,l.forwardRef)((function(n,a){var u=(0,l.useContext)(Yn).isStatic,s=_e(r,t,n,u,a),c=function(t,n,e,r){var o=(0,l.useContext)(Yn);if(n||"undefined"==typeof window)return null;for(var a=(0,i.fl)(t,o.features),u=a.length,s=[],c=0;c<u;c++){var f=a[c],d=f.shouldRender,p=f.key,v=f.getComponent;if(d(r)){var m=v(r);m&&s.push((0,l.createElement)(m,(0,i.pi)({key:p},r,{visualElement:e})))}}return s}(e,u,s,n),f=o(t,n,s);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ve.Provider,{value:s},f),c)}))}function ze(t,n,e){var r=n.min,o=n.max;return void 0!==r&&t<r?t=e?(0,u.CD)(r,t,e):Math.max(t,r):void 0!==o&&t>o&&(t=e?(0,u.CD)(o,t,e):Math.min(t,o)),t}function We(t,n,e){return{min:void 0!==n?t.min+n:void 0,max:void 0!==e?t.max+e-(t.max-t.min):void 0}}function $e(t,n){var e,r=n.min-t.min,o=n.max-t.max;return n.max-n.min<t.max-t.min&&(r=(e=(0,i.CR)([o,r],2))[0],o=e[1]),{min:t.min+r,max:t.min+o}}var Ge,Ne=new WeakMap,qe=function(){function t(t){var n=t.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=n,this.visualElement.enableLayoutProjection(),Ne.set(n,this)}return t.prototype.start=function(t,n){var e=this,r=void 0===n?{}:n,o=r.snapToCursor,i=void 0!==o&&o,a=r.cursorProgress;i&&this.snapToCursor(t);var s=this.props.transformPagePoint;this.panSession=new oe(t,{onSessionStart:function(){e.stopMotion()},onStart:function(t,n){var r,o,i,s=e.props,c=s.drag,l=s.dragPropagation;if(!c||l||(e.openGlobalLock&&e.openGlobalLock(),e.openGlobalLock=me(c),e.openGlobalLock)){e.prepareBoundingBox(),e.visualElement.lockProjectionTarget(),e.resolveDragConstraints();var d=qn(t).point;f((function(t){var n=e.visualElement.projection.target[t],r=n.min,o=n.max;e.cursorProgress[t]=a?a[t]:(0,u.YD)(r,o,d[t]);var i=e.getAxisMotionValue(t);i&&(e.originPoint[t]=i.get())})),e.isDragging=!0,e.currentDirection=null,null===(o=(r=e.props).onDragStart)||void 0===o||o.call(r,t,n),null===(i=e.visualElement.animationState)||void 0===i||i.setActive(Wt.Drag,!0)}},onMove:function(t,n){var r,o,i,a,u=e.props,s=u.dragPropagation,c=u.dragDirectionLock;if(s||e.openGlobalLock){var l=n.offset;if(c&&null===e.currentDirection)return e.currentDirection=function(t,n){void 0===n&&(n=10);var e=null;Math.abs(t.y)>n?e="y":Math.abs(t.x)>n&&(e="x");return e}(l),void(null!==e.currentDirection&&(null===(o=(r=e.props).onDirectionLock)||void 0===o||o.call(r,e.currentDirection)));e.updateAxis("x",t,l),e.updateAxis("y",t,l),null===(a=(i=e.props).onDrag)||void 0===a||a.call(i,t,n),Ge=t}},onEnd:function(t,n){return e.stop(t,n)}},{transformPagePoint:s})},t.prototype.prepareBoundingBox=function(){var t=this.visualElement;t.withoutTransform((function(){t.updateLayoutMeasurement()})),t.rebaseProjectionTarget(!0,t.measureViewportBox(!1))},t.prototype.resolveDragConstraints=function(){var t,n,e,r,o,i,a=this,u=this.props.dragConstraints;this.constraints=!!u&&(M(u)?this.resolveRefConstraints(this.visualElement.getLayoutState().layout,u):(t=this.visualElement.getLayoutState().layout,e=(n=u).top,r=n.left,o=n.bottom,i=n.right,{x:We(t.x,r,i),y:We(t.y,e,o)})),this.constraints&&!this.hasMutatedConstraints&&f((function(t){var n,e,r;a.getAxisMotionValue(t)&&(a.constraints[t]=(n=a.visualElement.getLayoutState().layout[t],e=a.constraints[t],r={},void 0!==e.min&&(r.min=e.min-n.min),void 0!==e.max&&(r.max=e.max-n.min),r))}))},t.prototype.resolveRefConstraints=function(t,n){var e=this.props,r=e.onMeasureDragConstraints,o=e.transformPagePoint,i=n.current;(0,s.k)(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop."),this.constraintsBox=un(i,o);var a=function(t,n){return{x:$e(t.x,n.x),y:$e(t.y,n.y)}}(t,this.constraintsBox);if(r){var u=r(function(t){var n=t.x,e=t.y;return{top:e.min,bottom:e.max,left:n.min,right:n.max}}(a));this.hasMutatedConstraints=!!u,u&&(a=p(u))}return a},t.prototype.cancelDrag=function(){var t;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(Wt.Drag,!1)},t.prototype.stop=function(t,n){var e;this.visualElement.unlockProjectionTarget(),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=null;var r=this.isDragging;if(this.cancelDrag(),r){var o=this.props,i=o.dragMomentum,a=o.dragElastic,u=o.onDragEnd;if(i||a){var s=n.velocity;this.animateDragEnd(s)}null==u||u(t,n)}},t.prototype.snapToCursor=function(t){var n=this;this.prepareBoundingBox(),f((function(e){if(Ke(e,n.props.drag,n.currentDirection)){var r=n.getAxisMotionValue(e);if(r){var o=qn(t).point,i=n.visualElement.getLayoutState().layout,a=i[e].max-i[e].min,u=i[e].min+a/2,s=o[e]-u;n.originPoint[e]=o[e],r.set(s)}else n.cursorProgress[e]=.5,n.updateVisualElementAxis(e,t)}}))},t.prototype.updateAxis=function(t,n,e){if(Ke(t,this.props.drag,this.currentDirection))return this.getAxisMotionValue(t)?this.updateAxisMotionValue(t,e):this.updateVisualElementAxis(t,n)},t.prototype.updateAxisMotionValue=function(t,n){var e=this.getAxisMotionValue(t);if(n&&e){var r=this.props.dragElastic,o=this.originPoint[t]+n[t],i=this.constraints?ze(o,this.constraints[t],r):o;e.set(i)}},t.prototype.updateVisualElementAxis=function(t,n){var e,r=this.props.dragElastic,o=this.visualElement.getLayoutState().layout[t],i=o.max-o.min,a=this.cursorProgress[t],u=function(t,n,e,r,o){var i=t-n*e;return r?ze(i,r,o):i}(qn(n).point[t],i,a,null===(e=this.constraints)||void 0===e?void 0:e[t],r);this.visualElement.setProjectionTargetAxis(t,u,u+i)},t.prototype.setProps=function(t){var n=t.drag,e=void 0!==n&&n,r=t.dragDirectionLock,o=void 0!==r&&r,a=t.dragPropagation,u=void 0!==a&&a,s=t.dragConstraints,c=void 0!==s&&s,l=t.dragElastic,f=void 0===l?.35:l,d=t.dragMomentum,p=void 0===d||d,v=(0,i._T)(t,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=(0,i.pi)({drag:e,dragDirectionLock:o,dragPropagation:u,dragConstraints:c,dragElastic:f,dragMomentum:p},v)},t.prototype.getAxisMotionValue=function(t){var n=this.props,e=n.layout,r=n.layoutId,o="_drag"+t.toUpperCase();return this.props[o]?this.props[o]:e||void 0!==r?void 0:this.visualElement.getValue(t,0)},t.prototype.animateDragEnd=function(t){var n=this,e=this.props,r=e.drag,o=e.dragMomentum,a=e.dragElastic,u=e.dragTransition,s=f((function(e){if(Ke(e,r,n.currentDirection)){var s=n.constraints?n.constraints[e]:{},c=a?200:1e6,l=a?40:1e7,f=(0,i.pi)((0,i.pi)({type:"inertia",velocity:o?t[e]:0,bounceStiffness:c,bounceDamping:l,timeConstant:750,restDelta:1,restSpeed:10},u),s);return n.getAxisMotionValue(e)?n.startAxisValueAnimation(e,f):n.visualElement.startLayoutAnimation(e,f)}}));return Promise.all(s).then((function(){var t,e;null===(e=(t=n.props).onDragTransitionEnd)||void 0===e||e.call(t)}))},t.prototype.stopMotion=function(){var t=this;f((function(n){var e=t.getAxisMotionValue(n);e?e.stop():t.visualElement.stopLayoutAnimation()}))},t.prototype.startAxisValueAnimation=function(t,n){var e=this.getAxisMotionValue(t);if(e){var r=e.get();return e.set(r),e.set(r),vt(t,e,0,n)}},t.prototype.scalePoint=function(){var t=this,n=this.props,e=n.drag;if(M(n.dragConstraints)&&this.constraintsBox){this.stopMotion();var r={x:0,y:0};f((function(n){r[n]=L(t.visualElement.projection.target[n],t.constraintsBox[n])})),this.prepareBoundingBox(),this.resolveDragConstraints(),f((function(n){if(Ke(n,e,null)){var o=function(t,n,e){var r=t.max-t.min,o=(0,u.CD)(n.min,n.max-r,e);return{min:o,max:o+r}}(t.visualElement.projection.target[n],t.constraintsBox[n],r[n]),i=o.min,a=o.max;t.visualElement.setProjectionTargetAxis(n,i,a)}}))}},t.prototype.mount=function(t){var n=this,e=ee(t.getInstance(),"pointerdown",(function(t){var e=n.props,r=e.drag,o=e.dragListener;r&&(void 0===o||o)&&n.start(t)})),r=Xn(window,"resize",(function(){n.scalePoint()})),o=t.onLayoutUpdate((function(){n.isDragging&&n.resolveDragConstraints()})),i=t.prevDragCursor;return i&&this.start(Ge,{cursorProgress:i}),function(){null==e||e(),null==r||r(),null==o||o(),n.cancelDrag()}},t}();function Ke(t,n,e){return!(!0!==n&&n!==t||null!==e&&e!==t)}var Qe=xe((function(t){var n=t.visualElement;return function(t,n){var e=t.dragControls,r=(0,l.useContext)(Yn).transformPagePoint,o=In((function(){return new qe({visualElement:n})}));o.setProps((0,i.pi)((0,i.pi)({},t),{transformPagePoint:r})),(0,l.useEffect)((function(){return e&&e.subscribe(o)}),[o]),(0,l.useEffect)((function(){return o.mount(n)}),[])}((0,i._T)(t,["visualElement"]),n)})),Je={key:"drag",shouldRender:function(t){return!!t.drag||!!t.dragControls},getComponent:function(){return Qe}};var tr=xe((function(t){var n=t.custom,e=t.visualElement,r=(0,i.CR)(Re(),2),o=r[0],a=r[1],u=(0,l.useContext)(ke);(0,l.useEffect)((function(){var t,r,i=null===(t=e.animationState)||void 0===t?void 0:t.setActive(Wt.Exit,!o,{custom:null!==(r=null==u?void 0:u.custom)&&void 0!==r?r:n});!o&&(null==i||i.then(a))}),[o])})),nr={key:"exit",shouldRender:function(t){return!!t.exit&&!function(t){var n=t.animate,e=t.variants,r=t.inherit;return null!=r?r:!!e&&!n}(t)},getComponent:function(){return tr}},er=xe((function(t){var n=t.visualElement,e=t.animate;n.animationState||(n.animationState=Qt(n)),Dt(e)&&(0,l.useEffect)((function(){return e.subscribe(n)}),[e])})),rr={key:"animation",shouldRender:function(){return!0},getComponent:function(t){var n=t.animate,e=t.whileHover,r=t.whileFocus,o=t.whileTap,i=t.whileDrag,a=t.exit,u=t.variants;return n||e||r||o||i||a||u?er:void 0}};var or=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.frameTarget={x:{min:0,max:0},y:{min:0,max:0}},n.stopAxisAnimation={x:void 0,y:void 0},n.isAnimatingTree=!1,n.animate=function(t,e,r){void 0===r&&(r={});var a=r.originBox,u=r.targetBox,s=r.visibilityAction,c=r.shouldStackAnimate,l=r.onComplete,d=(0,i._T)(r,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete"]),p=n.props,v=p.visualElement,m=p.layout;if(!1===c)return n.isAnimatingTree=!1,n.safeToRemove();if(!n.isAnimatingTree||!0===c){c&&(n.isAnimatingTree=!0);var h=ar(e=a||e,t=u||t),g=f((function(r){if("position"===m){var i=t[r].max-t[r].min;e[r].max=e[r].min+i}if(!v.projection.isTargetLocked)return void 0===s?h?n.animateAxis(r,t[r],e[r],d):v.setProjectionTargetAxis(r,t[r].min,t[r].max):void v.setVisibility(s===o.Show)}));return v.syncRender(),Promise.all(g).then((function(){n.isAnimatingTree=!1,l&&l(),v.notifyLayoutAnimationComplete()}))}},n}return(0,i.ZT)(n,t),n.prototype.componentDidMount=function(){var t=this,n=this.props.visualElement;n.animateMotionValue=vt,n.enableLayoutProjection(),this.unsubLayoutReady=n.onLayoutUpdate(this.animate),n.layoutSafeToRemove=function(){return t.safeToRemove()}},n.prototype.componentWillUnmount=function(){var t=this;this.unsubLayoutReady(),f((function(n){var e,r;return null===(r=(e=t.stopAxisAnimation)[n])||void 0===r?void 0:r.call(e)}))},n.prototype.animateAxis=function(t,n,e,r){var o,i,a=(void 0===r?{}:r).transition;null===(i=(o=this.stopAxisAnimation)[t])||void 0===i||i.call(o);var s=this.props.visualElement,c=this.frameTarget[t],l=s.getProjectionAnimationProgress()[t];l.clearListeners(),l.set(0),l.set(0);var f=function(){var r=l.get()/1e3;!function(t,n,e,r){t.min=(0,u.CD)(n.min,e.min,r),t.max=(0,u.CD)(n.max,e.max,r)}(c,e,n,r),s.setProjectionTargetAxis(t,c.min,c.max)};f(),s.updateLayoutProjection();var d=l.onChange(f),p=vt("x"===t?"layoutX":"layoutY",l,1e3,a||this.props.transition||lr).then(d);return this.stopAxisAnimation[t]=function(){l.stop(),d()},p},n.prototype.safeToRemove=function(){var t,n;null===(n=(t=this.props).safeToRemove)||void 0===n||n.call(t)},n.prototype.render=function(){return null},n}(l.Component);function ir(t){var n=(0,i.CR)(Re(),2)[1];return(0,l.createElement)(or,(0,i.pi)({},t,{safeToRemove:n}))}function ar(t,n){return!(sr(t)||sr(n)||cr(t.x,n.x)&&cr(t.y,n.y))}var ur={min:0,max:0};function sr(t){return cr(t.x,ur)&&cr(t.y,ur)}function cr(t,n){return t.min===n.min&&t.max===n.max}var lr={duration:.45,ease:[.4,0,.1,1]},fr={key:"animate-layout",shouldRender:function(t){return!!t.layout||void 0!==t.layoutId},getComponent:function(){return ir}},dr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(n,t),n.prototype.componentDidMount=function(){var t=this.props,n=t.syncLayout,e=t.framerSyncLayout,r=t.visualElement;Ue(n)&&n.register(r),Ue(e)&&e.register(r)},n.prototype.getSnapshotBeforeUpdate=function(){var t=this.props,n=t.syncLayout,e=t.visualElement;return Ue(n)?n.syncUpdate():(e.snapshotViewportBox(),n.add(e)),null},n.prototype.componentDidUpdate=function(){var t=this.props,n=t.syncLayout,e=t.visualElement;Ue(n)||n.flush(),e.rebaseProjectionTarget()},n.prototype.render=function(){return null},n}(l.Component);function pr(t){var n=(0,l.useContext)(Ye),e=(0,l.useContext)(He);return l.createElement(dr,(0,i.pi)({},t,{syncLayout:n,framerSyncLayout:e}))}var vr={key:"measure-layout",shouldRender:function(t){return!!t.drag||!!t.layout||void 0!==t.layoutId},getComponent:function(){return pr}},mr=[vr,rr,Je,be,nr,fr],hr={createVisualElement:function(t,n,e){var r=Fn(t);return(r?Bn:An)(e,{enableHardwareAcceleration:!n&&!r})},useRender:function(t,n,e){var r="string"==typeof t?function(t){var n={};for(var e in t)we(e)&&(n[e]=t[e]);return n}(n):n,o=(Fn(t)?Te:Un)(e,n);return(0,l.createElement)(t,(0,i.pi)((0,i.pi)((0,i.pi)({},r),{ref:e.ref}),o))}};function gr(t){var n=(0,i.pi)((0,i.pi)({},hr),{defaultFeatures:t});var e=new Map;return new Proxy({custom:function(t){return Ze(t,n)}},{get:function(t,r){return"custom"===r?t.custom:(e.has(r)||e.set(r,Ze(r,n)),e.get(r))}})}var yr=gr(mr);var xr=0;function Er(){var t=xr;return xr++,t}var Cr=function(t){var n=t.children,e=t.initial,r=t.isPresent,o=t.onExitComplete,i=t.custom,a=t.presenceAffectsLayout,u=In(br),s=In(Er),c=(0,l.useMemo)((function(){return{id:s,initial:e,isPresent:r,custom:i,onExitComplete:function(t){u.set(t,!0);var n=!0;u.forEach((function(t){t||(n=!1)})),n&&(null==o||o())},register:function(t){return u.set(t,!1),function(){return u.delete(t)}}}}),a?void 0:[r]);return(0,l.useMemo)((function(){u.forEach((function(t,n){return u.set(n,!1)}))}),[r]),(0,l.useEffect)((function(){!r&&!u.size&&(null==o||o())}),[r]),(0,l.createElement)(ke.Provider,{value:c},n)};function br(){return new Map}function Pr(t){return t.key||""}var Ar=function(t){var n=t.children,e=t.custom,r=t.initial,o=void 0===r||r,a=t.onExitComplete,u=t.exitBeforeEnter,s=t.presenceAffectsLayout,c=void 0===s||s,f=function(){var t=(0,l.useRef)(!1),n=(0,i.CR)((0,l.useState)(0),2),e=n[0],r=n[1];return Hn((function(){return t.current=!0})),(0,l.useCallback)((function(){!t.current&&r(e+1)}),[e])}(),d=(0,l.useContext)(Ye);Ue(d)&&(f=d.forceUpdate);var p=(0,l.useRef)(!0),v=function(t){var n=[];return l.Children.forEach(t,(function(t){(0,l.isValidElement)(t)&&n.push(t)})),n}(n),m=(0,l.useRef)(v),h=(0,l.useRef)(new Map).current,g=(0,l.useRef)(new Set).current;if(function(t,n){t.forEach((function(t){var e=Pr(t);n.set(e,t)}))}(v,h),p.current)return p.current=!1,(0,l.createElement)(l.Fragment,null,v.map((function(t){return(0,l.createElement)(Cr,{key:Pr(t),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:c},t)})));for(var y=(0,i.fl)(v),x=m.current.map(Pr),E=v.map(Pr),C=x.length,b=0;b<C;b++){var P=x[b];-1===E.indexOf(P)?g.add(P):g.delete(P)}return u&&g.size&&(y=[]),g.forEach((function(t){if(-1===E.indexOf(t)){var n=h.get(t);if(n){var r=x.indexOf(t);y.splice(r,0,(0,l.createElement)(Cr,{key:Pr(n),isPresent:!1,onExitComplete:function(){h.delete(t),g.delete(t);var n=m.current.findIndex((function(n){return n.key===t}));m.current.splice(n,1),g.size||(m.current=v,f(),a&&a())},custom:e,presenceAffectsLayout:c},n))}}})),y=y.map((function(t){var n=t.key;return g.has(n)?t:(0,l.createElement)(Cr,{key:Pr(t),isPresent:!0,presenceAffectsLayout:c},t)})),m.current=y,(0,l.createElement)(l.Fragment,null,g.size?y:y.map((function(t){return(0,l.cloneElement)(t)})))};function wr(){var t=F(1),n={lead:void 0,follow:void 0,crossfadeOpacity:!1,preserveFollowOpacity:!1},e={},r={},o=!1,s=null,c=0;function l(e,r){var u=n.lead,c=n.follow;return o=!0,s=null,function(t,n,e){void 0===e&&(e={});var r=I(t)?t:F(t);return vt("",r,n,e),{stop:function(){return r.stop()}}}(t,e,(0,i.pi)((0,i.pi)({},r),{onUpdate:function(){u&&u.scheduleRender(),c&&c.scheduleRender()},onComplete:function(){o=!1,s=(0,a.$B)().timestamp}}))}function f(){var o,i,s=(0,a.$B)().timestamp,l=n.lead,f=n.follow;if(s!==c&&l){c=s;var d=l.getLatestValues();Object.assign(e,d);var p=f?f.getLatestValues():n.prevValues;Object.assign(r,p);var v=t.get(),m=null!==(o=d.opacity)&&void 0!==o?o:1,h=null!==(i=null==p?void 0:p.opacity)&&void 0!==i?i:1;n.crossfadeOpacity&&f?(e.opacity=(0,u.CD)(0,m,Sr(v)),r.opacity=n.preserveFollowOpacity?h:(0,u.CD)(h,0,Tr(v))):f||(e.opacity=(0,u.CD)(h,m,v)),function(t,n,e,r,o,i){for(var a=0;a<kr;a++){var s="border"+Lr[a]+"Radius",c=Rr(r,s),l=Rr(e,s);if((void 0!==c||void 0!==l)&&(c||(c=0),l||(l=0),"number"==typeof c&&"number"==typeof l)){var f=(0,u.CD)(c,l,i);t[s]=n[s]=f}}if(r.rotate||e.rotate){var d=(0,u.CD)(r.rotate||0,e.rotate||0,i);t.rotate=n.rotate=d}!o&&e.backgroundColor&&r.backgroundColor&&(t.backgroundColor=n.backgroundColor=(0,u.Rc)(r.backgroundColor,e.backgroundColor)(i))}(e,r,d,p||{},Boolean(f),v)}}return{isActive:function(){return e&&(o||(0,a.$B)().timestamp===s)},fromLead:function(t){return l(0,t)},toLead:function(e){return t.set(n.follow?1-t.get():0),l(1,e)},reset:function(){return t.set(1)},stop:function(){return t.stop()},getCrossfadeState:function(t){return f(),t===n.lead?e:r},setOptions:function(t){n=t,e={},r={}},getLatestValues:function(){return e}}}var Sr=Vr(0,.5,u.Bn),Tr=Vr(.5,.95,u.GE);function Vr(t,n,e){return function(r){return r<t?0:r>n?1:e((0,u.YD)(t,n,r))}}var Lr=["TopLeft","TopRight","BottomLeft","BottomRight"],kr=Lr.length;function Rr(t,n){var e;return null!==(e=t[n])&&void 0!==e?e:t.borderRadius}function Dr(){var t,n,e,o=new Set,a={leadIsExiting:!1},u=(0,i.pi)({},a),s=wr(),c=!1;return{add:function(t){t.setCrossfader(s),o.add(t),e&&(t.prevDragCursor=e),a.lead||(a.lead=t)},remove:function(t){o.delete(t)},getLead:function(){return a.lead},updateSnapshot:function(){if(a.lead){t=s.isActive()?s.getLatestValues():a.lead.getLatestValues(),n=a.lead.prevViewportBox;var r=Ne.get(a.lead);r&&r.isDragging&&(e=r.cursorProgress)}},clearSnapshot:function(){e=n=void 0},updateLeadAndFollow:function(){var n,e,l;u=(0,i.pi)({},a);for(var f=Array.from(o),d=f.length;d--;d>=0){var p=f[d];if(e&&(null!=l||(l=p)),null!=e||(e=p),e&&l)break}a.lead=e,a.follow=l,a.leadIsExiting=(null===(n=a.lead)||void 0===n?void 0:n.presence)===r.Exiting,s.setOptions({lead:e,follow:l,prevValues:t,crossfadeOpacity:(null==l?void 0:l.isPresenceRoot)||(null==e?void 0:e.isPresenceRoot)}),u.lead===a.lead&&u.leadIsExiting===a.leadIsExiting||(c=!0)},animate:function(t,e){if(void 0===e&&(e=!1),t===a.lead){e?t.pointTo(a.lead):t.setVisibility(!0);var o={};if(t.presence===r.Entering?o.originBox=a.follow?a.follow.prevViewportBox:n:t.presence===r.Exiting&&(o.targetBox=null===(u=a.follow)||void 0===u?void 0:u.getLayoutState().layout),c){c=!1;var i=t.getDefaultTransition();t.presence===r.Entering?s.toLead(i):s.fromLead(i)}t.notifyLayoutReady(o)}else e?a.lead&&t.pointTo(a.lead):t.setVisibility(!1);var u}}}var Mr=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.children=new Set,n.stacks=new Map,n.hasMounted=!1,n.updateScheduled=!1,n.renderScheduled=!1,n.syncContext=(0,i.pi)((0,i.pi)({},je()),{syncUpdate:function(t){return n.scheduleUpdate(t)},forceUpdate:function(){n.syncContext=(0,i.pi)({},n.syncContext),n.scheduleUpdate(!0)},register:function(t){return n.addChild(t)},remove:function(t){return n.removeChild(t)}}),n}return(0,i.ZT)(n,t),n.prototype.componentDidMount=function(){this.hasMounted=!0},n.prototype.componentDidUpdate=function(){this.startLayoutAnimation()},n.prototype.shouldComponentUpdate=function(){return this.renderScheduled=!0,!0},n.prototype.startLayoutAnimation=function(){var t=this;this.renderScheduled=this.updateScheduled=!1;var n=this.props.type;this.children.forEach((function(t){t.isPresent?t.presence!==r.Entering&&(t.presence=t.presence===r.Exiting?r.Entering:r.Present):t.presence=r.Exiting})),this.updateStacks();var e={measureLayout:function(t){return t.updateLayoutMeasurement()},layoutReady:function(e){void 0!==e.getLayoutId()?t.getStack(e).animate(e,"crossfade"===n):e.notifyLayoutReady()},parent:this.context};this.children.forEach((function(n){return t.syncContext.add(n)})),this.syncContext.flush(e),this.stacks.forEach((function(t){return t.clearSnapshot()}))},n.prototype.updateStacks=function(){this.stacks.forEach((function(t){return t.updateLeadAndFollow()}))},n.prototype.scheduleUpdate=function(t){void 0===t&&(t=!1),!t&&this.updateScheduled||(this.updateScheduled=!0,this.children.forEach((function(t){return function(t){for(var n=!1,e={},r=0;r<j.length;r++){var o="rotate"+j[r];t.hasValue(o)&&0!==t.getStaticValue(o)&&(n=!0,e[o]=t.getStaticValue(o),t.setStaticValue(o,0))}if(n){for(var o in t.syncRender(),e)t.setStaticValue(o,e[o]);t.scheduleRender()}}(t)})),this.children.forEach((function(t){return t.snapshotViewportBox()})),this.stacks.forEach((function(t){return t.updateSnapshot()})),!t&&this.renderScheduled||(this.renderScheduled=!0,this.forceUpdate()))},n.prototype.addChild=function(t){this.children.add(t),this.addToStack(t),t.presence=this.hasMounted?r.Entering:r.Present},n.prototype.removeChild=function(t){this.scheduleUpdate(),this.children.delete(t),this.removeFromStack(t)},n.prototype.addToStack=function(t){var n=this.getStack(t);null==n||n.add(t)},n.prototype.removeFromStack=function(t){var n=this.getStack(t);null==n||n.remove(t)},n.prototype.getStack=function(t){var n=t.getLayoutId();if(void 0!==n)return!this.stacks.has(n)&&this.stacks.set(n,Dr()),this.stacks.get(n)},n.prototype.render=function(){return(0,l.createElement)(Ye.Provider,{value:this.syncContext},this.props.children)},n.contextType=Ve,n}(l.Component);function Br(t){return In((function(){return F(t)}))}function Or(t,n){var e=Br(n()),r=function(){return e.set(n())};return r(),function(t,n){(0,l.useEffect)((function(){var e=t.map((function(t){return t.onChange(n)}));return function(){return e.forEach((function(t){return t()}))}}))}(t,(function(){return a.ZP.update(r,!1,!0)})),e}var Fr=function(t){return function(t){return"object"==typeof t&&t.mix}(t)?t.mix:void 0};function Ir(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=!Array.isArray(t[0]),r=e?0:-1,o=t[0+r],a=t[1+r],s=t[2+r],c=t[3+r],l=(0,u.sX)(a,s,(0,i.pi)({mixer:Fr(s[0])},c));return e?l(o):l}function jr(t,n,e,r){var o="function"==typeof n?n:Ir(n,e,r);return Array.isArray(t)?Ur(t,o):Ur([t],(function(t){var n=(0,i.CR)(t,1)[0];return o(n)}))}function Ur(t,n){var e=In((function(){return[]}));return Or(t,(function(){e.length=0;for(var r=t.length,o=0;o<r;o++)e[o]=t[o].get();return n(e)}))}function Yr(){return{scrollX:F(0),scrollY:F(0),scrollXProgress:F(0),scrollYProgress:F(0)}}function Hr(t,n,e){e.set(t&&n?t/n:0)}function Xr(t,n){var e=function(){var e=n(),r=e.xOffset,o=e.yOffset,i=e.xMaxOffset,a=e.yMaxOffset;t.scrollX.set(r),t.scrollY.set(o),Hr(r,i,t.scrollXProgress),Hr(o,a,t.scrollYProgress)};return e(),e}var _r;function Zr(){return{xOffset:window.pageXOffset,yOffset:window.pageYOffset,xMaxOffset:document.body.clientWidth-window.innerWidth,yMaxOffset:document.body.clientHeight-window.innerHeight}}var zr=!1;function Wr(){return _r||(_r=Yr()),Xe((function(){!zr&&function(){if(zr=!0,"undefined"!=typeof window){var t=Xr(_r,Zr);Xn(window,"scroll",t,{passive:!0}),Xn(window,"resize",t)}}()}),[]),_r}function $r(){var t=In(Rt);return(0,l.useEffect)(t.mount,[]),t}!function(){function t(){this.componentControls=new Set}t.prototype.subscribe=function(t){var n=this;return this.componentControls.add(t),function(){return n.componentControls.delete(t)}},t.prototype.start=function(t,n){this.componentControls.forEach((function(e){e.start(t.nativeEvent||t,n)}))},t.prototype.updateConstraints=function(){this.componentControls.forEach((function(t){t.prepareBoundingBox(),t.resolveDragConstraints()}))}}();en({createRenderState:function(){return{}},build:function(){},measureViewportBox:v,resetTransform:function(){},restoreTransform:function(){},removeValueFromMutableState:function(){},render:function(){},scrapeMotionValuesFromProps:function(){return{}},readValueFromInstance:function(t,n,e){return e.initialState[n]||0},makeTargetAnimatable:function(t,n){var e=n.transition,r=n.transitionEnd,o=(0,i._T)(n,["transition","transitionEnd"]);return Pt(t,o,wt(o,e||{},t)),(0,i.pi)({transition:e,transitionEnd:r},o)}})}}]);
  //# sourceMappingURL=05d954cf-968afc013f9a25059f6a.js.map