text: !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Motion={},t.React)}(this,(function(t,e){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=r(e),o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};var a,i,u=function(){return(u=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function s(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}function c(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,a=r.call(t),i=[];try{for(;(void 0===e||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c(arguments[e]));return t}!function(t){t[t.Entering=0]="Entering",t[t.Present=1]="Present",t[t.Exiting=2]="Exiting"}(a||(a={})),function(t){t[t.Hide=0]="Hide",t[t.Show=1]="Show"}(i||(i={}));var l={measureLayout:function(t){return t.updateLayoutMeasurement()},layoutReady:function(t){return t.notifyLayoutReady()}};function d(){var t=new Set;return{add:function(e){return t.add(e)},flush:function(e){var r=void 0===e?l:e,n=r.measureLayout,o=r.layoutReady,i=r.parent,u=Array.from(t).sort((function(t,e){return t.depth-e.depth})),s=function(){u.forEach((function(t){return t.resetTransform()})),u.forEach(n)};i?i.withoutTransform(s):s(),u.forEach(o),u.forEach((function(t){t.isPresent&&(t.presence=a.Present)})),t.clear()}}}var v=e.createContext(d()),p=e.createContext(d());function m(t){return!!t.forceUpdate}var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.syncLayout,r=t.framerSyncLayout,n=t.visualElement;m(e)&&e.register(n),m(r)&&r.register(n)},e.prototype.getSnapshotBeforeUpdate=function(){var t=this.props,e=t.syncLayout,r=t.visualElement;return m(e)?e.syncUpdate():(r.snapshotViewportBox(),e.add(r)),null},e.prototype.componentDidUpdate=function(){var t=this.props,e=t.syncLayout,r=t.visualElement;m(e)||e.flush(),r.rebaseProjectionTarget()},e.prototype.render=function(){return null},e}(n.default.Component);function h(t){var r=e.useContext(v),o=e.useContext(p);return n.default.createElement(y,u({},t,{syncLayout:r,framerSyncLayout:o}))}var g={key:"measure-layout",shouldRender:function(t){return!!t.drag||!!t.layout||void 0!==t.layoutId},getComponent:function(){return h}},b=e.createContext({transformPagePoint:function(t){return t},features:[],isStatic:!1});var x=e.createContext({});var w=e.createContext(null);function V(t){var r=e.useRef(null);return null===r.current&&(r.current=t()),r.current}var P=e.createContext(null),T="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function S(t,r,n,o){var a=e.useContext(b),i=e.useContext(x).visualElement,s=e.useContext(w),c=function(t){var r=t.layoutId,n=e.useContext(P);return n&&void 0!==r?n+"-"+r:r}(o),f=V((function(){return n(t,{visualState:r,parent:i,props:u(u({},o),{layoutId:c}),presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial)})}));return T((function(){var t;f.setProps(u(u(u({},a),o),{layoutId:c})),f.isPresent=null===(t=s)||t.isPresent,f.isPresenceRoot=!i||i.presenceId!==(null==s?void 0:s.id),f.syncRender()})),e.useEffect((function(){var t;null===(t=f.animationState)||void 0===t||t.animateChanges()})),function(t){var r=e.useContext(v),n=e.useContext(p);T((function(){return function(){m(r)&&r.remove(t),m(n)&&n.remove(t)}}),[])}(f),f}function A(t,r,n){return e.useCallback((function(e){var o,a;e&&(null===(o=t.mount)||void 0===o||o.call(t,e)),r&&(e?r.mount(e):r.unmount()),n&&("function"==typeof n?n(e):"object"==typeof(a=n)&&Object.prototype.hasOwnProperty.call(a,"current")&&(n.current=e))}),[])}function E(t){return"string"==typeof t||function(t){return Array.isArray(t)}(t)}function C(t){var e;return"function"==typeof(null===(e=t.animate)||void 0===e?void 0:e.start)||E(t.initial)||E(t.animate)||E(t.whileHover)||E(t.whileDrag)||E(t.whileTap)||E(t.whileFocus)||E(t.exit)}function L(t,r){var n=function(t,e){if(C(t)){var r=t.initial,n=t.animate;return{initial:!1===r||E(r)?r:void 0,animate:E(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,e.useContext(x)),o=n.initial,a=n.animate;return e.useMemo((function(){return{initial:o,animate:a}}),r?[R(o),R(a)]:[])}function R(t){return Array.isArray(t)?t.join(" "):t}function k(t){var r=t.defaultFeatures,n=t.createVisualElement,o=t.useRender,a=t.useVisualState;return e.forwardRef((function(t,i){var s=e.useContext(b).isStatic,c=null,l=L(t,s),d=a(t,s);return s||"undefined"==typeof window||(l.visualElement=S(s,d,n,t),c=function(t,r,n){for(var o=f(t,e.useContext(b).features),a=o.length,i=[],s=0;s<a;s++){var c=o[s],l=c.shouldRender,d=c.key,v=c.getComponent;if(l(n)){var p=v(n);p&&i.push(e.createElement(p,u({key:d},n,{visualElement:r})))}}return i}(r,l.visualElement,t)),e.createElement(e.Fragment,null,e.createElement(x.Provider,{value:l},o(t,A(d,l.visualElement,i),d,s)),c)}))}var O=["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 F(t){return"string"==typeof t&&(!t.includes("-")&&(O.indexOf(t)>-1||(!!/[A-Z]/.test(t)||void 0)))}var B=function(t,e){return function(r){return Math.max(Math.min(r,e),t)}},M=function(t){return t%1?Number(t.toFixed(5)):t},j=/(-)?([\d]*\.?[\d])+/g,I=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,H=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function U(t){return"string"==typeof t}var D={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},X=u(u({},D),{transform:B(0,1)}),Y=u(u({},D),{default:1}),N=function(t){return{test:function(e){return U(e)&&e.endsWith(t)&&1===e.split(" ").length},parse:parseFloat,transform:function(e){return""+e+t}}},W=N("deg"),z=N("%"),_=N("px"),Z=N("vh"),$=N("vw"),q=u(u({},z),{parse:function(t){return z.parse(t)/100},transform:function(t){return z.transform(100*t)}}),K=function(t,e){return function(r){return U(r)&&H.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)}},G=function(t,e,r){return function(n){var o;if(!U(n))return n;var a=n.match(j),i=a[0],u=a[1],s=a[2],c=a[3];return(o={})[t]=parseFloat(i),o[e]=parseFloat(u),o[r]=parseFloat(s),o.alpha=void 0!==c?parseFloat(c):1,o}},J={test:K("hsl","hue"),parse:G("hue","saturation","lightness"),transform:function(t){var e=t.hue,r=t.saturation,n=t.lightness,o=t.alpha,a=void 0===o?1:o;return"hsla("+Math.round(e)+", "+z.transform(M(r))+", "+z.transform(M(n))+", "+M(X.transform(a))+")"}},Q=B(0,255),tt=u(u({},D),{transform:function(t){return Math.round(Q(t))}}),et={test:K("rgb","red"),parse:G("red","green","blue"),transform:function(t){var e=t.red,r=t.green,n=t.blue,o=t.alpha,a=void 0===o?1:o;return"rgba("+tt.transform(e)+", "+tt.transform(r)+", "+tt.transform(n)+", "+M(X.transform(a))+")"}};var rt={test:K("#"),parse:function(t){var e="",r="",n="",o="";return t.length>5?(e=t.substr(1,2),r=t.substr(3,2),n=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),r=t.substr(2,1),n=t.substr(3,1),o=t.substr(4,1),e+=e,r+=r,n+=n,o+=o),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}},transform:et.transform},nt={test:function(t){return et.test(t)||rt.test(t)||J.test(t)},parse:function(t){return et.test(t)?et.parse(t):J.test(t)?J.parse(t):rt.parse(t)},transform:function(t){return U(t)?t:t.hasOwnProperty("red")?et.transform(t):J.transform(t)}};function ot(t){var e=[],r=0,n=t.match(I);n&&(r=n.length,t=t.replace(I,"${c}"),e.push.apply(e,n.map(nt.parse)));var o=t.match(j);return o&&(t=t.replace(j,"${n}"),e.push.apply(e,o.map(D.parse))),{values:e,numColors:r,tokenised:t}}function at(t){return ot(t).values}function it(t){var e=ot(t),r=e.values,n=e.numColors,o=e.tokenised,a=r.length;return function(t){for(var e=o,r=0;r<a;r++)e=e.replace(r<n?"${c}":"${n}",r<n?nt.transform(t[r]):M(t[r]));return e}}var ut=function(t){return"number"==typeof t?0:t};var st={test:function(t){var e,r,n,o;return isNaN(t)&&U(t)&&(null!==(r=null===(e=t.match(j))||void 0===e?void 0:e.length)&&void 0!==r?r:0)+(null!==(o=null===(n=t.match(I))||void 0===n?void 0:n.length)&&void 0!==o?o:0)>0},parse:at,createTransformer:it,getAnimatableNone:function(t){var e=at(t);return it(t)(e.map(ut))}},ct=new Set(["brightness","contrast","saturate","opacity"]);function ft(t){var e=t.slice(0,-1).split("("),r=e[0],n=e[1];if("drop-shadow"===r)return t;var o=(n.match(j)||[])[0];if(!o)return t;var a=n.replace(o,""),i=ct.has(r)?1:0;return o!==n&&(i*=100),r+"("+i+a+")"}var lt=/([a-z-]*)\(.*?\)/g,dt=u(u({},st),{getAnimatableNone:function(t){var e=t.match(lt);return e?e.map(ft).join(" "):t}}),vt=function(t,e,r){return-r*t+r*e+t},pt=function(t){return"number"==typeof t},mt=function(t,e){return function(r){return e(t(r))}},yt="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},ht="undefined"!=typeof window?function(t){return window.requestAnimationFrame(t)}:function(t){return setTimeout((function(){return t(yt())}),1/60*1e3)};var gt=!0,bt=!1,xt=!1,wt={delta:0,timestamp:0},Vt=["read","update","preRender","render","postRender"],Pt=Vt.reduce((function(t,e){return t[e]=function(t){var e=[],r=[],n=0,o=!1,a=new WeakSet,i={schedule:function(t,i,u){void 0===i&&(i=!1),void 0===u&&(u=!1);var s=u&&o,c=s?e:r;return i&&a.add(t),-1===c.indexOf(t)&&(c.push(t),s&&o&&(n=e.length)),t},cancel:function(t){var e=r.indexOf(t);-1!==e&&r.splice(e,1),a.delete(t)},process:function(u){var s;if(o=!0,e=(s=[r,e])[0],(r=s[1]).length=0,n=e.length)for(var c=0;c<n;c++){var f=e[c];f(u),a.has(f)&&(i.schedule(f),t())}o=!1}};return i}((function(){return bt=!0})),t}),{}),Tt=Vt.reduce((function(t,e){var r=Pt[e];return t[e]=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),bt||Ct(),r.schedule(t,e,n)},t}),{}),St=Vt.reduce((function(t,e){return t[e]=Pt[e].cancel,t}),{}),At=function(t){return Pt[t].process(wt)},Et=function(t){bt=!1,wt.delta=gt?1/60*1e3:Math.max(Math.min(t-wt.timestamp,40),1),wt.timestamp=t,xt=!0,Vt.forEach(At),xt=!1,bt&&(gt=!1,ht(Et))},Ct=function(){bt=!0,gt=!0,xt||ht(Et)};var Lt=function(t){return t.hasOwnProperty("x")&&t.hasOwnProperty("y")},Rt=function(t){return Lt(t)&&t.hasOwnProperty("z")},kt=function(t,e){return Math.abs(t-e)};function Ot(t){return"string"==typeof t&&t.startsWith("var(--")}var Ft=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Bt(t,e,r){var n=c(function(t){var e=Ft.exec(t);if(!e)return[,];var r=c(e,3);return[r[1],r[2]]}(t),2),o=n[0],a=n[1];if(o){var i=window.getComputedStyle(e).getPropertyValue(o);return i?i.trim():Ot(a)?Bt(a,e):a}}function Mt(t,e){return t/(e.max-e.min)*100}var jt={process:function(t,e,r){var n=r.target;if("string"==typeof t){if(!_.test(t))return t;t=parseFloat(t)}return Mt(t,n.x)+"% "+Mt(t,n.y)+"%"}},It={borderRadius:u(u({},jt),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:jt,borderTopRightRadius:jt,borderBottomLeftRadius:jt,borderBottomRightRadius:jt,boxShadow:{process:function(t,e){var r=e.delta,n=e.treeScale,o=t,a=t.includes("var("),i=[];a&&(t=t.replace(Ft,(function(t){return i.push(t),"_$css"})));var u=st.parse(t);if(u.length>5)return o;var s=st.createTransformer(t),c="number"!=typeof u[0]?1:0,f=r.x.scale*n.x,l=r.y.scale*n.y;u[0+c]/=f,u[1+c]/=l;var d=vt(f,l,.5);"number"==typeof u[2+c]&&(u[2+c]/=d),"number"==typeof u[3+c]&&(u[3+c]/=d);var v=s(u);if(a){var p=0;v=v.replace("_$css",(function(){var t=i[p];return p++,t}))}return v}}},Ht=["","X","Y","Z"],Ut=["transformPerspective","x","y","z"];function Dt(t,e){return Ut.indexOf(t)-Ut.indexOf(e)}["translate","scale","rotate","skew"].forEach((function(t){return Ht.forEach((function(e){return Ut.push(t+e)}))}));var Xt=new Set(Ut);function Yt(t){return Xt.has(t)}var Nt=new Set(["originX","originY","originZ"]);function Wt(t){return Nt.has(t)}function zt(t,e){var r=e.layout,n=e.layoutId;return Yt(t)||Wt(t)||(r||void 0!==n)&&!!It[t]}var _t=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(t){var e,r,n=this;return e=this.subscriptions,r=t,-1===e.indexOf(r)&&e.push(r),function(){return function(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)}(n.subscriptions,t)}},t.prototype.notify=function(t,e,r){var n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,r);else for(var o=0;o<n;o++){var a=this.subscriptions[o];a&&a(t,e,r)}},t.prototype.getSize=function(){return this.subscriptions.length},t.prototype.clear=function(){this.subscriptions.length=0},t}(),Zt=function(){function t(t){var e,r=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new _t,this.velocityUpdateSubscribers=new _t,this.renderSubscribers=new _t,this.canTrackVelocity=!1,this.updateAndNotify=function(t,e){void 0===e&&(e=!0),r.prev=r.current,r.current=t;var n=wt,o=n.delta,a=n.timestamp;r.lastUpdated!==a&&(r.timeDelta=o,r.lastUpdated=a,Tt.postRender(r.scheduleVelocityCheck)),r.prev!==r.current&&r.updateSubscribers.notify(r.current),r.velocityUpdateSubscribers.getSize()&&r.velocityUpdateSubscribers.notify(r.getVelocity()),e&&r.renderSubscribers.notify(r.current)},this.scheduleVelocityCheck=function(){return Tt.postRender(r.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==r.lastUpdated&&(r.prev=r.current,r.velocityUpdateSubscribers.notify(r.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}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?(t=parseFloat(this.current)-parseFloat(this.prev),(e=this.timeDelta)?t*(1e3/e):0):0;var t,e},t.prototype.start=function(t){var e=this;return this.stop(),new Promise((function(r){e.hasAnimated=!0,e.stopAnimation=t(r)})).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 $t(t){return new Zt(t)}var qt=function(t){return t instanceof Zt};function Kt(t){return t}var Gt={translate:0,scale:1,origin:0,originPoint:0};function Jt(){return{x:u({},Gt),y:u({},Gt)}}function Qt(){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:Jt(),deltaFinal:Jt(),deltaTransform:""}}var te=Qt(),ee={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function re(t,e,r){var n=t.x,o=t.y,a="translate3d("+n.translate/e.x+"px, "+o.translate/e.y+"px, 0) ";if(r){var i=r.rotate,u=r.rotateX,s=r.rotateY;i&&(a+="rotate("+i+") "),u&&(a+="rotateX("+u+") "),s&&(a+="rotateY("+s+") ")}return a+="scale("+n.scale+", "+o.scale+")",r||a!==ne?a:""}var ne=re(te.delta,te.treeScale,{x:1,y:1});function oe(t){return t.startsWith("--")}var ae=u(u({},D),{transform:Math.round}),ie={color:nt,backgroundColor:nt,outlineColor:nt,fill:nt,stroke:nt,borderColor:nt,borderTopColor:nt,borderRightColor:nt,borderBottomColor:nt,borderLeftColor:nt,borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,radius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,size:_,top:_,right:_,bottom:_,left:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,rotate:W,rotateX:W,rotateY:W,rotateZ:W,scale:Y,scaleX:Y,scaleY:Y,scaleZ:Y,skew:W,skewX:W,skewY:W,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:X,originX:q,originY:q,originZ:_,zIndex:ae,filter:dt,WebkitFilter:dt,fillOpacity:X,strokeOpacity:X,numOctaves:ae},ue=[D,_,z,W,$,Z,{test:function(t){return"auto"===t},parse:function(t){return t}}],se=function(t){return function(e){return e.test(t)}},ce=function(t){return ue.find(se(t))},fe=f(ue,[nt,st]),le=function(t){return fe.find(se(t))},de=function(t){return ie[t]},ve=function(t,e){return e&&"number"==typeof t?e.transform(t):t};function pe(t,e){var r,n=de(t);return n!==dt&&(n=st),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,e)}function me(t,e,r,n,o,a){var i,u=t.style,s=t.vars,c=t.transform,f=t.transformKeys,l=t.transformOrigin;f.length=0;var d=!1,v=!1,p=!0;for(var m in e){var y=e[m];if(oe(m))s[m]=y;else{var h=de(m),g=ve(y,h);if(Yt(m)){if(d=!0,c[m]=g,f.push(m),!p)continue;y!==(null!==(i=h.default)&&void 0!==i?i:0)&&(p=!1)}else if(Wt(m))l[m]=g,v=!0;else if(n&&r&&n.isHydrated&&It[m]){var b=It[m].process(y,n,r),x=It[m].applyTo;if(x)for(var w=x.length,V=0;V<w;V++)u[x[V]]=b;else u[m]=b}else u[m]=g}}n&&r&&r.isEnabled&&n.isHydrated?(u.transform=re(n.deltaFinal,n.treeScale,d?c:void 0),a&&(u.transform=a(c,u.transform)),u.transformOrigin=function(t){var e=t.deltaFinal;return 100*e.x.origin+"% "+100*e.y.origin+"% 0"}(n)):(d&&(u.transform=function(t,e,r,n){var o=t.transform,a=t.transformKeys,i=e.enableHardwareAcceleration,u=void 0===i||i,s=e.allowTransformNone,c=void 0===s||s,f="";a.sort(Dt);for(var l=!1,d=a.length,v=0;v<d;v++){var p=a[v];f+=(ee[p]||p)+"("+o[p]+") ","z"===p&&(l=!0)}return!l&&u?f+="translateZ(0)":f=f.trim(),n?f=n(o,r?"":f):c&&r&&(f="none"),f}(t,o,p,a)),v&&(u.transformOrigin=function(t){var e=t.originX,r=void 0===e?"50%":e,n=t.originY,o=void 0===n?"50%":n,a=t.originZ;return r+" "+o+" "+(void 0===a?0:a)}(l)))}var ye=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function he(t,e,r){for(var n in e)qt(e[n])||zt(n,r)||(t[n]=e[n])}function ge(t,r,n){var o={};return he(o,t.style||{},t),Object.assign(o,function(t,r,n){var o=t.transformTemplate;return e.useMemo((function(){var t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};me(t,r,void 0,void 0,{enableHardwareAcceleration:!n},o);var e=t.style;return u(u({},t.vars),e)}),[r])}(t,r,n)),t.transformValues&&(o=t.transformValues(o)),o}function be(t,e,r){var n={},o=ge(t,e,r);return Boolean(t.drag)&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),n.style=o,n}var xe=new Set(f(["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"],["onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]));function we(t){return xe.has(t)}var Ve=function(t){return!we(t)};try{var Pe=require("@emotion/is-prop-valid").default;Ve=function(t){return t.startsWith("on")?!we(t):Pe(t)}}catch(t){}function Te(t,e,r){return"string"==typeof t?t:_.transform(e+r*t)}var Se=function(t,e){return _.transform(t*e)},Ae={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ee={offset:"strokeDashoffset",array:"strokeDasharray"};function Ce(t,e,r,n,o,a){var i=e.attrX,u=e.attrY,c=e.originX,f=e.originY,l=e.pathLength,d=e.pathSpacing,v=void 0===d?1:d,p=e.pathOffset,m=void 0===p?0:p;me(t,s(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),r,n,o,a),t.attrs=t.style,t.style={};var y=t.attrs,h=t.style,g=t.dimensions,b=t.totalPathLength;y.transform&&(g&&(h.transform=y.transform),delete y.transform),g&&(void 0!==c||void 0!==f||h.transform)&&(h.transformOrigin=function(t,e,r){return Te(e,t.x,t.width)+" "+Te(r,t.y,t.height)}(g,void 0!==c?c:.5,void 0!==f?f:.5)),void 0!==i&&(y.x=i),void 0!==u&&(y.y=u),void 0!==b&&void 0!==l&&function(t,e,r,n,o,a){void 0===n&&(n=1),void 0===o&&(o=0),void 0===a&&(a=!0);var i=a?Ae:Ee;t[i.offset]=Se(-o,e);var u=Se(r,e),s=Se(n,e);t[i.array]=u+" "+s}(y,b,l,v,m,!1)}var Le=function(){return u(u({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Re(t,r){var n=e.useMemo((function(){var e=Le();return Ce(e,r,void 0,void 0,{enableHardwareAcceleration:!1},t.transformTemplate),u(u({},e.attrs),{style:u({},e.style)})}),[r]);if(t.style){var o={};he(o,t.style,t),n.style=u(u({},o),n.style)}return n}function ke(t,r){void 0===r&&(r=!1);return function(n,o,a,i){var s=a.latestValues,c=(F(t)?Re:be)(n,s,i),f=function(t,e,r){var n={};for(var o in t)(Ve(o)||!0===r&&we(o)||!e&&!we(o))&&(n[o]=t[o]);return n}(n,"string"==typeof t,r),l=u(u(u({},f),c),{ref:o});return e.createElement(t,l)}}function Oe(t){return[t("x"),t("y")]}function Fe(t,e){t.min=e.min,t.max=e.max}function Be(t,e,r){return r+e*(t-r)}function Me(t,e,r,n,o){return void 0!==o&&(t=Be(t,o,n)),Be(t,r,n)+e}function je(t,e,r,n,o){void 0===e&&(e=0),void 0===r&&(r=1),t.min=Me(t.min,e,r,n,o),t.max=Me(t.max,e,r,n,o)}function Ie(t,e){var r=e.x,n=e.y;je(t.x,r.translate,r.scale,r.originPoint),je(t.y,n.translate,n.scale,n.originPoint)}function He(t,e,r,n){var o=c(n,3),a=o[0],i=o[1],u=o[2];t.min=e.min,t.max=e.max;var s=void 0!==r[u]?r[u]:.5,f=vt(e.min,e.max,s);je(t,r[a],r[i],f,r.scale)}var Ue=["x","scaleX","originX"],De=["y","scaleY","originY"];function Xe(t,e,r,n,o){return t=Be(t-=e,1/r,n),void 0!==o&&(t=Be(t,1/o,n)),t}function Ye(t,e,r){var n=c(r,3),o=n[0],a=n[1],i=n[2];!function(t,e,r,n,o){void 0===e&&(e=0),void 0===r&&(r=1),void 0===n&&(n=.5);var a=vt(t.min,t.max,n)-e;t.min=Xe(t.min,e,r,a,o),t.max=Xe(t.max,e,r,a,o)}(t,e[o],e[a],e[i],e.scale)}function Ne(t,e,r){return void 0===e&&(e=0),void 0===r&&(r=.01),function(t,e){if(pt(t)&&pt(e))return kt(t,e);if(Lt(t)&&Lt(e)){var r=kt(t.x,e.x),n=kt(t.y,e.y),o=Rt(t)&&Rt(e)?kt(t.z,e.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}(t,e)<r}function We(t){return t.max-t.min}function ze(t,e,r,n){void 0===n&&(n=.5),t.origin=n,t.originPoint=vt(e.min,e.max,t.origin),t.scale=We(r)/We(e),Ne(t.scale,1,1e-4)&&(t.scale=1),t.translate=vt(r.min,r.max,t.origin)-t.originPoint,Ne(t.translate)&&(t.translate=0)}function _e(t,e,r,n){ze(t.x,e.x,r.x,Ze(n.originX)),ze(t.y,e.y,r.y,Ze(n.originY))}function Ze(t){return"number"==typeof t?t:.5}var $e;function qe(t,e){if(e)return(e[t]||e.default||e).from}!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.Exit="exit"}($e||($e={}));var Ke=[$e.Animate,$e.Hover,$e.Tap,$e.Drag,$e.Focus,$e.Exit],Ge=(f(Ke).reverse(),["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget"]);function Je(t,e,r,n){var o,a,i=t.delta,u=t.layout,s=t.layoutCorrected,c=t.treeScale,f=e.target;a=u,Fe((o=s).x,a.x),Fe(o.y,a.y),function(t,e,r){var n=r.length;if(n){e.x=e.y=1;for(var o=0;o<n;o++){var a=r[o].getLayoutState().delta;e.x*=a.x.scale,e.y*=a.y.scale,Ie(t,a)}}}(s,c,r),_e(i,s,f,n)}var Qe=function(t){var e=t.treeType,r=void 0===e?"":e,n=t.build,o=t.getBaseTarget,i=t.makeTargetAnimatable,s=t.measureViewportBox,c=t.render,l=t.readValueFromInstance,d=t.resetTransform,v=t.restoreTransform,p=t.removeValueFromRenderState,m=t.sortNodePosition,y=t.scrapeMotionValuesFromProps;return function(t,e){var h=t.parent,g=t.props,b=t.presenceId,x=t.blockInitialAnimation,w=t.visualState;void 0===e&&(e={});var V,P,T,S,A,L,R=w.latestValues,k=w.renderState,O=new Set,F=function(){var t=Ge.map((function(){return new _t})),e={},r={clearAllListeners:function(){return t.forEach((function(t){return t.clear()}))},updatePropListeners:function(t){return Ge.forEach((function(n){var o;null===(o=e[n])||void 0===o||o.call(e);var a="on"+n,i=t[a];i&&(e[n]=r[a](i))}))}};return t.forEach((function(t,e){r["on"+Ge[e]]=function(e){return t.add(e)},r["notify"+Ge[e]]=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.notify.apply(t,f(e))}})),r}(),B={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}}},M=B,j=R,I=Qt(),H=!1,U=new Map,D=new Map,X={},Y=u({},R);function N(){return B.isEnabled&&I.isHydrated}function W(){var t,e,r;V&&(N()&&(t=M.targetFinal,e=M.target,r=j,He(t.x,e.x,r,Ue),He(t.y,e.y,r,De),_e(I.deltaFinal,I.layoutCorrected,M.targetFinal,R)),z(),c(V,k))}function z(){var t=R;if(T&&T.isActive()){var r=T.getCrossfadeState(Q);r&&(t=r)}n(Q,k,t,M,I,e,g)}function _(){F.notifyUpdate(R)}var Z=y(g);for(var $ in Z){var q=Z[$];void 0!==R[$]&&qt(q)&&q.set(R[$],!1)}var K=C(g),G=E(g.initial),J=Boolean(G||K||g.variants),Q=u(u({treeType:r,current:null,depth:h?h.depth+1:0,path:h?f(h.path,[h]):[],presenceId:b,projection:B,variantChildren:J?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==h?void 0:h.isMounted()),blockInitialAnimation:x,isHoverEventsEnabled:!0,isMounted:function(){return Boolean(V)},mount:function(t){V=Q.current=t,Q.pointTo(Q),A=null==h?void 0:h.addChild(Q),J&&h&&!K&&(L=null==h?void 0:h.addVariantChild(Q))},unmount:function(){St.update(_),St.render(W),St.preRender(Q.updateLayoutProjection),D.forEach((function(t){return t()})),Q.stopLayoutAnimation(),null==A||A(),null==L||L(),null==P||P(),F.clearAllListeners()},addChild:function(t){return O.add(t),function(){return O.delete(t)}},addVariantChild:function(t){var e,r=Q.getClosestVariantNode();if(r)return null===(e=r.variantChildren)||void 0===e||e.add(t),function(){return r.variantChildren.delete(t)}},sortNodePosition:function(t){return m&&r===t.treeType?m(Q.getInstance(),t.getInstance()):0},getClosestVariantNode:function(){return J?Q:null==h?void 0:h.getClosestVariantNode()},scheduleUpdateLayoutProjection:h?h.scheduleUpdateLayoutProjection:function(){return Tt.preRender(Q.updateLayoutProjection,!1,!0)},getLayoutId:function(){return g.layoutId},getInstance:function(){return V},getStaticValue:function(t){return R[t]},setStaticValue:function(t,e){return R[t]=e},getLatestValues:function(){return R},setVisibility:function(t){Q.isVisible!==t&&(Q.isVisible=t,Q.scheduleRender())},makeTargetAnimatable:function(t,e){return void 0===e&&(e=!0),i(Q,t,g,e)},suspendHoverEvents:function(){Q.isHoverEventsEnabled=!1,Tt.postRender((function(){return setTimeout((function(){return Q.isHoverEventsEnabled=!0}),10)}))},addValue:function(t,e){Q.hasValue(t)&&Q.removeValue(t),U.set(t,e),R[t]=e.get(),function(t,e){var r=e.onChange((function(e){R[t]=e,g.onUpdate&&Tt.update(_,!1,!0)})),n=e.onRenderRequest(Q.scheduleRender);D.set(t,(function(){r(),n()}))}(t,e)},removeValue:function(t){var e;U.delete(t),null===(e=D.get(t))||void 0===e||e(),D.delete(t),delete R[t],p(t,k)},hasValue:function(t){return U.has(t)},getValue:function(t,e){var r=U.get(t);return void 0===r&&void 0!==e&&(r=$t(e),Q.addValue(t,r)),r},forEachValue:function(t){return U.forEach(t)},readValue:function(t){var r;return null!==(r=R[t])&&void 0!==r?r:l(V,t,e)},setBaseTarget:function(t,e){Y[t]=e},getBaseTarget:function(t){if(o){var e=o(g,t);if(void 0!==e&&!qt(e))return e}return Y[t]}},F),{build:function(){return z(),k},scheduleRender:function(){Tt.render(W,!1,!0)},syncRender:W,setProps:function(t){g=t,F.updatePropListeners(t),X=function(t,e,r){var n;for(var o in e){var a=e[o],i=r[o];if(qt(a))t.addValue(o,a);else if(qt(i))t.addValue(o,$t(a));else if(i!==a)if(t.hasValue(o)){var u=t.getValue(o);!u.hasAnimated&&u.set(a)}else t.addValue(o,$t(null!==(n=t.getStaticValue(o))&&void 0!==n?n:a))}for(var o in r)void 0===e[o]&&t.removeValue(o);return e}(Q,y(g),X)},getProps:function(){return g},getVariant:function(t){var e;return null===(e=g.variants)||void 0===e?void 0:e[t]},getDefaultTransition:function(){return g.transition},getVariantContext:function(t){if(void 0===t&&(t=!1),t)return null==h?void 0:h.getVariantContext();if(!K){var e=(null==h?void 0:h.getVariantContext())||{};return void 0!==g.initial&&(e.initial=g.initial),e}for(var r={},n=0;n<rr;n++){var o=er[n],a=g[o];(E(a)||!1===a)&&(r[o]=a)}return r},enableLayoutProjection:function(){B.isEnabled=!0},lockProjectionTarget:function(){B.isTargetLocked=!0},unlockProjectionTarget:function(){Q.stopLayoutAnimation(),B.isTargetLocked=!1},snapshotViewportBox:function(){Q.prevViewportBox=Q.measureViewportBox(!1),Q.rebaseProjectionTarget(!1,Q.prevViewportBox)},getLayoutState:function(){return I},setCrossfader:function(t){T=t},startLayoutAnimation:function(t,e){var r=Q.getProjectionAnimationProgress()[t],n=B.target[t],o=n.min,a=n.max-o;return r.clearListeners(),r.set(o),r.set(o),r.onChange((function(e){return Q.setProjectionTargetAxis(t,e,e+a)})),Q.animateMotionValue(t,r,0,e)},stopLayoutAnimation:function(){Oe((function(t){return Q.getProjectionAnimationProgress()[t].stop()}))},measureViewportBox:function(t){void 0===t&&(t=!0);var r,n,o=s(V,e);return t||(n=R,Ye((r=o).x,n,Ue),Ye(r.y,n,De)),o},updateLayoutMeasurement:function(){var t;Q.notifyBeforeLayoutMeasure(I.layout),I.isHydrated=!0,I.layout=Q.measureViewportBox(),I.layoutCorrected=(t=I.layout,{x:u({},t.x),y:u({},t.y)}),Q.notifyLayoutMeasure(I.layout,Q.prevViewportBox||I.layout),Tt.update((function(){return Q.rebaseProjectionTarget()}))},getProjectionAnimationProgress:function(){return S||(S={x:$t(0),y:$t(0)}),S},setProjectionTargetAxis:function(t,e,r){var n=B.target[t];n.min=e,n.max=r,H=!0,F.notifySetAxisTarget()},rebaseProjectionTarget:function(t,e){void 0===e&&(e=I.layout);var r=Q.getProjectionAnimationProgress(),n=r.x,o=r.y,a=!B.isTargetLocked&&!n.isAnimating()&&!o.isAnimating();(t||a)&&Oe((function(t){var r=e[t],n=r.min,o=r.max;Q.setProjectionTargetAxis(t,n,o)}))},notifyLayoutReady:function(t){Q.notifyLayoutUpdate(I.layout,Q.prevViewportBox||I.layout,t)},resetTransform:function(){return d(Q,V,g)},withoutTransform:function(t){var e=B.isEnabled;e&&Q.resetTransform(),h?h.withoutTransform(t):t(),e&&v(V,k)},updateLayoutProjection:function(){N()&&function(){var t=I.delta,e=I.treeScale,r=e.x,n=e.x,o=I.deltaTransform;Je(I,M,Q.path,R),H&&Q.notifyViewportBoxUpdate(M.target,t),H=!1;var a=re(t,e);a===o&&r===e.x&&n===e.y||Q.scheduleRender(),I.deltaTransform=a}(),O.forEach(tr)},pointTo:function(t){M=t.projection,j=t.getLatestValues(),null==P||P(),P=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(mt)}(t.onSetAxisTarget(Q.scheduleUpdateLayoutProjection),t.onLayoutAnimationComplete((function(){var t;Q.isPresent?Q.presence=a.Present:null===(t=Q.layoutSafeToRemove)||void 0===t||t.call(Q)})))},isPresent:!0,presence:a.Entering});return Q}};function tr(t){t.updateLayoutProjection()}var er=f(["initial"],Ke),rr=er.length;function nr(t){var e=t.style,r={};for(var n in e)(qt(e[n])||zt(n,t))&&(r[n]=e[n]);return r}function or(t){var e=nr(t);for(var r in t){if(qt(t[r]))e["x"===r||"y"===r?"attr"+r.toUpperCase():r]=t[r]}return e}function ar(t,e){return function(t){var e=t.top;return{x:{min:t.left,max:t.right},y:{min:e,max:t.bottom}}}(function(t,e){var r=t.top,n=t.left,o=t.bottom,a=t.right;void 0===e&&(e=Kt);var i=e({x:n,y:r}),u=e({x:a,y:o});return{top:i.y,left:i.x,bottom:u.y,right:u.x}}(t.getBoundingClientRect(),e))}var ir,ur=new Set(["width","height","top","left","right","bottom","x","y"]),sr=function(t){return ur.has(t)},cr=function(t,e){t.set(e,!1),t.set(e)},fr=function(t){return t===D||t===_};!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(ir||(ir={}));var lr=function(t,e){return parseFloat(t.split(", ")[e])},dr=function(t,e){return function(r,n){var o=n.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return lr(a[1],e);var i=o.match(/^matrix\((.+)\)$/);return i?lr(i[1],t):0}},vr=new Set(["x","y","z"]),pr=Ut.filter((function(t){return!vr.has(t)}));var mr={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){var r=e.top;return parseFloat(r)},left:function(t,e){var r=e.left;return parseFloat(r)},bottom:function(t,e){var r=t.y,n=e.top;return parseFloat(n)+(r.max-r.min)},right:function(t,e){var r=t.x,n=e.left;return parseFloat(n)+(r.max-r.min)},x:dr(4,13),y:dr(5,14)},yr=function(t,e,r,n){void 0===r&&(r={}),void 0===n&&(n={}),e=u({},e),n=u({},n);var o=Object.keys(e).filter(sr),a=[],i=!1,s=[];if(o.forEach((function(o){var u=t.getValue(o);if(t.hasValue(o)){var c,f,l=r[o],d=e[o],v=ce(l);if(f=d,Array.isArray(f))for(var p=d.length,m=null===d[0]?1:0;m<p;m++)c?ce(d[m]):c=ce(d[m]);else c=ce(d);if(v!==c)if(fr(v)&&fr(c)){var y=u.get();"string"==typeof y&&u.set(parseFloat(y)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&c===_&&(e[o]=d.map(parseFloat))}else(null==v?void 0:v.transform)&&(null==c?void 0:c.transform)&&(0===l||0===d)?0===l?u.set(c.transform(l)):e[o]=v.transform(d):(i||(a=function(t){var e=[];return pr.forEach((function(r){var n=t.getValue(r);void 0!==n&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))})),e.length&&t.syncRender(),e}(t),i=!0),s.push(o),n[o]=void 0!==n[o]?n[o]:e[o],cr(u,d))}})),s.length){var f=function(t,e,r){var n=e.measureViewportBox(),o=e.getInstance(),a=getComputedStyle(o),i=a.display,u={top:a.top,left:a.left,bottom:a.bottom,right:a.right,transform:a.transform};"none"===i&&e.setStaticValue("display",t.display||"block"),e.syncRender();var s=e.measureViewportBox();return r.forEach((function(r){var o=e.getValue(r);cr(o,mr[r](n,u)),t[r]=mr[r](s,a)})),t}(e,t,s);return a.length&&a.forEach((function(e){var r=c(e,2),n=r[0],o=r[1];t.getValue(n).set(o)})),t.syncRender(),{target:f,transitionEnd:n}}return{target:e,transitionEnd:n}};function hr(t,e,r,n){return function(t){return Object.keys(t).some(sr)}(e)?yr(t,e,r,n):{target:e,transitionEnd:n}}var gr=function(t,e,r,n){var o=function(t,e,r){var n,o=s(e,[]),a=t.getInstance();if(!(a instanceof HTMLElement))return{target:o,transitionEnd:r};for(var i in r&&(r=u({},r)),t.forEachValue((function(t){var e=t.get();if(Ot(e)){var r=Bt(e,a);r&&t.set(r)}})),o){var c=o[i];if(Ot(c)){var f=Bt(c,a);f&&(o[i]=f,r&&(null!==(n=r[i])&&void 0!==n||(r[i]=c)))}}return{target:o,transitionEnd:r}}(t,e,n);return hr(t,e=o.target,r,n=o.transitionEnd)};var br={treeType:"dom",readValueFromInstance:function(t,e){if(Yt(e)){var r=de(e);return r&&r.default||0}var n,o=(n=t,window.getComputedStyle(n));return(oe(e)?o.getPropertyValue(e):o[e])||0},sortNodePosition:function(t,e){return 2&t.compareDocumentPosition(e)?1:-1},getBaseTarget:function(t,e){var r;return null===(r=t.style)||void 0===r?void 0:r[e]},measureViewportBox:function(t,e){return ar(t,e.transformPagePoint)},resetTransform:function(t,e,r){t.suspendHoverEvents();var n=r.transformTemplate;e.style.transform=n?n({},""):"none",t.scheduleRender()},restoreTransform:function(t,e){t.style.transform=e.style.transform},removeValueFromRenderState:function(t,e){var r=e.vars,n=e.style;delete r[t],delete n[t]},makeTargetAnimatable:function(t,e,r,n){var o=r.transformValues;void 0===n&&(n=!0);var a=e.transition,i=e.transitionEnd,c=s(e,["transition","transitionEnd"]),f=function(t,e,r){var n,o,a={};for(var i in t)a[i]=null!==(n=qe(i,e))&&void 0!==n?n:null===(o=r.getValue(i))||void 0===o?void 0:o.get();return a}(c,a||{},t);if(o&&(i&&(i=o(i)),c&&(c=o(c)),f&&(f=o(f))),n){!function(t,e,r){var n,o,a,i,u=Object.keys(e).filter((function(e){return!t.hasValue(e)})),s=u.length;if(s)for(var c=0;c<s;c++){var f=u[c],l=e[f],d=null;Array.isArray(l)&&(d=l[0]),null===d&&(d=null!==(o=null!==(n=r[f])&&void 0!==n?n:t.readValue(f))&&void 0!==o?o:e[f]),null!=d&&("string"==typeof d&&/^\-?\d*\.?\d+$/.test(d)?d=parseFloat(d):!le(d)&&st.test(l)&&(d=pe(f,l)),t.addValue(f,$t(d)),null!==(a=(i=r)[f])&&void 0!==a||(i[f]=d),t.setBaseTarget(f,d))}}(t,c,f);var l=gr(t,c,f,i);i=l.transitionEnd,c=l.target}return u({transition:a,transitionEnd:i},c)},scrapeMotionValuesFromProps:nr,build:function(t,e,r,n,o,a,i){void 0!==t.isVisible&&(e.style.visibility=t.isVisible?"visible":"hidden"),me(e,r,n,o,a,i.transformTemplate)},render:function(t,e){var r=e.style,n=e.vars;for(var o in Object.assign(t.style,r),n)t.style.setProperty(o,n[o])}},xr=Qe(br),wr=/([a-z])([A-Z])/g,Vr=function(t){return t.replace(wr,"$1-$2").toLowerCase()},Pr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox"]);function Tr(t,e){for(var r in br.render(t,e),e.attrs)t.setAttribute(Pr.has(r)?r:Vr(r),e.attrs[r])}var Sr=Qe(u(u({},br),{getBaseTarget:function(t,e){return t[e]},readValueFromInstance:function(t,e){var r;return Yt(e)?(null===(r=de(e))||void 0===r?void 0:r.default)||0:(e=Pr.has(e)?e:Vr(e),t.getAttribute(e))},scrapeMotionValuesFromProps:or,build:function(t,e,r,n,o,a,i){Ce(e,r,n,o,a,i.transformTemplate)},render:Tr}));function Ar(t){var e,r=t instanceof Zt?t.get():t;return e=r,Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)?r.toValue():r}function Er(t,e,r,n){var o=t.scrapeMotionValuesFromProps,a=t.createRenderState,i=t.onMount,u={latestValues:Lr(e,r,n,o),renderState:a()};return i&&(u.mount=function(t){return i(e,t,u)}),u}var Cr=function(t){return function(r,n){var o=e.useContext(x),a=e.useContext(w);return n?Er(t,r,o,a):V((function(){return Er(t,r,o,a)}))}};function Lr(t,e,r,n){var o={},a=!1===(null==r?void 0:r.initial),i=n(t);for(var u in i)o[u]=Ar(i[u]);var c=t.initial,f=t.animate,l=C(t),d=l||t.variants;e&&d&&!l&&!1!==t.inherit&&(null!=c||(c=e.initial),null!=f||(f=e.animate));var v,p=a||!1===c?f:c;!p||"boolean"==typeof p||"object"==typeof(v=p)&&"function"==typeof v.start||(Array.isArray(p)?p:[p]).forEach((function(e){var r=function(t,e,r,n,o){var a;return void 0===n&&(n={}),void 0===o&&(o={}),"string"==typeof e&&(e=null===(a=t.variants)||void 0===a?void 0:a[e]),"function"==typeof e?e(null!=r?r:t.custom,n,o):e}(t,e);if(r){var n=r.transitionEnd,a=(r.transition,s(r,["transitionEnd","transition"]));for(var i in a)o[i]=a[i];for(var i in n)o[i]=n[i]}}));return o}var Rr={createVisualElement:function(t,e){return Sr(e,{enableHardwareAcceleration:!1})},useVisualState:Cr({scrapeMotionValuesFromProps:or,createRenderState:Le,onMount:function(t,e,r){var n=r.renderState,o=r.latestValues;try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}"path"===e.tagName&&(n.totalPathLength=e.getTotalLength()),Ce(n,o,void 0,void 0,{enableHardwareAcceleration:!1},t.transformTemplate),Tr(e,n)}})};var kr={createVisualElement:function(t,e){return xr(e,{enableHardwareAcceleration:!t})},useVisualState:Cr({scrapeMotionValuesFromProps:nr,createRenderState:ye})};var Or=function(t){function e(e,r){var n=(void 0===r?{}:r).forwardMotionProps;return k(function(t,e,r){var n=F(e)?Rr:kr;return u(u({},n),{defaultFeatures:t,useRender:ke(e,r)})}(t,e,void 0!==n&&n))}function r(t){return e(t,{forwardMotionProps:!0})}var n=new Map;return new Proxy(e,{get:function(t,o){return"custom"===o?r:(n.has(o)||n.set(o,e(o)),n.get(o))}})}([g]);t.m=Or,Object.defineProperty(t,"__esModule",{value:!0})}));
  