"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[99016],{699016:function(e,t,r){r.d(t,{q:function(){return rb},Z5:function(){return eb},q_:function(){return t6},Yz:function(){return re}});var n,s=_(),a=e=>g(e,s),i=_();a.write=e=>g(e,i);var o=_();a.onStart=e=>g(e,o);var l=_();a.onFrame=e=>g(e,l);var u=_();a.onFinish=e=>g(e,u);var d=[];a.setTimeout=(e,t)=>{let r=a.now()+t,n=()=>{let e=d.findIndex(e=>e.cancel==n);~e&&d.splice(e,1),f-=~e?1:0},s={time:r,handler:e,cancel:n};return d.splice(c(r),0,s),f+=1,y(),s};var c=e=>~(~d.findIndex(t=>t.time>e)||~d.length);a.cancel=e=>{o.delete(e),l.delete(e),u.delete(e),s.delete(e),i.delete(e)},a.sync=e=>{m=!0,a.batchedUpdates(e),m=!1},a.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,a.onStart(r)}return n.handler=e,n.cancel=()=>{o.delete(r),t=null},n};var h="u">typeof window?window.requestAnimationFrame:()=>{};a.use=e=>h=e,a.now="u">typeof performance?()=>performance.now():Date.now,a.batchedUpdates=e=>e(),a.catch=console.error,a.frameLoop="always",a.advance=()=>{"demand"!==a.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):b()};var p=-1,f=0,m=!1;function g(e,t){m?(t.delete(e),e(0)):(t.add(e),y())}function y(){p<0&&(p=0,"demand"!==a.frameLoop&&h(v))}function v(){~p&&(h(v),a.batchedUpdates(b))}function b(){let e=p;p=a.now();let t=c(p);if(t&&(w(d.splice(0,t),e=>e.handler()),f-=t),!f){p=-1;return}o.flush(),s.flush(e?Math.min(64,p-e):16.667),l.flush(),i.flush(),u.flush()}function _(){let e=new Set,t=e;return{add(r){f+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(f-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,f-=t.size,w(t,t=>t(r)&&e.add(t)),f+=e.size,t=e)}}}function w(e,t){e.forEach(e=>{try{t(e)}catch(e){a.catch(e)}})}var k=r(827378),x=Object.defineProperty,P={};function M(){}((e,t)=>{for(var r in t)x(e,r,{get:t[r],enumerable:!0})})(P,{assign:()=>Q,colors:()=>$,createStringInterpolator:()=>E,skipAnimation:()=>F,to:()=>q,willAdvance:()=>T});var I=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),S={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function C(e,t){if(S.arr(e)){if(!S.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}var A=(e,t)=>e.forEach(t);function O(e,t,r){if(S.arr(e)){for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);return}for(let n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}var R=e=>S.und(e)?[]:S.arr(e)?e:[e];function V(e,t){if(e.size){let r=Array.from(e);e.clear(),A(r,t)}}var E,q,j=(e,...t)=>V(e,e=>e(...t)),z=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),$=null,F=!1,T=M,Q=e=>{e.to&&(q=e.to),e.now&&(a.now=e.now),void 0!==e.colors&&($=e.colors),null!=e.skipAnimation&&(F=e.skipAnimation),e.createStringInterpolator&&(E=e.createStringInterpolator),e.requestAnimationFrame&&a.use(e.requestAnimationFrame),e.batchedUpdates&&(a.batchedUpdates=e.batchedUpdates),e.willAdvance&&(T=e.willAdvance),e.frameLoop&&(a.frameLoop=e.frameLoop)},N=new Set,U=[],D=[],L=0,B={get idle(){return!N.size&&!U.length},start(e){L>e.priority?(N.add(e),a.onStart(W)):(G(e),a(Y))},advance:Y,sort(e){if(L)a.onFrame(()=>B.sort(e));else{let t=U.indexOf(e);~t&&(U.splice(t,1),Z(e))}},clear(){U=[],N.clear()}};function W(){N.forEach(G),N.clear(),a(Y)}function G(e){U.includes(e)||Z(e)}function Z(e){var t;let r;U.splice((r=(t=U).findIndex(t=>t.priority>e.priority))<0?t.length:r,0,e)}function Y(e){let t=D;for(let r=0;r<U.length;r++){let n=U[r];L=n.priority,n.idle||(T(n),n.advance(e),n.idle||t.push(n))}return L=0,(D=U).length=0,(U=t).length>0}var H=(e,t,r)=>Math.min(Math.max(r,e),t),J="[-+]?\\d*\\.?\\d+",X=J+"%";function K(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=RegExp("rgb"+K(J,J,J)),et=RegExp("rgba"+K(J,J,J,J)),er=RegExp("hsl"+K(J,X,X)),en=RegExp("hsla"+K(J,X,X,J)),es=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ea=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ei=/^#([0-9a-fA-F]{6})$/,eo=/^#([0-9a-fA-F]{8})$/;function el(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function eu(e,t,r){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;return Math.round(255*el(s,n,e+1/3))<<24|Math.round(255*el(s,n,e))<<16|Math.round(255*el(s,n,e-1/3))<<8}function ed(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function ec(e){return(parseFloat(e)%360+360)%360/360}function eh(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ep(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ef(e){let t;let r="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ei.exec(e))?parseInt(t[1]+"ff",16)>>>0:$&&void 0!==$[e]?$[e]:(t=ee.exec(e))?(ed(t[1])<<24|ed(t[2])<<16|ed(t[3])<<8|255)>>>0:(t=et.exec(e))?(ed(t[1])<<24|ed(t[2])<<16|ed(t[3])<<8|eh(t[4]))>>>0:(t=es.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=eo.exec(e))?parseInt(t[1],16)>>>0:(t=ea.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=er.exec(e))?(255|eu(ec(t[1]),ep(t[2]),ep(t[3])))>>>0:(t=en.exec(e))?(eu(ec(t[1]),ep(t[2]),ep(t[3]))|eh(t[4]))>>>0:null;return null===r?e:`rgba(${(4278190080&(r=r||0))>>>24}, ${(16711680&r)>>>16}, ${(65280&r)>>>8}, ${(255&r)/255})`}var em=(e,t,r)=>{if(S.fun(e))return e;if(S.arr(e))return em({range:e,output:t,extrapolate:r});if(S.str(e.output[0]))return E(e);let n=e.output,s=e.range||[0,1],a=e.extrapolateLeft||e.extrapolate||"extend",i=e.extrapolateRight||e.extrapolate||"extend",o=e.easing||(e=>e);return t=>{let r=function(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}(t,s);return function(e,t,r,n,s,a,i,o,l){let u=l?l(e):e;if(u<t){if("identity"===i)return u;"clamp"===i&&(u=t)}if(u>r){if("identity"===o)return u;"clamp"===o&&(u=r)}return n===s?n:t===r?e<=t?n:s:(t===-1/0?u=-u:r===1/0?u-=t:u=(u-t)/(r-t),u=a(u),n===-1/0?u=-u:s===1/0?u+=n:u=u*(s-n)+n,u)}(t,s[r],s[r+1],n[r],n[r+1],o,a,i,e.map)}},eg=2*Math.PI/3,ey=2*Math.PI/4.5,ev=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,eb={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-1.70158*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(3.5949095*2*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*eg),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*eg)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ey))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ey)/2+1,easeInBounce:e=>1-ev(1-e),easeOutBounce:ev,easeInOutBounce:e=>e<.5?(1-ev(1-2*e))/2:(1+ev(2*e-1))/2,steps:(e,t="end")=>r=>{let n=(r="end"===t?Math.min(r,.999):Math.max(r,.001))*e;return H(0,1,("end"===t?Math.floor(n):Math.ceil(n))/e)}},e_=Symbol.for("FluidValue.get"),ew=Symbol.for("FluidValue.observers"),ek=e=>!!(e&&e[e_]),ex=e=>e&&e[e_]?e[e_]():e,eP=e=>e[ew]||null;function eM(e,t){let r=e[ew];r&&r.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var eI=class{[e_];[ew];constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eS(this,e)}},eS=(e,t)=>eR(e,e_,t);function eC(e,t){if(e[e_]){let r=e[ew];r||eR(e,ew,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function eA(e,t){let r=e[ew];if(r&&r.has(t)){let n=r.size-1;n?r.delete(t):e[ew]=null,e.observerRemoved&&e.observerRemoved(n,t)}}var eO,eR=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),eV=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eE=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,eq=RegExp(`(${eV.source})(%|[a-z]+)`,"i"),ej=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ez=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,e$=e=>{let[t,r]=eF(e);if(!t||z())return e;let n=window.getComputedStyle(document.documentElement).getPropertyValue(t);return n?n.trim():r&&r.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(r)||e:r&&ez.test(r)?e$(r):r||e},eF=e=>{let t=ez.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]},eT=(e,t,r,n,s)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${s})`,eQ=e=>{eO||(eO=$?RegExp(`(${Object.keys($).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>ex(e).replace(ez,e$).replace(eE,ef).replace(eO,ef)),r=t.map(e=>e.match(eV).map(Number)),n=r[0].map((e,t)=>r.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>em({...e,output:t}));return e=>{let r=!eq.test(t[0])&&t.find(e=>eq.test(e))?.replace(eV,""),s=0;return t[0].replace(eV,()=>`${n[s++](e)}${r||""}`).replace(ej,eT)}},eN="react-spring: ",eU=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${eN}once requires a function parameter`);return(...r)=>{t||(e(...r),t=!0)}},eD=eU(console.warn),eL=eU(console.warn);function eB(e){return S.str(e)&&("#"==e[0]||/\d/.test(e)||!z()&&ez.test(e)||e in($||{}))}new WeakMap,new WeakMap,new WeakMap,new WeakMap;var eW=z()?k.useEffect:k.useLayoutEffect,eG=()=>{let e=(0,k.useRef)(!1);return eW(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function eZ(){let e=(0,k.useState)()[1],t=eG();return()=>{t.current&&e(Math.random())}}var eY=e=>(0,k.useEffect)(e,eH),eH=[];function eJ(e){let t=(0,k.useRef)();return(0,k.useEffect)(()=>{t.current=e}),t.current}var eX=Symbol.for("Animated:node"),eK=e=>!!e&&e[eX]===e,e0=e=>e&&e[eX],e1=(e,t)=>I(e,eX,t),e2=e=>e&&e[eX]&&e[eX].getPayload(),e5=class{payload;constructor(){e1(this,this)}getPayload(){return this.payload||[]}},e3=class extends e5{constructor(e){super(),this._value=e,S.num(this._value)&&(this.lastPosition=this._value)}done=!0;elapsedTime;lastPosition;lastVelocity;v0;durationProgress=0;static create(e){return new e3(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return S.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,S.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},e9=class extends e3{_string=null;_toString;constructor(e){super(0),this._toString=em({output:[e,e]})}static create(e){return new e9(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(S.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=em({output:[this.getValue(),e]})),this._value=0,super.reset()}},e4={dependencies:null},e7=class extends e5{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return O(this.source,(r,n)=>{eK(r)?t[n]=r.getValue(e):ek(r)?t[n]=ex(r):e||(t[n]=r)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&A(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return O(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){e4.dependencies&&ek(e)&&e4.dependencies.add(e);let t=e2(e);t&&A(t,e=>this.add(e))}},e8=class extends e7{constructor(e){super(e)}static create(e){return new e8(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,r)=>t.setValue(e[r])).some(Boolean):(super.setValue(e.map(e6)),!0)}};function e6(e){return(eB(e)?e9:e3).create(e)}function te(e){let t=e0(e);return t?t.constructor:S.arr(e)?e8:eB(e)?e9:e3}var tt=(e,t)=>{let r=!S.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,k.forwardRef)((n,s)=>{var i;let o;let l=(0,k.useRef)(null),u=r&&(0,k.useCallback)(e=>{var t;l.current=((t=s)&&(S.fun(t)?t(e):t.current=e),e)},[s]),[d,c]=(i=n,o=new Set,e4.dependencies=o,i.style&&(i={...i,style:t.createAnimatedStyle(i.style)}),i=new e7(i),e4.dependencies=null,[i,o]),h=eZ(),p=()=>{let e=l.current;(!r||e)&&(!!e&&t.applyAnimatedValues(e,d.getValue(!0)))===!1&&h()},f=new tr(p,c),m=(0,k.useRef)();eW(()=>(m.current=f,A(c,e=>eC(e,f)),()=>{m.current&&(A(m.current.deps,e=>eA(e,m.current)),a.cancel(m.current.update))})),(0,k.useEffect)(p,[]),eY(()=>()=>{let e=m.current;A(e.deps,t=>eA(t,e))});let g=t.getComponentProps(d.getValue());return k.createElement(e,{...g,ref:u})})},tr=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&a.write(this.update)}},tn=Symbol.for("AnimatedComponent"),ts=e=>S.str(e)?e:e&&S.str(e.displayName)?e.displayName:S.fun(e)&&e.name||null;function ta(e,...t){return S.fun(e)?e(...t):e}var ti=(e,t)=>!0===e||!!(t&&e&&(S.fun(e)?e(t):R(e).includes(t))),to=(e,t)=>S.obj(e)?t&&e[t]:e,tl=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,tu=e=>e,td=(e,t=tu)=>{let r=tc;e.default&&!0!==e.default&&(r=Object.keys(e=e.default));let n={};for(let s of r){let r=t(e[s],s);S.und(r)||(n[s]=r)}return n},tc=["config","onProps","onStart","onChange","onPause","onResume","onRest"],th={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function tp(e){let t=function(e){let t={},r=0;if(O(e,(e,n)=>{th[n]||(t[n]=e,r++)}),r)return t}(e);if(t){let r={to:t};return O(e,(e,n)=>n in t||(r[n]=e)),r}return{...e}}function tf(e){return e=ex(e),S.arr(e)?e.map(tf):eB(e)?P.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function tm(e){for(let t in e)return!0;return!1}function tg(e){return S.fun(e)||S.arr(e)&&S.obj(e[0])}function ty(e,t){e.ref?.delete(e),t?.delete(e)}function tv(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var tb={tension:170,friction:26,mass:1,damping:1,easing:eb.linear,clamp:!1},t_=class{tension;friction;frequency;damping;mass;velocity=0;restVelocity;precision;progress;duration;easing;clamp;bounce;decay;round;constructor(){Object.assign(this,tb)}};function tw(e,t){if(S.und(t.decay)){let r=!S.und(t.tension)||!S.und(t.friction);!r&&S.und(t.frequency)&&S.und(t.damping)&&S.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}var tk=[],tx=class{changed=!1;values=tk;toValues=null;fromValues=tk;to;from;config=new t_;immediate=!1};function tP(e,{key:t,props:r,defaultProps:n,state:s,actions:i}){return new Promise((o,l)=>{let u,d,c=ti(r.cancel??n?.cancel,t);if(c)f();else{S.und(r.pause)||(s.paused=ti(r.pause,t));let e=n?.pause;!0!==e&&(e=s.paused||ti(e,t)),u=ta(r.delay||0,t),e?(s.resumeQueue.add(p),i.pause()):(i.resume(),p())}function h(){s.resumeQueue.add(p),s.timeouts.delete(d),d.cancel(),u=d.time-a.now()}function p(){u>0&&!P.skipAnimation?(s.delayed=!0,d=a.setTimeout(f,u),s.pauseQueue.add(h),s.timeouts.add(d)):f()}function f(){s.delayed&&(s.delayed=!1),s.pauseQueue.delete(h),s.timeouts.delete(d),e<=(s.cancelId||0)&&(c=!0);try{i.start({...r,callId:e,cancel:c},o)}catch(e){l(e)}}})}var tM=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?tC(e.get()):t.every(e=>e.noop)?tI(e.get()):tS(e.get(),t.every(e=>e.finished)),tI=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),tS=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),tC=e=>({value:e,cancelled:!0,finished:!1});function tA(e,t,r,n){let{callId:s,parentId:i,onRest:o}=t,{asyncTo:l,promise:u}=r;return i||e!==l||t.reset?r.promise=(async()=>{r.asyncId=s,r.asyncTo=e;let d=td(t,(e,t)=>"onRest"===t?void 0:e),c,h,p=new Promise((e,t)=>(c=e,h=t)),f=e=>{let t=s<=(r.cancelId||0)&&tC(n)||s!==r.asyncId&&tS(n,!1);if(t)throw e.result=t,h(e),e},m=(e,t)=>{let a=new tR,i=new tV;return(async()=>{if(P.skipAnimation)throw tO(r),i.result=tS(n,!1),h(i),i;f(a);let o=S.obj(e)?{...e}:{...t,to:e};o.parentId=s,O(d,(e,t)=>{S.und(o[t])&&(o[t]=e)});let l=await n.start(o);return f(a),r.paused&&await new Promise(e=>{r.resumeQueue.add(e)}),l})()},g;if(P.skipAnimation)return tO(r),tS(n,!1);try{let t;t=S.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,n.stop.bind(n))),await Promise.all([t.then(c),p]),g=tS(n.get(),!0,!1)}catch(e){if(e instanceof tR)g=e.result;else if(e instanceof tV)g=e.result;else throw e}finally{s==r.asyncId&&(r.asyncId=i,r.asyncTo=i?l:void 0,r.promise=i?u:void 0)}return S.fun(o)&&a.batchedUpdates(()=>{o(g,n,n.item)}),g})():u}function tO(e,t){V(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var tR=class extends Error{result;constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},tV=class extends Error{result;constructor(){super("SkipAnimationSignal")}},tE=e=>e instanceof tj,tq=1,tj=class extends eI{id=tq++;_priority=0;get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=e0(this);return e&&e.getValue()}to(...e){return P.to(this,e)}interpolate(...e){return eD(`${eN}The "interpolate" function is deprecated in v9 (use "to" instead)`),P.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){eM(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||B.sort(this),eM(this,{type:"priority",parent:this,priority:e})}},tz=Symbol.for("SpringPhase"),t$=e=>(1&e[tz])>0,tF=e=>(2&e[tz])>0,tT=e=>(4&e[tz])>0,tQ=(e,t)=>t?e[tz]|=3:e[tz]&=-3,tN=(e,t)=>t?e[tz]|=4:e[tz]&=-5,tU=class extends tj{key;animation=new tx;queue;defaultProps={};_state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_pendingCalls=new Set;_lastCallId=0;_lastToId=0;_memoizedDuration=0;constructor(e,t){if(super(),!S.und(e)||!S.und(t)){let r=S.obj(e)?{...e}:{...t,from:e};S.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(tF(this)||this._state.asyncTo)||tT(this)}get goal(){return ex(this.animation.to)}get velocity(){let e=e0(this);return e instanceof e3?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return t$(this)}get isAnimating(){return tF(this)}get isPaused(){return tT(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1,n=this.animation,{toValues:s}=n,{config:a}=n,i=e2(n.to);!i&&ek(n.to)&&(s=R(ex(n.to))),n.values.forEach((o,l)=>{if(o.done)return;let u=o.constructor==e9?1:i?i[l].lastPosition:s[l],d=n.immediate,c=u;if(!d){if(c=o.lastPosition,a.tension<=0){o.done=!0;return}let t=o.elapsedTime+=e,r=n.fromValues[l],s=null!=o.v0?o.v0:o.v0=S.arr(a.velocity)?a.velocity[l]:a.velocity,i,h=a.precision||(r==u?.005:Math.min(1,.001*Math.abs(u-r)));if(S.und(a.duration)){if(a.decay){let e=!0===a.decay?.998:a.decay,n=Math.exp(-(1-e)*t);c=r+s/(1-e)*(1-n),d=Math.abs(o.lastPosition-c)<=h,i=s*n}else{i=null==o.lastVelocity?s:o.lastVelocity;let t=a.restVelocity||h/10,n=a.clamp?0:a.bounce,l=!S.und(n),p=r==u?o.v0>0:r<u,f=Math.ceil(e/1);for(let e=0;e<f&&!(!(Math.abs(i)>t)&&(d=Math.abs(u-c)<=h));++e){l&&(c==u||c>u==p)&&(i=-i*n,c=u);let e=(-(1e-6*a.tension)*(c-u)+-(.001*a.friction)*i)/a.mass;i+=1*e,c+=1*i}}}else{let n=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,o.durationProgress>0&&(o.elapsedTime=a.duration*o.durationProgress,t=o.elapsedTime+=e)),n=(n=(a.progress||0)+t/this._memoizedDuration)>1?1:n<0?0:n,o.durationProgress=n),i=((c=r+a.easing(n)*(u-r))-o.lastPosition)/e,d=1==n}o.lastVelocity=i,Number.isNaN(c)&&(console.warn("Got NaN while animating:",this),d=!0)}i&&!i[l].done&&(d=!1),d?o.done=!0:t=!1,o.setValue(c,a.round)&&(r=!0)});let o=e0(this),l=o.getValue();if(t){let e=ex(n.to);(l!==e||r)&&!a.decay?(o.setValue(e),this._onChange(e)):r&&a.decay&&this._onChange(l),this._stop()}else r&&this._onChange(l)}set(e){return a.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(tF(this)){let{to:e,config:t}=this.animation;a.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return S.und(e)?(r=this.queue||[],this.queue=[]):r=[S.obj(e)?e:{...t,to:e}],Promise.all(r.map(e=>this._update(e))).then(e=>tM(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),tO(this._state,e&&this._lastCallId),a.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:r,from:n}=e;(null==(r=S.obj(r)?r[t]:r)||tg(r))&&(r=void 0),null==(n=S.obj(n)?n[t]:n)&&(n=void 0);let s={to:r,from:n};return t$(this)||(e.reverse&&([r,n]=[n,r]),n=ex(n),S.und(n)?e0(this)||this._set(r):this._set(n)),s}_update({...e},t){let{key:r,defaultProps:n}=this;e.default&&Object.assign(n,td(e,(e,t)=>/^on/.test(t)?to(e,r):e)),tZ(this,e,"onProps"),tY(this,"onProps",e,this);let s=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let a=this._state;return tP(++this._lastCallId,{key:r,props:e,defaultProps:n,state:a,actions:{pause:()=>{tT(this)||(tN(this,!0),j(a.pauseQueue),tY(this,"onPause",tS(this,tD(this,this.animation.to)),this))},resume:()=>{tT(this)&&(tN(this,!1),tF(this)&&this._resume(),j(a.resumeQueue),tY(this,"onResume",tS(this,tD(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(r=>{if(e.loop&&r.finished&&!(t&&r.noop)){let t=tL(e);if(t)return this._update(t,!0)}return r})}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(tC(this));let n=!S.und(e.to),s=!S.und(e.from);if(n||s){if(!(t.callId>this._lastToId))return r(tC(this));this._lastToId=t.callId}let{key:i,defaultProps:o,animation:l}=this,{to:u,from:d}=l,{to:c=u,from:h=d}=e;s&&!n&&(!t.default||S.und(c))&&(c=h),t.reverse&&([c,h]=[h,c]);let p=!C(h,d);p&&(l.from=h),h=ex(h);let f=!C(c,u);f&&this._focus(c);let m=tg(t.to),{config:g}=l,{decay:y,velocity:v}=g;(n||s)&&(g.velocity=0),t.config&&!m&&function(e,t,r){for(let n in r&&(tw(r={...r},t),t={...r,...t}),tw(e,t),Object.assign(e,t),tb)null==e[n]&&(e[n]=tb[n]);let{frequency:n,damping:s}=e,{mass:a}=e;S.und(n)||(n<.01&&(n=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/n,2)*a,e.friction=4*Math.PI*s*a/n)}(g,ta(t.config,i),t.config!==o.config?ta(o.config,i):void 0);let b=e0(this);if(!b||S.und(c))return r(tS(this,!0));let _=S.und(t.reset)?s&&!t.default:!S.und(h)&&ti(t.reset,i),w=_?h:this.get(),k=tf(c),x=S.num(k)||S.arr(k)||eB(k),P=!m&&(!x||ti(o.immediate||t.immediate,i));if(f){let e=te(c);if(e!==b.constructor){if(P)b=this._set(k);else throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let M=b.constructor,I=ek(c),O=!1;if(!I){let e=_||!t$(this)&&p;(f||e)&&(I=!(O=C(tf(w),k))),(C(l.immediate,P)||P)&&C(g.decay,y)&&C(g.velocity,v)||(I=!0)}if(O&&tF(this)&&(l.changed&&!_?I=!0:I||this._stop(u)),!m&&((I||ek(u))&&(l.values=b.getPayload(),l.toValues=ek(c)?null:M==e9?[1]:R(k)),l.immediate==P||(l.immediate=P,P||_||this._set(u)),I)){let{onRest:e}=l;A(tG,e=>tZ(this,t,e));let n=tS(this,tD(this,u));j(this._pendingCalls,n),this._pendingCalls.add(r),l.changed&&a.batchedUpdates(()=>{l.changed=!_,e?.(n,this),_?ta(o.onRest,n):l.onStart?.(n,this)})}_&&this._set(w),m?r(tA(t.to,t,this._state,this)):I?this._start():tF(this)&&!f?this._pendingCalls.add(r):r(tI(w))}_focus(e){let t=this.animation;e!==t.to&&(eP(this)&&this._detach(),t.to=e,eP(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;ek(t)&&(eC(t,this),tE(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;ek(e)&&eA(e,this)}_set(e,t=!0){let r=ex(e);if(!S.und(r)){let e=e0(this);if(!e||!C(r,e.getValue())){let n=te(r);e&&e.constructor==n?e.setValue(r):e1(this,n.create(r)),e&&a.batchedUpdates(()=>{this._onChange(r,t)})}}return e0(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,tY(this,"onStart",tS(this,tD(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),ta(this.animation.onChange,e,this)),ta(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;e0(this).reset(ex(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),tF(this)||(tQ(this,!0),tT(this)||this._resume())}_resume(){P.skipAnimation?this.finish():B.start(this)}_stop(e,t){if(tF(this)){tQ(this,!1);let r=this.animation;A(r.values,e=>{e.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),eM(this,{type:"idle",parent:this});let n=t?tC(this.get()):tS(this.get(),tD(this,e??r.to));j(this._pendingCalls,n),r.changed&&(r.changed=!1,tY(this,"onRest",n,this))}}};function tD(e,t){let r=tf(t);return C(tf(e.get()),r)}function tL(e,t=e.loop,r=e.to){let n=ta(t);if(n){let s=!0!==n&&tp(n),a=(s||e).reverse,i=!s||s.reset;return tB({...e,loop:t,default:!1,pause:void 0,to:!a||tg(r)?r:void 0,from:i?e.from:void 0,reset:i,...s})}}function tB(e){let{to:t,from:r}=e=tp(e),n=new Set;return S.obj(t)&&tW(t,n),S.obj(r)&&tW(r,n),e.keys=n.size?Array.from(n):null,e}function tW(e,t){O(e,(e,r)=>null!=e&&t.add(r))}var tG=["onStart","onRest","onChange","onPause","onResume"];function tZ(e,t,r){e.animation[r]=t[r]!==tl(t,r)?to(t[r],e.key):void 0}function tY(e,t,...r){e.animation[t]?.(...r),e.defaultProps[t]?.(...r)}var tH=["onStart","onChange","onRest"],tJ=1,tX=class{id=tJ++;springs={};queue=[];ref;_flush;_initialProps;_lastAsyncId=0;_active=new Set;_changed=new Set;_started=!1;_item;_state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_events={onStart:new Map,onChange:new Map,onRest:new Map};constructor(e,t){this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,r)=>e[r]=t.get()),e}set(e){for(let t in e){let r=e[t];S.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(tB(e)),this}start(e){let{queue:t}=this;return e?t=R(e).map(tB):this.queue=[],this._flush?this._flush(this,t):(t9(this,t),tK(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let r=this.springs;A(R(t),t=>r[t].stop(!!e))}else tO(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(S.und(e))this.start({pause:!0});else{let t=this.springs;A(R(e),e=>t[e].pause())}return this}resume(e){if(S.und(e))this.start({pause:!1});else{let t=this.springs;A(R(e),e=>t[e].resume())}return this}each(e){O(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,s=this._changed.size>0;(n&&!this._started||s&&!this._started)&&(this._started=!0,V(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let a=!n&&this._started,i=s||a&&r.size?this.get():null;s&&t.size&&V(t,([e,t])=>{t.value=i,e(t,this,this._item)}),a&&(this._started=!1,V(r,([e,t])=>{t.value=i,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}a.onFrame(this._onFrame)}};function tK(e,t){return Promise.all(t.map(t=>t0(e,t))).then(t=>tM(e,t))}async function t0(e,t,r){let{keys:n,to:s,from:i,loop:o,onRest:l,onResolve:u}=t,d=S.obj(t.default)&&t.default;o&&(t.loop=!1),!1===s&&(t.to=null),!1===i&&(t.from=null);let c=S.arr(s)||S.fun(s)?s:void 0;c?(t.to=void 0,t.onRest=void 0,d&&(d.onRest=void 0)):A(tH,r=>{let n=t[r];if(S.fun(n)){let s=e._events[r];t[r]=({finished:e,cancelled:t})=>{let r=s.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):s.set(n,{value:null,finished:e||!1,cancelled:t||!1})},d&&(d[r]=t[r])}});let h=e._state;!h.paused===t.pause?(h.paused=t.pause,j(t.pause?h.pauseQueue:h.resumeQueue)):h.paused&&(t.pause=!0);let p=(n||Object.keys(e.springs)).map(r=>e.springs[r].start(t)),f=!0===t.cancel||!0===tl(t,"cancel");(c||f&&h.asyncId)&&p.push(tP(++e._lastAsyncId,{props:t,state:h,actions:{pause:M,resume:M,start(t,r){f?(tO(h,e._lastAsyncId),r(tC(e))):(t.onRest=l,r(tA(c,t,h,e)))}}})),h.paused&&await new Promise(e=>{h.resumeQueue.add(e)});let m=tM(e,await Promise.all(p));if(o&&m.finished&&!(r&&m.noop)){let r=tL(t,o,s);if(r)return t9(e,[r]),t0(e,r,!0)}return u&&a.batchedUpdates(()=>u(m,e,e.item)),m}function t1(e,t){let r={...e.springs};return t&&A(R(t),e=>{S.und(e.keys)&&(e=tB(e)),S.obj(e.to)||(e={...e,to:void 0}),t3(r,e,e=>t5(e))}),t2(e,r),r}function t2(e,t){O(t,(t,r)=>{e.springs[r]||(e.springs[r]=t,eC(t,e))})}function t5(e,t){let r=new tU;return r.key=e,t&&eC(r,t),r}function t3(e,t,r){t.keys&&A(t.keys,n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)})}function t9(e,t){A(t,t=>{t3(e.springs,t,t=>t5(t,e))})}var t4=({children:e,...t})=>{let r=(0,k.useContext)(t7),n=t.pause||!!r.pause,s=t.immediate||!!r.immediate;t=function(e,t){let[r]=(0,k.useState)(()=>({inputs:t,result:e()})),n=(0,k.useRef)(),s=n.current,a=s;return a?t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,a.inputs)||(a={inputs:t,result:e()}):a=r,(0,k.useEffect)(()=>{n.current=a,s==r&&(r.inputs=r.result=void 0)},[a]),a.result}(()=>({pause:n,immediate:s}),[n,s]);let{Provider:a}=t7;return k.createElement(a,{value:t},e)},t7=(Object.assign(n=t4,k.createContext({})),n.Provider._context=n,n.Consumer._context=n,n);t4.Provider=t7.Provider,t4.Consumer=t7.Consumer;var t8=()=>{let e=[],t=function(t){eL(`${eN}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let n=[];return A(e,(e,s)=>{if(S.und(t))n.push(e.start());else{let a=r(t,e,s);a&&n.push(e.start(a))}}),n};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return A(e,e=>e.pause(...arguments)),this},t.resume=function(){return A(e,e=>e.resume(...arguments)),this},t.set=function(t){A(e,(e,r)=>{let n=S.fun(t)?t(r,e):t;n&&e.set(n)})},t.start=function(t){let r=[];return A(e,(e,n)=>{if(S.und(t))r.push(e.start());else{let s=this._getProps(t,e,n);s&&r.push(e.start(s))}}),r},t.stop=function(){return A(e,e=>e.stop(...arguments)),this},t.update=function(t){return A(e,(e,r)=>e.update(this._getProps(t,e,r))),this};let r=function(e,t,r){return S.fun(e)?e(r,t):e};return t._getProps=r,t};function t6(e,t){let r=S.fun(e),[[n],s]=function(e,t,r){let n=S.fun(t)&&t;n&&!r&&(r=[]);let s=(0,k.useMemo)(()=>n||3==arguments.length?t8():void 0,[]),a=(0,k.useRef)(0),i=eZ(),o=(0,k.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let r=t1(e,t);return!(a.current>0)||o.queue.length||Object.keys(r).some(t=>!e.springs[t])?new Promise(n=>{t2(e,r),o.queue.push(()=>{n(tK(e,t))}),i()}):tK(e,t)}}),[]),l=(0,k.useRef)([...o.ctrls]),u=[],d=eJ(e)||0;function c(e,r){for(let s=e;s<r;s++){let e=l.current[s]||(l.current[s]=new tX(null,o.flush)),r=n?n(s,e):t[s];r&&(u[s]=function(e){let t=tB(e);return S.und(t.default)&&(t.default=td(t)),t}(r))}}(0,k.useMemo)(()=>{A(l.current.slice(e,d),e=>{ty(e,s),e.stop(!0)}),l.current.length=e,c(d,e)},[e]),(0,k.useMemo)(()=>{c(0,Math.min(d,e))},r);let h=l.current.map((e,t)=>t1(e,u[t])),p=(0,k.useContext)(t4),f=eJ(p),m=p!==f&&tm(p);eW(()=>{a.current++,o.ctrls=l.current;let{queue:e}=o;e.length&&(o.queue=[],A(e,e=>e())),A(l.current,(e,t)=>{s?.add(e),m&&e.start({default:p});let r=u[t];r&&(tv(e,r.ref),e.ref?e.queue.push(r):e.start(r))})}),eY(()=>()=>{A(o.ctrls,e=>e.stop(!0))});let g=h.map(e=>({...e}));return s?[g,s]:g}(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[n,s]:n}function re(e,t,r){let n=S.fun(t)&&t,{reset:s,sort:a,trail:i=0,expires:o=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:d,config:c}=n?n():t,h=(0,k.useMemo)(()=>n||3==arguments.length?t8():void 0,[]),p=R(e),f=[],m=(0,k.useRef)(null),g=s?null:m.current;eW(()=>{m.current=f}),eY(()=>(A(f,e=>{h?.add(e.ctrl),e.ctrl.ref=h}),()=>{A(m.current,e=>{e.expired&&clearTimeout(e.expirationId),ty(e.ctrl,h),e.ctrl.stop(!0)})}));let y=function(e,{key:t,keys:r=t},n){if(null===r){let t=new Set;return e.map(e=>{let r=n&&n.find(r=>r.item===e&&"leave"!==r.phase&&!t.has(r));return r?(t.add(r),r.key):rt++})}return S.und(r)?e:S.fun(r)?e.map(r):R(r)}(p,n?n():t,g),v=s&&m.current||[];eW(()=>A(v,({ctrl:e,item:t,key:r})=>{ty(e,h),ta(u,t,r)}));let b=[];if(g&&A(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),v.push(e)):~(t=b[t]=y.indexOf(e.key))&&(f[t]=e)}),A(p,(e,t)=>{f[t]||(f[t]={key:y[t],item:e,phase:"mount",ctrl:new tX},f[t].ctrl.item=e)}),b.length){let e=-1,{leave:r}=n?n():t;A(b,(t,n)=>{let s=g[n];~t?(e=f.indexOf(s),f[e]={...s,item:p[t]}):r&&f.splice(++e,0,s)})}S.fun(a)&&f.sort((e,t)=>a(e.item,t.item));let _=-i,w=eZ(),x=td(t),P=new Map,M=(0,k.useRef)(new Map),I=(0,k.useRef)(!1);A(f,(e,r)=>{let s=e.key,a=e.phase,u=n?n():t,h,p,f=ta(u.delay||0,s);if("mount"==a)h=u.enter,p="enter";else{let e=0>y.indexOf(s);if("leave"!=a){if(e)h=u.leave,p="leave";else{if(!(h=u.update))return;p="update"}}else{if(e)return;h=u.enter,p="enter"}}if(h=ta(h,e.item,r),!(h=S.obj(h)?tp(h):{to:h}).config){let t=c||x.config;h.config=ta(t,e.item,r,p)}_+=i;let v={...x,delay:f+_,ref:d,immediate:u.immediate,reset:!1,...h};if("enter"==p&&S.und(v.from)){let s=n?n():t,a=S.und(s.initial)||g?s.from:s.initial;v.from=ta(a,e.item,r)}let{onResolve:b}=v;v.onResolve=e=>{ta(b,e);let t=m.current,r=t.find(e=>e.key===s);if(r&&!(e.cancelled&&"update"!=r.phase)&&r.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==r.phase){let t=ta(o,r.item);if(!1!==t){let n=!0===t?0:t;if(r.expired=!0,!e&&n>0){n<=2147483647&&(r.expirationId=setTimeout(w,n));return}}}e&&t.some(e=>e.expired)&&(M.current.delete(r),l&&(I.current=!0),w())}};let k=t1(e.ctrl,v);"leave"===p&&l?M.current.set(e,{phase:p,springs:k,payload:v}):P.set(e,{phase:p,springs:k,payload:v})});let C=(0,k.useContext)(t4),O=eJ(C),V=C!==O&&tm(C);eW(()=>{V&&A(f,e=>{e.ctrl.start({default:C})})},[C]),A(P,(e,t)=>{if(M.current.size){let e=f.findIndex(e=>e.key===t.key);f.splice(e,1)}}),eW(()=>{A(M.current.size?M.current:P,({phase:e,payload:t},r)=>{let{ctrl:n}=r;r.phase=e,h?.add(n),V&&"enter"==e&&n.start({default:C}),t&&(tv(n,t.ref),(n.ref||h)&&!I.current?n.update(t):(n.start(t),I.current&&(I.current=!1)))})},s?void 0:r);let E=e=>k.createElement(k.Fragment,null,f.map((t,r)=>{let{springs:n}=P.get(t)||t.ctrl,s=e({...n},t.item,t,r);return s&&s.type?k.createElement(s.type,{...s.props,key:S.str(t.key)||S.num(t.key)?t.key:t.ctrl.id,ref:s.ref}):s}));return h?[E,h]:E}var rt=1,rr=class extends tj{constructor(e,t){super(),this.source=e,this.calc=em(...t);let r=this._get();e1(this,te(r).create(r))}key;idle=!0;calc;_active=new Set;advance(e){let t=this._get();C(t,this.get())||(e0(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&rs(this._active)&&ra(this)}_get(){let e=S.arr(this.source)?this.source.map(ex):R(ex(this.source));return this.calc(...e)}_start(){this.idle&&!rs(this._active)&&(this.idle=!1,A(e2(this),e=>{e.done=!1}),P.skipAnimation?(a.batchedUpdates(()=>this.advance()),ra(this)):B.start(this))}_attach(){let e=1;A(R(this.source),t=>{ek(t)&&eC(t,this),tE(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){A(R(this.source),e=>{ek(e)&&eA(e,this)}),this._active.clear(),ra(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=R(this.source).reduce((e,t)=>Math.max(e,(tE(t)?t.priority:0)+1),0))}};function rn(e){return!1!==e.idle}function rs(e){return!e.size||Array.from(e).every(rn)}function ra(e){e.idle||(e.idle=!0,A(e2(e),e=>{e.done=!0}),eM(e,{type:"idle",parent:e}))}P.assign({createStringInterpolator:eQ,to:(e,t)=>new rr(e,t)}),B.advance;var ri=r(331542),ro=/^--/,rl={},ru={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rd=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),rc=["Webkit","Ms","Moz","O"];ru=Object.keys(ru).reduce((e,t)=>(rc.forEach(r=>e[rd(r,t)]=e[t]),e),ru);var rh=/^(matrix|translate|scale|rotate|skew)/,rp=/^(translate)/,rf=/^(rotate|skew)/,rm=(e,t)=>S.num(e)&&0!==e?e+t:e,rg=(e,t)=>S.arr(e)?e.every(e=>rg(e,t)):S.num(e)?e===t:parseFloat(e)===t,ry=class extends e7{constructor({x:e,y:t,z:r,...n}){let s=[],a=[];(e||t||r)&&(s.push([e||0,t||0,r||0]),a.push(e=>[`translate3d(${e.map(e=>rm(e,"px")).join(",")})`,rg(e,0)])),O(n,(e,t)=>{if("transform"===t)s.push([e||""]),a.push(e=>[e,""===e]);else if(rh.test(t)){if(delete n[t],S.und(e))return;let r=rp.test(t)?"px":rf.test(t)?"deg":"";s.push(R(e)),a.push("rotate3d"===t?([e,t,n,s])=>[`rotate3d(${e},${t},${n},${rm(s,r)})`,rg(s,0)]:e=>[`${t}(${e.map(e=>rm(e,r)).join(",")})`,rg(e,t.startsWith("scale")?1:0)])}}),s.length&&(n.transform=new rv(s,a)),super(n)}},rv=class extends eI{constructor(e,t){super(),this.inputs=e,this.transforms=t}_value=null;get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return A(this.inputs,(r,n)=>{let s=ex(r[0]),[a,i]=this.transforms[n](S.arr(s)?s:r.map(ex));e+=" "+a,t=t&&i}),t?"none":e}observerAdded(e){1==e&&A(this.inputs,e=>A(e,e=>ek(e)&&eC(e,this)))}observerRemoved(e){0==e&&A(this.inputs,e=>A(e,e=>ek(e)&&eA(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),eM(this,e)}};P.assign({batchedUpdates:ri.unstable_batchedUpdates,createStringInterpolator:eQ,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var rb=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=e=>new e7(e),getComponentProps:n=e=>e}={})=>{let s={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},a=e=>{let t=ts(e)||"Anonymous";return(e=S.str(e)?a[e]||(a[e]=tt(e,s)):e[tn]||(e[tn]=tt(e,s))).displayName=`Animated(${t})`,e};return O(e,(t,r)=>{S.arr(e)&&(r=ts(t)),a[r]=a(t)}),{animated:a}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:n,children:s,scrollTop:a,scrollLeft:i,viewBox:o,...l}=t,u=Object.values(l),d=Object.keys(l).map(t=>r||e.hasAttribute(t)?t:rl[t]||(rl[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==s&&(e.textContent=s),n)if(n.hasOwnProperty(t)){var c,h;let r=(c=t,null==(h=n[t])||"boolean"==typeof h||""===h?"":"number"!=typeof h||0===h||ro.test(c)||ru.hasOwnProperty(c)&&ru[c]?(""+h).trim():h+"px");ro.test(t)?e.style.setProperty(t,r):e.style[t]=r}d.forEach((t,r)=>{e.setAttribute(t,u[r])}),void 0!==a&&(e.scrollTop=a),void 0!==i&&(e.scrollLeft=i),void 0!==o&&e.setAttribute("viewBox",o)},createAnimatedStyle:e=>new ry(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}).animated}}]); //# sourceMappingURL=99016-771b20cad3470911.js.map