1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[1696],{75903(t,e,s){var i=s(87521),n=s(12888),r=s(92609);function a(t,...e){return i.is.fun(t)?t(...e):t}var o=(t,e)=>!0===t||!!(e&&t&&(i.is.fun(t)?t(e):(0,i.$r)(t).includes(e))),u=(t,e)=>i.is.obj(t)?e&&t[e]:t,h=(t,e)=>!0===t.default?t[e]:t.default?t.default[e]:void 0,l=t=>t,d=(t,e=l)=>{let s=c;t.default&&!0!==t.default&&(s=Object.keys(t=t.default));let n={};for(let r of s){let s=e(t[r],r);i.is.und(s)||(n[r]=s)}return n},c=["config","onProps","onStart","onChange","onPause","onResume","onRest"],p={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 f(t){let e=function(t){let e={},s=0;if((0,i.FI)(t,(t,i)=>{!p[i]&&(e[i]=t,s++)}),s)return e}(t);if(e){let s={to:e};return(0,i.FI)(t,(t,i)=>i in e||(s[i]=t)),s}return{...t}}function _(t){return t=(0,i.oq)(t),i.is.arr(t)?t.map(_):(0,i.$7)(t)?i.RV.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function m(t){return i.is.fun(t)||i.is.arr(t)&&i.is.obj(t[0])}var g={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},y={...g.default,mass:1,damping:1,easing:i.le.linear,clamp:!1},v=class{constructor(){this.velocity=0,Object.assign(this,y)}};function b(t,e){if(i.is.und(e.decay)){let s=!i.is.und(e.tension)||!i.is.und(e.friction);!s&&i.is.und(e.frequency)&&i.is.und(e.damping)&&i.is.und(e.mass)||(t.duration=void 0,t.decay=void 0),s&&(t.frequency=void 0)}else t.duration=void 0}var w=[],P=class{constructor(){this.changed=!1,this.values=w,this.toValues=null,this.fromValues=w,this.config=new v,this.immediate=!1}};function I(t,{key:e,props:s,defaultProps:n,state:r,actions:u}){return new Promise((h,l)=>{let d,c,p=o(s.cancel??n?.cancel,e);if(p)m();else{i.is.und(s.pause)||(r.paused=o(s.pause,e));let t=n?.pause;!0!==t&&(t=r.paused||o(t,e)),d=a(s.delay||0,e),t?(r.resumeQueue.add(_),u.pause()):(u.resume(),_())}function f(){r.resumeQueue.add(_),r.timeouts.delete(c),c.cancel(),d=c.time-i.er.now()}function _(){d>0&&!i.RV.skipAnimation?(r.delayed=!0,c=i.er.setTimeout(m,d),r.pauseQueue.add(f),r.timeouts.add(c)):m()}function m(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(f),r.timeouts.delete(c),t<=(r.cancelId||0)&&(p=!0);try{u.start({...s,callId:t,cancel:p},h)}catch(t){l(t)}}})}var S=(t,e)=>1==e.length?e[0]:e.some(t=>t.cancelled)?V(t.get()):e.every(t=>t.noop)?C(t.get()):R(t.get(),e.every(t=>t.finished)),C=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),R=(t,e,s=!1)=>({value:t,finished:e,cancelled:s}),V=t=>({value:t,cancelled:!0,finished:!1});function A(t,e,s,n){let{callId:r,parentId:a,onRest:o}=e,{asyncTo:u,promise:h}=s;return a||t!==u||e.reset?s.promise=(async()=>{let l,c,p;s.asyncId=r,s.asyncTo=t;let f=d(e,(t,e)=>"onRest"===e?void 0:t),_=new Promise((t,e)=>(l=t,c=e)),m=t=>{let e=r<=(s.cancelId||0)&&V(n)||r!==s.asyncId&&R(n,!1);if(e)throw t.result=e,c(t),t},g=(t,e)=>{let a=new M,o=new j;return(async()=>{if(i.RV.skipAnimation)throw q(s),o.result=R(n,!1),c(o),o;m(a);let u=i.is.obj(t)?{...t}:{...e,to:t};u.parentId=r,(0,i.FI)(f,(t,e)=>{i.is.und(u[e])&&(u[e]=t)});let h=await n.start(u);return m(a),s.paused&&await new Promise(t=>{s.resumeQueue.add(t)}),h})()};if(i.RV.skipAnimation)return q(s),R(n,!1);try{let e;e=i.is.arr(t)?(async t=>{for(let e of t)await g(e)})(t):Promise.resolve(t(g,n.stop.bind(n))),await Promise.all([e.then(l),_]),p=R(n.get(),!0,!1)}catch(t){if(t instanceof M)p=t.result;else if(t instanceof j)p=t.result;else throw t}finally{r==s.asyncId&&(s.asyncId=a,s.asyncTo=a?u:void 0,s.promise=a?h:void 0)}return i.is.fun(o)&&i.er.batchedUpdates(()=>{o(p,n,n.item)}),p})():h}function q(t,e){(0,i.bX)(t.timeouts,t=>t.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}
1var M=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},j=class extends Error{constructor(){super("SkipAnimationSignal")}},Q=1,k=class extends i.aq{constructor(){super(...arguments),this.id=Q++,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){let t=(0,r.Ao)(this);return t&&t.getValue()}to(...t){return i.RV.to(this,t)}interpolate(...t){return(0,i.ZJ)(),i.RV.to(this,t)}toJSON(){return this.get()}observerAdded(t){1==t&&this._attach()}observerRemoved(t){0==t&&this._detach()}_attach(){}_detach(){}_onChange(t,e=!1){(0,i.MI)(this,{type:"change",parent:this,value:t,idle:e})}_onPriorityChange(t){this.idle||i.WU.sort(this),(0,i.MI)(this,{type:"priority",parent:this,priority:t})}},O=Symbol.for("SpringPhase"),$=t=>(1&t[O])>0,D=t=>(2&t[O])>0,E=t=>(4&t[O])>0,U=(t,e)=>e?t[O]|=3:t[O]&=-3,x=(t,e)=>e?t[O]|=4:t[O]&=-5,z=class extends k{constructor(t,e){if(super(),this.animation=new P,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!i.is.und(t)||!i.is.und(e)){const s=i.is.obj(t)?{...t}:{...e,from:t};i.is.und(s.default)&&(s.default=!0),this.start(s)}}get idle(){return!(D(this)||this._state.asyncTo)||E(this)}get goal(){return(0,i.oq)(this.animation.to)}get velocity(){let t=(0,r.Ao)(this);return t instanceof r.rf?t.lastVelocity||0:t.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return $(this)}get isAnimating(){return D(this)}get isPaused(){return E(this)}get isDelayed(){return this._state.delayed}advance(t){let e=!0,s=!1,n=this.animation,{toValues:a}=n,{config:o}=n,u=(0,r.nm)(n.to);!u&&(0,i.at)(n.to)&&(a=(0,i.$r)((0,i.oq)(n.to))),n.values.forEach((h,l)=>{if(h.done)return;let d=h.constructor==r.pS?1:u?u[l].lastPosition:a[l],c=n.immediate,p=d;if(!c){let e;if(p=h.lastPosition,o.tension<=0){h.done=!0;return}let s=h.elapsedTime+=t,r=n.fromValues[l],a=null!=h.v0?h.v0:h.v0=i.is.arr(o.velocity)?o.velocity[l]:o.velocity,u=o.precision||(r==d?.005:Math.min(1,.001*Math.abs(d-r)));if(i.is.und(o.duration))if(o.decay){let t=!0===o.decay?.998:o.decay,i=Math.exp(-(1-t)*s);
1p=r+a/(1-t)*(1-i),c=Math.abs(h.lastPosition-p)<=u,e=a*i}else{e=null==h.lastVelocity?a:h.lastVelocity;let s=o.restVelocity||u/10,n=o.clamp?0:o.bounce,l=!i.is.und(n),f=r==d?h.v0>0:r<d,_=Math.ceil(t/1);for(let t=0;t<_&&!(!(Math.abs(e)>s)&&(c=Math.abs(d-p)<=u));++t){l&&(p==d||p>d==f)&&(e=-e*n,p=d);let t=(-(1e-6*o.tension)*(p-d)+-(.001*o.friction)*e)/o.mass;e+=+t,p+=+e}}else{let i=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,h.durationProgress>0&&(h.elapsedTime=o.duration*h.durationProgress,s=h.elapsedTime+=t)),h.durationProgress=i=(i=(o.progress||0)+s/this._memoizedDuration)>1?1:i<0?0:i),e=((p=r+o.easing(i)*(d-r))-h.lastPosition)/t,c=1==i}h.lastVelocity=e,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),c=!0)}u&&!u[l].done&&(c=!1),c?h.done=!0:e=!1,h.setValue(p,o.round)&&(s=!0)});let h=(0,r.Ao)(this),l=h.getValue();if(e){let t=(0,i.oq)(n.to);(l!==t||s)&&!o.decay?(h.setValue(t),this._onChange(t)):s&&o.decay&&this._onChange(l),this._stop()}else s&&this._onChange(l)}set(t){return i.er.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(D(this)){let{to:t,config:e}=this.animation;i.er.batchedUpdates(()=>{this._onStart(),e.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,e){let s;return i.is.und(t)?(s=this.queue||[],this.queue=[]):s=[i.is.obj(t)?t:{...e,to:t}],Promise.all(s.map(t=>this._update(t))).then(t=>S(this,t))}stop(t){let{to:e}=this.animation;return this._focus(this.get()),q(this._state,t&&this._lastCallId),i.er.batchedUpdates(()=>this._stop(e,t)),this}reset(){this._update({reset:!0})}eventObserved(t){"change"==t.type?this._start():"priority"==t.type&&(this.priority=t.priority+1)}_prepareNode(t){let e=this.key||"",{to:s,from:n}=t;(null==(s=i.is.obj(s)?s[e]:s)||m(s))&&(s=void 0),null==(n=i.is.obj(n)?n[e]:n)&&(n=void 0);let a={to:s,from:n};return!$(this)&&(t.reverse&&([s,n]=[n,s]),n=(0,i.oq)(n),i.is.und(n)?(0,r.Ao)(this)||this._set(s):this._set(n)),a}_update({...t},e){let{key:s,defaultProps:n}=this;t.default&&Object.assign(n,d(t,(t,e)=>/^on/.test(e)?u(t,s):t)),L(this,t,"onProps"),H(this,"onProps",t,this);let r=this._prepareNode(t);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 I(++this._lastCallId,{key:s,props:t,defaultProps:n,state:a,actions:{pause:()=>{E(this)||(x(this,!0),(0,i.Wd)(a.pauseQueue),H(this,"onPause",R(this,N(this,this.animation.to)),this))},resume:()=>{E(this)&&(x(this,!1),D(this)&&this._resume(),(0,i.Wd)(a.resumeQueue),H(this,"onResume",R(this,N(this,this.animation.to)),this))},start:this._merge.bind(this,r)}}).then(s=>{if(t.loop&&s.finished&&!(e&&s.noop)){let e=T(t);if(e)return this._update(e,!0)}return s})}_merge(t,e,s){if(e.cancel)return this.stop(!0),s(V(this));let n=!i.is.und(t.to),u=!i.is.und(t.from);if(n||u)if(!(e.callId>this._lastToId))return s(V(this));else this._lastToId=e.callId;let{key:h,defaultProps:l,animation:d}=this,{to:c,from:p}=d,{to:f=c,from:g=p}=t;u&&!n&&(!e.default||i.is.und(f))&&(f=g),e.reverse&&([f,g]=[g,f]);let v=!(0,i.n4)(g,p);v&&(d.from=g),g=(0,i.oq)(g);let w=!(0,i.n4)(f,c);w&&this._focus(f);let P=m(e.to),{config:I}=d,{decay:S,velocity:q}=I;(n||u)&&(I.velocity=0),e.config&&!P&&function(t,e,s){for(let i in s&&(b(s={...s},e),e={...s,...e}),b(t,e),Object.assign(t,e),y)null==t[i]&&(t[i]=y[i]);let{frequency:n,damping:r}=t,{mass:a}=t;i.is.und(n)||(n<.01&&(n=.01),r<0&&(r=0),t.tension=Math.pow(2*Math.PI/n,2)*a,t.friction=4*Math.PI*r*a/n)}(I,a(e.config,h),e.config!==l.config?a(l.config,h):void 0);let M=(0,r.Ao)(this);if(!M||i.is.und(f))return s(R(this,!0));let j=i.is.und(e.reset)?u&&!e.default:!i.is.und(g)&&o(e.reset,h),Q=j?g:this.get(),k=_(f),O=i.is.num(k)||i.is.arr(k)||(0,i.$7)(k),E=!P&&(!O||o(l.immediate||e.immediate,h));if(w){let t=(0,r.SJ)(f);if(t!==M.constructor)if(E)M=this._set(k);else throw Error(`Cannot animate between ${M.constructor.name} and ${t.name}, as the "to" prop suggests`)}let U=M.constructor,x=(0,i.at)(f),z=!1;if(!x){let t=j||!$(this)&&v;(w||t)&&(x=!(z=(0,i.n4)(_(Q),k))),((0,i.n4)(d.immediate,E)||E)&&(0,i.n4)(I.decay,S)&&(0,i.n4)(I.velocity,q)||(x=!0)}if(z&&D(this)&&(d.changed&&!j?x=!0:x||this._stop(c)),!P&&((x||(0,i.at)(c))&&(d.values=M.getPayload(),d.toValues=(0,i.at)(f)?null:U==r.pS?[1]:(0,i.$r)(k)),d.immediate!=E&&(d.immediate=E,E||j||this._set(c)),x)){let{onRest:t}=d;(0,i.__)(X,t=>L(this,e,t));let n=R(this,N(this,c));
1(0,i.Wd)(this._pendingCalls,n),this._pendingCalls.add(s),d.changed&&i.er.batchedUpdates(()=>{d.changed=!j,t?.(n,this),j?a(l.onRest,n):d.onStart?.(n,this)})}j&&this._set(Q),P?s(A(e.to,e,this._state,this)):x?this._start():D(this)&&!w?this._pendingCalls.add(s):s(C(Q))}_focus(t){let e=this.animation;t!==e.to&&((0,i.Wg)(this)&&this._detach(),e.to=t,(0,i.Wg)(this)&&this._attach())}_attach(){let t=0,{to:e}=this.animation;(0,i.at)(e)&&((0,i.Ec)(e,this),e instanceof k&&(t=e.priority+1)),this.priority=t}_detach(){let{to:t}=this.animation;(0,i.at)(t)&&(0,i.DV)(t,this)}_set(t,e=!0){let s=(0,i.oq)(t);if(!i.is.und(s)){let t=(0,r.Ao)(this);if(!t||!(0,i.n4)(s,t.getValue())){let n=(0,r.SJ)(s);t&&t.constructor==n?t.setValue(s):(0,r.uX)(this,n.create(s)),t&&i.er.batchedUpdates(()=>{this._onChange(s,e)})}}return(0,r.Ao)(this)}_onStart(){let t=this.animation;t.changed||(t.changed=!0,H(this,"onStart",R(this,N(this,t.to)),this))}_onChange(t,e){e||(this._onStart(),a(this.animation.onChange,t,this)),a(this.defaultProps.onChange,t,this),super._onChange(t,e)}_start(){let t=this.animation;(0,r.Ao)(this).reset((0,i.oq)(t.to)),t.immediate||(t.fromValues=t.values.map(t=>t.lastPosition)),!D(this)&&(U(this,!0),E(this)||this._resume())}_resume(){i.RV.skipAnimation?this.finish():i.WU.start(this)}_stop(t,e){if(D(this)){U(this,!1);let s=this.animation;(0,i.__)(s.values,t=>{t.done=!0}),s.toValues&&(s.onChange=s.onPause=s.onResume=void 0),(0,i.MI)(this,{type:"idle",parent:this});let n=e?V(this.get()):R(this.get(),N(this,t??s.to));(0,i.Wd)(this._pendingCalls,n),s.changed&&(s.changed=!1,H(this,"onRest",n,this))}}};function N(t,e){let s=_(e),n=_(t.get());return(0,i.n4)(n,s)}function T(t,e=t.loop,s=t.to){let i=a(e);if(i){let n=!0!==i&&f(i),r=(n||t).reverse,a=!n||n.reset;return F({...t,loop:e,default:!1,pause:void 0,to:!r||m(s)?s:void 0,from:a?t.from:void 0,reset:a,...n})}}function F(t){let{to:e,from:s}=t=f(t),n=new Set;return i.is.obj(e)&&W(e,n),i.is.obj(s)&&W(s,n),t.keys=n.size?Array.from(n):null,t}function W(t,e){(0,i.FI)(t,(t,s)=>null!=t&&e.add(s))}var X=["onStart","onRest","onChange","onPause","onResume"];function L(t,e,s){t.animation[s]=e[s]!==h(e,s)?u(e[s],t.key):void 0}function H(t,e,...s){t.animation[e]?.(...s),t.defaultProps[e]?.(...s)}var J=["onStart","onChange","onRest"],B=1,K=class{constructor(t,e){this.id=B++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),e&&(this._flush=e),t&&this.start({default:!0,...t})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){let t={};return this.each((e,s)=>t[s]=e.get()),t}set(t){for(let e in t){let s=t[e];i.is.und(s)||this.springs[e].set(s)}}update(t){return t&&this.queue.push(F(t)),this}start(t){let{queue:e}=this;return(t?e=(0,i.$r)(t).map(F):this.queue=[],this._flush)?this._flush(this,e):(ti(this,e),G(this,e))}stop(t,e){if(!!t!==t&&(e=t),e){let s=this.springs;(0,i.__)((0,i.$r)(e),e=>s[e].stop(!!t))}else q(this._state,this._lastAsyncId),this.each(e=>e.stop(!!t));return this}pause(t){if(i.is.und(t))this.start({pause:!0});else{let e=this.springs;(0,i.__)((0,i.$r)(t),t=>e[t].pause())}return this}resume(t){if(i.is.und(t))this.start({pause:!1});else{let e=this.springs;(0,i.__)((0,i.$r)(t),t=>e[t].resume())}return this}each(t){(0,i.FI)(this.springs,t)}_onFrame(){let{onStart:t,onChange:e,onRest:s}=this._events,n=this._active.size>0,r=this._changed.size>0;(n&&!this._started||r&&!this._started)&&(this._started=!0,(0,i.bX)(t,([t,e])=>{e.value=this.get(),t(e,this,this._item)}));let a=!n&&this._started,o=r||a&&s.size?this.get():null;r&&e.size&&(0,i.bX)(e,([t,e])=>{e.value=o,t(e,this,this._item)}),a&&(this._started=!1,(0,i.bX)(s,([t,e])=>{e.value=o,t(e,this,this._item)}))}eventObserved(t){if("change"==t.type)this._changed.add(t.parent),t.idle||this._active.add(t.parent);else{if("idle"!=t.type)return;this._active.delete(t.parent)}i.er.onFrame(this._onFrame)}};function G(t,e){return Promise.all(e.map(e=>Y(t,e))).then(e=>S(t,e))}async function Y(t,e,s){let{keys:n,to:r,from:a,loop:o,onRest:u,onResolve:l}=e,d=i.is.obj(e.default)&&e.default;o&&(e.loop=!1),!1===r&&(e.to=null),!1===a&&(e.from=null);let c=i.is.arr(r)||i.is.fun(r)?r:void 0;c?(e.to=void 0,e.onRest=void 0,d&&(d.onRest=void 0)):(0,i.__)(J,s=>{let n=e[s];if(i.is.fun(n)){let i=t._events[s];e[s]=({finished:t,cancelled:e})=>{let s=i.get(n);s?(t||(s.finished=!1),e&&(s.cancelled=!0)):i.set(n,{value:null,finished:t||!1,cancelled:e||!1})},d&&(d[s]=e[s])}});let p=t._state;!p.paused===e.pause?(p.paused=e.pause,(0,i.Wd)(e.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(e.pause=!0);let f=(n||Object.keys(t.springs)).map(s=>t.springs[s].start(e)),_=!0===e.cancel||!0===h(e,"cancel");(c||_&&p.asyncId)&&f.push(I(++t._lastAsyncId,{props:e,state:p,actions:{pause:i.lQ,resume:i.lQ,start(e,s){_?(q(p,t._lastAsyncId),s(V(t))):(e.onRest=u,s(A(c,e,p,t)))}}})),p.paused&&await new Promise(t=>{p.resumeQueue.add(t)});let m=S(t,await Promise.all(f));if(o&&m.finished&&!(s&&m.noop)){let s=T(e,o,r);if(s)return ti(t,[s]),Y(t,s,!0)}return l&&i.er.batchedUpdates(()=>l(m,t,t.item)),m}function Z(t,e){let s={...t.springs};return e&&(0,i.__)((0,i.$r)(e),t=>{i.is.und(t.keys)&&(t=F(t)),i.is.obj(t.to)||(t={...t,to:void 0}),ts(s,t,t=>te(t))}),tt(t,s),s}function tt(t,e){(0,i.FI)(e,(e,s)=>{t.springs[s]||(t.springs[s]=e,(0,i.Ec)(e,t))})}function te(t,e){let s=new z;return s.key=t,e&&(0,i.Ec)(s,e),s}function ts(t,e,s){e.keys&&(0,i.__)(e.keys,i=>{(t[i]||(t[i]=s(i)))._prepareNode(e)})}function ti(t,e){(0,i.__)(e,e=>{ts(t.springs,e,e=>te(e,t))})}var tn=n.createContext({pause:!1,immediate:!1});function tr(t,e){let s=i.is.fun(t),[[r],a]=function(t,e,s){let r=i.is.fun(e)&&e;r&&!s&&(s=[]);let a=(0,n.useMemo)(()=>{let t,e,s;return r||3==arguments.length?(t=[],(e=function(e){(0,i.HX)();let n=[];return(0,i.__)(t,(t,r)=>{if(i.is.und(e))n.push(t.start());else{let i=s(e,t,r);i&&n.push(t.start(i))}}),n}).current=t,e.add=function(e){t.includes(e)||t.push(e)},e.delete=function(e){let s=t.indexOf(e);~s&&t.splice(s,1)},e.pause=function(){return(0,i.__)(t,t=>t.pause(...arguments)),this},e.resume=function(){return(0,i.__)(t,t=>t.resume(...arguments)),this},e.set=function(e){(0,i.__)(t,(t,s)=>{let n=i.is.fun(e)?e(s,t):e;n&&t.set(n)})},e.start=function(e){let s=[];return(0,i.__)(t,(t,n)=>{if(i.is.und(e))s.push(t.start());else{let i=this._getProps(e,t,n);i&&s.push(t.start(i))}}),s},e.stop=function(){return(0,i.__)(t,t=>t.stop(...arguments)),this},e.update=function(e){return(0,i.__)(t,(t,s)=>t.update(this._getProps(e,t,s))),this},e._getProps=s=function(t,e,s){return i.is.fun(t)?t(s,e):t},e):void 0},[]),o=(0,n.useRef)(0),u=(0,i.CH)(),h=(0,n.useMemo)(()=>({ctrls:[],queue:[],flush(t,e){let s=Z(t,e);return!(o.current>0)||h.queue.length||Object.keys(s).some(e=>!t.springs[e])?new Promise(i=>{tt(t,s),h.queue.push(()=>{i(G(t,e))}),u()}):G(t,e)}}),[]),l=(0,n.useRef)([...h.ctrls]),c=(0,n.useRef)([]),p=(0,i.NQ)(t)||0;function f(t,s){for(let n=t;n<s;n++){let t=l.current[n]||(l.current[n]=new K(null,h.flush)),s=r?r(n,t):e[n];s&&(c.current[n]=function(t){let e=F(t);return i.is.und(e.default)&&(e.default=d(e)),e}(s))}}(0,n.useMemo)(()=>{(0,i.__)(l.current.slice(t,p),t=>{t.ref?.delete(t),a?.delete(t),t.stop(!0)}),l.current.length=t,f(p,t)},[t]),(0,n.useMemo)(()=>{f(0,Math.min(p,t))},s);let _=l.current.map((t,e)=>Z(t,c.current[e])),m=(0,n.useContext)(tn),g=(0,i.NQ)(m),y=m!==g&&function(t){for(let e in t)return!0;return!1}(m);(0,i.Es)(()=>{o.current++,h.ctrls=l.current;let{queue:t}=h;t.length&&(h.queue=[],(0,i.__)(t,t=>t())),(0,i.__)(l.current,(t,e)=>{a?.add(t),y&&t.start({default:m});let s=c.current[e];if(s){var i;(i=s.ref)&&t.ref!==i&&(t.ref?.delete(t),i.add(t),t.ref=i),t.ref?t.queue.push(s):t.start(s)}})}),(0,i.H5)(()=>()=>{(0,i.__)(h.ctrls,t=>
1t.stop(!0))});let v=_.map(t=>({...t}));return a?[v,a]:v}(1,s?t:[t],s?e||[]:e);return s||2==arguments.length?[r,a]:r}var ta=class extends k{constructor(t,e){super(),this.source=t,this.idle=!0,this._active=new Set,this.calc=(0,i.kx)(...e);const s=this._get(),n=(0,r.SJ)(s);(0,r.uX)(this,n.create(s))}advance(t){let e=this._get(),s=this.get();(0,i.n4)(e,s)||((0,r.Ao)(this).setValue(e),this._onChange(e,this.idle)),!this.idle&&tu(this._active)&&th(this)}_get(){let t=i.is.arr(this.source)?this.source.map(i.oq):(0,i.$r)((0,i.oq)(this.source));return this.calc(...t)}_start(){this.idle&&!tu(this._active)&&(this.idle=!1,(0,i.__)((0,r.nm)(this),t=>{t.done=!1}),i.RV.skipAnimation?(i.er.batchedUpdates(()=>this.advance()),th(this)):i.WU.start(this))}_attach(){let t=1;(0,i.__)((0,i.$r)(this.source),e=>{(0,i.at)(e)&&(0,i.Ec)(e,this),e instanceof k&&(e.idle||this._active.add(e),t=Math.max(t,e.priority+1))}),this.priority=t,this._start()}_detach(){(0,i.__)((0,i.$r)(this.source),t=>{(0,i.at)(t)&&(0,i.DV)(t,this)}),this._active.clear(),th(this)}eventObserved(t){"change"==t.type?t.idle?this.advance():(this._active.add(t.parent),this._start()):"idle"==t.type?this._active.delete(t.parent):"priority"==t.type&&(this.priority=(0,i.$r)(this.source).reduce((t,e)=>Math.max(t,(e instanceof k?e.priority:0)+1),0))}};function to(t){return!1!==t.idle}function tu(t){return!t.size||Array.from(t).every(to)}function th(t){t.idle||(t.idle=!0,(0,i.__)((0,r.nm)(t),t=>{t.done=!0}),(0,i.MI)(t,{type:"idle",parent:t}))}i.RV.assign({createStringInterpolator:i.Rs,to:(t,e)=>new ta(t,e)}),i.WU.advance,s.d(e,{$W:()=>g,RV:()=>i.RV,zh:()=>tr})}}]); 2//# sourceMappingURL=npm.react-spring-core.f0f1b453933dd6b7.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.