text: /*! For license information please see 693.0f267284.chunk.js.LICENSE.txt */
  "use strict";(self.webpackChunkUnion_front_end=self.webpackChunkUnion_front_end||[]).push([[693],{30907:function(t,n,e){function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}e.d(n,{Z:function(){return r}})},70885:function(t,n,e){e.d(n,{Z:function(){return o}});var r=e(40181);function o(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i=[],a=!0,s=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==e.return||e.return()}finally{if(s)throw o}}return i}}(t,n)||(0,r.Z)(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},42982:function(t,n,e){e.d(n,{Z:function(){return i}});var r=e(30907);var o=e(40181);function i(t){return function(t){if(Array.isArray(t))return(0,r.Z)(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,o.Z)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},40181:function(t,n,e){e.d(n,{Z:function(){return o}});var r=e(30907);function o(t,n){if(t){if("string"===typeof t)return(0,r.Z)(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?(0,r.Z)(t,n):void 0}}},98693:function(t,n,e){e.d(n,{E:function(){return La}});var r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},r(t,n)};function o(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var i=function(){return i=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},i.apply(this,arguments)};function a(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e}Object.create;function s(t,n){var e="function"===typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return a}function u(t,n,e){if(e||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}Object.create;var l=e(72791),c=function(t){return{isEnabled:function(n){return t.some((function(t){return!!n[t]}))}}},d={measureLayout:c(["layout","layoutId","drag"]),animation:c(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:c(["exit"]),drag:c(["drag","dragControls"]),focus:c(["whileFocus"]),hover:c(["whileHover","onHoverStart","onHoverEnd"]),tap:c(["whileTap","onTap","onTapStart","onTapCancel"]),pan:c(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:c(["whileInView","onViewportEnter","onViewportLeave"])};var f=(0,l.createContext)({strict:!1}),v=Object.keys(d),p=v.length;var h=(0,l.createContext)({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"}),m=(0,l.createContext)({});var y=(0,l.createContext)(null),g="undefined"!==typeof window,x=g?l.useLayoutEffect:l.useEffect,b={current:null},w=!1;function E(){return!w&&function(){if(w=!0,"undefined"!==typeof window)if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),n=function(){return b.current=t.matches};t.addListener(n),n()}else b.current=!1}(),s((0,l.useState)(b.current),1)[0]}function P(t,n,e,r){var o=(0,l.useContext)(f),i=(0,l.useContext)(m).visualElement,a=(0,l.useContext)(y),s=function(){var t=E(),n=(0,l.useContext)(h).reducedMotion;return"never"!==n&&("always"===n||t)}(),u=(0,l.useRef)(void 0);r||(r=o.renderer),!u.current&&r&&(u.current=r(t,{visualState:n,parent:i,props:e,presenceId:null===a||void 0===a?void 0:a.id,blockInitialAnimation:!1===(null===a||void 0===a?void 0:a.initial),shouldReduceMotion:s}));var c=u.current;return x((function(){null===c||void 0===c||c.syncRender()})),(0,l.useEffect)((function(){var t;null===(t=null===c||void 0===c?void 0:c.animationState)||void 0===t||t.animateChanges()})),x((function(){return function(){return null===c||void 0===c?void 0:c.notifyUnmount()}}),[]),c}function S(t){return"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function A(t){return Array.isArray(t)}function T(t){return"string"===typeof t||A(t)}function V(t,n,e,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"function"===typeof n&&(n=n(null!==e&&void 0!==e?e:t.custom,r,o)),"string"===typeof n&&(n=null===(i=t.variants)||void 0===i?void 0:i[n]),"function"===typeof n&&(n=n(null!==e&&void 0!==e?e:t.custom,r,o)),n}function C(t,n,e){var r=t.getProps();return V(r,n,null!==e&&void 0!==e?e:r.custom,function(t){var n={};return t.forEachValue((function(t,e){return n[e]=t.get()})),n}(t),function(t){var n={};return t.forEachValue((function(t,e){return n[e]=t.getVelocity()})),n}(t))}function M(t){var n;return"function"===typeof(null===(n=t.animate)||void 0===n?void 0:n.start)||T(t.initial)||T(t.animate)||T(t.whileHover)||T(t.whileDrag)||T(t.whileTap)||T(t.whileFocus)||T(t.exit)}function R(t){return Boolean(M(t)||t.variants)}function L(t){var n=function(t,n){if(M(t)){var e=t.initial,r=t.animate;return{initial:!1===e||T(e)?e:void 0,animate:T(r)?r:void 0}}return!1!==t.inherit?n:{}}(t,(0,l.useContext)(m)),e=n.initial,r=n.animate;return(0,l.useMemo)((function(){return{initial:e,animate:r}}),[D(e),D(r)])}function D(t){return Array.isArray(t)?t.join(" "):t}function O(t){var n=(0,l.useRef)(null);return null===n.current&&(n.current=t()),n.current}var k=1/60*1e3,j="undefined"!==typeof performance?function(){return performance.now()}:function(){return Date.now()},F="undefined"!==typeof window?function(t){return window.requestAnimationFrame(t)}:function(t){return setTimeout((function(){return t(j())}),k)};var U=!0,I=!1,B=!1,N={delta:0,timestamp:0},z=["read","update","preRender","render","postRender"],H=z.reduce((function(t,n){return t[n]=function(t){var n=[],e=[],r=0,o=!1,i=!1,a=new WeakSet,s={schedule:function(t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&o,s=i?n:e;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&a.add(t),-1===s.indexOf(t)&&(s.push(t),i&&o&&(r=n.length)),t},cancel:function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),a.delete(t)},process:function(u){if(o)i=!0;else{o=!0;var l=[e,n];if(n=l[0],(e=l[1]).length=0,r=n.length)for(var c=0;c<r;c++){var d=n[c];d(u),a.has(d)&&(s.schedule(d),t())}o=!1,i&&(i=!1,s.process(u))}}};return s}((function(){return I=!0})),t}),{}),Z=z.reduce((function(t,n){var e=H[n];return t[n]=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return I||q(),e.schedule(t,n,r)},t}),{}),W=z.reduce((function(t,n){return t[n]=H[n].cancel,t}),{}),Y=z.reduce((function(t,n){return t[n]=function(){return H[n].process(N)},t}),{}),X=function(t){return H[t].process(N)},G=function t(n){I=!1,N.delta=U?k:Math.max(Math.min(n-N.timestamp,40),1),N.timestamp=n,B=!0,z.forEach(X),B=!1,I&&(U=!1,F(t))},q=function(){I=!0,U=!0,B||F(G)},_=function(){return N},$=Z,K=function(t,n,e){return-e*t+e*n+t};function J(t,n){return n?t*(1e3/n):0}function Q(t,n){-1===t.indexOf(n)&&t.push(n)}function tt(t,n){var e=t.indexOf(n);e>-1&&t.splice(e,1)}var nt=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(t){var n=this;return Q(this.subscriptions,t),function(){return tt(n.subscriptions,t)}},t.prototype.notify=function(t,n,e){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,n,e);else for(var o=0;o<r;o++){var i=this.subscriptions[o];i&&i(t,n,e)}},t.prototype.getSize=function(){return this.subscriptions.length},t.prototype.clear=function(){this.subscriptions.length=0},t}(),et=function(){function t(t){var n,e=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new nt,this.velocityUpdateSubscribers=new nt,this.renderSubscribers=new nt,this.canTrackVelocity=!1,this.updateAndNotify=function(t,n){void 0===n&&(n=!0),e.prev=e.current,e.current=t;var r=_(),o=r.delta,i=r.timestamp;e.lastUpdated!==i&&(e.timeDelta=o,e.lastUpdated=i,$.postRender(e.scheduleVelocityCheck)),e.prev!==e.current&&e.updateSubscribers.notify(e.current),e.velocityUpdateSubscribers.getSize()&&e.velocityUpdateSubscribers.notify(e.getVelocity()),n&&e.renderSubscribers.notify(e.current)},this.scheduleVelocityCheck=function(){return $.postRender(e.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==e.lastUpdated&&(e.prev=e.current,e.velocityUpdateSubscribers.notify(e.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n)))}return t.prototype.onChange=function(t){return this.updateSubscribers.add(t)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},t.prototype.attach=function(t){this.passiveEffect=t},t.prototype.set=function(t,n){void 0===n&&(n=!0),n&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,n)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?J(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(t){var n=this;return this.stop(),new Promise((function(e){n.hasAnimated=!0,n.stopAnimation=t(e)})).then((function(){return n.clearAnimation()}))},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function rt(t){return new et(t)}var ot=function(t){return Boolean(null!==t&&"object"===typeof t&&t.getVelocity)};var it=function(t,n,e){return Math.min(Math.max(e,t),n)},at=.001;function st(t){var n,e,r=t.duration,o=void 0===r?800:r,i=t.bounce,a=void 0===i?.25:i,s=t.velocity,u=void 0===s?0:s,l=t.mass,c=void 0===l?1:l,d=1-a;d=it(.05,1,d),o=it(.01,10,o/1e3),d<1?(n=function(t){var n=t*d,e=n*o,r=n-u,i=ut(t,d),a=Math.exp(-e);return at-r/i*a},e=function(t){var e=t*d*o,r=e*u+u,i=Math.pow(d,2)*Math.pow(t,2)*o,a=Math.exp(-e),s=ut(Math.pow(t,2),d);return(-n(t)+at>0?-1:1)*((r-i)*a)/s}):(n=function(t){return Math.exp(-t*o)*((t-u)*o+1)-.001},e=function(t){return Math.exp(-t*o)*(o*o*(u-t))});var f=function(t,n,e){for(var r=e,o=1;o<12;o++)r-=t(r)/n(r);return r}(n,e,5/o);if(o*=1e3,isNaN(f))return{stiffness:100,damping:10,duration:o};var v=Math.pow(f,2)*c;return{stiffness:v,damping:2*d*Math.sqrt(c*v),duration:o}}function ut(t,n){return t*Math.sqrt(1-n*n)}var lt=["duration","bounce"],ct=["stiffness","damping","mass"];function dt(t,n){return n.some((function(n){return void 0!==t[n]}))}function ft(t){var n=t.from,e=void 0===n?0:n,r=t.to,o=void 0===r?1:r,i=t.restSpeed,s=void 0===i?2:i,u=t.restDelta,l=a(t,["from","to","restSpeed","restDelta"]),c={done:!1,value:e},d=function(t){var n=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!dt(t,ct)&&dt(t,lt)){var e=st(t);(n=Object.assign(Object.assign(Object.assign({},n),e),{velocity:0,mass:1})).isResolvedFromDuration=!0}return n}(l),f=d.stiffness,v=d.damping,p=d.mass,h=d.velocity,m=d.duration,y=d.isResolvedFromDuration,g=vt,x=vt;function b(){var t=h?-h/1e3:0,n=o-e,r=v/(2*Math.sqrt(f*p)),i=Math.sqrt(f/p)/1e3;if(void 0===u&&(u=Math.min(Math.abs(o-e)/100,.4)),r<1){var a=ut(i,r);g=function(e){var s=Math.exp(-r*i*e);return o-s*((t+r*i*n)/a*Math.sin(a*e)+n*Math.cos(a*e))},x=function(e){var o=Math.exp(-r*i*e);return r*i*o*(Math.sin(a*e)*(t+r*i*n)/a+n*Math.cos(a*e))-o*(Math.cos(a*e)*(t+r*i*n)-a*n*Math.sin(a*e))}}else if(1===r)g=function(e){return o-Math.exp(-i*e)*(n+(t+i*n)*e)};else{var s=i*Math.sqrt(r*r-1);g=function(e){var a=Math.exp(-r*i*e),u=Math.min(s*e,300);return o-a*((t+r*i*n)*Math.sinh(u)+s*n*Math.cosh(u))/s}}}return b(),{next:function(t){var n=g(t);if(y)c.done=t>=m;else{var e=1e3*x(t),r=Math.abs(e)<=s,i=Math.abs(o-n)<=u;c.done=r&&i}return c.value=c.done?o:n,c},flipTarget:function(){h=-h;var t=[o,e];e=t[0],o=t[1],b()}}}ft.needsInterpolation=function(t,n){return"string"===typeof t||"string"===typeof n};var vt=function(t){return 0},pt=e(70885),ht=function(t,n,e){var r=n-t;return 0===r?1:(e-t)/r},mt=function(t,n){return function(e){return Math.max(Math.min(e,n),t)}},yt=function(t){return t%1?Number(t.toFixed(5)):t},gt=/(-)?([\d]*\.?[\d])+/g,xt=/(#[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,bt=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function wt(t){return"string"===typeof t}var Et={test:function(t){return"number"===typeof t},parse:parseFloat,transform:function(t){return t}},Pt=Object.assign(Object.assign({},Et),{transform:mt(0,1)}),St=Object.assign(Object.assign({},Et),{default:1}),At=e(4942),Tt=function(t,n){return function(e){return Boolean(wt(e)&&bt.test(e)&&e.startsWith(t)||n&&Object.prototype.hasOwnProperty.call(e,n))}},Vt=function(t,n,e){return function(r){var o;if(!wt(r))return r;var i=r.match(gt),a=(0,pt.Z)(i,4),s=a[0],u=a[1],l=a[2],c=a[3];return o={},(0,At.Z)(o,t,parseFloat(s)),(0,At.Z)(o,n,parseFloat(u)),(0,At.Z)(o,e,parseFloat(l)),(0,At.Z)(o,"alpha",void 0!==c?parseFloat(c):1),o}},Ct=mt(0,255),Mt=Object.assign(Object.assign({},Et),{transform:function(t){return Math.round(Ct(t))}}),Rt={test:Tt("rgb","red"),parse:Vt("red","green","blue"),transform:function(t){var n=t.red,e=t.green,r=t.blue,o=t.alpha,i=void 0===o?1:o;return"rgba("+Mt.transform(n)+", "+Mt.transform(e)+", "+Mt.transform(r)+", "+yt(Pt.transform(i))+")"}};var Lt={test:Tt("#"),parse:function(t){var n="",e="",r="",o="";return t.length>5?(n=t.substr(1,2),e=t.substr(3,2),r=t.substr(5,2),o=t.substr(7,2)):(n=t.substr(1,1),e=t.substr(2,1),r=t.substr(3,1),o=t.substr(4,1),n+=n,e+=e,r+=r,o+=o),{red:parseInt(n,16),green:parseInt(e,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Rt.transform},Dt=function(t){return{test:function(n){return wt(n)&&n.endsWith(t)&&1===n.split(" ").length},parse:parseFloat,transform:function(n){return"".concat(n).concat(t)}}},Ot=Dt("deg"),kt=Dt("%"),jt=Dt("px"),Ft=Dt("vh"),Ut=Dt("vw"),It=Object.assign(Object.assign({},kt),{parse:function(t){return kt.parse(t)/100},transform:function(t){return kt.transform(100*t)}}),Bt={test:Tt("hsl","hue"),parse:Vt("hue","saturation","lightness"),transform:function(t){var n=t.hue,e=t.saturation,r=t.lightness,o=t.alpha,i=void 0===o?1:o;return"hsla("+Math.round(n)+", "+kt.transform(yt(e))+", "+kt.transform(yt(r))+", "+yt(Pt.transform(i))+")"}};function Nt(t,n,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?t+6*(n-t)*e:e<.5?n:e<2/3?t+(n-t)*(2/3-e)*6:t}function zt(t){var n=t.hue,e=t.saturation,r=t.lightness,o=t.alpha;n/=360,r/=100;var i=0,a=0,s=0;if(e/=100){var u=r<.5?r*(1+e):r+e-r*e,l=2*r-u;i=Nt(l,u,n+1/3),a=Nt(l,u,n),s=Nt(l,u,n-1/3)}else i=a=s=r;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*s),alpha:o}}var Ht=function(t,n,e){var r=t*t,o=n*n;return Math.sqrt(Math.max(0,e*(o-r)+r))},Zt=[Lt,Rt,Bt],Wt=function(t){return Zt.find((function(n){return n.test(t)}))},Yt=function(t){return"'".concat(t,"' is not an animatable color. Use the equivalent color code instead.")},Xt=function(t,n){var e=Wt(t),r=Wt(n);Yt(t),Yt(n);var o=e.parse(t),i=r.parse(n);e===Bt&&(o=zt(o),e=Rt),r===Bt&&(i=zt(i),r=Rt);var a=Object.assign({},o);return function(t){for(var n in a)"alpha"!==n&&(a[n]=Ht(o[n],i[n],t));return a.alpha=K(o.alpha,i.alpha,t),e.transform(a)}},Gt=e(42982),qt={test:function(t){return Rt.test(t)||Lt.test(t)||Bt.test(t)},parse:function(t){return Rt.test(t)?Rt.parse(t):Bt.test(t)?Bt.parse(t):Lt.parse(t)},transform:function(t){return wt(t)?t:t.hasOwnProperty("red")?Rt.transform(t):Bt.transform(t)}},_t="${c}",$t="${n}";function Kt(t){"number"===typeof t&&(t="".concat(t));var n=[],e=0,r=t.match(xt);r&&(e=r.length,t=t.replace(xt,_t),n.push.apply(n,(0,Gt.Z)(r.map(qt.parse))));var o=t.match(gt);return o&&(t=t.replace(gt,$t),n.push.apply(n,(0,Gt.Z)(o.map(Et.parse)))),{values:n,numColors:e,tokenised:t}}function Jt(t){return Kt(t).values}function Qt(t){var n=Kt(t),e=n.values,r=n.numColors,o=n.tokenised,i=e.length;return function(t){for(var n=o,e=0;e<i;e++)n=n.replace(e<r?_t:$t,e<r?qt.transform(t[e]):yt(t[e]));return n}}var tn=function(t){return"number"===typeof t?0:t};var nn={test:function(t){var n,e,r,o;return isNaN(t)&&wt(t)&&(null!==(e=null===(n=t.match(gt))||void 0===n?void 0:n.length)&&void 0!==e?e:0)+(null!==(o=null===(r=t.match(xt))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Jt,createTransformer:Qt,getAnimatableNone:function(t){var n=Jt(t);return Qt(t)(n.map(tn))}},en=function(t){return"number"===typeof t},rn=function(t,n){return function(e){return n(t(e))}},on=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.reduce(rn)};function an(t,n){return en(t)?function(e){return K(t,n,e)}:qt.test(t)?Xt(t,n):cn(t,n)}var sn=function(t,n){var e=(0,Gt.Z)(t),r=e.length,o=t.map((function(t,e){return an(t,n[e])}));return function(t){for(var n=0;n<r;n++)e[n]=o[n](t);return e}},un=function(t,n){var e=Object.assign(Object.assign({},t),n),r={};for(var o in e)void 0!==t[o]&&void 0!==n[o]&&(r[o]=an(t[o],n[o]));return function(t){for(var n in r)e[n]=r[n](t);return e}};function ln(t){for(var n=nn.parse(t),e=n.length,r=0,o=0,i=0,a=0;a<e;a++)r||"number"===typeof n[a]?r++:void 0!==n[a].hue?i++:o++;return{parsed:n,numNumbers:r,numRGB:o,numHSL:i}}var cn=function(t,n){var e=nn.createTransformer(n),r=ln(t),o=ln(n);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?on(sn(r.parsed,o.parsed),e):("Complex values '".concat(t,"' and '").concat(n,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition."),function(e){return"".concat(e>0?n:t)})},dn=function(t,n){return function(e){return K(t,n,e)}};function fn(t,n,e){for(var r,o=[],i=e||("number"===typeof(r=t[0])?dn:"string"===typeof r?qt.test(r)?Xt:cn:Array.isArray(r)?sn:"object"===typeof r?un:void 0),a=t.length-1,s=0;s<a;s++){var u=i(t[s],t[s+1]);if(n){var l=Array.isArray(n)?n[s]:n;u=on(l,u)}o.push(u)}return o}function vn(t,n){var e=(0,pt.Z)(t,2),r=e[0],o=e[1],i=(0,pt.Z)(n,1)[0];return function(t){return i(ht(r,o,t))}}function pn(t,n){var e=t.length,r=e-1;return function(o){var i=0,a=!1;if(o<=t[0]?a=!0:o>=t[r]&&(i=r-1,a=!0),!a){for(var s=1;s<e&&!(t[s]>o||s===r);s++);i=s-1}var u=ht(t[i],t[i+1],o);return n[i](u)}}function hn(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.clamp,o=void 0===r||r,i=e.ease,a=e.mixer,s=t.length;n.length,!i||!Array.isArray(i)||i.length,t[0]>t[s-1]&&(t=[].concat(t),n=[].concat(n),t.reverse(),n.reverse());var u=fn(n,i,a),l=2===s?vn(t,u):pn(t,u);return o?function(n){return l(it(t[0],t[s-1],n))}:l}var mn,yn=function(t){return function(n){return 1-t(1-n)}},gn=function(t){return function(n){return n<=.5?t(2*n)/2:(2-t(2*(1-n)))/2}},xn=function(t){return function(n){return n*n*((t+1)*n-t)}},bn=function(t){return t},wn=(mn=2,function(t){return Math.pow(t,mn)}),En=yn(wn),Pn=gn(wn),Sn=function(t){return 1-Math.sin(Math.acos(t))},An=yn(Sn),Tn=gn(An),Vn=xn(1.525),Cn=yn(Vn),Mn=gn(Vn),Rn=function(t){var n=xn(t);return function(t){return(t*=2)<1?.5*n(t):.5*(2-Math.pow(2,-10*(t-1)))}}(1.525),Ln=function(t){if(1===t||0===t)return t;var n=t*t;return t<.36363636363636365?7.5625*n:t<.7272727272727273?9.075*n-9.9*t+3.4:t<.9?12.066481994459833*n-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},Dn=yn(Ln);function On(t,n){return t.map((function(){return n||Pn})).splice(0,t.length-1)}function kn(t){var n=t.from,e=void 0===n?0:n,r=t.to,o=void 0===r?1:r,i=t.ease,a=t.offset,s=t.duration,u=void 0===s?300:s,l={done:!1,value:e},c=Array.isArray(o)?o:[e,o],d=function(t,n){return t.map((function(t){return t*n}))}(a&&a.length===c.length?a:function(t){var n=t.length;return t.map((function(t,e){return 0!==e?e/(n-1):0}))}(c),u);function f(){return hn(d,c,{ease:Array.isArray(i)?i:On(c,i)})}var v=f();return{next:function(t){return l.value=v(t),l.done=t>=u,l},flipTarget:function(){c.reverse(),v=f()}}}var jn={keyframes:kn,spring:ft,decay:function(t){var n=t.velocity,e=void 0===n?0:n,r=t.from,o=void 0===r?0:r,i=t.power,a=void 0===i?.8:i,s=t.timeConstant,u=void 0===s?350:s,l=t.restDelta,c=void 0===l?.5:l,d=t.modifyTarget,f={done:!1,value:o},v=a*e,p=o+v,h=void 0===d?p:d(p);return h!==p&&(v=h-o),{next:function(t){var n=-v*Math.exp(-t/u);return f.done=!(n>c||n<-c),f.value=f.done?h:h+n,f},flipTarget:function(){}}}};function Fn(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return t-n-e}var Un=function(t){var n=function(n){var e=n.delta;return t(e)};return{start:function(){return $.update(n,!0)},stop:function(){return W.update(n)}}};function In(t){var n,e,r,o,i,s=t.from,u=t.autoplay,l=void 0===u||u,c=t.driver,d=void 0===c?Un:c,f=t.elapsed,v=void 0===f?0:f,p=t.repeat,h=void 0===p?0:p,m=t.repeatType,y=void 0===m?"loop":m,g=t.repeatDelay,x=void 0===g?0:g,b=t.onPlay,w=t.onStop,E=t.onComplete,P=t.onRepeat,S=t.onUpdate,A=a(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),T=A.to,V=0,C=A.duration,M=!1,R=!0,L=function(t){if(Array.isArray(t.to))return kn;if(jn[t.type])return jn[t.type];var n=new Set(Object.keys(t));return n.has("ease")||n.has("duration")&&!n.has("dampingRatio")?kn:n.has("dampingRatio")||n.has("stiffness")||n.has("mass")||n.has("damping")||n.has("restSpeed")||n.has("restDelta")?ft:kn}(A);(null===(e=(n=L).needsInterpolation)||void 0===e?void 0:e.call(n,s,T))&&(i=hn([0,100],[s,T],{clamp:!1}),s=0,T=100);var D=L(Object.assign(Object.assign({},A),{from:s,to:T}));function O(){V++,"reverse"===y?v=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?n-(t-n)+e:Fn(n+-t,n,e)}(v,C,x,R=V%2===0):(v=Fn(v,C,x),"mirror"===y&&D.flipTarget()),M=!1,P&&P()}function k(t){if(R||(t=-t),v+=t,!M){var n=D.next(Math.max(0,v));o=n.value,i&&(o=i(o)),M=R?n.done:v<=0}null===S||void 0===S||S(o),M&&(0===V&&(null!==C&&void 0!==C||(C=v)),V<h?function(t,n,e,r){return r?t>=n+e:t<=-e}(v,C,x,R)&&O():(r.stop(),E&&E()))}return l&&(null===b||void 0===b||b(),(r=d(k)).start()),{stop:function(){null===w||void 0===w||w(),r.stop()}}}var Bn=function(t){return 1e3*t},Nn=function(t,n){return 1-3*n+3*t},zn=function(t,n){return 3*n-6*t},Hn=function(t){return 3*t},Zn=function(t,n,e){return((Nn(n,e)*t+zn(n,e))*t+Hn(n))*t},Wn=function(t,n,e){return 3*Nn(n,e)*t*t+2*zn(n,e)*t+Hn(n)};var Yn=.1;function Xn(t,n,e,r){if(t===n&&e===r)return bn;for(var o=new Float32Array(11),i=0;i<11;++i)o[i]=Zn(i*Yn,t,e);function a(n){for(var r=0,i=1;10!==i&&o[i]<=n;++i)r+=Yn;--i;var a=r+(n-o[i])/(o[i+1]-o[i])*Yn,s=Wn(a,t,e);return s>=.001?function(t,n,e,r){for(var o=0;o<8;++o){var i=Wn(n,e,r);if(0===i)return n;n-=(Zn(n,e,r)-t)/i}return n}(n,a,t,e):0===s?a:function(t,n,e,r,o){var i,a,s=0;do{(i=Zn(a=n+(e-n)/2,r,o)-t)>0?e=a:n=a}while(Math.abs(i)>1e-7&&++s<10);return a}(n,r,r+Yn,t,e)}return function(t){return 0===t||1===t?t:Zn(a(t),n,r)}}var Gn={linear:bn,easeIn:wn,easeInOut:Pn,easeOut:En,circIn:Sn,circInOut:Tn,circOut:An,backIn:Vn,backInOut:Mn,backOut:Cn,anticipate:Rn,bounceIn:Dn,bounceInOut:function(t){return t<.5?.5*(1-Ln(1-2*t)):.5*Ln(2*t-1)+.5},bounceOut:Ln},qn=function(t){if(Array.isArray(t)){t.length;var n=s(t,4);return Xn(n[0],n[1],n[2],n[3])}return"string"===typeof t?("Invalid easing type '".concat(t,"'"),Gn[t]):t},_n=function(t,n){return"zIndex"!==t&&(!("number"!==typeof n&&!Array.isArray(n))||!("string"!==typeof n||!nn.test(n)||n.startsWith("url(")))},$n=function(t){return Array.isArray(t)},Kn=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Jn=function(t){return{type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}},Qn=function(){return{type:"keyframes",ease:"linear",duration:.3}},te=function(t){return{type:"keyframes",duration:.8,values:t}},ne={x:Kn,y:Kn,z:Kn,rotate:Kn,rotateX:Kn,rotateY:Kn,rotateZ:Kn,scaleX:Jn,scaleY:Jn,scale:Jn,opacity:Qn,backgroundColor:Qn,color:Qn,default:Jn},ee=new Set(["brightness","contrast","saturate","opacity"]);function re(t){var n=t.slice(0,-1).split("("),e=(0,pt.Z)(n,2),r=e[0],o=e[1];if("drop-shadow"===r)return t;var i=o.match(gt)||[],a=(0,pt.Z)(i,1)[0];if(!a)return t;var s=o.replace(a,""),u=ee.has(r)?1:0;return a!==o&&(u*=100),r+"("+u+s+")"}var oe=/([a-z-]*)\(.*?\)/g,ie=Object.assign(Object.assign({},nn),{getAnimatableNone:function(t){var n=t.match(oe);return n?n.map(re).join(" "):t}}),ae=i(i({},Et),{transform:Math.round}),se={borderWidth:jt,borderTopWidth:jt,borderRightWidth:jt,borderBottomWidth:jt,borderLeftWidth:jt,borderRadius:jt,radius:jt,borderTopLeftRadius:jt,borderTopRightRadius:jt,borderBottomRightRadius:jt,borderBottomLeftRadius:jt,width:jt,maxWidth:jt,height:jt,maxHeight:jt,size:jt,top:jt,right:jt,bottom:jt,left:jt,padding:jt,paddingTop:jt,paddingRight:jt,paddingBottom:jt,paddingLeft:jt,margin:jt,marginTop:jt,marginRight:jt,marginBottom:jt,marginLeft:jt,rotate:Ot,rotateX:Ot,rotateY:Ot,rotateZ:Ot,scale:St,scaleX:St,scaleY:St,scaleZ:St,skew:Ot,skewX:Ot,skewY:Ot,distance:jt,translateX:jt,translateY:jt,translateZ:jt,x:jt,y:jt,z:jt,perspective:jt,transformPerspective:jt,opacity:Pt,originX:It,originY:It,originZ:jt,zIndex:ae,fillOpacity:Pt,strokeOpacity:Pt,numOctaves:ae},ue=i(i({},se),{color:qt,backgroundColor:qt,outlineColor:qt,fill:qt,stroke:qt,borderColor:qt,borderTopColor:qt,borderRightColor:qt,borderBottomColor:qt,borderLeftColor:qt,filter:ie,WebkitFilter:ie}),le=function(t){return ue[t]};function ce(t,n){var e,r=le(t);return r!==ie&&(r=nn),null===(e=r.getAnimatableNone)||void 0===e?void 0:e.call(r,n)}var de=!1,fe=function(t){return $n(t)?t[t.length-1]||0:t};function ve(t){var n=t.ease,e=t.times,r=t.yoyo,o=t.flip,s=t.loop,u=a(t,["ease","times","yoyo","flip","loop"]),l=i({},u);return e&&(l.offset=e),u.duration&&(l.duration=Bn(u.duration)),u.repeatDelay&&(l.repeatDelay=Bn(u.repeatDelay)),n&&(l.ease=function(t){return Array.isArray(t)&&"number"!==typeof t[0]}(n)?n.map(qn):qn(n)),"tween"===u.type&&(l.type="keyframes"),(r||s||o)&&(!0,r?l.repeatType="reverse":s?l.repeatType="loop":o&&(l.repeatType="mirror"),l.repeat=s||r||o||u.repeat),"spring"!==u.type&&(l.type="keyframes"),l}function pe(t,n,e){var r;return Array.isArray(n.to)&&(null!==(r=t.duration)&&void 0!==r||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=u([],s(t.to),!1),t.to[0]=t.from)}(n),function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var n=a(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(n).length}(t)||(t=i(i({},t),function(t,n){var e;return e=$n(n)?te:ne[t]||ne.default,i({to:n},e(n))}(e,n.to))),i(i({},n),ve(t))}function he(t,n,e,r,o){var a,s=ge(r,t),u=null!==(a=s.from)&&void 0!==a?a:n.get(),l=_n(t,e);"none"===u&&l&&"string"===typeof e?u=ce(t,e):me(u)&&"string"===typeof e?u=ye(e):!Array.isArray(e)&&me(e)&&"string"===typeof u&&(e=ye(u));var c=_n(t,u);return"You are trying to animate ".concat(t,' from "').concat(u,'" to "').concat(e,'". ').concat(u," is not an animatable value - to enable this animation set ").concat(u," to a value animatable to ").concat(e," via the `style` property."),c&&l&&!1!==s.type?function(){var r={from:u,to:e,velocity:n.getVelocity(),onComplete:o,onUpdate:function(t){return n.set(t)}};return"inertia"===s.type||"decay"===s.type?function(t){var n,e=t.from,r=void 0===e?0:e,o=t.velocity,i=void 0===o?0:o,a=t.min,s=t.max,u=t.power,l=void 0===u?.8:u,c=t.timeConstant,d=void 0===c?750:c,f=t.bounceStiffness,v=void 0===f?500:f,p=t.bounceDamping,h=void 0===p?10:p,m=t.restDelta,y=void 0===m?1:m,g=t.modifyTarget,x=t.driver,b=t.onUpdate,w=t.onComplete,E=t.onStop;function P(t){return void 0!==a&&t<a||void 0!==s&&t>s}function S(t){return void 0===a?s:void 0===s||Math.abs(a-t)<Math.abs(s-t)?a:s}function A(t){null===n||void 0===n||n.stop(),n=In(Object.assign(Object.assign({},t),{driver:x,onUpdate:function(n){var e;null===b||void 0===b||b(n),null===(e=t.onUpdate)||void 0===e||e.call(t,n)},onComplete:w,onStop:E}))}function T(t){A(Object.assign({type:"spring",stiffness:v,damping:h,restDelta:y},t))}if(P(r))T({from:r,velocity:i,to:S(r)});else{var V=l*i+r;"undefined"!==typeof g&&(V=g(V));var C,M,R=S(V),L=R===a?-1:1;A({type:"decay",from:r,velocity:i,timeConstant:d,power:l,restDelta:y,modifyTarget:g,onUpdate:P(V)?function(t){C=M,M=t,i=J(t-C,_().delta),(1===L&&t>R||-1===L&&t<R)&&T({from:t,to:R,velocity:i})}:void 0})}return{stop:function(){return null===n||void 0===n?void 0:n.stop()}}}(i(i({},r),s)):In(i(i({},pe(s,r,t)),{onUpdate:function(t){var n;r.onUpdate(t),null===(n=s.onUpdate)||void 0===n||n.call(s,t)},onComplete:function(){var t;r.onComplete(),null===(t=s.onComplete)||void 0===t||t.call(s)}}))}:function(){var t,r,i=fe(e);return n.set(i),o(),null===(t=null===s||void 0===s?void 0:s.onUpdate)||void 0===t||t.call(s,i),null===(r=null===s||void 0===s?void 0:s.onComplete)||void 0===r||r.call(s),{stop:function(){}}}}function me(t){return 0===t||"string"===typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function ye(t){return"number"===typeof t?0:ce("",t)}function ge(t,n){return t[n]||t.default||t}function xe(t,n,e,r){return void 0===r&&(r={}),de&&(r={type:!1}),n.start((function(o){var i,a,s=he(t,n,e,r,o),u=function(t,n){var e,r;return null!==(r=null!==(e=(ge(t,n)||{}).delay)&&void 0!==e?e:t.delay)&&void 0!==r?r:0}(r,t),l=function(){return a=s()};return u?i=window.setTimeout(l,Bn(u)):l(),function(){clearTimeout(i),null===a||void 0===a||a.stop()}}))}var be=["TopLeft","TopRight","BottomLeft","BottomRight"],we=be.length,Ee=function(t){return"string"===typeof t?parseFloat(t):t},Pe=function(t){return"number"===typeof t||jt.test(t)};function Se(t,n){var e;return null!==(e=t[n])&&void 0!==e?e:t.borderRadius}var Ae=Ve(0,.5,An),Te=Ve(.5,.95,bn);function Ve(t,n,e){return function(r){return r<t?0:r>n?1:e(ht(t,n,r))}}function Ce(t,n){t.min=n.min,t.max=n.max}function Me(t,n){Ce(t.x,n.x),Ce(t.y,n.y)}function Re(t){return void 0===t||1===t}function Le(t){var n=t.scale,e=t.scaleX,r=t.scaleY;return!Re(n)||!Re(e)||!Re(r)}function De(t){return Le(t)||Oe(t.x)||Oe(t.y)||t.z||t.rotate||t.rotateX||t.rotateY}function Oe(t){return t&&"0%"!==t}function ke(t,n,e){return e+n*(t-e)}function je(t,n,e,r,o){return void 0!==o&&(t=ke(t,o,r)),ke(t,e,r)+n}function Fe(t,n,e,r,o){void 0===n&&(n=0),void 0===e&&(e=1),t.min=je(t.min,n,e,r,o),t.max=je(t.max,n,e,r,o)}function Ue(t,n){var e=n.x,r=n.y;Fe(t.x,e.translate,e.scale,e.originPoint),Fe(t.y,r.translate,r.scale,r.originPoint)}function Ie(t,n){t.min=t.min+n,t.max=t.max+n}function Be(t,n,e){var r=s(e,3),o=r[0],i=r[1],a=r[2],u=void 0!==n[a]?n[a]:.5,l=K(t.min,t.max,u);Fe(t,n[o],n[i],l,n.scale)}var Ne=["x","scaleX","originX"],ze=["y","scaleY","originY"];function He(t,n){Be(t.x,n,Ne),Be(t.y,n,ze)}var Ze=function(t){return t.hasOwnProperty("x")&&t.hasOwnProperty("y")},We=function(t){return Ze(t)&&t.hasOwnProperty("z")},Ye=function(t,n){return Math.abs(t-n)};function Xe(t,n){if(en(t)&&en(n))return Ye(t,n);if(Ze(t)&&Ze(n)){var e=Ye(t.x,n.x),r=Ye(t.y,n.y),o=We(t)&&We(n)?Ye(t.z,n.z):0;return Math.sqrt(Math.pow(e,2)+Math.pow(r,2)+Math.pow(o,2))}}function Ge(t){return t.max-t.min}function qe(t,n,e){return void 0===n&&(n=0),void 0===e&&(e=.01),Xe(t,n)<e}function _e(t,n,e,r){void 0===r&&(r=.5),t.origin=r,t.originPoint=K(n.min,n.max,t.origin),t.scale=Ge(e)/Ge(n),(qe(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=K(e.min,e.max,t.origin)-t.originPoint,(qe(t.translate)||isNaN(t.translate))&&(t.translate=0)}function $e(t,n,e,r){_e(t.x,n.x,e.x,null===r||void 0===r?void 0:r.originX),_e(t.y,n.y,e.y,null===r||void 0===r?void 0:r.originY)}function Ke(t,n,e){t.min=e.min+n.min,t.max=t.min+Ge(n)}function Je(t,n,e){t.min=n.min-e.min,t.max=t.min+Ge(n)}function Qe(t,n,e){Je(t.x,n.x,e.x),Je(t.y,n.y,e.y)}function tr(t,n,e,r,o){return t=ke(t-=n,1/e,r),void 0!==o&&(t=ke(t,1/o,r)),t}function nr(t,n,e,r,o){var i=s(e,3),a=i[0],u=i[1],l=i[2];!function(t,n,e,r,o,i,a){if(void 0===n&&(n=0),void 0===e&&(e=1),void 0===r&&(r=.5),void 0===i&&(i=t),void 0===a&&(a=t),kt.test(n)&&(n=parseFloat(n),n=K(a.min,a.max,n/100)-a.min),"number"===typeof n){var s=K(i.min,i.max,r);t===i&&(s-=n),t.min=tr(t.min,n,e,s,o),t.max=tr(t.max,n,e,s,o)}}(t,n[a],n[u],n[l],n.scale,r,o)}var er=["x","scaleX","originX"],rr=["y","scaleY","originY"];function or(t,n,e,r){nr(t.x,n,er,null===e||void 0===e?void 0:e.x,null===r||void 0===r?void 0:r.x),nr(t.y,n,rr,null===e||void 0===e?void 0:e.y,null===r||void 0===r?void 0:r.y)}function ir(t){return 0===t.translate&&1===t.scale}function ar(t){return ir(t.x)&&ir(t.y)}function sr(t,n){return t.x.min===n.x.min&&t.x.max===n.x.max&&t.y.min===n.y.min&&t.y.max===n.y.max}var ur=function(){function t(){this.members=[]}return t.prototype.add=function(t){Q(this.members,t),t.scheduleRender()},t.prototype.remove=function(t){if(tt(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var n=this.members[this.members.length-1];n&&this.promote(n)}},t.prototype.relegate=function(t){var n,e=this.members.findIndex((function(n){return t===n}));if(0===e)return!1;for(var r=e;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){n=o;break}}return!!n&&(this.promote(n),!0)},t.prototype.promote=function(t,n){var e,r=this.lead;t!==r&&(this.prevLead=r,this.lead=t,t.show(),r&&(r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues,t.snapshot.isShared=!0),(null===(e=t.root)||void 0===e?void 0:e.isUpdating)&&(t.isLayoutDirty=!0),!1===t.options.crossfade&&r.hide()))},t.prototype.exitAnimationComplete=function(){this.members.forEach((function(t){var n,e,r,o,i;null===(e=(n=t.options).onExitComplete)||void 0===e||e.call(n),null===(i=null===(r=t.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===i||i.call(o)}))},t.prototype.scheduleRender=function(){this.members.forEach((function(t){t.instance&&t.scheduleRender(!1)}))},t.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},t}(),lr={};function cr(t,n,e){var r=t.x.translate/n.x,o=t.y.translate/n.y,i="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(e){var a=e.rotate,s=e.rotateX,u=e.rotateY;a&&(i+="rotate(".concat(a,"deg) ")),s&&(i+="rotateX(".concat(s,"deg) ")),u&&(i+="rotateY(".concat(u,"deg) "))}return"translate3d(0px, 0px, 0) scale(1, 1)"===(i+="scale(".concat(t.x.scale,", ").concat(t.y.scale,")"))?"none":i}function dr(t){return[t("x"),t("y")]}var fr=["","X","Y","Z"],vr=["transformPerspective","x","y","z"];function pr(t,n){return vr.indexOf(t)-vr.indexOf(n)}["translate","scale","rotate","skew"].forEach((function(t){return fr.forEach((function(n){return vr.push(t+n)}))}));var hr=new Set(vr);function mr(t){return hr.has(t)}var yr=new Set(["originX","originY","originZ"]);function gr(t){return yr.has(t)}var xr=function(t,n){return t.depth-n.depth},br=function(){function t(){this.children=[],this.isDirty=!1}return t.prototype.add=function(t){Q(this.children,t),this.isDirty=!0},t.prototype.remove=function(t){tt(this.children,t),this.isDirty=!0},t.prototype.forEach=function(t){this.isDirty&&this.children.sort(xr),this.isDirty=!1,this.children.forEach(t)},t}();function wr(t){var n,e=ot(t)?t.get():t;return n=e,Boolean(n&&"object"===typeof n&&n.mix&&n.toValue)?e.toValue():e}var Er={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Pr(t){var n=t.attachResizeListener,e=t.defaultParent,r=t.measureScroll,o=t.resetTransform;return function(){function t(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=null===e||void 0===e?void 0:e()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(Rr),o.nodes.forEach(Lr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=t,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?u(u([],s(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(var i=0;i<this.path.length;i++)this.path[i].shouldResetTransform=!0;this.root===this&&(this.nodes=new br)}return t.prototype.addEventListener=function(t,n){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new nt),this.eventHandlers.get(t).add(n)},t.prototype.notifyListeners=function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];var r=this.eventHandlers.get(t);null===r||void 0===r||r.notify.apply(r,u([],s(n),!1))},t.prototype.hasListeners=function(t){return this.eventHandlers.has(t)},t.prototype.registerPotentialNode=function(t,n){this.potentialNodes.set(t,n)},t.prototype.mount=function(t,e){var r,o=this;if(void 0===e&&(e=!1),!this.instance){this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;var a=this.options,s=a.layoutId,u=a.layout,l=a.visualElement;if(l&&!l.getInstance()&&l.mount(t),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),e&&(u||s)&&(this.isLayoutDirty=!0),n){var c,d=function(){return o.root.updateBlockedByResize=!1};n(t,(function(){o.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(d,250),Er.hasAnimatedSinceResize&&(Er.hasAnimatedSinceResize=!1,o.nodes.forEach(Mr))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&l&&(s||u)&&this.addEventListener("didUpdate",(function(t){var n,e,r,a,s,u=t.delta,c=t.hasLayoutChanged,d=t.hasRelativeTargetChanged,f=t.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var v=null!==(e=null!==(n=o.options.transition)&&void 0!==n?n:l.getDefaultTransition())&&void 0!==e?e:Ur,p=l.getProps().onLayoutAnimationComplete,h=!o.targetLayout||!sr(o.targetLayout,f)||d,m=!c&&d;if((null===(r=o.resumeFrom)||void 0===r?void 0:r.instance)||m||c&&(h||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(u,m);var y=i(i({},ge(v,"layout")),{onComplete:p});l.shouldReduceMotion&&(y.delay=0,y.type=!1),o.startAnimation(y)}else c||0!==o.animationProgress||o.finishAnimation(),o.isLead()&&(null===(s=(a=o.options).onExitComplete)||void 0===s||s.call(a));o.targetLayout=f}))}},t.prototype.unmount=function(){var t,n;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(n=this.parent)||void 0===n||n.children.delete(this),this.instance=void 0,W.preRender(this.updateProjection)},t.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},t.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},t.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},t.prototype.isTreeAnimationBlocked=function(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1},t.prototype.startUpdate=function(){var t;this.isUpdateBlocked()||(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(Dr))},t.prototype.willUpdate=function(t){var n,e,r;if(void 0===t&&(t=!0),this.root.isUpdateBlocked())null===(e=(n=this.options).onExitComplete)||void 0===e||e.call(n);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var i=this.path[o];i.shouldResetTransform=!0,i.updateScroll()}var a=this.options,s=a.layoutId,u=a.layout;if(void 0!==s||u){var l=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null===l||void 0===l?void 0:l(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}}},t.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Vr);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Ir),this.potentialNodes.clear()),this.nodes.forEach(Cr),this.nodes.forEach(Sr),this.nodes.forEach(Ar),this.clearAllSnapshots(),Y.update(),Y.preRender(),Y.render())},t.prototype.clearAllSnapshots=function(){this.nodes.forEach(Tr),this.sharedNodes.forEach(Or)},t.prototype.scheduleUpdateProjection=function(){$.preRender(this.updateProjection,!1,!0)},t.prototype.scheduleCheckAfterUnmount=function(){var t=this;$.postRender((function(){t.isLayoutDirty?t.root.didUpdate():t.root.checkUpdateFailed()}))},t.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var t=this.measure(),n=this.removeTransform(this.removeElementScroll(t));Nr(n),this.snapshot={measured:t,layout:n,latestValues:{}}}},t.prototype.updateLayout=function(){var t;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var n=0;n<this.path.length;n++){this.path[n].updateScroll()}var e=this.measure();Nr(e);var r=this.layout;this.layout={measured:e,actual:this.removeElementScroll(e)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(t=this.options.visualElement)||void 0===t||t.notifyLayoutMeasure(this.layout.actual,null===r||void 0===r?void 0:r.actual)}},t.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.scroll=r(this.instance))},t.prototype.resetTransform=function(){var t;if(o){var n=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!ar(this.projectionDelta),r=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,i=null===r||void 0===r?void 0:r(this.latestValues,""),a=i!==this.prevTransformTemplateValue;n&&(e||De(this.latestValues)||a)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},t.prototype.measure=function(){var t=this.options.visualElement;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};var n=t.measureViewportBox(),e=this.root.scroll;return e&&(Ie(n.x,e.x),Ie(n.y,e.y)),n},t.prototype.removeElementScroll=function(t){var n={x:{min:0,max:0},y:{min:0,max:0}};Me(n,t);for(var e=0;e<this.path.length;e++){var r=this.path[e],o=r.scroll,i=r.options;r!==this.root&&o&&i.layoutScroll&&(Ie(n.x,o.x),Ie(n.y,o.y))}return n},t.prototype.applyTransform=function(t,n){void 0===n&&(n=!1);var e={x:{min:0,max:0},y:{min:0,max:0}};Me(e,t);for(var r=0;r<this.path.length;r++){var o=this.path[r];!n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&He(e,{x:-o.scroll.x,y:-o.scroll.y}),De(o.latestValues)&&He(e,o.latestValues)}return De(this.latestValues)&&He(e,this.latestValues),e},t.prototype.removeTransform=function(t){var n,e={x:{min:0,max:0},y:{min:0,max:0}};Me(e,t);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&De(o.latestValues)){Le(o.latestValues)&&o.updateSnapshot();var i={x:{min:0,max:0},y:{min:0,max:0}};Me(i,o.measure()),or(e,o.latestValues,null===(n=o.snapshot)||void 0===n?void 0:n.layout,i)}}return De(this.latestValues)&&or(e,this.latestValues),e},t.prototype.setTargetDelta=function(t){this.targetDelta=t,this.root.scheduleUpdateProjection()},t.prototype.setOptions=function(t){var n;this.options=i(i(i({},this.options),t),{crossfade:null===(n=t.crossfade)||void 0===n||n})},t.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},t.prototype.resolveTargetDelta=function(){var t,n,e,r,o=this.options,i=o.layout,a=o.layoutId;this.layout&&(i||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Qe(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Me(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(n=this.target,e=this.relativeTarget,r=this.relativeParent.target,Ke(n.x,e.x,r.x),Ke(n.y,e.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Me(this.target,this.layout.actual),Ue(this.target,this.targetDelta)):Me(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Qe(this.relativeTargetOrigin,this.target,this.relativeParent.target),Me(this.relativeTarget,this.relativeTargetOrigin)))))},t.prototype.getClosestProjectingParent=function(){if(this.parent&&!De(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},t.prototype.calcProjection=function(){var t,n=this.options,e=n.layout,r=n.layoutId;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(e||r)){var o=this.getLead();Me(this.layoutCorrected,this.layout.actual),function(t,n,e,r){var o,i;void 0===r&&(r=!1);var a=e.length;if(a){var s,u;n.x=n.y=1;for(var l=0;l<a;l++)u=(s=e[l]).projectionDelta,"contents"!==(null===(i=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===i?void 0:i.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&He(t,{x:-s.scroll.x,y:-s.scroll.y}),u&&(n.x*=u.x.scale,n.y*=u.y.scale,Ue(t,u)),r&&De(s.latestValues)&&He(t,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var i=o.target;if(i){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var a=this.treeScale.x,s=this.treeScale.y,u=this.projectionTransform;$e(this.projectionDelta,this.layoutCorrected,i,this.latestValues),this.projectionTransform=cr(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",i))}}},t.prototype.hide=function(){this.isVisible=!1},t.prototype.show=function(){this.isVisible=!0},t.prototype.scheduleRender=function(t){var n,e,r;void 0===t&&(t=!0),null===(e=(n=this.options).scheduleRender)||void 0===e||e.call(n),t&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},t.prototype.setAnimationOrigin=function(t,n){var e,r=this;void 0===n&&(n=!1);var o=this.snapshot,a=(null===o||void 0===o?void 0:o.latestValues)||{},s=i({},this.latestValues),u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!n;var l={x:{min:0,max:0},y:{min:0,max:0}},c=null===o||void 0===o?void 0:o.isShared,d=((null===(e=this.getStack())||void 0===e?void 0:e.members.length)||0)<=1,f=Boolean(c&&!d&&!0===this.options.crossfade&&!this.path.some(Fr));this.animationProgress=0,this.mixTargetDelta=function(n){var e,o,i,v,p,h=n/1e3;kr(u.x,t.x,h),kr(u.y,t.y,h),r.setTargetDelta(u),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(e=r.relativeParent)||void 0===e?void 0:e.layout)&&(Qe(l,r.layout.actual,r.relativeParent.layout.actual),o=r.relativeTarget,i=r.relativeTargetOrigin,v=l,p=h,jr(o.x,i.x,v.x,p),jr(o.y,i.y,v.y,p)),c&&(r.animationValues=s,function(t,n,e,r,o,i){var a,s,u,l;o?(t.opacity=K(0,null!==(a=e.opacity)&&void 0!==a?a:1,Ae(r)),t.opacityExit=K(null!==(s=n.opacity)&&void 0!==s?s:1,0,Te(r))):i&&(t.opacity=K(null!==(u=n.opacity)&&void 0!==u?u:1,null!==(l=e.opacity)&&void 0!==l?l:1,r));for(var c=0;c<we;c++){var d="border".concat(be[c],"Radius"),f=Se(n,d),v=Se(e,d);void 0===f&&void 0===v||(f||(f=0),v||(v=0),0===f||0===v||Pe(f)===Pe(v)?(t[d]=Math.max(K(Ee(f),Ee(v),r),0),(kt.test(v)||kt.test(f))&&(t[d]+="%")):t[d]=v)}(n.rotate||e.rotate)&&(t.rotate=K(n.rotate||0,e.rotate||0,r))}(s,a,r.latestValues,h,f,d)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=h},this.mixTargetDelta(0)},t.prototype.startAnimation=function(t){var n,e,r=this;null===(n=this.currentAnimation)||void 0===n||n.stop(),this.resumingFrom&&(null===(e=this.resumingFrom.currentAnimation)||void 0===e||e.stop()),this.pendingAnimation&&(W.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$.update((function(){Er.hasAnimatedSinceResize=!0,r.currentAnimation=function(t,n,e){void 0===e&&(e={});var r=ot(t)?t:rt(t);return xe("",r,n,e),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,1e3,i(i({},t),{onUpdate:function(n){var e;r.mixTargetDelta(n),null===(e=t.onUpdate)||void 0===e||e.call(t,n)},onComplete:function(){var n;null===(n=t.onComplete)||void 0===n||n.call(t),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},t.prototype.completeAnimation=function(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},t.prototype.finishAnimation=function(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},t.prototype.applyTransformsToTarget=function(){var t=this.getLead(),n=t.targetWithTransforms,e=t.target,r=t.layout,o=t.latestValues;n&&e&&r&&(Me(n,e),He(n,o),$e(this.projectionDeltaWithTransform,this.layoutCorrected,n,o))},t.prototype.registerSharedNode=function(t,n){var e,r,o;this.sharedNodes.has(t)||this.sharedNodes.set(t,new ur),this.sharedNodes.get(t).add(n),n.promote({transition:null===(e=n.options.initialPromotionConfig)||void 0===e?void 0:e.transition,preserveFollowOpacity:null===(o=null===(r=n.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,n)})},t.prototype.isLead=function(){var t=this.getStack();return!t||t.lead===this},t.prototype.getLead=function(){var t;return this.options.layoutId&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this},t.prototype.getPrevLead=function(){var t;return this.options.layoutId?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0},t.prototype.getStack=function(){var t=this.options.layoutId;if(t)return this.root.sharedNodes.get(t)},t.prototype.promote=function(t){var n=void 0===t?{}:t,e=n.needsReset,r=n.transition,o=n.preserveFollowOpacity,i=this.getStack();i&&i.promote(this,o),e&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},t.prototype.relegate=function(){var t=this.getStack();return!!t&&t.relegate(this)},t.prototype.resetRotation=function(){var t=this.options.visualElement;if(t){for(var n=!1,e={},r=0;r<fr.length;r++){var o="rotate"+fr[r];t.getStaticValue(o)&&(n=!0,e[o]=t.getStaticValue(o),t.setStaticValue(o,0))}if(n){for(var o in null===t||void 0===t||t.syncRender(),e)t.setStaticValue(o,e[o]);t.scheduleRender()}}},t.prototype.getProjectionStyles=function(t){var n,e,r,o,i,a;void 0===t&&(t={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var u=null===(n=this.options.visualElement)||void 0===n?void 0:n.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=wr(t.pointerEvents)||"",s.transform=u?u(this.latestValues,""):"none",s;var l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){var c={};return this.options.layoutId&&(c.opacity=null!==(e=this.latestValues.opacity)&&void 0!==e?e:1,c.pointerEvents=wr(t.pointerEvents)||""),this.hasProjected&&!De(this.latestValues)&&(c.transform=u?u({},""):"none",this.hasProjected=!1),c}var d=l.animationValues||l.latestValues;this.applyTransformsToTarget(),s.transform=cr(this.projectionDeltaWithTransform,this.treeScale,d),u&&(s.transform=u(d,s.transform));var f=this.projectionDelta,v=f.x,p=f.y;for(var h in s.transformOrigin="".concat(100*v.origin,"% ").concat(100*p.origin,"% 0"),l.animationValues?s.opacity=l===this?null!==(o=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=l===this?null!==(i=d.opacity)&&void 0!==i?i:"":null!==(a=d.opacityExit)&&void 0!==a?a:0,lr)if(void 0!==d[h]){var m=lr[h],y=m.correct,g=m.applyTo,x=y(d[h],l);if(g)for(var b=g.length,w=0;w<b;w++)s[g[w]]=x;else s[h]=x}return this.options.layoutId&&(s.pointerEvents=l===this?wr(t.pointerEvents)||"":"none"),s},t.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},t.prototype.resetTree=function(){this.root.nodes.forEach((function(t){var n;return null===(n=t.currentAnimation)||void 0===n?void 0:n.stop()})),this.root.nodes.forEach(Vr),this.root.sharedNodes.clear()},t}()}function Sr(t){t.updateLayout()}function Ar(t){var n,e,r,o,i=null!==(e=null===(n=t.resumeFrom)||void 0===n?void 0:n.snapshot)&&void 0!==e?e:t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){var a=t.layout,s=a.actual,u=a.measured;"size"===t.options.animationType?dr((function(t){var n=i.isShared?i.measured[t]:i.layout[t],e=Ge(n);n.min=s[t].min,n.max=n.min+e})):"position"===t.options.animationType&&dr((function(t){var n=i.isShared?i.measured[t]:i.layout[t],e=Ge(s[t]);n.max=n.min+e}));var l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};$e(l,s,i.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i.isShared?$e(c,t.applyTransform(u,!0),i.measured):$e(c,s,i.layout);var d=!ar(l),f=!1;if(!t.resumeFrom&&(t.relativeParent=t.getClosestProjectingParent(),t.relativeParent&&!t.relativeParent.resumeFrom)){var v=t.relativeParent,p=v.snapshot,h=v.layout;if(p&&h){var m={x:{min:0,max:0},y:{min:0,max:0}};Qe(m,i.layout,p.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};Qe(y,s,h.actual),sr(m,y)||(f=!0)}}t.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else t.isLead()&&(null===(o=(r=t.options).onExitComplete)||void 0===o||o.call(r));t.options.transition=void 0}function Tr(t){t.clearSnapshot()}function Vr(t){t.clearMeasurements()}function Cr(t){var n=t.options.visualElement;(null===n||void 0===n?void 0:n.getProps().onBeforeLayoutMeasure)&&n.notifyBeforeLayoutMeasure(),t.resetTransform()}function Mr(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function Rr(t){t.resolveTargetDelta()}function Lr(t){t.calcProjection()}function Dr(t){t.resetRotation()}function Or(t){t.removeLeadSnapshot()}function kr(t,n,e){t.translate=K(n.translate,0,e),t.scale=K(n.scale,1,e),t.origin=n.origin,t.originPoint=n.originPoint}function jr(t,n,e,r){t.min=K(n.min,e.min,r),t.max=K(n.max,e.max,r)}function Fr(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}var Ur={duration:.45,ease:[.4,0,.1,1]};function Ir(t,n){for(var e=t.root,r=t.path.length-1;r>=0;r--)if(Boolean(t.path[r].instance)){e=t.path[r];break}var o=(e&&e!==t.root?e.instance:document).querySelector('[data-projection-id="'.concat(n,'"]'));o&&t.mount(o,!0)}function Br(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function Nr(t){Br(t.x),Br(t.y)}var zr=1;var Hr=(0,l.createContext)({}),Zr=(0,l.createContext)({});var Wr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},n.prototype.componentDidUpdate=function(){},n.prototype.updateProps=function(){var t=this.props,n=t.visualElement,e=t.props;n&&n.setProps(e)},n.prototype.render=function(){return this.props.children},n}(l.Component);function Yr(t){var n=t.preloadedFeatures,e=t.createVisualElement,r=t.projectionNodeConstructor,o=t.useRender,a=t.useVisualState,s=t.Component;return n&&function(t){for(var n in t)null!==t[n]&&("projectionNodeConstructor"===n?d.projectionNodeConstructor=t[n]:d[n].Component=t[n])}(n),(0,l.forwardRef)((function(t,n){var u=function(t){var n,e=t.layoutId,r=null===(n=(0,l.useContext)(Hr))||void 0===n?void 0:n.id;return r&&void 0!==e?r+"-"+e:e}(t);t=i(i({},t),{layoutId:u});var c=(0,l.useContext)(h),y=null,x=L(t),b=c.isStatic?void 0:O((function(){if(Er.hasEverUpdated)return zr++})),w=a(t,c.isStatic);return!c.isStatic&&g&&(x.visualElement=P(s,w,i(i({},c),t),e),function(t,n,e,r){var o,i=n.layoutId,a=n.layout,s=n.drag,u=n.dragConstraints,c=n.layoutScroll,d=(0,l.useContext)(Zr);r&&e&&!(null===e||void 0===e?void 0:e.projection)&&(e.projection=new r(t,e.getLatestValues(),null===(o=e.parent)||void 0===o?void 0:o.projection),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:Boolean(s)||u&&S(u),visualElement:e,scheduleRender:function(){return e.scheduleRender()},animationType:"string"===typeof a?a:"both",initialPromotionConfig:d,layoutScroll:c}))}(b,t,x.visualElement,r||d.projectionNodeConstructor),y=function(t,n,e){var r=[];if((0,l.useContext)(f),!n)return null;for(var o=0;o<p;o++){var a=v[o],s=d[a],u=s.isEnabled,c=s.Component;u(t)&&c&&r.push(l.createElement(c,i({key:a},t,{visualElement:n})))}return r}(t,x.visualElement)),l.createElement(Wr,{visualElement:x.visualElement,props:i(i({},c),t)},y,l.createElement(m.Provider,{value:x},o(s,t,b,function(t,n,e){return(0,l.useCallback)((function(r){var o;r&&(null===(o=t.mount)||void 0===o||o.call(t,r)),n&&(r?n.mount(r):n.unmount()),e&&("function"===typeof e?e(r):S(e)&&(e.current=r))}),[n])}(w,x.visualElement,n),w,c.isStatic,x.visualElement)))}))}function Xr(t){function n(n,e){return void 0===e&&(e={}),Yr(t(n,e))}if("undefined"===typeof Proxy)return n;var e=new Map;return new Proxy(n,{get:function(t,r){return e.has(r)||e.set(r,n(r)),e.get(r)}})}var Gr=["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 qr(t){return"string"===typeof t&&!t.includes("-")&&!!(Gr.indexOf(t)>-1||/[A-Z]/.test(t))}function _r(t,n){var e=n.layout,r=n.layoutId;return mr(t)||gr(t)||(e||void 0!==r)&&(!!lr[t]||"opacity"===t)}var $r={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Kr(t){return t.startsWith("--")}var Jr=function(t,n){return n&&"number"===typeof t?n.transform(t):t};function Qr(t,n,e,r){var o,i=t.style,a=t.vars,s=t.transform,u=t.transformKeys,l=t.transformOrigin;u.length=0;var c=!1,d=!1,f=!0;for(var v in n){var p=n[v];if(Kr(v))a[v]=p;else{var h=se[v],m=Jr(p,h);if(mr(v)){if(c=!0,s[v]=m,u.push(v),!f)continue;p!==(null!==(o=h.default)&&void 0!==o?o:0)&&(f=!1)}else gr(v)?(l[v]=m,d=!0):i[v]=m}}c?i.transform=function(t,n,e,r){var o=t.transform,i=t.transformKeys,a=n.enableHardwareAcceleration,s=void 0===a||a,u=n.allowTransformNone,l=void 0===u||u,c="";i.sort(pr);for(var d=!1,f=i.length,v=0;v<f;v++){var p=i[v];c+="".concat($r[p]||p,"(").concat(o[p],") "),"z"===p&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),r?c=r(o,e?"":c):l&&e&&(c="none"),c}(t,e,f,r):r?i.transform=r({},""):!n.transform&&i.transform&&(i.transform="none"),d&&(i.transformOrigin=function(t){var n=t.originX,e=void 0===n?"50%":n,r=t.originY,o=void 0===r?"50%":r,i=t.originZ,a=void 0===i?0:i;return"".concat(e," ").concat(o," ").concat(a)}(l))}var to=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function no(t,n,e){for(var r in n)ot(n[r])||_r(r,e)||(t[r]=n[r])}function eo(t,n,e){var r={};return no(r,t.style||{},t),Object.assign(r,function(t,n,e){var r=t.transformTemplate;return(0,l.useMemo)((function(){var t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Qr(t,n,{enableHardwareAcceleration:!e},r);var o=t.style;return i(i({},t.vars),o)}),[n])}(t,n,e)),t.transformValues&&(r=t.transformValues(r)),r}function ro(t,n,e){var r={},o=eo(t,n,e);return Boolean(t.drag)&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),r.style=o,r}var oo=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function io(t){return oo.has(t)}var ao,so=function(t){return!io(t)};try{(ao=require("@emotion/is-prop-valid").default)&&(so=function(t){return t.startsWith("on")?!io(t):ao(t)})}catch(Da){}function uo(t,n,e){return"string"===typeof t?t:jt.transform(n+e*t)}var lo={offset:"stroke-dashoffset",array:"stroke-dasharray"},co={offset:"strokeDashoffset",array:"strokeDasharray"};function fo(t,n,e,r){var o=n.attrX,i=n.attrY,s=n.originX,u=n.originY,l=n.pathLength,c=n.pathSpacing,d=void 0===c?1:c,f=n.pathOffset,v=void 0===f?0:f;Qr(t,a(n,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),e,r),t.attrs=t.style,t.style={};var p=t.attrs,h=t.style,m=t.dimensions;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(void 0!==s||void 0!==u||h.transform)&&(h.transformOrigin=function(t,n,e){var r=uo(n,t.x,t.width),o=uo(e,t.y,t.height);return"".concat(r," ").concat(o)}(m,void 0!==s?s:.5,void 0!==u?u:.5)),void 0!==o&&(p.x=o),void 0!==i&&(p.y=i),void 0!==l&&function(t,n,e,r,o){void 0===e&&(e=1),void 0===r&&(r=0),void 0===o&&(o=!0),t.pathLength=1;var i=o?lo:co;t[i.offset]=jt.transform(-r);var a=jt.transform(n),s=jt.transform(e);t[i.array]="".concat(a," ").concat(s)}(p,l,d,v,!1)}var vo=function(){return i(i({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function po(t,n){var e=(0,l.useMemo)((function(){var e=vo();return fo(e,n,{enableHardwareAcceleration:!1},t.transformTemplate),i(i({},e.attrs),{style:i({},e.style)})}),[n]);if(t.style){var r={};no(r,t.style,t),e.style=i(i({},r),e.style)}return e}function ho(t){void 0===t&&(t=!1);return function(n,e,r,o,a,s){var u=a.latestValues,c=(qr(n)?po:ro)(e,u,s),d=function(t,n,e){var r={};for(var o in t)(so(o)||!0===e&&io(o)||!n&&!io(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(e,"string"===typeof n,t),f=i(i(i({},d),c),{ref:o});return r&&(f["data-projection-id"]=r),(0,l.createElement)(n,f)}}var mo=/([a-z])([A-Z])/g,yo=function(t){return t.replace(mo,"$1-$2").toLowerCase()};function go(t,n,e,r){var o=n.style,i=n.vars;for(var a in Object.assign(t.style,o,r&&r.getProjectionStyles(e)),i)t.style.setProperty(a,i[a])}var xo=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function bo(t,n){for(var e in go(t,n),n.attrs)t.setAttribute(xo.has(e)?e:yo(e),n.attrs[e])}function wo(t){var n=t.style,e={};for(var r in n)(ot(n[r])||_r(r,t))&&(e[r]=n[r]);return e}function Eo(t){var n=wo(t);for(var e in t){if(ot(t[e]))n["x"===e||"y"===e?"attr"+e.toUpperCase():e]=t[e]}return n}function Po(t){return"object"===typeof t&&"function"===typeof t.start}function So(t,n,e,r){var o=t.scrapeMotionValuesFromProps,i=t.createRenderState,a=t.onMount,s={latestValues:To(n,e,r,o),renderState:i()};return a&&(s.mount=function(t){return a(n,t,s)}),s}var Ao=function(t){return function(n,e){var r=(0,l.useContext)(m),o=(0,l.useContext)(y);return e?So(t,n,r,o):O((function(){return So(t,n,r,o)}))}};function To(t,n,e,r){var o={},i=!1===(null===e||void 0===e?void 0:e.initial),s=r(t);for(var u in s)o[u]=wr(s[u]);var l=t.initial,c=t.animate,d=M(t),f=R(t);n&&f&&!d&&!1!==t.inherit&&(null!==l&&void 0!==l||(l=n.initial),null!==c&&void 0!==c||(c=n.animate));var v=i||!1===l,p=v?c:l;p&&"boolean"!==typeof p&&!Po(p)&&(Array.isArray(p)?p:[p]).forEach((function(n){var e=V(t,n);if(e){var r=e.transitionEnd;e.transition;var i=a(e,["transitionEnd","transition"]);for(var s in i){var u=i[s];if(Array.isArray(u))u=u[v?u.length-1:0];null!==u&&(o[s]=u)}for(var s in r)o[s]=r[s]}}));return o}var Vo,Co={useVisualState:Ao({scrapeMotionValuesFromProps:Eo,createRenderState:vo,onMount:function(t,n,e){var r=e.renderState,o=e.latestValues;try{r.dimensions="function"===typeof n.getBBox?n.getBBox():n.getBoundingClientRect()}catch(i){r.dimensions={x:0,y:0,width:0,height:0}}fo(r,o,{enableHardwareAcceleration:!1},t.transformTemplate),bo(n,r)}})},Mo={useVisualState:Ao({scrapeMotionValuesFromProps:wo,createRenderState:to})};function Ro(t,n,e,r){return t.addEventListener(n,e,r),function(){return t.removeEventListener(n,e,r)}}function Lo(t,n,e,r){(0,l.useEffect)((function(){var o=t.current;if(e&&o)return Ro(o,n,e,r)}),[t,n,e,r])}function Do(t){return"undefined"!==typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function Oo(t){return!!t.touches}!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(Vo||(Vo={}));var ko={pageX:0,pageY:0};function jo(t,n){void 0===n&&(n="page");var e=t.touches[0]||t.changedTouches[0]||ko;return{x:e[n+"X"],y:e[n+"Y"]}}function Fo(t,n){return void 0===n&&(n="page"),{x:t[n+"X"],y:t[n+"Y"]}}function Uo(t,n){return void 0===n&&(n="page"),{point:Oo(t)?jo(t,n):Fo(t,n)}}var Io=function(t,n){void 0===n&&(n=!1);var e,r=function(n){return t(n,Uo(n))};return n?(e=r,function(t){var n=t instanceof MouseEvent;(!n||n&&0===t.button)&&e(t)}):r},Bo={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},No={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function zo(t){return g&&null===window.onpointerdown?t:g&&null===window.ontouchstart?No[t]:g&&null===window.onmousedown?Bo[t]:t}function Ho(t,n,e,r){return Ro(t,zo(n),Io(e,"pointerdown"===n),r)}function Zo(t,n,e,r){return Lo(t,zo(n),e&&Io(e,"pointerdown"===n),r)}function Wo(t){var n=null;return function(){return null===n&&(n=t,function(){n=null})}}var Yo=Wo("dragHorizontal"),Xo=Wo("dragVertical");function Go(t){var n=!1;if("y"===t)n=Xo();else if("x"===t)n=Yo();else{var e=Yo(),r=Xo();e&&r?n=function(){e(),r()}:(e&&e(),r&&r())}return n}function qo(){var t=Go(!0);return!t||(t(),!1)}function _o(t,n,e){return function(r,o){var i;Do(r)&&!qo()&&(null===(i=t.animationState)||void 0===i||i.setActive(Vo.Hover,n),null===e||void 0===e||e(r,o))}}var $o=function t(n,e){return!!e&&(n===e||t(n,e.parentElement))};function Ko(t){return(0,l.useEffect)((function(){return function(){return t()}}),[])}var Jo=new WeakMap,Qo=new WeakMap,ti=function(t){var n;null===(n=Jo.get(t.target))||void 0===n||n(t)},ni=function(t){t.forEach(ti)};function ei(t,n,e){var r=function(t){var n=t.root,e=a(t,["root"]),r=n||document;Qo.has(r)||Qo.set(r,{});var o=Qo.get(r),s=JSON.stringify(e);return o[s]||(o[s]=new IntersectionObserver(ni,i({root:n},e))),o[s]}(n);return Jo.set(t,e),r.observe(t),function(){Jo.delete(t),r.unobserve(t)}}var ri={some:0,all:1};function oi(t,n,e,r){var o=r.root,i=r.margin,a=r.amount,s=void 0===a?"some":a,u=r.once;(0,l.useEffect)((function(){if(t){var r={root:null===o||void 0===o?void 0:o.current,rootMargin:i,threshold:"number"===typeof s?s:ri[s]};return ei(e.getInstance(),r,(function(t){var r,o=t.isIntersecting;if(n.isInView!==o&&(n.isInView=o,!u||o||!n.hasEnteredView)){o&&(n.hasEnteredView=!0),null===(r=e.animationState)||void 0===r||r.setActive(Vo.InView,o);var i=e.getProps(),a=o?i.onViewportEnter:i.onViewportLeave;null===a||void 0===a||a(t)}}))}}),[t,o,i,s])}function ii(t,n,e,r){var o=r.fallback,i=void 0===o||o;(0,l.useEffect)((function(){t&&i&&requestAnimationFrame((function(){var t;n.hasEnteredView=!0;var r=e.getProps().onViewportEnter;null===r||void 0===r||r(null),null===(t=e.animationState)||void 0===t||t.setActive(Vo.InView,!0)}))}),[t])}var ai=function(t){return function(n){return t(n),null}},si={inView:ai((function(t){var n=t.visualElement,e=t.whileInView,r=t.onViewportEnter,o=t.onViewportLeave,i=t.viewport,a=void 0===i?{}:i,s=(0,l.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(e||r||o);a.once&&s.current.hasEnteredView&&(u=!1),("undefined"===typeof IntersectionObserver?ii:oi)(u,s.current,n,a)})),tap:ai((function(t){var n=t.onTap,e=t.onTapStart,r=t.onTapCancel,o=t.whileTap,i=t.visualElement,a=n||e||r||o,s=(0,l.useRef)(!1),u=(0,l.useRef)(null);function c(){var t;null===(t=u.current)||void 0===t||t.call(u),u.current=null}function d(){var t;return c(),s.current=!1,null===(t=i.animationState)||void 0===t||t.setActive(Vo.Tap,!1),!qo()}function f(t,e){d()&&($o(i.getInstance(),t.target)?null===n||void 0===n||n(t,e):null===r||void 0===r||r(t,e))}function v(t,n){d()&&(null===r||void 0===r||r(t,n))}Zo(i,"pointerdown",a?function(t,n){var r;c(),s.current||(s.current=!0,u.current=on(Ho(window,"pointerup",f),Ho(window,"pointercancel",v)),null===(r=i.animationState)||void 0===r||r.setActive(Vo.Tap,!0),null===e||void 0===e||e(t,n))}:void 0),Ko(c)})),focus:ai((function(t){var n=t.whileFocus,e=t.visualElement;Lo(e,"focus",n?function(){var t;null===(t=e.animationState)||void 0===t||t.setActive(Vo.Focus,!0)}:void 0),Lo(e,"blur",n?function(){var t;null===(t=e.animationState)||void 0===t||t.setActive(Vo.Focus,!1)}:void 0)})),hover:ai((function(t){var n=t.onHoverStart,e=t.onHoverEnd,r=t.whileHover,o=t.visualElement;Zo(o,"pointerenter",n||r?_o(o,!0,n):void 0),Zo(o,"pointerleave",e||r?_o(o,!1,e):void 0)}))},ui=0,li=function(){return ui++};function ci(){var t=(0,l.useContext)(y);if(null===t)return[!0,null];var n=t.isPresent,e=t.onExitComplete,r=t.register,o=O(li);(0,l.useEffect)((function(){return r(o)}),[]);return!n&&e?[!1,function(){return null===e||void 0===e?void 0:e(o)}]:[!0]}function di(t,n){if(!Array.isArray(n))return!1;var e=n.length;if(e!==t.length)return!1;for(var r=0;r<e;r++)if(n[r]!==t[r])return!1;return!0}var fi=function(t){return/^0[^.\s]+$/.test(t)},vi=function(t){return function(n){return n.test(t)}},pi=[Et,jt,kt,Ot,Ut,Ft,{test:function(t){return"auto"===t},parse:function(t){return t}}],hi=function(t){return pi.find(vi(t))},mi=u(u([],s(pi),!1),[qt,nn],!1),yi=function(t){return mi.find(vi(t))};function gi(t,n,e){t.hasValue(n)?t.getValue(n).set(e):t.addValue(n,rt(e))}function xi(t,n){var e=C(t,n),r=e?t.makeTargetAnimatable(e,!1):{},o=r.transitionEnd,s=void 0===o?{}:o;r.transition;var u=a(r,["transitionEnd","transition"]);for(var l in u=i(i({},u),s)){gi(t,l,fe(u[l]))}}function bi(t,n){if(n)return(n[t]||n.default||n).from}function wi(t,n,e){var r;void 0===e&&(e={});var o=C(t,n,e.custom),a=(o||{}).transition,u=void 0===a?t.getDefaultTransition()||{}:a;e.transitionOverride&&(u=e.transitionOverride);var l=o?function(){return Ei(t,o,e)}:function(){return Promise.resolve()},c=(null===(r=t.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=u.delayChildren,a=void 0===o?0:o,s=u.staggerChildren,l=u.staggerDirection;return function(t,n,e,r,o,a){void 0===e&&(e=0);void 0===r&&(r=0);void 0===o&&(o=1);var s=[],u=(t.variantChildren.size-1)*r,l=1===o?function(t){return void 0===t&&(t=0),t*r}:function(t){return void 0===t&&(t=0),u-t*r};return Array.from(t.variantChildren).sort(Pi).forEach((function(t,r){s.push(wi(t,n,i(i({},a),{delay:e+l(r)})).then((function(){return t.notifyAnimationComplete(n)})))})),Promise.all(s)}(t,n,a+r,s,l,e)}:function(){return Promise.resolve()},d=u.when;if(d){var f=s("beforeChildren"===d?[l,c]:[c,l],2),v=f[0],p=f[1];return v().then(p)}return Promise.all([l(),c(e.delay)])}function Ei(t,n,e){var r,o=void 0===e?{}:e,s=o.delay,u=void 0===s?0:s,l=o.transitionOverride,c=o.type,d=t.makeTargetAnimatable(n),f=d.transition,v=void 0===f?t.getDefaultTransition():f,p=d.transitionEnd,h=a(d,["transition","transitionEnd"]);l&&(v=l);var m=[],y=c&&(null===(r=t.animationState)||void 0===r?void 0:r.getState()[c]);for(var g in h){var x=t.getValue(g),b=h[g];if(!(!x||void 0===b||y&&Si(y,g))){var w=i({delay:u},v);t.shouldReduceMotion&&mr(g)&&(w=i(i({},w),{type:!1,delay:0}));var E=xe(g,x,b,w);m.push(E)}}return Promise.all(m).then((function(){p&&xi(t,p)}))}function Pi(t,n){return t.sortNodePosition(n)}function Si(t,n){var e=t.protectedKeys,r=t.needsAnimating,o=e.hasOwnProperty(n)&&!0!==r[n];return r[n]=!1,o}var Ai=[Vo.Animate,Vo.InView,Vo.Focus,Vo.Hover,Vo.Tap,Vo.Drag,Vo.Exit],Ti=u([],s(Ai),!1).reverse(),Vi=Ai.length;function Ci(t){return function(n){return Promise.all(n.map((function(n){var e=n.animation,r=n.options;return function(t,n,e){var r;if(void 0===e&&(e={}),t.notifyAnimationStart(n),Array.isArray(n)){var o=n.map((function(n){return wi(t,n,e)}));r=Promise.all(o)}else if("string"===typeof n)r=wi(t,n,e);else{var i="function"===typeof n?C(t,n,e.custom):n;r=Ei(t,i,e)}return r.then((function(){return t.notifyAnimationComplete(n)}))}(t,e,r)})))}}function Mi(t){var n=Ci(t),e=function(){var t;return(t={})[Vo.Animate]=Ri(!0),t[Vo.InView]=Ri(),t[Vo.Hover]=Ri(),t[Vo.Tap]=Ri(),t[Vo.Drag]=Ri(),t[Vo.Focus]=Ri(),t[Vo.Exit]=Ri(),t}(),r={},o=!0,l=function(n,e){var r=C(t,e);if(r){r.transition;var o=r.transitionEnd,s=a(r,["transition","transitionEnd"]);n=i(i(i({},n),s),o)}return n};function c(a,c){for(var d,f=t.getProps(),v=t.getVariantContext(!0)||{},p=[],h=new Set,m={},y=1/0,g=function(n){var r=Ti[n],g=e[r],x=null!==(d=f[r])&&void 0!==d?d:v[r],b=T(x),w=r===c?g.isActive:null;!1===w&&(y=n);var E=x===v[r]&&x!==f[r]&&b;if(E&&o&&t.manuallyAnimateOnMount&&(E=!1),g.protectedKeys=i({},m),!g.isActive&&null===w||!x&&!g.prevProp||Po(x)||"boolean"===typeof x)return"continue";var P=function(t,n){if("string"===typeof n)return n!==t;if(A(n))return!di(n,t);return!1}(g.prevProp,x),S=P||r===c&&g.isActive&&!E&&b||n>y&&b,V=Array.isArray(x)?x:[x],C=V.reduce(l,{});!1===w&&(C={});var M=g.prevResolvedValues,R=void 0===M?{}:M,L=i(i({},R),C),D=function(t){S=!0,h.delete(t),g.needsAnimating[t]=!0};for(var O in L){var k=C[O],j=R[O];m.hasOwnProperty(O)||(k!==j?$n(k)&&$n(j)?!di(k,j)||P?D(O):g.protectedKeys[O]=!0:void 0!==k?D(O):h.add(O):void 0!==k&&h.has(O)?D(O):g.protectedKeys[O]=!0)}g.prevProp=x,g.prevResolvedValues=C,g.isActive&&(m=i(i({},m),C)),o&&t.blockInitialAnimation&&(S=!1),S&&!E&&p.push.apply(p,u([],s(V.map((function(t){return{animation:t,options:i({type:r},a)}}))),!1))},x=0;x<Vi;x++)g(x);if(r=i({},m),h.size){var b={};h.forEach((function(n){var e=t.getBaseTarget(n);void 0!==e&&(b[n]=e)})),p.push({animation:b})}var w=Boolean(p.length);return o&&!1===f.initial&&!t.manuallyAnimateOnMount&&(w=!1),o=!1,w?n(p):Promise.resolve()}return{isAnimated:function(t){return void 0!==r[t]},animateChanges:c,setActive:function(n,r,o){var i;return e[n].isActive===r?Promise.resolve():(null===(i=t.variantChildren)||void 0===i||i.forEach((function(t){var e;return null===(e=t.animationState)||void 0===e?void 0:e.setActive(n,r)})),e[n].isActive=r,c(o,n))},setAnimateFunction:function(e){n=e(t)},getState:function(){return e}}}function Ri(t){return void 0===t&&(t=!1),{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Li={animation:ai((function(t){var n=t.visualElement,e=t.animate;n.animationState||(n.animationState=Mi(n)),Po(e)&&(0,l.useEffect)((function(){return e.subscribe(n)}),[e])})),exit:ai((function(t){var n=t.custom,e=t.visualElement,r=s(ci(),2),o=r[0],i=r[1],a=(0,l.useContext)(y);(0,l.useEffect)((function(){var t,r;e.isPresent=o;var s=null===(t=e.animationState)||void 0===t?void 0:t.setActive(Vo.Exit,!o,{custom:null!==(r=null===a||void 0===a?void 0:a.custom)&&void 0!==r?r:n});!o&&(null===s||void 0===s||s.then(i))}),[o])}))},Di=function(){function t(t,n,e){var r=this,o=(void 0===e?{}:e).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var t=ji(r.lastMoveEventInfo,r.history),n=null!==r.startEvent,e=Xe(t.offset,{x:0,y:0})>=3;if(n||e){var o=t.point,a=_().timestamp;r.history.push(i(i({},o),{timestamp:a}));var s=r.handlers,u=s.onStart,l=s.onMove;n||(u&&u(r.lastMoveEvent,t),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,t)}}},this.handlePointerMove=function(t,n){r.lastMoveEvent=t,r.lastMoveEventInfo=Oi(n,r.transformPagePoint),Do(t)&&0===t.buttons?r.handlePointerUp(t,n):$.update(r.updatePoint,!0)},this.handlePointerUp=function(t,n){r.end();var e=r.handlers,o=e.onEnd,i=e.onSessionEnd,a=ji(Oi(n,r.transformPagePoint),r.history);r.startEvent&&o&&o(t,a),i&&i(t,a)},!(Oo(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=o;var a=Oi(Uo(t),this.transformPagePoint),s=a.point,u=_().timestamp;this.history=[i(i({},s),{timestamp:u})];var l=n.onSessionStart;l&&l(t,ji(a,this.history)),this.removeListeners=on(Ho(window,"pointermove",this.handlePointerMove),Ho(window,"pointerup",this.handlePointerUp),Ho(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),W.update(this.updatePoint)},t}();function Oi(t,n){return n?{point:n(t.point)}:t}function ki(t,n){return{x:t.x-n.x,y:t.y-n.y}}function ji(t,n){var e=t.point;return{point:e,delta:ki(e,Ui(n)),offset:ki(e,Fi(n)),velocity:Ii(n,.1)}}function Fi(t){return t[0]}function Ui(t){return t[t.length-1]}function Ii(t,n){if(t.length<2)return{x:0,y:0};for(var e=t.length-1,r=null,o=Ui(t);e>=0&&(r=t[e],!(o.timestamp-r.timestamp>Bn(n)));)e--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Bi(t,n,e){return{min:void 0!==n?t.min+n:void 0,max:void 0!==e?t.max+e-(t.max-t.min):void 0}}function Ni(t,n){var e,r=n.min-t.min,o=n.max-t.max;return n.max-n.min<t.max-t.min&&(r=(e=s([o,r],2))[0],o=e[1]),{min:r,max:o}}var zi=.35;function Hi(t,n,e){return{min:Zi(t,n),max:Zi(t,e)}}function Zi(t,n){var e;return"number"===typeof t?t:null!==(e=t[n])&&void 0!==e?e:0}function Wi(t){var n=t.top;return{x:{min:t.left,max:t.right},y:{min:n,max:t.bottom}}}function Yi(t,n){return Wi(function(t,n){if(!n)return t;var e=n({x:t.left,y:t.top}),r=n({x:t.right,y:t.bottom});return{top:e.y,left:e.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),n))}var Xi=new WeakMap,Gi=function(){function t(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}return t.prototype.start=function(t,n){var e=this,r=(void 0===n?{}:n).snapToCursor,o=void 0!==r&&r;if(!1!==this.visualElement.isPresent){this.panSession=new Di(t,{onSessionStart:function(t){e.stopAnimation(),o&&e.snapToCursor(Uo(t,"page").point)},onStart:function(t,n){var r,o=e.getProps(),i=o.drag,a=o.dragPropagation,s=o.onDragStart;(!i||a||(e.openGlobalLock&&e.openGlobalLock(),e.openGlobalLock=Go(i),e.openGlobalLock))&&(e.isDragging=!0,e.currentDirection=null,e.resolveConstraints(),e.visualElement.projection&&(e.visualElement.projection.isAnimationBlocked=!0,e.visualElement.projection.target=void 0),dr((function(t){var n,r,o=e.getAxisMotionValue(t).get()||0;if(kt.test(o)){var i=null===(r=null===(n=e.visualElement.projection)||void 0===n?void 0:n.layout)||void 0===r?void 0:r.actual[t];if(i)o=Ge(i)*(parseFloat(o)/100)}e.originPoint[t]=o})),null===s||void 0===s||s(t,n),null===(r=e.visualElement.animationState)||void 0===r||r.setActive(Vo.Drag,!0))},onMove:function(t,n){var r=e.getProps(),o=r.dragPropagation,i=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(o||e.openGlobalLock){var u=n.offset;if(i&&null===e.currentDirection)return e.currentDirection=function(t,n){void 0===n&&(n=10);var e=null;Math.abs(t.y)>n?e="y":Math.abs(t.x)>n&&(e="x");return e}(u),void(null!==e.currentDirection&&(null===a||void 0===a||a(e.currentDirection)));e.updateAxis("x",n.point,u),e.updateAxis("y",n.point,u),e.visualElement.syncRender(),null===s||void 0===s||s(t,n)}},onSessionEnd:function(t,n){return e.stop(t,n)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},t.prototype.stop=function(t,n){var e=this.isDragging;if(this.cancel(),e){var r=n.velocity;this.startAnimation(r);var o=this.getProps().onDragEnd;null===o||void 0===o||o(t,n)}},t.prototype.cancel=function(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(Vo.Drag,!1)},t.prototype.updateAxis=function(t,n,e){var r=this.getProps().drag;if(e&&qi(t,r,this.currentDirection)){var o=this.getAxisMotionValue(t),i=this.originPoint[t]+e[t];this.constraints&&this.constraints[t]&&(i=function(t,n,e){var r=n.min,o=n.max;return void 0!==r&&t<r?t=e?K(r,t,e.min):Math.max(t,r):void 0!==o&&t>o&&(t=e?K(o,t,e.max):Math.min(t,o)),t}(i,this.constraints[t],this.elastic[t])),o.set(i)}},t.prototype.resolveConstraints=function(){var t=this,n=this.getProps(),e=n.dragConstraints,r=n.dragElastic,o=(this.visualElement.projection||{}).layout,i=this.constraints;e&&S(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!o)&&function(t,n){var e=n.top,r=n.left,o=n.bottom,i=n.right;return{x:Bi(t.x,r,i),y:Bi(t.y,e,o)}}(o.actual,e),this.elastic=function(t){return void 0===t&&(t=zi),!1===t?t=0:!0===t&&(t=zi),{x:Hi(t,"left","right"),y:Hi(t,"top","bottom")}}(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&dr((function(n){t.getAxisMotionValue(n)&&(t.constraints[n]=function(t,n){var e={};return void 0!==n.min&&(e.min=n.min-t.min),void 0!==n.max&&(e.max=n.max-t.min),e}(o.actual[n],t.constraints[n]))}))},t.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,e=t.onMeasureDragConstraints;if(!n||!S(n))return!1;var r=n.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var i=function(t,n,e){var r=Yi(t,e),o=n.scroll;return o&&(Ie(r.x,o.x),Ie(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a=function(t,n){return{x:Ni(t.x,n.x),y:Ni(t.y,n.y)}}(o.layout.actual,i);if(e){var s=e(function(t){var n=t.x,e=t.y;return{top:e.min,right:n.max,bottom:e.max,left:n.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=Wi(s))}return a},t.prototype.startAnimation=function(t){var n=this,e=this.getProps(),r=e.drag,o=e.dragMomentum,a=e.dragElastic,s=e.dragTransition,u=e.dragSnapToOrigin,l=e.onDragTransitionEnd,c=this.constraints||{},d=dr((function(e){var l;if(qi(e,r,n.currentDirection)){var d=null!==(l=null===c||void 0===c?void 0:c[e])&&void 0!==l?l:{};u&&(d={min:0,max:0});var f=a?200:1e6,v=a?40:1e7,p=i(i({type:"inertia",velocity:o?t[e]:0,bounceStiffness:f,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10},s),d);return n.startAxisValueAnimation(e,p)}}));return Promise.all(d).then(l)},t.prototype.startAxisValueAnimation=function(t,n){return xe(t,this.getAxisMotionValue(t),0,n)},t.prototype.stopAnimation=function(){var t=this;dr((function(n){return t.getAxisMotionValue(n).stop()}))},t.prototype.getAxisMotionValue=function(t){var n,e,r="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[r];return o||this.visualElement.getValue(t,null!==(e=null===(n=this.visualElement.getProps().initial)||void 0===n?void 0:n[t])&&void 0!==e?e:0)},t.prototype.snapToCursor=function(t){var n=this;dr((function(e){if(qi(e,n.getProps().drag,n.currentDirection)){var r=n.visualElement.projection,o=n.getAxisMotionValue(e);if(r&&r.layout){var i=r.layout.actual[e],a=i.min,s=i.max;o.set(t[e]-K(a,s,.5))}}}))},t.prototype.scalePositionWithinConstraints=function(){var t,n=this,e=this.getProps(),r=e.drag,o=e.dragConstraints,i=this.visualElement.projection;if(S(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};dr((function(t){var e=n.getAxisMotionValue(t);if(e){var r=e.get();a[t]=function(t,n){var e=.5,r=Ge(t),o=Ge(n);return o>r?e=ht(n.min,n.max-r,t.min):r>o&&(e=ht(t.min,t.max-o,n.min)),it(0,1,e)}({min:r,max:r},n.constraints[t])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),dr((function(t){if(qi(t,r,null)){var e=n.getAxisMotionValue(t),o=n.constraints[t],i=o.min,s=o.max;e.set(K(i,s,a[t]))}}))}},t.prototype.addListeners=function(){var t,n=this;Xi.set(this.visualElement,this);var e=Ho(this.visualElement.getInstance(),"pointerdown",(function(t){var e=n.getProps(),r=e.drag,o=e.dragListener;r&&(void 0===o||o)&&n.start(t)})),r=function(){S(n.getProps().dragConstraints)&&(n.constraints=n.resolveRefConstraints())},o=this.visualElement.projection,i=o.addEventListener("measure",r);o&&!o.layout&&(null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout()),r();var a=Ro(window,"resize",(function(){n.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(t){var e=t.delta,r=t.hasLayoutChanged;n.isDragging&&r&&(dr((function(t){var r=n.getAxisMotionValue(t);r&&(n.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))})),n.visualElement.syncRender())})),function(){a(),e(),i()}},t.prototype.getProps=function(){var t=this.visualElement.getProps(),n=t.drag,e=void 0!==n&&n,r=t.dragDirectionLock,o=void 0!==r&&r,a=t.dragPropagation,s=void 0!==a&&a,u=t.dragConstraints,l=void 0!==u&&u,c=t.dragElastic,d=void 0===c?zi:c,f=t.dragMomentum,v=void 0===f||f;return i(i({},t),{drag:e,dragDirectionLock:o,dragPropagation:s,dragConstraints:l,dragElastic:d,dragMomentum:v})},t}();function qi(t,n,e){return(!0===n||n===t)&&(null===e||e===t)}var _i={pan:ai((function(t){var n=t.onPan,e=t.onPanStart,r=t.onPanEnd,o=t.onPanSessionStart,i=t.visualElement,a=n||e||r||o,s=(0,l.useRef)(null),u=(0,l.useContext)(h).transformPagePoint,c={onSessionStart:o,onStart:e,onMove:n,onEnd:function(t,n){s.current=null,r&&r(t,n)}};(0,l.useEffect)((function(){null!==s.current&&s.current.updateHandlers(c)})),Zo(i,"pointerdown",a&&function(t){s.current=new Di(t,c,{transformPagePoint:u})}),Ko((function(){return s.current&&s.current.end()}))})),drag:ai((function(t){var n=t.dragControls,e=t.visualElement,r=O((function(){return new Gi(e)}));(0,l.useEffect)((function(){return n&&n.subscribe(r)}),[r,n]),(0,l.useEffect)((function(){return r.addListeners()}),[r])}))},$i=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];var Ki=function(t){var n=t.treeType,e=void 0===n?"":n,r=t.build,o=t.getBaseTarget,a=t.makeTargetAnimatable,l=t.measureViewportBox,c=t.render,d=t.readValueFromInstance,f=t.removeValueFromRenderState,v=t.sortNodePosition,p=t.scrapeMotionValuesFromProps;return function(t,n){var h=t.parent,m=t.props,y=t.presenceId,g=t.blockInitialAnimation,x=t.visualState,b=t.shouldReduceMotion;void 0===n&&(n={});var w,E,P=!1,S=x.latestValues,A=x.renderState,V=function(){var t=$i.map((function(){return new nt})),n={},e={clearAllListeners:function(){return t.forEach((function(t){return t.clear()}))},updatePropListeners:function(t){$i.forEach((function(r){var o,i="on"+r,a=t[i];null===(o=n[r])||void 0===o||o.call(n),a&&(n[r]=e[i](a))}))}};return t.forEach((function(t,n){e["on"+$i[n]]=function(n){return t.add(n)},e["notify"+$i[n]]=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return t.notify.apply(t,u([],s(n),!1))}})),e}(),C=new Map,L=new Map,D={},O=i({},S);function k(){w&&P&&(j(),c(w,A,m.style,Z.projection))}function j(){r(Z,A,S,n,m)}function F(){V.notifyUpdate(S)}function U(t,n){var e=n.onChange((function(n){S[t]=n,m.onUpdate&&$.update(F,!1,!0)})),r=n.onRenderRequest(Z.scheduleRender);L.set(t,(function(){e(),r()}))}var I=p(m);for(var B in I){var N=I[B];void 0!==S[B]&&ot(N)&&N.set(S[B],!1)}var z=M(m),H=R(m),Z=i(i({treeType:e,current:null,depth:h?h.depth+1:0,parent:h,children:new Set,presenceId:y,shouldReduceMotion:b,variantChildren:H?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null===h||void 0===h?void 0:h.isMounted()),blockInitialAnimation:g,isMounted:function(){return Boolean(w)},mount:function(t){P=!0,w=Z.current=t,Z.projection&&Z.projection.mount(t),H&&h&&!z&&(E=null===h||void 0===h?void 0:h.addVariantChild(Z)),C.forEach((function(t,n){return U(n,t)})),null===h||void 0===h||h.children.add(Z),Z.setProps(m)},unmount:function(){var t;null===(t=Z.projection)||void 0===t||t.unmount(),W.update(F),W.render(k),L.forEach((function(t){return t()})),null===E||void 0===E||E(),null===h||void 0===h||h.children.delete(Z),V.clearAllListeners(),w=void 0,P=!1},addVariantChild:function(t){var n,e=Z.getClosestVariantNode();if(e)return null===(n=e.variantChildren)||void 0===n||n.add(t),function(){return e.variantChildren.delete(t)}},sortNodePosition:function(t){return v&&e===t.treeType?v(Z.getInstance(),t.getInstance()):0},getClosestVariantNode:function(){return H?Z:null===h||void 0===h?void 0:h.getClosestVariantNode()},getLayoutId:function(){return m.layoutId},getInstance:function(){return w},getStaticValue:function(t){return S[t]},setStaticValue:function(t,n){return S[t]=n},getLatestValues:function(){return S},setVisibility:function(t){Z.isVisible!==t&&(Z.isVisible=t,Z.scheduleRender())},makeTargetAnimatable:function(t,n){return void 0===n&&(n=!0),a(Z,t,m,n)},measureViewportBox:function(){return l(w,m)},addValue:function(t,n){Z.hasValue(t)&&Z.removeValue(t),C.set(t,n),S[t]=n.get(),U(t,n)},removeValue:function(t){var n;C.delete(t),null===(n=L.get(t))||void 0===n||n(),L.delete(t),delete S[t],f(t,A)},hasValue:function(t){return C.has(t)},getValue:function(t,n){var e=C.get(t);return void 0===e&&void 0!==n&&(e=rt(n),Z.addValue(t,e)),e},forEachValue:function(t){return C.forEach(t)},readValue:function(t){var e;return null!==(e=S[t])&&void 0!==e?e:d(w,t,n)},setBaseTarget:function(t,n){O[t]=n},getBaseTarget:function(t){if(o){var n=o(m,t);if(void 0!==n&&!ot(n))return n}return O[t]}},V),{build:function(){return j(),A},scheduleRender:function(){$.render(k,!1,!0)},syncRender:k,setProps:function(t){(t.transformTemplate||m.transformTemplate)&&Z.scheduleRender(),m=t,V.updatePropListeners(t),D=function(t,n,e){var r;for(var o in n){var i=n[o],a=e[o];if(ot(i))t.addValue(o,i);else if(ot(a))t.addValue(o,rt(i));else if(a!==i)if(t.hasValue(o)){var s=t.getValue(o);!s.hasAnimated&&s.set(i)}else t.addValue(o,rt(null!==(r=t.getStaticValue(o))&&void 0!==r?r:i))}for(var o in e)void 0===n[o]&&t.removeValue(o);return n}(Z,p(m),D)},getProps:function(){return m},getVariant:function(t){var n;return null===(n=m.variants)||void 0===n?void 0:n[t]},getDefaultTransition:function(){return m.transition},getTransformPagePoint:function(){return m.transformPagePoint},getVariantContext:function(t){if(void 0===t&&(t=!1),t)return null===h||void 0===h?void 0:h.getVariantContext();if(!z){var n=(null===h||void 0===h?void 0:h.getVariantContext())||{};return void 0!==m.initial&&(n.initial=m.initial),n}for(var e={},r=0;r<Qi;r++){var o=Ji[r],i=m[o];(T(i)||!1===i)&&(e[o]=i)}return e}});return Z}},Ji=u(["initial"],s(Ai),!1),Qi=Ji.length;function ta(t){return"string"===typeof t&&t.startsWith("var(--")}var na=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ea(t,n,e){void 0===e&&(e=1),'Max CSS variable fallback depth detected in property "'.concat(t,'". This may indicate a circular fallback dependency.');var r=s(function(t){var n=na.exec(t);if(!n)return[,];var e=s(n,3);return[e[1],e[2]]}(t),2),o=r[0],i=r[1];if(o){var a=window.getComputedStyle(n).getPropertyValue(o);return a?a.trim():ta(i)?ea(i,n,e+1):i}}var ra,oa=new Set(["width","height","top","left","right","bottom","x","y"]),ia=function(t){return oa.has(t)},aa=function(t,n){t.set(n,!1),t.set(n)},sa=function(t){return t===Et||t===jt};!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(ra||(ra={}));var ua=function(t,n){return parseFloat(t.split(", ")[n])},la=function(t,n){return function(e,r){var o=r.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return ua(i[1],n);var a=o.match(/^matrix\((.+)\)$/);return a?ua(a[1],t):0}},ca=new Set(["x","y","z"]),da=vr.filter((function(t){return!ca.has(t)}));var fa={width:function(t,n){var e=t.x,r=n.paddingLeft,o=void 0===r?"0":r,i=n.paddingRight,a=void 0===i?"0":i;return e.max-e.min-parseFloat(o)-parseFloat(a)},height:function(t,n){var e=t.y,r=n.paddingTop,o=void 0===r?"0":r,i=n.paddingBottom,a=void 0===i?"0":i;return e.max-e.min-parseFloat(o)-parseFloat(a)},top:function(t,n){var e=n.top;return parseFloat(e)},left:function(t,n){var e=n.left;return parseFloat(e)},bottom:function(t,n){var e=t.y,r=n.top;return parseFloat(r)+(e.max-e.min)},right:function(t,n){var e=t.x,r=n.left;return parseFloat(r)+(e.max-e.min)},x:la(4,13),y:la(5,14)},va=function(t,n,e,r){void 0===e&&(e={}),void 0===r&&(r={}),n=i({},n),r=i({},r);var o=Object.keys(n).filter(ia),a=[],u=!1,l=[];if(o.forEach((function(o){var i=t.getValue(o);if(t.hasValue(o)){var s,c=e[o],d=hi(c),f=n[o];if($n(f)){var v=f.length,p=null===f[0]?1:0;c=f[p],d=hi(c);for(var h=p;h<v;h++)s?hi(f[h]):(s=hi(f[h]))===d||sa(d)&&sa(s)}else s=hi(f);if(d!==s)if(sa(d)&&sa(s)){var m=i.get();"string"===typeof m&&i.set(parseFloat(m)),"string"===typeof f?n[o]=parseFloat(f):Array.isArray(f)&&s===jt&&(n[o]=f.map(parseFloat))}else(null===d||void 0===d?void 0:d.transform)&&(null===s||void 0===s?void 0:s.transform)&&(0===c||0===f)?0===c?i.set(s.transform(c)):n[o]=d.transform(f):(u||(a=function(t){var n=[];return da.forEach((function(e){var r=t.getValue(e);void 0!==r&&(n.push([e,r.get()]),r.set(e.startsWith("scale")?1:0))})),n.length&&t.syncRender(),n}(t),u=!0),l.push(o),r[o]=void 0!==r[o]?r[o]:n[o],aa(i,f))}})),l.length){var c=function(t,n,e){var r=n.measureViewportBox(),o=n.getInstance(),i=getComputedStyle(o),a=i.display,s={};"none"===a&&n.setStaticValue("display",t.display||"block"),e.forEach((function(t){s[t]=fa[t](r,i)})),n.syncRender();var u=n.measureViewportBox();return e.forEach((function(e){var r=n.getValue(e);aa(r,s[e]),t[e]=fa[e](u,i)})),t}(n,t,l);return a.length&&a.forEach((function(n){var e=s(n,2),r=e[0],o=e[1];t.getValue(r).set(o)})),t.syncRender(),{target:c,transitionEnd:r}}return{target:n,transitionEnd:r}};function pa(t,n,e,r){return function(t){return Object.keys(t).some(ia)}(n)?va(t,n,e,r):{target:n,transitionEnd:r}}var ha=function(t,n,e,r){var o=function(t,n,e){var r,o=a(n,[]),s=t.getInstance();if(!(s instanceof Element))return{target:o,transitionEnd:e};for(var u in e&&(e=i({},e)),t.forEachValue((function(t){var n=t.get();if(ta(n)){var e=ea(n,s);e&&t.set(e)}})),o){var l=o[u];if(ta(l)){var c=ea(l,s);c&&(o[u]=c,e&&(null!==(r=e[u])&&void 0!==r||(e[u]=l)))}}return{target:o,transitionEnd:e}}(t,n,r);return pa(t,n=o.target,e,r=o.transitionEnd)};var ma={treeType:"dom",readValueFromInstance:function(t,n){if(mr(n)){var e=le(n);return e&&e.default||0}var r,o=(r=t,window.getComputedStyle(r));return(Kr(n)?o.getPropertyValue(n):o[n])||0},sortNodePosition:function(t,n){return 2&t.compareDocumentPosition(n)?1:-1},getBaseTarget:function(t,n){var e;return null===(e=t.style)||void 0===e?void 0:e[n]},measureViewportBox:function(t,n){return Yi(t,n.transformPagePoint)},resetTransform:function(t,n,e){var r=e.transformTemplate;n.style.transform=r?r({},""):"none",t.scheduleRender()},restoreTransform:function(t,n){t.style.transform=n.style.transform},removeValueFromRenderState:function(t,n){var e=n.vars,r=n.style;delete e[t],delete r[t]},makeTargetAnimatable:function(t,n,e,r){var o=e.transformValues;void 0===r&&(r=!0);var s=n.transition,u=n.transitionEnd,l=a(n,["transition","transitionEnd"]),c=function(t,n,e){var r,o,i={};for(var a in t)i[a]=null!==(r=bi(a,n))&&void 0!==r?r:null===(o=e.getValue(a))||void 0===o?void 0:o.get();return i}(l,s||{},t);if(o&&(u&&(u=o(u)),l&&(l=o(l)),c&&(c=o(c))),r){!function(t,n,e){var r,o,i,a,s=Object.keys(n).filter((function(n){return!t.hasValue(n)})),u=s.length;if(u)for(var l=0;l<u;l++){var c=s[l],d=n[c],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(o=null!==(r=e[c])&&void 0!==r?r:t.readValue(c))&&void 0!==o?o:n[c]),void 0!==f&&null!==f&&("string"===typeof f&&(/^\-?\d*\.?\d+$/.test(f)||fi(f))?f=parseFloat(f):!yi(f)&&nn.test(d)&&(f=ce(c,d)),t.addValue(c,rt(f)),null!==(i=(a=e)[c])&&void 0!==i||(a[c]=f),t.setBaseTarget(c,f))}}(t,l,c);var d=ha(t,l,c,u);u=d.transitionEnd,l=d.target}return i({transition:s,transitionEnd:u},l)},scrapeMotionValuesFromProps:wo,build:function(t,n,e,r,o){void 0!==t.isVisible&&(n.style.visibility=t.isVisible?"visible":"hidden"),Qr(n,e,r,o.transformTemplate)},render:go},ya=Ki(ma),ga=Ki(i(i({},ma),{getBaseTarget:function(t,n){return t[n]},readValueFromInstance:function(t,n){var e;return mr(n)?(null===(e=le(n))||void 0===e?void 0:e.default)||0:(n=xo.has(n)?n:yo(n),t.getAttribute(n))},scrapeMotionValuesFromProps:Eo,build:function(t,n,e,r,o){fo(n,e,r,o.transformTemplate)},render:bo})),xa=function(t,n){return qr(t)?ga(n,{enableHardwareAcceleration:!1}):ya(n,{enableHardwareAcceleration:!0})};function ba(t,n){return n.max===n.min?0:t/(n.max-n.min)*100}var wa={correct:function(t,n){if(!n.target)return t;if("string"===typeof t){if(!jt.test(t))return t;t=parseFloat(t)}var e=ba(t,n.target.x),r=ba(t,n.target.y);return"".concat(e,"% ").concat(r,"%")}},Ea="_$css",Pa={correct:function(t,n){var e=n.treeScale,r=n.projectionDelta,o=t,i=t.includes("var("),a=[];i&&(t=t.replace(na,(function(t){return a.push(t),Ea})));var s=nn.parse(t);if(s.length>5)return o;var u=nn.createTransformer(t),l="number"!==typeof s[0]?1:0,c=r.x.scale*e.x,d=r.y.scale*e.y;s[0+l]/=c,s[1+l]/=d;var f=K(c,d,.5);"number"===typeof s[2+l]&&(s[2+l]/=f),"number"===typeof s[3+l]&&(s[3+l]/=f);var v=u(s);if(i){var p=0;v=v.replace(Ea,(function(){var t=a[p];return p++,t}))}return v}},Sa=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.componentDidMount=function(){var t,n=this,e=this.props,r=e.visualElement,o=e.layoutGroup,a=e.switchLayoutGroup,s=e.layoutId,u=r.projection;t=Aa,Object.assign(lr,t),u&&((null===o||void 0===o?void 0:o.group)&&o.group.add(u),(null===a||void 0===a?void 0:a.register)&&s&&a.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",(function(){n.safeToRemove()})),u.setOptions(i(i({},u.options),{onExitComplete:function(){return n.safeToRemove()}}))),Er.hasEverUpdated=!0},n.prototype.getSnapshotBeforeUpdate=function(t){var n=this,e=this.props,r=e.layoutDependency,o=e.visualElement,i=e.drag,a=e.isPresent,s=o.projection;return s?(s.isPresent=a,i||t.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||$.postRender((function(){var t;(null===(t=s.getStack())||void 0===t?void 0:t.members.length)||n.safeToRemove()}))),null):null},n.prototype.componentDidUpdate=function(){var t=this.props.visualElement.projection;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())},n.prototype.componentWillUnmount=function(){var t=this.props,n=t.visualElement,e=t.layoutGroup,r=t.switchLayoutGroup,o=n.projection;o&&(o.scheduleCheckAfterUnmount(),(null===e||void 0===e?void 0:e.group)&&e.group.remove(o),(null===r||void 0===r?void 0:r.deregister)&&r.deregister(o))},n.prototype.safeToRemove=function(){var t=this.props.safeToRemove;null===t||void 0===t||t()},n.prototype.render=function(){return null},n}(l.Component);var Aa={borderRadius:i(i({},wa),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:wa,borderTopRightRadius:wa,borderBottomLeftRadius:wa,borderBottomRightRadius:wa,boxShadow:Pa},Ta={measureLayout:function(t){var n=s(ci(),2),e=n[0],r=n[1],o=(0,l.useContext)(Hr);return l.createElement(Sa,i({},t,{layoutGroup:o,switchLayoutGroup:(0,l.useContext)(Zr),isPresent:e,safeToRemove:r}))}},Va=Pr({attachResizeListener:function(t,n){return t.addEventListener("resize",n,{passive:!0}),function(){return t.removeEventListener("resize",n)}},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}}}),Ca={current:void 0},Ma=Pr({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!Ca.current){var t=new Va(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),Ca.current=t}return Ca.current},resetTransform:function(t,n){t.style.transform=null!==n&&void 0!==n?n:"none"}}),Ra=i(i(i(i({},Li),si),_i),Ta),La=Xr((function(t,n){return function(t,n,e,r,o){var a=n.forwardMotionProps,s=void 0!==a&&a,u=qr(t)?Co:Mo;return i(i({},u),{preloadedFeatures:e,useRender:ho(s),createVisualElement:r,projectionNodeConstructor:o,Component:t})}(t,n,Ra,xa,Ma)}))}}]);
  //# sourceMappingURL=693.0f267284.chunk.js.map