1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3430],{6805:function(t,e,n){n.d(e,{M_:function(){return nL},_7:function(){return nU},jt:function(){return nF},ww:function(){return nw}});var r,i,o,a,s,u,l,c,f,p=n(81439),d=n(41687),h=n(48847),v=n(24394),m=n(58633),g=n(67294),y=function(t){return"object"==typeof t&&t.hasOwnProperty("current")},x=function(){function t(){this.subscriptions=new Set}return t.prototype.add=function(t){var e=this;return this.subscriptions.add(t),function(){e.subscriptions.delete(t)}},t.prototype.notify=function(t,e,n){var r,i;if(this.subscriptions.size)try{for(var o=(0,p.XA)(this.subscriptions),a=o.next();!a.done;a=o.next())(0,a.value)(t,e,n)}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}},t.prototype.clear=function(){this.subscriptions.clear()},t}(),b=function(){function t(t){var e=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new x,this.renderSubscribers=new x,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,d.$B)(),i=r.delta,o=r.timestamp;e.lastUpdated!==o&&(e.timeDelta=i,e.lastUpdated=o,d.ZP.postRender(e.scheduleVelocityCheck))},this.scheduleVelocityCheck=function(){return d.ZP.postRender(e.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==e.lastUpdated&&(e.prev=e.current)},this.set(t,!1),this.canTrackVelocity=!isNaN(parseFloat(this.current))}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,e){void 0===e&&(e=!0),e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?(0,h.Rv)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(t){var e=this;return this.stop(),new Promise(function(n){e.stopAnimation=t(n)}).then(function(){return e.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 E(t){return new b(t)}var C=function(t){return 1e3*t},w={linear:h.GE,easeIn:h.YQ,easeInOut:h.mZ,easeOut:h.Vv,circIn:h.Z7,circInOut:h.X7,circOut:h.Bn,backIn:h.G2,backInOut:h.XL,backOut:h.CG,anticipate:h.LU,bounceIn:h.h9,bounceInOut:h.yD,bounceOut:h.gJ},P=function(t){if(Array.isArray(t)){(0,v.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");var e=(0,p.CR)(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return(0,h._s)(n,r,i,o)}return"string"==typeof t?((0,v.k)(void 0!==w[t],"Invalid easing type '"+t+"'"),w[t]):t},S=function(t,e){return"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&m.PY.test(e)&&!e.startsWith("url("))},A=function(t){return Array.isArray(t)},T=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},V=function(t){return{type:"spring",stiffness:550,damping:0===t?100:30,restDelta:.01,restSpeed:10}},L=function(){return{type:"keyframes",ease:"linear",duration:.3}},B=function(t){return{type:"keyframes",duration:.8,values:t}},k={x:T,y:T,z:T,rotate:T,rotateX:T,rotateY:T,rotateZ:T,scaleX:V,scaleY:V,scale:V,opacity:L,backgroundColor:L,color:L,default:V},R=function(t,e){var n;return n=A(e)?B:k[t]||k.default,(0,p.pi)({to:e},n(e))};function D(t,e,n,r){return void 0===r&&(r={}),e.start(function(i){var o,a,s,u,l,c,f,d,g,y,x,b,E,w,A=(y=null!==(d=(g=(o=r)[t]||o.default||o).from)&&void 0!==d?d:e.get(),x=S(t,n),"none"===y&&x&&"string"==typeof n&&(y=m.PY.getAnimatableNone(n)),b=S(t,y),(0,v.K)(b===x,"You are trying to animate "+t+' from "'+y+'" to "'+n+'". '+y+" is not an animatable value - to enable this animation set "+y+" to a value animatable to "+n+" via the `style` property."),b&&x&&!1!==g.type?function(){var r,o,a,s,u,l,c,f,d,v,m,x,b,E={from:y,to:n,velocity:e.getVelocity(),onComplete:i,onUpdate:function(t){return e.set(t)}};return"inertia"===g.type||"decay"===g.type?(0,h.II)((0,p.pi)((0,p.pi)({},E),g)):(0,h.jt)((0,p.pi)((0,p.pi)({},(r=g,o=E,a=t,Array.isArray(o.to)&&(null!==(s=r.duration)&&void 0!==s||(r.duration=.8)),Array.isArray(o.to)&&null===o.to[0]&&(o.to=(0,p.fl)(o.to),o.to[0]=o.from),(u=r).when,u.delay,u.delayChildren,u.staggerChildren,u.staggerDirection,u.repeat,u.repeatType,u.repeatDelay,u.from,Object.keys((0,p._T)(u,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"])).length||(r=(0,p.pi)((0,p.pi)({},r),R(a,o.to))),(0,p.pi)((0,p.pi)({},o),(c=(l=r).yoyo,f=l.loop,d=l.flip,v=l.ease,m=l.times,x=(0,p._T)(l,["yoyo","loop","flip","ease","times"]),b=(0,p.pi)({},x),m&&(b.offset=m),x.duration&&(b.duration=C(x.duration)),x.repeatDelay&&(b.repeatDelay=C(x.repeatDelay)),v&&(b.ease=Array.isArray(v)&&"number"!=typeof v[0]?v.map(P):P(v)),"tween"===x.type&&(b.type="keyframes"),c?b.repeatType="reverse":f?b.repeatType="loop":d&&(b.repeatType="mirror"),b.repeat=f||c||d||x.repeat,"spring"!==x.type&&(b.type="keyframes"),b)))
1),{onUpdate:function(t){var e;E.onUpdate(t),null===(e=g.onUpdate)||void 0===e||e.call(g,t)},onComplete:function(){var t;E.onComplete(),null===(t=g.onComplete)||void 0===t||t.call(g)}}))}:function(){var t;return e.set(n),i(),null===(t=null==g?void 0:g.onComplete)||void 0===t||t.call(g),{stop:function(){}}}),T=null!==(f=null!==(c=null!==(u=null===(s=(a=r)[t])||void 0===s?void 0:s.delay)&&void 0!==u?u:null===(l=a.default)||void 0===l?void 0:l.delay)&&void 0!==c?c:a.delay)&&void 0!==f?f:0,V=function(){return w=A()};return T?E=setTimeout(V,C(T)):V(),function(){clearTimeout(E),null==w||w.stop()}})}var M=function(t){return A(t)?t[t.length-1]||0:t},O=(0,p.pi)((0,p.pi)({},m.Rx),{transform:Math.round}),U={color:m.$_,backgroundColor:m.$_,outlineColor:m.$_,fill:m.$_,stroke:m.$_,borderColor:m.$_,borderTopColor:m.$_,borderRightColor:m.$_,borderBottomColor:m.$_,borderLeftColor:m.$_,borderWidth:m.px,borderTopWidth:m.px,borderRightWidth:m.px,borderBottomWidth:m.px,borderLeftWidth:m.px,borderRadius:m.px,radius:m.px,borderTopLeftRadius:m.px,borderTopRightRadius:m.px,borderBottomRightRadius:m.px,borderBottomLeftRadius:m.px,width:m.px,maxWidth:m.px,height:m.px,maxHeight:m.px,size:m.px,top:m.px,right:m.px,bottom:m.px,left:m.px,padding:m.px,paddingTop:m.px,paddingRight:m.px,paddingBottom:m.px,paddingLeft:m.px,margin:m.px,marginTop:m.px,marginRight:m.px,marginBottom:m.px,marginLeft:m.px,rotate:m.RW,rotateX:m.RW,rotateY:m.RW,rotateZ:m.RW,scale:m.bA,scaleX:m.bA,scaleY:m.bA,scaleZ:m.bA,skew:m.RW,skewX:m.RW,skewY:m.RW,distance:m.px,translateX:m.px,translateY:m.px,translateZ:m.px,x:m.px,y:m.px,z:m.px,perspective:m.px,transformPerspective:m.px,opacity:m.Fq,originX:m.$C,originY:m.$C,originZ:m.px,zIndex:O,fillOpacity:m.Fq,strokeOpacity:m.Fq,numOctaves:O},F=[m.Rx,m.px,m.aQ,m.RW,m.vw,m.vh,{test:function(t){return"auto"===t},parse:function(t){return t}}],I=function(t){return function(e){return e.test(t)}},Y=function(t){return F.find(I(t))},_=(0,p.fl)(F,[m.$_,m.PY]),Z=function(t){return U[t]};function H(t){return Array.isArray(t)}function W(t){return"string"==typeof t||H(t)}function X(t,e,n){var r,i,o={};return e?(o="function"==typeof e?e(null!=n?n:t.getVariantPayload(),(r={},t.forEachValue(function(t,e){return r[e]=t.get()}),r),(i={},t.forEachValue(function(t,e){return i[e]=t.getVelocity()}),i)):e,(0,p.pi)({transition:t.getDefaultTransition()},o)):o}function z(t,e,n){var r=(void 0===n?{}:n).priority,i=t.makeTargetAnimatable(X(t,e),!1),o=i.transitionEnd,a=(i.transition,(0,p._T)(i,["transitionEnd","transition"]));for(var s in a=(0,p.pi)((0,p.pi)({},a),void 0===o?{}:o)){var u=M(a[s]);t.hasValue(s)?t.getValue(s).set(u):t.addValue(s,E(u)),r||(t.baseTarget[s]=u)}}function j(t,e){(0,p.fl)(e).reverse().forEach(function(n){var r;z(t,t.getVariant(n)),null===(r=t.variantChildren)||void 0===r||r.forEach(function(t){j(t,e)})})}function $(t,e){return Array.isArray(e)?j(t,e):"string"==typeof e?j(t,[e]):void z(t,e)}function G(t,e,n){var r,i,o=Object.keys(e).filter(function(e){return!t.hasValue(e)}),a=o.length;if(a)for(var s=0;s<a;s++){var u,l,c=o[s],f=e[c],p=null;if(Array.isArray(f)&&(p=f[0]),null===p){var d=null!==(r=n[c])&&void 0!==r?r:t.readNativeValue(c);p=void 0!==d?d:e[c],(0,v.k)(null!==p,'No initial value for "'+c+'" can be inferred. Ensure an initial value for "'+c+'" is defined on the component.')}"string"==typeof p&&(u=p,/^\-?\d*\.?\d+$/.test(u))?p=parseFloat(p):(l=p,!_.find(I(l))&&m.PY.test(f)&&(p=m.PY.getAnimatableNone(f))),t.addValue(c,E(p)),null!==(i=n[c])&&void 0!==i||(n[c]=p),t.baseTarget[c]=p}}function N(t,e,n){var r,i,o={};for(var a in t)o[a]=null!==(r=function(t,e){if(e)return(e[t]||e.default||e).from}(a,e))&&void 0!==r?r:null===(i=n.getValue(a))||void 0===i?void 0:i.get();return o}function q(t,e,n){var r,i;return void 0===n&&(n={}),n.priority&&t.activeOverrides.add(n.priority),t.resetIsAnimating(n.priority),r=H(e)?(i=n,Promise.all((0,p.fl)(e).reverse().map(function(e){return K(t,e,i)}))):W(e)?K(t,e,n):Q(t,e,n),t.onAnimationStart(),r.then(function(){return t.onAnimationComplete()})}function K(t,e,n){var r,i=n&&n.priority||0,o=t.getVariant(e),a=X(t,o,n&&n.custom),s=a.transition||{},u=o?function(){return Q(t,a,n)}:function(){return Promise.resolve()},l=(null===(r=t.variantChildrenOrder)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o,a,u,l,c,f,p,d,h=s.delayChildren;return o=(void 0===h?0:h)+r,a=s.staggerChildren,u=s.staggerDirection,l=i,c=null==n?void 0:n.custom,void 0===o&&(o=0),void 0===a&&(a=0),void 0===u&&(u=1),void 0===l&&(l=0),f=[],p=(t.variantChildrenOrder.size-1)*a,d=1===u?function(t){return t*a}:function(t){return p-t*a},Array.from(t.variantChildrenOrder).forEach(function(t,n){var r=K(t,e,{priority:l,delay:o+d(n),custom:c});f.push(r)}),Promise.all(f)}:function(){return Promise.resolve()},c=s.when;if(!c)return Promise.all([u(),l(null==n?void 0:n.delay)]);var f=(0,p.CR)("beforeChildren"===c?[u,l]:[l,u],2),d=f[0],h=f[1];return d().then(h)}function Q(t,e,n){var r=void 0===n?{}:n,i=r.delay,o=void 0===i?0:i,a=r.priority,s=void 0===a?0:a,u=r.transitionOverride,l=X(t,e,r.custom);u&&(l.transition=u);var c=t.makeTargetAnimatable(l),f=c.transitionEnd,d=c.transition,h=(0,p._T)(c,["transitionEnd","transition"]);s&&(t.resolvedOverrides[s]=h);var v=[];for(var m in h){var g=t.getValue(m);if(g&&h&&void 0!==h[m]){var y=h[m];s||(t.baseTarget[m]=M(y)),t.isAnimating.has(m)||(t.isAnimating.add(m),v.push(D(m,g,y,(0,p.pi)({delay:o},d))))}}
1var x=Promise.all(v);return f?x.then(function(){return z(t,f,{priority:s})}):x}function J(t,e,n){var r;t.overrides[n]=e,null===(r=t.variantChildren)||void 0===r||r.forEach(function(t){J(t,e,n)})}function tt(t,e){var n=t.overrides[e];if(n)return q(t,n,{priority:e})}function te(t,e){if(null===(n=t.variantChildrenOrder)||void 0===n||n.forEach(function(t){te(t,e)}),t.overrides[e]){t.activeOverrides.delete(e);var n,r=tn(t);t.resetIsAnimating(),r&&t.overrides[r]&&tt(t,r);var i=t.resolvedOverrides[e];if(i){var o={};for(var a in t.baseTarget)void 0!==i[a]&&(o[a]=t.baseTarget[a]);t.onAnimationStart(),Q(t,o).then(function(){t.onAnimationComplete()})}}}function tn(t){return t.activeOverrides.size?Math.max.apply(Math,(0,p.fl)(Array.from(t.activeOverrides))):0}var tr=function(){function t(t,e){var n=this;this.children=new Set,this.baseTarget={},this.overrides=[],this.resolvedOverrides=[],this.activeOverrides=new Set,this.isAnimating=new Set,this.latest={},this.values=new Map,this.valueSubscriptions=new Map,this.config={},this.isMounted=!1,this.update=function(){return n.config.onUpdate(n.latest)},this.triggerRender=function(){return n.render()},this.ref=function(t){t?n.mount(t):n.unmount(),n.externalRef&&("function"==typeof n.externalRef?n.externalRef(t):y(n.externalRef)&&(n.externalRef.current=t))},this.parent=t,this.rootParent=t?t.rootParent:this,this.treePath=t?(0,p.fl)(t.treePath,[t]):[],this.depth=t?t.depth+1:0,this.externalRef=e}return t.prototype.getVariantPayload=function(){return this.config.custom},t.prototype.getVariant=function(t){var e;return null===(e=this.config.variants)||void 0===e?void 0:e[t]},t.prototype.addVariantChild=function(t){this.variantChildren||(this.variantChildren=new Set),this.variantChildren.add(t)},t.prototype.addVariantChildOrder=function(t){this.variantChildrenOrder||(this.variantChildrenOrder=new Set),this.variantChildrenOrder.add(t)},t.prototype.onAnimationStart=function(){var t,e;null===(e=(t=this.config).onAnimationStart)||void 0===e||e.call(t)},t.prototype.onAnimationComplete=function(){var t,e;this.isMounted&&(null===(e=(t=this.config).onAnimationComplete)||void 0===e||e.call(t))},t.prototype.getDefaultTransition=function(){return this.config.transition},t.prototype.resetIsAnimating=function(t){var e;void 0===t&&(t=0),this.isAnimating.clear(),t<tn(this)&&this.checkOverrideIsAnimating(t),null===(e=this.variantChildren)||void 0===e||e.forEach(function(e){return e.resetIsAnimating(t)})},t.prototype.checkOverrideIsAnimating=function(t){for(var e=this.overrides.length,n=t+1;n<e;n++){var r=this.resolvedOverrides[n];if(r)for(var i in r)this.isAnimating.add(i)}},t.prototype.subscribe=function(t){var e=this;return this.children.add(t),function(){return e.children.delete(t)}},t.prototype.hasValue=function(t){return this.values.has(t)},t.prototype.addValue=function(t,e){this.hasValue(t)&&this.removeValue(t),this.values.set(t,e),this.setSingleStaticValue(t,e.get()),this.subscribeToValue(t,e)},t.prototype.removeValue=function(t){var e;null===(e=this.valueSubscriptions.get(t))||void 0===e||e(),this.valueSubscriptions.delete(t),this.values.delete(t),delete this.latest[t]},t.prototype.getValue=function(t,e){var n=this.values.get(t);return void 0===n&&void 0!==e&&(n=new b(e),this.addValue(t,n)),n},t.prototype.forEachValue=function(t){this.values.forEach(t)},t.prototype.getInstance=function(){return this.element},t.prototype.updateConfig=function(t){void 0===t&&(t={}),this.config=(0,p.pi)({},t)},t.prototype.setSingleStaticValue=function(t,e){this.latest[t]=e},t.prototype.setStaticValues=function(t,e){if("string"==typeof t)this.setSingleStaticValue(t,e);else for(var n in t)this.setSingleStaticValue(n,t[n])},t.prototype.scheduleRender=function(){d.ZP.render(this.triggerRender,!1,!0)},t.prototype.scheduleUpdateLayoutDelta=function(){d.ZP.preRender(this.rootParent.updateLayoutDelta,!1,!0)},t.prototype.subscribeToValue=function(t,e){var n=this,r=e.onChange(function(e){n.setSingleStaticValue(t,e),n.element&&n.config.onUpdate&&d.ZP.update(n.update,!1,!0)}),i=e.onRenderRequest(function(){n.element&&n.scheduleRender()});this.valueSubscriptions.set(t,function(){r(),i()})},t.prototype.mount=function(t){(0,v.k)(!!t,"No ref found. Ensure components created with motion.custom forward refs using React.forwardRef"),this.parent&&(this.removeFromParent=this.parent.subscribe(this)),this.element=this.current=t},t.prototype.unmount=function(){var t=this;this.forEachValue(function(e,n){return t.removeValue(n)}),d.qY.update(this.update),d.qY.render(this.render),this.removeFromParent&&this.removeFromParent()},t}();function ti(t){return t}function to(t){var e=t.top;return{x:{min:t.left,max:t.right},y:{min:e,max:t.bottom}}}function ta(t){return{x:(0,p.pi)({},t.x),y:(0,p.pi)({},t.y)}}var ts={translate:0,scale:1,origin:0,originPoint:0};function tu(){return{x:(0,p.pi)({},ts),y:(0,p.pi)({},ts)}}var tl=["","X","Y","Z"],tc=new Set,tf=["transformPerspective","x","y","z"];function tp(t,e){return tf.indexOf(t)-tf.indexOf(e)}["perspective","translate","scale","rotate","skew"].forEach(function(t){var e=new Set(["rotate","skew"]).has(t);tl.forEach(function(n){var r=t+n;tf.push(r),e&&tc.add(r)})});var td=new Set(tf);function th(t){return td.has(t)}var tv=new Set(["originX","originY","originZ"]),tm={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function tg(t,e){var n=t.x,r=t.y;return"translate3d("+n.translate/e.x+"px, "+r.translate/e.y+"px, 0) scale("+n.scale+", "+r.scale+")"}var ty=tg(tu(),{x:1,y:1});function tx(t){return"string"==typeof t&&t.startsWith("var(--")}var tb=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function tE(t,e,n){void 0===n&&(n=1),(0,v.k)(n<=4,'Max CSS variable fallback depth detected in property "'+t+'". This may indicate a circular fallback dependency.');var r=(0,p.CR)(function(t){var e=tb.exec(t);if(!e)return[,];var n=(0,p.CR)(e,3);return[n[1],n[2]]}(t),2),i=r[0],o=r[1];if(i){var a=window.getComputedStyle(e).getPropertyValue(i);return a?a.trim():tx(o)?tE(o,e,n+1):o}}function tC(t,e){return t/(e.max-e.min)*100}var tw="_$css",tP={process:function(t,e){if("string"==typeof t){if(!m.px.test(t))return t;t=parseFloat(t)}return tC(t,e.x)+"% "+tC(t,e.y)+"%"}},tS={borderRadius:(0,p.pi)((0,p.pi)({},tP),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:tP,borderTopRightRadius:tP,borderBottomLeftRadius:tP,borderBottomRightRadius:tP,boxShadow:{process:function(t,e,n,r){var i=t,o=t.includes("var("),a=[];o&&(t=t.replace(tb,function(t){return a.push(t),tw}));var s=m.PY.parse(t);if(s.length>5)return i;var u=m.PY.createTransformer(t),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 p=(0,h.CD)(c,f,.5);"number"==typeof s[2+l]&&(s[2+l]/=p),"number"==typeof s[3+l]&&(s[3+l]/=p);var d=u(s);if(o){var v=0;d=d.replace(tw,function(){var t=a[v];return v++,t})}return d}}};function tA(t,e,n,r,i,o,a,s,u,l,c,f){var p,d,h,v,m,g=a.enableHardwareAcceleration,y=a.transformTemplate,x=a.allowTransformNone;o.length=0;var b=!1,E=!1,C=!0;for(var w in t){var P=t[w],S=Z(w),A=S&&"number"==typeof P?S.transform(P):P;if(th(w)){if(b=!0,r[w]=A,o.push(w),!C)continue;P!==(void 0!==S.default?S.default:0)&&(C=!1)}else if(tv.has(w))i[w]=A,E=!0;else if("transform"!==w||"function"!=typeof P){var T=w.startsWith("--")?n:e;if(s&&tS[w]){var V=tS[w].process(P,f,u,c),L=tS[w].applyTo;if(L)for(var B=L.length,k=0;k<B;k++)T[L[k]]=V;else T[w]=V}else T[w]=A}}s?(e.transform=tg(l,c),e.transform===ty&&(e.transform=""),b&&(e.transform+=" "+function(t,e){var n="";e.sort(tp);for(var r=e.length,i=0;i<r;i++){var o=e[i];tc.has(o)&&(n+=o+"("+t[o]+") ")}return n}(r,o),e.transform=e.transform.trim()),y&&(e.transform=y(r,e.transform)),e.transformOrigin=(p=l.x,d=l.y,100*p.origin+"% "+100*d.origin+"% 0")):(b&&(e.transform=function(t,e,n,r,i,o){void 0===i&&(i=!0),void 0===o&&(o=!0);var a="";e.sort(tp);for(var s=!1,u=e.length,l=0;l<u;l++){var c=e[l];a+=(tm[c]||c)+"("+t[c]+") ","z"===c&&(s=!0)}return!s&&i?a+="translateZ(0)":a=a.trim(),n?a=n(t,r?"":a):o&&r&&(a="none"),a}(r,o,y,C,g,x)),E&&(e.transformOrigin=(void 0===(h=i.originX)?"50%":h)+" "+(void 0===(v=i.originY)?"50%":v)+" "+(void 0===(m=i.originZ)?0:m)))}function tT(t,e){t.min=e.min,t.max=e.max}function tV(t,e,n,r,i){return void 0!==i&&(t=r+i*(t-r)),r+n*(t-r)+e}function tL(t,e,n,r,i){void 0===e&&(e=0),void 0===n&&(n=1),t.min=tV(t.min,e,n,r,i),t.max=tV(t.max,e,n,r,i)}function tB(t,e,n,r){var i=(0,p.CR)(r,3),o=i[0],a=i[1],s=i[2];t.min=e.min,t.max=e.max;var u=void 0!==n[s]?n[s]:.5,l=(0,h.CD)(e.min,e.max,u);tL(t,n[o],n[a],l,n.scale)}
1var tk=["x","scaleX","originX"],tR=["y","scaleY","originY"];function tD(t,e,n,r,i){return t-=e,t=r+1/n*(t-r),void 0!==i&&(t=r+1/i*(t-r)),t}function tM(t,e,n){var r,i,o,a,s,u=(0,p.CR)(n,3),l=u[0],c=u[1],f=u[2];r=e[l],i=e[c],o=e[f],a=e.scale,void 0===r&&(r=0),void 0===i&&(i=1),void 0===o&&(o=.5),s=(0,h.CD)(t.min,t.max,o)-r,t.min=tD(t.min,r,i,s,a),t.max=tD(t.max,r,i,s,a)}function tO(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=.01),(0,h.TE)(t,e)<n}function tU(t){return t.max-t.min}function tF(t,e){var n,r=.5,i=tU(t),o=tU(e);return o>i?r=(0,h.YD)(e.min,e.max-i,t.min):i>o&&(r=(0,h.YD)(t.min,t.max-o,e.min)),n=r,(0,h.uZ)(0,1,n)}function tI(t,e,n,r){t.origin=void 0===r?tF(e,n):r,t.originPoint=(0,h.CD)(e.min,e.max,t.origin),t.scale=tU(n)/tU(e),tO(t.scale,1,1e-4)&&(t.scale=1),t.translate=(0,h.CD)(n.min,n.max,t.origin)-t.originPoint,tO(t.translate)&&(t.translate=0)}function tY(t,e,n,r){tI(t.x,e.x,n.x,r),tI(t.y,e.y,n.y,r)}function t_(t){return[t("x"),t("y")]}function tZ(t,e){var n,r,i,o,a,s,u,l;return to((n=t.getBoundingClientRect(),r=e,i=n.top,o=n.left,a=n.bottom,s=n.right,void 0===r&&(r=ti),u=r({x:o,y:i}),l=r({x:s,y:a}),{top:u.y,left:u.x,bottom:l.y,right:l.x}))}var tH=new Set(["width","height","top","left","right","bottom","x","y"]),tW=function(t){return tH.has(t)},tX=function(t,e){t.set(e,!1),t.set(e)},tz=function(t){return t===m.Rx||t===m.px};(r=u||(u={})).width="width",r.height="height",r.left="left",r.right="right",r.top="top",r.bottom="bottom";var tj=function(t,e){return parseFloat(t.split(", ")[e])},t$=function(t,e){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return tj(o[1],e);var a=i.match(/^matrix\((.+)\)$/);return a?tj(a[1],t):0}},tG=new Set(["x","y","z"]),tN=tf.filter(function(t){return!tG.has(t)}),tq={width:function(t){var e=t.x;return e.max-e.min},height:function(t){var e=t.y;return e.max-e.min},top:function(t,e){return parseFloat(e.top)},left:function(t,e){return parseFloat(e.left)},bottom:function(t,e){var n=t.y;return parseFloat(e.top)+(n.max-n.min)},right:function(t,e){var n=t.x;return parseFloat(e.left)+(n.max-n.min)},x:t$(4,13),y:t$(5,14)},tK=function(t,e,n){var r=e.getBoundingBox(),i=e.getComputedStyle(),o=i.display,a={top:i.top,left:i.left,bottom:i.bottom,right:i.right,transform:i.transform};"none"===o&&e.setStaticValues("display",t.display||"block"),e.render();var s=e.getBoundingBox();return n.forEach(function(n){tX(e.getValue(n),tq[n](r,a)),t[n]=tq[n](s,i)}),t},tQ=function(t,e,n,r){void 0===n&&(n={}),void 0===r&&(r={}),e=(0,p.pi)({},e),r=(0,p.pi)({},r);var i=Object.keys(e).filter(tW),o=[],a=!1,s=[];if(i.forEach(function(i){var u,l=t.getValue(i);if(t.hasValue(i)){var c=n[i],f=e[i],p=Y(c);if(A(f))for(var d=f.length,h=null===f[0]?1:0;h<d;h++)u?(0,v.k)(Y(f[h])===u,"All keyframes must be of the same type"):(u=Y(f[h]),(0,v.k)(u===p||tz(p)&&tz(u),"Keyframes must be of the same dimension as the current value"));else u=Y(f);if(p!==u){if(tz(p)&&tz(u)){var g,y=l.get();"string"==typeof y&&l.set(parseFloat(y)),"string"==typeof f?e[i]=parseFloat(f):Array.isArray(f)&&u===m.px&&(e[i]=f.map(parseFloat))}else(null==p?void 0:p.transform)&&(null==u?void 0:u.transform)&&(0===c||0===f)?0===c?l.set(u.transform(c)):e[i]=p.transform(f):(a||(g=[],tN.forEach(function(e){var n=t.getValue(e);void 0!==n&&(g.push([e,n.get()]),n.set(e.startsWith("scale")?1:0))}),g.length&&t.render(),o=g,a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:e[i],tX(l,f))}}}),!s.length)return{target:e,transitionEnd:r};var u=tK(e,t,s);return o.length&&o.forEach(function(e){var n=(0,p.CR)(e,2),r=n[0],i=n[1];t.getValue(r).set(i)}),t.render(),{target:u,transitionEnd:r}},tJ=function(t,e,n,r){var i,o,a=function(t,e,n){var r,i=(0,p._T)(e,[]),o=t.getInstance();if(!(o instanceof HTMLElement))return{target:i,transitionEnd:n};for(var a in n&&(n=(0,p.pi)({},n)),t.forEachValue(function(t){var e=t.get();if(tx(e)){var n=tE(e,o);n&&t.set(n)}}),i){var s=i[a];if(tx(s)){var u=tE(s,o);u&&(i[a]=u,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:i,transitionEnd:n}}(t,e,r);return i=e=a.target,o=r=a.transitionEnd,Object.keys(i).some(tW)?tQ(t,i,n,o):{target:i,transitionEnd:o}},t0=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultConfig={enableHardwareAcceleration:!0,allowTransformNone:!0},e.style={},e.reactStyle={},e.vars={},e.transform={},e.transformOrigin={},e.transformKeys=[],e.config=e.defaultConfig,e.isLayoutProjectionEnabled=!1,e.layoutUpdateListeners=new x,e.layoutMeasureListeners=new x,e.viewportBoxUpdateListeners=new x,e.hasViewportBoxUpdated=!1,e.targetBoxFinal={x:{min:0,max:1},y:{min:0,max:1}},e.treeScale={x:1,y:1},e.prevTreeScale={x:1,y:1},e.delta=tu(),e.deltaFinal=tu(),e.deltaTransform=ty,e.stopLayoutAxisAnimation={x:function(){},y:function(){}},e.isTargetBoxLocked=!1,e.axisProgress={x:E(0),y:E(0)},e.updateLayoutDelta=function(){e.isLayoutProjectionEnabled&&e.box&&e.updateLayoutDeltas(),e.children.forEac
1h(t1)},e}return(0,p.ZT)(e,t),e.prototype.removeValue=function(e){t.prototype.removeValue.call(this,e),delete this.vars[e],delete this.style[e]},e.prototype.clean=function(){this.style={},this.vars={},this.transform={}},e.prototype.updateConfig=function(t){void 0===t&&(t={}),this.config=(0,p.pi)((0,p.pi)({},this.defaultConfig),t)},e.prototype.read=function(t){return this.getComputedStyle()[t]||0},e.prototype.addValue=function(e,n){t.prototype.addValue.call(this,e,n),e.startsWith("rotate")&&(this.layoutOrigin=.5)},e.prototype.readNativeValue=function(t){if(!th(t))return this.read(t);var e=Z(t);return e&&e.default||0},e.prototype.makeTargetAnimatable=function(t,e){void 0===e&&(e=!0);var n=t.transition,r=t.transitionEnd,i=(0,p._T)(t,["transition","transitionEnd"]),o=this.config.transformValues,a=N(i,n||{},this);if(o&&(r&&(r=o(r)),i&&(i=o(i)),a&&(a=o(a))),e){G(this,i,a);var s=tJ(this,i,a,r);r=s.transitionEnd,i=s.target}return(0,p.pi)({transition:n,transitionEnd:r},i)},e.prototype.enableLayoutProjection=function(){this.isLayoutProjectionEnabled=!0},e.prototype.hide=function(){!1!==this.isVisible&&(this.isVisible=!1,this.scheduleRender())},e.prototype.show=function(){!0!==this.isVisible&&(this.isVisible=!0,this.scheduleRender())},e.prototype.onLayoutUpdate=function(t){return this.layoutUpdateListeners.add(t)},e.prototype.onLayoutMeasure=function(t){return this.layoutMeasureListeners.add(t)},e.prototype.onViewportBoxUpdate=function(t){return this.viewportBoxUpdateListeners.add(t)},e.prototype.layoutReady=function(t){this.layoutUpdateListeners.notify(this.box,this.prevViewportBox||this.box,t)},e.prototype.getBoundingBox=function(){var t=this.config.transformPagePoint;return tZ(this.element,t)},e.prototype.getBoundingBoxWithoutTransforms=function(){var t,e=this.getBoundingBox();return t=this.latest,tM(e.x,t,tk),tM(e.y,t,tR),e},e.prototype.getComputedStyle=function(){return window.getComputedStyle(this.element)},e.prototype.snapshotBoundingBox=function(){this.prevViewportBox=this.getBoundingBoxWithoutTransforms(),this.rebaseTargetBox(!1,this.prevViewportBox)},e.prototype.rebaseTargetBox=function(t,e){var n=this;void 0===t&&(t=!1),void 0===e&&(e=this.box);var r=this.axisProgress,i=r.x,o=r.y,a=this.box&&!this.isTargetBoxLocked&&!i.isAnimating()&&!o.isAnimating();(t||a)&&t_(function(t){var r=e[t],i=r.min,o=r.max;n.setAxisTarget(t,i,o)})},e.prototype.measureLayout=function(){var t=this;this.box=this.getBoundingBox(),this.boxCorrected=ta(this.box),this.targetBox||(this.targetBox=ta(this.box)),this.layoutMeasureListeners.notify(this.box,this.prevViewportBox||this.box),d.ZP.update(function(){return t.rebaseTargetBox()})},e.prototype.lockTargetBox=function(){this.isTargetBoxLocked=!0},e.prototype.unlockTargetBox=function(){this.stopLayoutAnimation(),this.isTargetBoxLocked=!1},e.prototype.resetTransform=function(){var t=this.config.transformTemplate;this.element.style.transform=t?t({},""):"none",this.scheduleRender()},e.prototype.setAxisTarget=function(t,e,n){var r=this.targetBox[t];r.min=e,r.max=n,this.hasViewportBoxUpdated=!0,this.rootParent.scheduleUpdateLayoutDelta()},e.prototype.startLayoutAxisAnimation=function(t,e){var n,r=this,i=this.axisProgress[t],o=this.targetBox[t],a=o.min,s=o.max-a;return i.clearListeners(),i.set(a),i.set(a),i.onChange(function(e){return r.setAxisTarget(t,e,e+s)}),null===(n=this.animateMotionValue)||void 0===n?void 0:n.call(this,t,i,0,e)},e.prototype.stopLayoutAnimation=function(){var t=this;t_(function(e){return t.axisProgress[e].stop()})},e.prototype.updateLayoutDeltas=function(){t=this.boxCorrected,e=this.box,tT(t.x,e.x),tT(t.y,e.y),this.parent&&(this.prevTreeScale.x=this.treeScale.x,this.prevTreeScale.y=this.treeScale.y,n=this.treeScale,r=this.parent.treeScale,i=this.parent.delta,n.x=r.x*i.x.scale,n.y=r.y*i.y.scale),function(t,e){for(var n=e.length,r=0;r<n;r++)!function(t,e){var n=e.x,r=e.y;tL(t.x,n.translate,n.scale,n.originPoint),tL(t.y,r.translate,r.scale,r.originPoint)}(t,e[r].delta)}(this.boxCorrected,this.treePath),tY(this.delta,this.boxCorrected,this.targetBox,this.layoutOrigin),this.hasViewportBoxUpdated&&this.viewportBoxUpdateListeners.notify(this.targetBox,this.delta),this.hasViewportBoxUpdated=!1;var t,e,n,r,i,o=tg(this.delta,this.treeScale);(o!==this.deltaTransform||this.prevTreeScale.x!==this.treeScale.x||this.prevTreeScale.y!==this.treeScale.y)&&this.scheduleRender(),this.deltaTransform=o},e.prototype.updateTransformDeltas=function(){if(this.isLayoutProjectionEnabled&&this.box){var t,e,n;t=this.targetBoxFinal,e=this.targetBox,n=this.latest,tB(t.x,e.x,n,tk),tB(t.y,e.y,n,tR),tY(this.deltaFinal,this.boxCorrected,this.targetBoxFinal,this.layoutOrigin)}},e.prototype.build=function(){this.updateTransformDeltas(),void 0!==this.isVisible&&(this.style.visibility=this.isVisible?"visible":"hidden"),tA(this.latest,this.style,this.vars,this.transform,this.transformOrigin,this.transformKeys,this.config,this.isLayoutProjectionEnabled&&!!this.box,this.delta,this.deltaFinal,this.treeScale,this.targetBoxFinal)},e.prototype.render=function(){for(var t in this.build(),Object.assign(this.element.style,this.style),this.vars)this.element.style.setProperty(t,this.vars[t])},e}(tr),t1=function(t){return t.updateLayoutDelta()};function t5(t){var e=(0,g.useRef)(null);return null===e.current&&(e.current=t()),e.current}function t2(t,e,n){return"string"==typeof t?t:m.px.transform(e+n*t)}var t3=function(t,e){return m.px.transform(t*e)},t4={offset:"stroke-dashoffset",array:"stroke-dasharray"},t7={offset:"strokeDashoffset",array:"strokeDasharray"},t8={x:0,y:0,width:0,height:0},t9=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox"]),t6=/([a-z])([A-Z])/g,et=function(t){return t.replace(t6,"$1-$2").toLowerCase()},ee=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.attrs={},e.defaultConfig={enableHardwareAcceleration:!1},e.config=e.defaultConfig,e}return(0,p.ZT)(e,t),e.prototype.mount=function(e){t.prototype.mount.call(this,e),this.measure()},e.prototype.measure=function(){try{this.dimensions="function"==typeof this.element.getBBox?this.element.getBBox():this.element.getBoundingClientRect()}catch(t){this.dimensions={x:0,y:0,width:0,height:0}}"path"===this.element.tagName&&(this.totalPathLength=this.element.getTotalLength())}
1,e.prototype.clean=function(){t.prototype.clean.call(this),this.attrs={}},e.prototype.read=function(t){return t=t9.has(t)?t:et(t),this.element.getAttribute(t)},e.prototype.build=function(){var t,e,n,r,i,o,a,s,u,l,c,f,d,h,v,m,g,y,x,b,E,C,w,P,S,A,T,V,L,B,k;this.updateTransformDeltas(),t=this.latest,e=this.style,n=this.vars,r=this.attrs,i=this.transform,o=this.transformOrigin,a=this.transformKeys,s=this.config,u=this.dimensions,l=this.totalPathLength,c=this.isLayoutProjectionEnabled&&!!this.box,f=this.delta,d=this.deltaFinal,h=this.treeScale,v=this.targetBoxFinal,S=t.attrX,A=t.attrY,T=t.originX,V=t.originY,L=t.pathLength,B=t.pathSpacing,k=t.pathOffset,tA((0,p._T)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),r,n,i,o,a,s,c,f,d,h,v),r.transform&&(e.transform=r.transform,delete r.transform),(void 0!==T||void 0!==V||e.transform)&&(e.transformOrigin=(m=u||t8,g=void 0!==T?T:.5,y=void 0!==V?V:.5,t2(g,m.x,m.width)+" "+t2(y,m.y,m.height))),void 0!==S&&(r.x=S),void 0!==A&&(r.y=A),void 0!==l&&void 0!==L&&(E=!1,void 0===(x=void 0===B?1:B)&&(x=1),void 0===(b=void 0===k?0:k)&&(b=0),void 0===E&&(E=!0),r[(C=E?t4:t7).offset]=t3(-b,l),w=t3(L,l),P=t3(x,l),r[C.array]=w+" "+P)},e.prototype.render=function(){for(var e in t.prototype.render.call(this),this.attrs)this.element.setAttribute(t9.has(e)?e:et(e),this.attrs[e])},e}(t0),en=new Set(["animate","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use","view"]);function er(t){return"string"==typeof t&&en.has(t)}var ei=(0,g.createContext)(null),eo=(0,g.createContext)({variantContext:{}});function ea(){return(0,g.useContext)(eo).variantContext}var es=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","onLayoutAnimationComplete","onViewportBoxUpdate","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileHover","whileTap","onHoverEnd","onHoverStart"]),eu=function(t){return!es.has(t)};try{var el=n(24465).Z;eu=function(t){return t.startsWith("on")?!es.has(t):el(t)}}catch(t){}var ec=function(t){return t instanceof b};function ef(t,e){var n=e.layout,r=e.layoutId;return th(t)||tv.has(t)||(n||void 0!==r)&&!!tS[t]}function ep(t,e,n,r,i){for(var o in void 0===r&&(r=!1),r&&(t.reactStyle={}),n){var a=n[o],s=!1;ec(a)?ed.has(o)||(t.addValue(o,a),s=!0):ef(o,i)?(t.hasValue(o)?a!==e[o]&&(ec(e[o])?t.addValue(o,E(a)):t.getValue(o).set(a)):t.addValue(o,E(a)),s=!0):r&&(t.reactStyle[o]=a),s&&(e[o]=a)}}var ed=new Set([]),eh=function(){return{}},ev=(0,g.createContext)({transformPagePoint:function(t){return t},features:[],isStatic:!1});function em(t){var e=t.animate,n=t.variants,r=t.inherit;return void 0===r?!!n&&!e:r}(i=l||(l={}))[i.Entering=0]="Entering",i[i.Present=1]="Present",i[i.Exiting=2]="Exiting",(o=c||(c={}))[o.Hide=0]="Hide",o[o.Show=1]="Show";var eg={measureLayout:function(t){return t.measureLayout()},layoutReady:function(t){return t.layoutReady()}},ey=function(t,e){return t.depth-e.depth};function ex(){var t=new Set;return{add:function(e){return t.add(e)},flush:function(e){var n=void 0===e?eg:e,r=n.measureLayout,i=n.layoutReady,o=Array.from(t).sort(ey);o.forEach(function(t){return t.resetTransform()}),o.forEach(r),o.forEach(i),o.forEach(function(t){t.isPresent&&(t.presence=l.Present)}
1),t.clear()}}}function eb(t){return!!t.forceUpdate}var eE=(0,g.createContext)(ex()),eC=(0,g.createContext)(ex()),ew="undefined"!=typeof window?g.useLayoutEffect:g.useEffect;function eP(){var t=(0,g.useContext)(ei);if(null===t)return[!0,null];var e=t.isPresent,n=t.onExitComplete,r=t.register,i=eT();return(0,g.useEffect)(function(){return r(i)},[]),!e&&n?[!1,function(){return null==n?void 0:n(i)}]:[!0]}var eS=0,eA=function(){return eS++},eT=function(){return t5(eA)};function eV(t,e){void 0===e&&(e=!1);var n=(0,g.useRef)(!0);(!e||e&&n.current)&&t(),n.current=!1}function eL(t){return"string"==typeof t||Array.isArray(t)}function eB(t){return"object"==typeof t&&"function"==typeof t.start}function ek(t,e){var n=e.defaultFeatures,r=e.useVisualElement,i=e.render;return(0,g.forwardRef)(function(e,o){var a,s,u,l,c,f,d,h,v,m,y,x,b,E,C,w,P,S=(0,g.useContext)(ev).isStatic,A=r(t,e,S,o);!function(t,e){var n=t5(eh);for(var r in n){var i=ef(r,e),o=void 0!==e[r],a=e.style&&void 0!==e.style[r],s=o&&ec(e[r]),u=a&&ec(e.style[r]),l=i&&!o&&!a,c=!i&&!s&&!u;(l||c)&&(t.removeValue(r),delete n[r])}ep(t,n,e,!1,e),e.style&&ep(t,n,e.style,!0,e),e.transformValues&&(t.reactStyle=e.transformValues(t.reactStyle))}(A,e);var T=(u=e.variants,l=e.initial,c=e.animate,f=e.whileTap,d=e.whileHover,v=(h=ea()).parent,m=h.initial,y=h.animate,x=(0,g.useContext)(ei),b=eL(c)||eL(f)||eL(d)||eB(c),E=u||b,!1!==(l=null!==(a=null==x?void 0:x.initial)&&void 0!==a?a:l)||eB(c)||(l=c),C=(0,g.useMemo)(function(){return{parent:E?A:v,initial:eL(l)?l:m,animate:eL(c)?c:y}},[S?l:null]),eV(function(){var t=l||m;t&&$(A,t)},!S),E&&!b&&(null==v||v.addVariantChild(A)),(null===x||x.isPresent)&&(null===(s=A.variantChildrenOrder)||void 0===s||s.clear()),(0,g.useEffect)(function(){E&&(null==v||v.addVariantChildOrder(A))}),(0,g.useEffect)(function(){return A.isMounted=!0,function(){var t;A.isMounted=!1,null===(t=null==v?void 0:v.variantChildren)||void 0===t||t.delete(A)}},[]),eV(function(){A.forEachValue(function(t,e){A.baseTarget[e]=t.get()})},!0),C),V=function(t,e,n,r){var i=(0,g.useContext)(ev);if(e||"undefined"==typeof window)return null;for(var o=(0,p.fl)(t,i.features),a=o.length,s=[],u=0;u<a;u++){var l=o[u],c=l.shouldRender,f=l.key,d=l.getComponent;if(c(r)){var h=d(r);h&&s.push((0,g.createElement)(h,(0,p.pi)({key:f},r,{visualElement:n,inherit:em(r)})))}}return s}(n,S,A,e),L=(0,g.useMemo)(function(){return{visualElement:A,variantContext:T}},[A,T]),B=i(t,e,A);return w=(0,g.useContext)(eE),P=(0,g.useContext)(eC),ew(function(){return function(){eb(w)&&w.remove(A),eb(P)&&P.remove(A)}},[]),(0,g.createElement)(g.Fragment,null,(0,g.createElement)(eo.Provider,{value:L},B),V)})}function eR(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}var eD=eR("dragHorizontal"),eM=eR("dragVertical");function eO(t){var e=!1;if("y"===t)e=eM();else if("x"===t)e=eD();else{var n=eD(),r=eM();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}function eU(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function eF(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}var eI={pageX:0,pageY:0};function eY(t,e){var n,r,i;return void 0===e&&(e="page"),{point:t.touches?(void 0===(n=e)&&(n="page"),{x:(r=t.touches[0]||t.changedTouches[0]||eI)[n+"X"],y:r[n+"Y"]}):(void 0===(i=e)&&(i="page"),{x:t[i+"X"],y:t[i+"Y"]})}}function e_(t){return eY(t,"client")}var eZ=function(t,e){void 0===e&&(e=!1);var n=function(e){return t(e,eY(e))};return e?function(t){var e=t instanceof MouseEvent;(!e||e&&0===t.button)&&n(t)}:n},eH="undefined"!=typeof window,eW={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},eX={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function ez(t){if(eH&&null===window.onpointerdown);else if(eH&&null===window.ontouchstart)return eX[t];else if(eH&&null===window.onmousedown)return eW[t];return t}function ej(t,e,n,r){return eU(t,ez(e),eZ(n,"pointerdown"===e),r)}function e$(t,e,n,r){var i,o;return i=ez(e),o=n&&eZ(n,"pointerdown"===e),void(0,g.useEffect)(function(){var e=t.current;if(o&&e)return eU(e,i,o,r)},[t,i,o,r])}var eG=function(){function t(t,e,n){var r=this,i=(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 t=eK(r.lastMoveEventInfo,r.history),e=null!==r.startEvent,n=(0,h.TE)(t.offset,{x:0,y:0})>=3;if(e||n){var i=t.point,o=(0,d.$B)().timestamp;r.history.push((0,p.pi)((0,p.pi)({},i),{timestamp:o}));var a=r.handlers,s=a.onStart,u=a.onMove;e||(s&&s(r.lastMoveEvent,t),r.startEvent=r.lastMoveEvent),u&&u(r.lastMoveEvent,t)}}},this.handlePointerMove=function(t,e){if(r.lastMoveEvent=t,r.lastMoveEventInfo=eN(e,r.transformPagePoint),eF(t)&&0===t.buttons){r.handlePointerUp(t,e);return}d.ZP.update(r.updatePoint,!0)},this.handlePointerUp=function(t,e){r.end();var n=r.handlers.onEnd;if(n){var i=eK(eN(e,r.transformPagePoint),r.history);n&&n(t,i)}},!t.touches||!(t.touches.length>1)){this.handlers=e,this.transformPagePoint=i;var o=eN(eY(t),this.transformPagePoint),a=o.point,s=(0,d.$B)().timestamp;this.history=[(0,p.pi)((0,p.pi)({},a),{timestamp:s})];var u=e.onSessionStart;u&&u(t,eK(o,this.history)),this.removeListeners=(0,h.zG)(ej(window,"pointermove",this.handlePointerMove),ej(window,"pointerup",this.handlePointerUp),ej(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),d.qY.update(this.updatePoint)},t}();function eN(t,e){return e?{point:e(t.point)}:t}function eq(t,e){return{x:t.x-e.x,y:t.y-e.y}}function eK(t,e){var n=t.point;return{point:n,delta:eq(n,eQ(e)),offset:eq(n,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,r=null,i=eQ(t);n>=0&&(r=t[n],!(i.timestamp-r.timestamp>C(.1)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,0)}}function eQ(t){return t[t.length-1]}function eJ(t,e,n){var r=e.min,i=e.max;return void 0!==r&&t<r?t=n?(0,h.CD)(r,t,n):Math.max(t,r):void 0!==i&&t>i&&(t=n?(0,h.CD)(i,t,n):Math.min(t,i)),t}function e0(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function e1(t,e){var n,r=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&(r=(n=(0,p.CR)([i,r],2))[0],i=n[1]),{min:t.min+r,max:t.min+i}}var e5=new WeakMap,e2=function(){function t(t){var e=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=e,this.visualElement.enableLayoutProjection(),e5.set(e,this)}return t.prototype.start=function(t,e){var n=this,r=void 0===e?{}:e,i=r.snapToCursor,o=r.cursorProgress;void 0!==i&&i&&this.snapToCursor(t);var a=this.props.transformPagePoint;this.panSession=new eG(t,{onSessionStart:function(){n.stopMotion()},onStart:function(t,e){var r,i,a=n.props,s=a.drag,u=a.dragPropagation;if(!s||u||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=eO(s),n.openGlobalLock)){n.prepareBoundingBox(),n.visualElement.lockTargetBox(),n.resolveDragConstraints();var l=e_(t).point;t_(function(t){var e=n.visualElement.targetBox[t],r=e.min,i=e.max;n.cursorProgress[t]=o?o[t]:(0,h.YD)(r,i,l[t]);var a=n.getAxisMotionValue(t);a&&(n.originPoint[t]=a.get())}),n.isDragging=!0,n.currentDirection=null,null===(i=(r=n.props).onDragStart)||void 0===i||i.call(r,t,e)}},onMove:function(t,e){var r,i,o,a,s=n.props,u=s.dragPropagation,l=s.dragDirectionLock;if(u||n.openGlobalLock){var c,p,d=e.offset;if(l&&null===n.currentDirection){n.currentDirection=(void 0===c&&(c=10),p=null,Math.abs(d.y)>c?p="y":Math.abs(d.x)>c&&(p="x"),p),null!==n.currentDirection&&(null===(i=(r=n.props).onDirectionLock)||void 0===i||i.call(r,n.currentDirection));return}n.updateAxis("x",t,d),n.updateAxis("y",t,d),null===(a=(o=n.props).onDrag)||void 0===a||a.call(o,t,e),f=t}},onEnd:function(t,e){return n.stop(t,e)}},{transformPagePoint:a})},t.prototype.prepareBoundingBox=function(){var t=this.visualElement.getInstance(),e=t.style.transform;this.visualElement.resetTransform(),this.visualElement.measureLayout(),t.style.transform=e,this.visualElement.rebaseTargetBox(!0,this.visualElement.getBoundingBoxWithoutTransforms())},t.prototype.resolveDragConstraints=function(){var t,e,n,r,i,o=this,a=this.props.dragConstraints;a?this.constraints=y(a)?this.resolveRefConstraints(this.visualElement.box,a):(t=this.visualElement.box,e=a.top,n=a.left,r=a.bottom,i=a.right,{x:e0(t.x,n,i),y:e0(t.y,e,r)}):this.constraints=!1,this.constraints&&!this.hasMutatedConstraints&&t_(function(t){if(o.getAxisMotionValue(t)){var e,n,r;o.constraints[t]=(e=o.visualElement.box[t],n=o.constraints[t],r={},void 0!==n.min&&(r.min=n.min-e.min),void 0!==n.max&&(r.max=n.max-e.min),r)}})},t.prototype.resolveRefConstraints=function(t,e){var n=this.props,r=n.onMeasureDragConstraints,i=n.transformPagePoint,o=e.current;(0,v.k)(null!==o,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop."),this.constraintsBox=tZ(o,i);var a=(s=this.constraintsBox,{x:e1(t.x,s.x),y:e1(t.y,s.y)});if(r){var s,u,l,c,f=r((l=(u=a).x,{top:(c=u.y).min,bottom:c.max,left:l.min,right:l.max}));this.hasMutatedConstraints=!!f,f&&(a=to(f))}return a},t.prototype.cancelDrag=function(){this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null)},t.prototype.stop=function(t,e){this.visualElement.unlockTargetBox(),null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var n,r=this.isDragging;if(this.cancelDrag(),r){var i=this.props,o=i.dragMomentum,a=i.dragElastic,s=i.onDragEnd;if(o||a){var u=e.velocity;this.animateDragEnd(u)}null==s||s(t,e)}},t.prototype.snapToCursor=function(t){var e=this;this.prepareBoundingBox(),t_(function(n){var r=e.getAxisMotionValue(n);if(r){var i=e_(t).point,o=e.visualElement.box,a=o[n].max-o[n].min,s=o[n].min+a/2,u=i[n]-s;e.originPoint[n]=i[n],r.set(u)}else e.cursorProgress[n]=.5,e.updateVisualElementAxis(n,t)})},t.prototype.updateAxis=function(t,e,n){if(e3(t,this.props.drag,this.currentDirection))return this.getAxisMotionValue(t)?this.updateAxisMotionValue(t,n):this.updateVisualElementAxis(t,e)},t.prototype.updateAxisMotionValue=function(t,e){var n=this.getAxisMotionValue(t);if(e&&n){var r=this.props.dragElastic,i=this.originPoint[t]+e[t],o=this.constraints?eJ(i,this.constraints[t],r):i;n.set(o)}},t.prototype.updateVisualElementAxis=function(t,e){var n,r,i,o,a=this.props.dragElastic,s=this.visualElement.box[t],u=s.max-s.min,l=this.cursorProgress[t],c=(n=e_(e).point[t],r=null===(o=this.constraints)||void 0===o?void 0:o[t],i=n-u*l,r?eJ(i,r,a):i);this.visualElement.setAxisTarget(t,c,c+u)},t.prototype.updateProps=function(t){var e=t.drag,n=t.dragDirectionLock,r=t.dragPropagation,i=t.dragConstraints,o=t.dragElastic,a=t.dragMomentum,s=(0,p._T)(t,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=(0,p.pi)({drag:void 0!==e&&e,dragDirectionLock:void 0!==n&&n,dragPropagation:void 0!==r&&r,dragConstraints:void 0!==i&&i,dragElastic:void 0===o?.35:o,dragMomentum:void 0===a||a},s)},t.prototype.getAxisMotionValue=function(t){var e=this.props,n=e.layout,r=e.layoutId,i="_drag"+t.toUpperCase();return this.props[i]?this.props[i]:n||void 0!==r?void 0:this.visualElement.getValue(t,0)},t.prototype.animateDragEnd=function(t){var e=this,n=this.props,r=n.drag,i=n.dragMomentum,o=n.dragElastic,a=n.dragTransition;return Promise.all(t_(function(n){if(e3(n,r,e.currentDirection)){var s=e.constraints?e.constraints[n]:{},u=(0,p.pi)((0,p.pi)({type:"inertia",velocity:i?t[n]:0,bounceStiffness:o?200:1e6,bounceDamping:o?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},a),s);return e.getAxisMotionValue(n)?e.startAxisValueAnimation(n,u):e.visualElement.startLayoutAxisAnimation(n,u)}})).then(function(){var t,n;null===(n=(t=e.props).onDragTransitionEnd)||void 0===n||n.call(t)})},t.prototype.stopMotion=function(){var t=this;t_(function(e){var n=t.getAxisMotionValue(e);n?n.stop():t.visualElement.stopLayoutAnimation()})},t.prototype.startAxisValueAnimation=function(t,e){var n=this.getAxisMotionValue(t);if(n){var r=n.get();return n.set(r),n.set(r),D(t,n,0,e)}},t.prototype.scalePoint=function(){var t=this,e=this.props,n=e.drag;if(y(e.dragConstraints)&&this.constraintsBox){this.stopMotion();var r={x:0,y:0};t_(function(e){r[e]=tF(t.visualElement.targetBox[e],t.constraintsBox[e])}),this.prepareBoundingBox(),this.resolveDragConstraints(),t_(function(e){if(e3(e,n,null)){var i,o,a,s,u,l=(i=t.visualElement.targetBox[e],o=t.constraintsBox[e],a=r[e],s=i.max-i.min,{min:u=(0,h.CD)(o.min,o.max-s,a),max:u+s}),c=l.min,f=l.max;t.visualElement.setAxisTarget(e,c,f)}})}},t.prototype.mount=function(t){var e=this,n=ej(t.getInstance(),"pointerdown",function(t){var n=e.props,r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&e.start(t)}),r=eU(window,"resize",function(){e.scalePoint()}),i=t.onLayoutUpdate(function(){e.isDragging&&e.resolveDragConstraints()}),o=t.prevSnapshot;return(null==o?void 0:o.isDragging)&&this.start(f,{cursorProgress:o.cursorProgress}),function(){null==n||n(),null==r||r(),null==i||i(),e.cancelDrag()}},t}();function e3(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}var e4=function(t){return function(e){return t(e),null}},e7=e4(function(t){var e,n,r,i,o=t.visualElement;return n=(e=(0,p._T)(t,["visualElement"])).dragControls,r=(0,g.useContext)(ev).transformPagePoint,void((i=t5(function(){return new e2({visualElement:o})})).updateProps((0,p.pi)((0,p.pi)({},e),{transformPagePoint:r})),(0,g.useEffect)(function(){return n&&n.subscribe(i)},[i]),(0,g.useEffect)(function(){return i.mount(o)},[]))});function e8(t){return(0,g.useEffect)(function(){return function(){return t()}},[])}var e9=function(t,e){return!!e&&(t===e||e9(t,e.parentElement))},e6=["whileHover","whileTap","whileDrag"],nt=function(t){return e6.indexOf(t)+1},ne=nt("whileTap"),nn=nt("whileHover"),nr=function(t){return function(e,n){eF(e)&&t(e,n)}},ni=["onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileTap","whileHover","onHoverStart","onHoverEnd"],no=e4(function(t){var e,n,r,i,o,a,s,u,l,c,f,d=t.visualElement;n=(e=(0,p._T)(t,["visualElement"])).onPan,r=e.onPanStart,i=e.onPanEnd,o=e.onPanSessionStart,a=(0,g.useRef)(null),s=(0,g.useContext)(ev).transformPagePoint,u={onSessionStart:o,onStart:r,onMove:n,onEnd:function(t,e){a.current=null,i&&i(t,e)}},(0,g.useEffect)(function(){null!==a.current&&a.current.updateHandlers(u)}
1),e$(d,"pointerdown",(n||r||i||o)&&function(t){a.current=new eG(t,u,{transformPagePoint:s})}),e8(function(){return a.current&&a.current.end()}),function(t,e){var n=t.onTap,r=t.onTapStart,i=t.onTapCancel,o=t.whileTap,a=n||r||i||o,s=(0,g.useRef)(!1),u=(0,g.useRef)(null);function l(){var t;null===(t=u.current)||void 0===t||t.call(u),u.current=null}o&&J(e,o,ne);var c=(0,g.useRef)(null);c.current=function(t,r){var a=e.getInstance();if(l(),s.current&&a){s.current=!1,o&&te(e,ne);var u=eO(!0);u&&(u(),e9(a,t.target)?null==n||n(t,r):null==i||i(t,r))}},e$(e,"pointerdown",a?function(t,n){l(),u.current=(0,h.zG)(ej(window,"pointerup",function(t,e){var n;return null===(n=c.current)||void 0===n?void 0:n.call(c,t,e)}),ej(window,"pointercancel",function(t,e){var n;return null===(n=c.current)||void 0===n?void 0:n.call(c,t,e)})),e.getInstance()&&!s.current&&(s.current=!0,null==r||r(t,n),o&&tt(e,ne))}:void 0),e8(l)}(e,d),l=e.whileHover,c=e.onHoverStart,f=e.onHoverEnd,l&&J(d,l,nn),e$(d,"pointerenter",nr(function(t,e){null==c||c(t,e),l&&tt(d,nn)})),e$(d,"pointerleave",nr(function(t,e){null==f||f(t,e),l&&te(d,nn)}))}),na=function(){function t(){this.hasMounted=!1,this.pendingAnimations=[],this.subscribers=new Set}return t.prototype.subscribe=function(t){var e=this;return this.subscribers.add(t),function(){return e.subscribers.delete(t)}},t.prototype.start=function(t,e){var n=this;if(!this.hasMounted)return new Promise(function(r){n.pendingAnimations.push({animation:[t,e],resolve:r})});var r=[];return this.subscribers.forEach(function(n){var i=q(n,t,{transitionOverride:e});r.push(i)}),Promise.all(r)},t.prototype.set=function(t){return(0,v.k)(this.hasMounted,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),this.subscribers.forEach(function(e){$(e,t)})},t.prototype.stop=function(){this.subscribers.forEach(function(t){!function(t){t.forEachValue(function(t){return t.stop()})}(t)})},t.prototype.mount=function(){var t=this;this.hasMounted=!0,this.pendingAnimations.forEach(function(e){var n=e.animation,r=e.resolve;t.start.apply(t,(0,p.fl)(n)).then(r)})},t.prototype.unmount=function(){this.hasMounted=!1,this.stop()},t}(),ns=e4(function(t){var e=t.animate,n=t.exit,r=t.visualElement,i=(0,p.CR)(eP(),2),o=i[0],a=i[1],s=(0,g.useContext)(ei),u=(0,g.useRef)(!1),l=(null==s?void 0:s.custom)!==void 0?s.custom:t.custom;(0,g.useEffect)(function(){o?!u.current||!e||"boolean"==typeof e||e instanceof na||q(r,e):(!u.current&&n&&q(r,n,{custom:l}).then(a),u.current=!0),o&&(u.current=!1)},[e,l,n,o,a,t])});function nu(t,e){void 0===e&&(e=!1),t.transition;var n=t.transitionEnd,r=(0,p._T)(t,["transition","transitionEnd"]);return e?(0,p.pi)((0,p.pi)({},r),n):r}var nl=function(t){var e;return Array.from(new Set((e=t instanceof b?t.get():t)?Array.isArray(e)?e:[e]:[]))},nc={shouldRender:function(t){return void 0!==t.animate&&!W(t.animate)&&!eB(t.animate)},Component:e4(function(t){var e,n,r=t.animate,i=t.visualElement,o=t.transition;return e=(0,g.useRef)(!0),void((n=(0,g.useRef)(null)).current||(n.current=nu(r,!0)),(0,g.useEffect)(function(){var t={},a=nu(r),s=nu(r,!0);for(var u in a){var l,c,f=e.current&&(!i.hasValue(u)||i.getValue(u).get()!==s[u]),d=null!==s[u],h=(l=n.current[u],void 0!==(c=s[u])&&(Array.isArray(l)&&Array.isArray(c)?!function(t,e){if(null===e)return!1;var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}(c,l):l!==c));d&&(h||f)&&(t[u]=a[u])}e.current=!1,n.current=(0,p.pi)((0,p.pi)({},n.current),s),Object.keys(t).length&&q(i,(0,p.pi)((0,p.pi)({},t),{transition:r.transition||o,transitionEnd:r.transitionEnd}))},[r]))})},nf={shouldRender:function(t){return t.variants&&!eB(t.animate)||W(t.animate)},Component:e4(function(t){var e,n,r,i,o,a,s,u,l=t.animate,c=t.inherit;return e=t.visualElement,n=t.initial,r=void 0===c||c,o=nl(l),s=null===(i=(a=ea()).parent)||void 0===i?void 0:i.isMounted,u=(0,g.useRef)(!1),void(0,g.useEffect)(function(){var t,i,l=!1;r?(l=!!s,o=nl(a.animate)):l=u.current||(t=nl(n),i=o,t.join(",")!==i.join(",")),l&&q(e,o),u.current=!0},[o.join(",")])})},np={shouldRender:function(t){return eB(t.animate)},Component:e4(function(t){var e,n,r=t.animate;return e=t.visualElement,n=(0,g.useMemo)(function(){return r.subscribe(e)},[r]),void e8(function(){return null==n?void 0:n()})})},nd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.frameTarget={x:{min:0,max:0},y:{min:0,max:0}},e.stopAxisAnimation={x:void 0,y:void 0},e.animate=function(t,n,r){void 0===r&&(r={});var i,o,a=r.originBox,s=r.targetBox,u=r.visibilityAction,f=r.shouldStackAnimate,d=(0,p._T)(r,["originBox","targetBox","visibilityAction","shouldStackAnimate"]),h=e.props,v=h.visualElement,m=h.layout;if(!1===f)return e.safeToRemove();var g=(i=n=a||n,o=t=s||t,nv(i.x,o.x)||nv(i.y,o.y)),y=t_(function(r){if("position"===m){var i=t[r].max-t[r].min;n[r].max=n[r].min+i}if(!v.isTargetBoxLocked){if(void 0!==u)u===c.Hide?v.hide():v.show();else if(g)return e.animateAxis(r,t[r],n[r],d);else return v.setAxisTarget(r,t[r].min,t[r].max)}});return v.render(),Promise.all(y).then(function(){var t,n;null===(n=(t=e.props).onLayoutAnimationComplete)||void 0===n||n.call(t),v.isPresent?v.presence=l.Present:e.safeToRemove()})},e}return(0,p.ZT)(e,t),e.prototype.componentDidMount=function(){var t=this,e=this.props.visualElement;e.animateMotionValue=D,e.enableLayoutProjection(),this.unsubLayoutReady=e.onLayoutUpdate(this.animate),e.updateConfig((0,p.pi)((0,p.pi)({},e.config),{safeToRemove:function(){return t.safeToRemove()}}))},e.prototype.componentWillUnmount=function(){var t=this;this.unsubLayoutReady(),t_(function(e){var n,r;return null===(r=(n=t.stopAxisAnimation)[e])||void 0===r?void 0:r.call(n)})},e.prototype.animateAxis=function(t,e,n,r){var i,o,a,s=void 0===r?{}:r,u=s.transition,l=s.crossfadeOpacity;null===(o=(i=this.stopAxisAnimation)[t])||void 0===o||o.call(i);var c=this.props.visualElement,f=this.frameTarget[t],p=c.axisProgress[t];p.clearListeners(),p.set(0),p.set(0),l&&(a=this.createCrossfadeAnimation(l),c.show());var d=function(){var r=p.get()/1e3;f.min=(0,h.CD)(n.min,e.min,r),f.max=(0,h.CD)(n.max,e.max,r),c.setAxisTarget(t,f.min,f.max),null==a||a(r)};d(),c.updateLayoutDelta();var v=p.onChange(d),m=D("x"===t?"layoutX":"layoutY",p,1e3,u||this.props.transition||nm).then(v);return this.stopAxisAnimation[t]=function(){p.stop(),v()},m},e.prototype.createCrossfadeAnimation=function(t){var e=this.props.visualElement.getValue("opacity",0);
1return function(n){e.set(ny((0,h.CD)(0,1,n))),t.set(nx((0,h.CD)(1,0,n)))}},e.prototype.safeToRemove=function(){var t,e;null===(e=(t=this.props).safeToRemove)||void 0===e||e.call(t)},e.prototype.render=function(){return null},e}(g.Component);function nh(t){var e=(0,p.CR)(eP(),2)[1];return(0,g.createElement)(nd,(0,p.pi)({},t,{safeToRemove:e}))}function nv(t,e){return t.min!==e.min||t.max!==e.max}var nm={duration:.45,ease:[.4,0,.1,1]};function ng(t,e,n){return function(r){return r<t?0:r>e?1:n((0,h.YD)(t,e,r))}}var ny=ng(0,.5,h.Bn),nx=ng(.5,.95,h.GE),nb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,p.ZT)(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.syncLayout,n=t.framerSyncLayout,r=t.visualElement;eb(e)&&e.register(r),eb(n)&&n.register(r)},e.prototype.getSnapshotBeforeUpdate=function(){var t=this.props,e=t.syncLayout,n=t.visualElement;return eb(e)?e.syncUpdate():(n.snapshotBoundingBox(),e.add(n)),null},e.prototype.componentDidUpdate=function(){var t=this.props,e=t.syncLayout,n=t.visualElement;eb(e)||e.flush(),n.rebaseTargetBox()},e.prototype.render=function(){return null},e}(g.Component);function nE(t){var e=(0,g.useContext)(eE),n=(0,g.useContext)(eC);return g.createElement(nb,(0,p.pi)({},t,{syncLayout:e,framerSyncLayout:n}))}var nC=[{key:"measure-layout",shouldRender:function(t){return!!t.drag||!!t.layout||!!t.layoutId},getComponent:function(){return nE}},{key:"animation",shouldRender:function(){return!0},getComponent:function(t){return nc.shouldRender(t)?nc.Component:nf.shouldRender(t)?nf.Component:np.shouldRender(t)?np.Component:void 0}},{key:"drag",shouldRender:function(t){return!!t.drag||!!t.dragControls},getComponent:function(){return e7}},{key:"gestures",shouldRender:function(t){return ni.some(function(e){return t.hasOwnProperty(e)})},getComponent:function(){return no}},{key:"exit",shouldRender:function(t){return!!t.exit&&!em(t)},getComponent:function(){return ns}},{key:"animate-layout",shouldRender:function(t){return!!t.layout||!!t.layoutId},getComponent:function(){return nh}}],nw=(a=(0,p.pi)((0,p.pi)({},{useVisualElement:function(t,e,n,r){var i=(0,g.useContext)(eo).visualElement,o=t5(function(){return new(er(t)?ee:t0)(i,r)});o.updateConfig((0,p.pi)((0,p.pi)((0,p.pi)({},o.config),{enableHardwareAcceleration:!n}),e)),o.layoutId=e.layoutId;var a=(0,g.useContext)(ei),s=null===a||a.isPresent;o.isPresent=void 0!==e.isPresent?e.isPresent:s;var u=null==a?void 0:a.id;return o.isPresenceRoot=!i||i.presenceId!==u,(0,g.useEffect)(function(){if(e.onViewportBoxUpdate)return o.onViewportBoxUpdate(e.onViewportBoxUpdate)},[e.onViewportBoxUpdate]),o},render:function(t,e,n){var r,i,o="string"==typeof t?function(t){var e={};for(var n in t)eu(n)&&(e[n]=t[n]);return e}(e):e;n.clean(),n.build();var a=er(t)?(0,p.pi)((0,p.pi)({},n.attrs),{style:(0,p.pi)({},n.reactStyle)}):(r=e.drag,i={style:(0,p.pi)((0,p.pi)((0,p.pi)({},n.reactStyle),n.style),n.vars)},r&&(i.draggable=!1,i.style.userSelect="none",i.style.touchAction=!0===r?"none":"pan-"+("x"===r?"y":"x")),i);return(0,g.createElement)(t,(0,p.pi)((0,p.pi)((0,p.pi)({},o),{ref:n.ref}),a))}}),{defaultFeatures:nC}),s=new Map,new Proxy({custom:function(t){return ek(t,a)}},{get:function(t,e){return"custom"===e?t.custom:(s.has(e)||s.set(e,ek(e,a)),s.get(e))}})),nP=0;function nS(){var t=nP;return nP++,t}var nA=function(t){var e=t.children,n=t.initial,r=t.isPresent,i=t.onExitComplete,o=t.custom,a=t.presenceAffectsLayout,s=t5(nT),u=t5(nS),l=(0,g.useMemo)(function(){return{id:u,initial:n,isPresent:r,custom:o,onExitComplete:function(t){s.set(t,!0);var e=!0;s.forEach(function(t){t||(e=!1)}),e&&(null==i||i())},register:function(t){return s.set(t,!1),function(){return s.delete(t)}}}},a?void 0:[r]);return(0,g.useMemo)(function(){s.forEach(function(t,e){return s.set(e,!1)})},[r]),(0,g.createElement)(ei.Provider,{value:l},e)};function nT(){return new Map}function nV(t){return t.key||""}var nL=function(t){var e,n,r,i,o,a=t.children,s=t.custom,u=t.initial,l=void 0===u||u,c=t.onExitComplete,f=t.exitBeforeEnter,d=t.presenceAffectsLayout,h=void 0===d||d,v=(e=(0,g.useRef)(!1),r=(n=(0,p.CR)((0,g.useState)(0),2))[0],i=n[1],e8(function(){return e.current=!0}),(0,g.useCallback)(function(){e.current||i(r+1)},[r])),m=(0,g.useContext)(eE);eb(m)&&(v=m.forceUpdate);
1var y=(0,g.useRef)(!0),x=(o=[],g.Children.forEach(a,function(t){(0,g.isValidElement)(t)&&o.push(t)}),o),b=(0,g.useRef)(x),E=(0,g.useRef)(new Map).current,C=(0,g.useRef)(new Set).current;if(!function(t,e){t.forEach(function(t){var n=nV(t);e.set(n,t)})}(x,E),y.current)return y.current=!1,(0,g.createElement)(g.Fragment,null,x.map(function(t){return(0,g.createElement)(nA,{key:nV(t),isPresent:!0,initial:!!l&&void 0,presenceAffectsLayout:h},t)}));for(var w=(0,p.fl)(x),P=b.current.map(nV),S=x.map(nV),A=P.length,T=0;T<A;T++){var V=P[T];-1===S.indexOf(V)?C.add(V):C.delete(V)}return f&&C.size&&(w=[]),C.forEach(function(t){if(-1===S.indexOf(t)){var e=E.get(t);if(e){var n=P.indexOf(t);w.splice(n,0,(0,g.createElement)(nA,{key:nV(e),isPresent:!1,onExitComplete:function(){E.delete(t),C.delete(t);var e=b.current.findIndex(function(e){return e.key===t});b.current.splice(e,1),!C.size&&(b.current=x,v(),c&&c())},custom:s,presenceAffectsLayout:h},e))}}}),w=w.map(function(t){var e=t.key;return C.has(e)?t:(0,g.createElement)(nA,{key:nV(t),isPresent:!0,presenceAffectsLayout:h},t)}),b.current=w,(0,g.createElement)(g.Fragment,null,C.size?w:w.map(function(t){return(0,g.cloneElement)(t)}))};function nB(t,e){var n,r;return e&&t!==e.lead?{visibilityAction:c.Hide}:e&&t.presence!==l.Entering&&t===e.lead&&e.lead!==e.prevLead?{visibilityAction:c.Show}:(t.presence===l.Entering?n=null==e?void 0:e.getFollowOrigin():t.presence===l.Exiting&&(r=null==e?void 0:e.getFollowTarget()),{originBox:n,targetBox:r})}function nk(t,e){var n,r,i,o={},a=e&&e.lead,s=null==a?void 0:a.presence;return e&&t===a?t.presence===l.Entering?o.originBox=e.getFollowOrigin():t.presence===l.Exiting&&(o.targetBox=e.getFollowTarget()):e&&t===e.follow&&(o.transition=e.getLeadTransition(),s===l.Entering?o.targetBox=e.getLeadTarget():s===l.Exiting&&(o.originBox=e.getLeadOrigin())),((null===(n=null==e?void 0:e.follow)||void 0===n?void 0:n.isPresenceRoot)||(null==a?void 0:a.isPresenceRoot))&&(e&&t!==a?e&&t===e.follow?a&&s!==l.Entering&&s===l.Exiting&&(o.crossfadeOpacity=null===(i=null==e?void 0:e.lead)||void 0===i?void 0:i.getValue("opacity",1)):o.visibilityAction=c.Hide:t.presence===l.Entering&&(o.crossfadeOpacity=null===(r=null==e?void 0:e.follow)||void 0===r?void 0:r.getValue("opacity",0))),o}var nR=function(){function t(){this.order=[],this.hasChildren=!1}return t.prototype.add=function(t){var e;if(this.order.push(t),this.snapshot){t.prevSnapshot=this.snapshot,t.prevViewportBox=this.snapshot.boundingBox;var n=this.snapshot.latestMotionValues;for(var r in n)t.hasValue(r)?null===(e=t.getValue(r))||void 0===e||e.set(n[r]):t.addValue(r,E(n[r]))}this.hasChildren=!0},t.prototype.remove=function(t){var e=this.order.findIndex(function(e){return t===e});-1!==e&&this.order.splice(e,1)},t.prototype.updateLeadAndFollow=function(){this.prevLead=this.lead,this.prevFollow=this.follow;var t=(0,p.CR)(function(t,e){for(var n=(0,p.CR)(e,2),r=n[0],i=n[1],o=void 0,a=0,s=void 0,u=t.length,l=!1,c=u-1;c>=0;c--){var f=t[c];if(c===u-1&&(l=f.isPresent),l)o=f;else{var d=t[c-1];d&&d.isPresent&&(o=f)}if(o){a=c;break}}if(o||(o=t[0]),s=t[a-1],o)for(var c=a-1;c>=0;c--){var f=t[c];if(f.isPresent){s=f;break}}return o!==r&&!l&&s===i&&t.find(function(t){return t===r})&&(o=r),[o,s]}(this.order,[this.lead,this.follow]),2),e=t[0],n=t[1];this.lead=e,this.follow=n},t.prototype.updateSnapshot=function(){if(this.lead){var t={boun
1dingBox:this.lead.prevViewportBox,latestMotionValues:{}};this.lead.forEachValue(function(e,n){var r=e.get();th(r)||(t.latestMotionValues[n]=r)});var e=e5.get(this.lead);e&&e.isDragging&&(t.isDragging=!0,t.cursorProgress=e.cursorProgress),this.snapshot=t}},t.prototype.isLeadPresent=function(){var t;return this.lead&&(null===(t=this.lead)||void 0===t?void 0:t.presence)!==l.Exiting},t.prototype.getFollowOrigin=function(){var t;return this.follow?this.follow.prevViewportBox:null===(t=this.snapshot)||void 0===t?void 0:t.boundingBox},t.prototype.getFollowTarget=function(){var t;return null===(t=this.follow)||void 0===t?void 0:t.box},t.prototype.getLeadOrigin=function(){var t;return null===(t=this.lead)||void 0===t?void 0:t.prevViewportBox},t.prototype.getLeadTarget=function(){var t;return null===(t=this.lead)||void 0===t?void 0:t.box},t.prototype.getLeadTransition=function(){var t;return null===(t=this.lead)||void 0===t?void 0:t.config.transition},t}();!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.children=new Set,e.stacks=new Map,e.hasMounted=!1,e.updateScheduled=!1,e.renderScheduled=!1,e.syncContext=(0,p.pi)((0,p.pi)({},ex()),{syncUpdate:function(t){return e.scheduleUpdate(t)},forceUpdate:function(){e.syncContext=(0,p.pi)({},e.syncContext),e.scheduleUpdate(!0)},register:function(t){return e.addChild(t)},remove:function(t){return e.removeChild(t)}}),e}(0,p.ZT)(e,t),e.prototype.componentDidMount=function(){this.hasMounted=!0,this.updateStacks()},e.prototype.componentDidUpdate=function(){this.startLayoutAnimation()},e.prototype.shouldComponentUpdate=function(){return this.renderScheduled=!0,!0},e.prototype.startLayoutAnimation=function(){var t=this;this.renderScheduled=this.updateScheduled=!1;var e=this.props.type;this.children.forEach(function(t){t.isPresent?t.presence!==l.Entering&&(t.presence=t.presence===l.Exiting?l.Entering:l.Present):t.presence=l.Exiting}),this.updateStacks();var n="crossfade"===e?nk:nB;this.children.forEach(function(e){return t.syncContext.add(e)}),this.syncContext.flush({measureLayout:function(t){return t.measureLayout()},layoutReady:function(e){var r=e.layoutId;e.layoutReady(n(e,t.getStack(r)))}}),this.stacks.forEach(function(t){return t.snapshot=void 0})},e.prototype.updateStacks=function(){this.stacks.forEach(function(t){return t.updateLeadAndFollow()})},e.prototype.scheduleUpdate=function(t){void 0===t&&(t=!1),(t||!this.updateScheduled)&&(this.updateScheduled=!0,this.children.forEach(function(t){return t.snapshotBoundingBox()}),this.stacks.forEach(function(t){return t.updateSnapshot()}),(t||!this.renderScheduled)&&(this.renderScheduled=!0,this.forceUpdate()))},e.prototype.addChild=function(t){this.children.add(t),this.addToStack(t),t.presence=this.hasMounted?l.Entering:l.Present},e.prototype.removeChild=function(t){this.scheduleUpdate(),this.children.delete(t),this.removeFromStack(t)},e.prototype.addToStack=function(t){var e=this.getStack(t.layoutId);null==e||e.add(t)},e.prototype.removeFromStack=function(t){var e=this.getStack(t.layoutId);null==e||e.remove(t)},e.prototype.getStack=function(t){if(void 0!==t)return this.stacks.has(t)||this.stacks.set(t,new nR),this.stacks.get(t)},e.prototype.render=function(){return(0,g.createElement)(eE.Provider,{value:this.syncContext},this.props.children)}}(g.Component),E(0),E(0),E(0),E(0);var nD=E(null);if("undefined"!=typeof window){if(window.matchMedia){var nM=window.matchMedia("(prefers-reduced-motion)"),nO=function(){return nD.set(nM.matches)};nM.addListener(nO),nO()}else nD.set(!1)}function nU(){var t=t5(function(){return new na});return(0,g.useEffect)(function(){return t.mount(),function(){return t.unmount()}},[]),t}function nF(t,e,n){void 0===n&&(n={});var r=ec(t)?t:E(t);return D("",r,e,n),{stop:function(){return r.stop()}}}!function(){function t(){this.componentControls=new Set}t.prototype.subscribe=function(t){var e=this;return this.componentControls.add(t),function(){return e.componentControls.delete(t)}},t.prototype.start=function(t,e){this.componentControls.forEach(function(n){n.start(t.nativeEvent||t,e)})},t.prototype.updateConstraints=function(){this.componentControls.forEac
1h(function(t){t.prepareBoundingBox(),t.resolveDragConstraints()})}}(),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.initialState={},e}(0,p.ZT)(e,t),e.prototype.updateLayoutDelta=function(){},e.prototype.build=function(){},e.prototype.clean=function(){},e.prototype.makeTargetAnimatable=function(t){var e=t.transition,n=t.transitionEnd,r=(0,p._T)(t,["transition","transitionEnd"]),i=N(r,e||{},this);return G(this,r,i),(0,p.pi)({transition:e,transitionEnd:n},r)},e.prototype.getBoundingBox=function(){return{x:{min:0,max:0},y:{min:0,max:0}}},e.prototype.readNativeValue=function(t){return this.initialState[t]||0},e.prototype.render=function(){this.build()}}(tr)}}]);
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.