Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@twilio-paste/animation-library

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twilio-paste/animation-library - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

6

CHANGELOG.md
# Change Log
## 0.3.5
### Patch Changes
- [`73c596919`](https://github.com/twilio-labs/paste/commit/73c5969191c04b4721a059c9dee329126afc1a8e) [#2269](https://github.com/twilio-labs/paste/pull/2269) Thanks [@SiTaggart](https://github.com/SiTaggart)! - Fixed a regression with the compilation script that caused incompatible ESM module importing of JSON files.
## 0.3.4

@@ -4,0 +10,0 @@

2

dist/index.es.js

@@ -1,1 +0,1 @@

var lt=Object.defineProperty,es=Object.defineProperties,ts=Object.getOwnPropertyDescriptor,ns=Object.getOwnPropertyDescriptors,ss=Object.getOwnPropertyNames,De=Object.getOwnPropertySymbols;var dt=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable;var Bt=(t,e,n)=>e in t?lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,I=(t,e)=>{for(var n in e||(e={}))dt.call(e,n)&&Bt(t,n,e[n]);if(De)for(var n of De(e))Gt.call(e,n)&&Bt(t,n,e[n]);return t},C=(t,e)=>es(t,ns(e));var ue=(t,e)=>{var n={};for(var s in t)dt.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&De)for(var s of De(t))e.indexOf(s)<0&&Gt.call(t,s)&&(n[s]=t[s]);return n};var Ht=(t,e)=>{for(var n in e)lt(t,n,{get:e[n],enumerable:!0})},he=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ss(e))!dt.call(t,i)&&(n||i!=="default")&&lt(t,i,{get:()=>e[i],enumerable:!(s=ts(e,i))||s.enumerable});return t};var Qe=H(),P=t=>xe(t,Qe),Me=H();P.write=t=>xe(t,Me);var ze=H();P.onStart=t=>xe(t,ze);var ft=H();P.onFrame=t=>xe(t,ft);var ht=H();P.onFinish=t=>xe(t,ht);var ce=[];P.setTimeout=(t,e)=>{let n=P.now()+e,s=()=>{let r=ce.findIndex(u=>u.cancel==s);~r&&ce.splice(r,1),X.count-=~r?1:0},i={time:n,handler:t,cancel:s};return ce.splice(Kt(n),0,i),X.count+=1,Wt(),i};var Kt=t=>~(~ce.findIndex(e=>e.time>t)||~ce.length);P.cancel=t=>{Qe.delete(t),Me.delete(t)};P.sync=t=>{pt=!0,P.batchedUpdates(t),pt=!1};P.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function s(...i){e=i,P.onStart(n)}return s.handler=t,s.cancel=()=>{ze.delete(n),e=null},s};var mt=typeof window!="undefined"?window.requestAnimationFrame:()=>{};P.use=t=>mt=t;P.now=typeof performance!="undefined"?()=>performance.now():Date.now;P.batchedUpdates=t=>t();P.catch=console.error;var Z=-1,pt=!1;function xe(t,e){pt?(e.delete(t),t(0)):(e.add(t),Wt())}function Wt(){Z<0&&(Z=0,mt(Yt))}function Yt(){~Z&&(mt(Yt),P.batchedUpdates(is))}function is(){let t=Z;Z=P.now();let e=Kt(Z);e&&(Jt(ce.splice(0,e),n=>n.handler()),X.count-=e),ze.flush(),Qe.flush(t?Math.min(64,Z-t):16.667),ft.flush(),Me.flush(),ht.flush()}function H(){let t=new Set,e=t;return{add(n){X.count+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return X.count-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,X.count-=e.size,Jt(e,s=>s(n)&&t.add(s)),X.count+=t.size,e=t)}}}function Jt(t,e){t.forEach(n=>{try{e(n)}catch(s){P.catch(s)}})}var X={count:0,clear(){Z=-1,ce=[],ze=H(),Qe=H(),ft=H(),Me=H(),ht=H(),X.count=0}};var h={};Ht(h,{default:()=>Zt});he(h,mi);import*as Zt from"react";import*as mi from"react";function Le(){}var Xt=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),a={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function Y(t,e){if(a.arr(t)){if(!a.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}var g=(t,e)=>t.forEach(e);function D(t,e,n){for(let s in t)e.call(n,t[s],s)}var V=t=>a.und(t)?[]:a.arr(t)?t:[t];function me(t,e){if(t.size){let n=Array.from(t);t.clear(),g(n,e)}}var pe=(t,...e)=>me(t,n=>n(...e)),gt,en,ee=null,tn=!1,yt=Le,rs=t=>{t.to&&(en=t.to),t.now&&(P.now=t.now),t.colors!==void 0&&(ee=t.colors),t.skipAnimation!=null&&(tn=t.skipAnimation),t.createStringInterpolator&&(gt=t.createStringInterpolator),t.requestAnimationFrame&&P.use(t.requestAnimationFrame),t.batchedUpdates&&(P.batchedUpdates=t.batchedUpdates),t.willAdvance&&(yt=t.willAdvance)},Q=Object.freeze({__proto__:null,get createStringInterpolator(){return gt},get to(){return en},get colors(){return ee},get skipAnimation(){return tn},get willAdvance(){return yt},assign:rs}),Se=new Set,M=[],bt=[],Ge=0,ge={get idle(){return!Se.size&&!M.length},start(t){Ge>t.priority?(Se.add(t),P.onStart(os)):(nn(t),P(_t))},advance:_t,sort(t){if(Ge)P.onFrame(()=>ge.sort(t));else{let e=M.indexOf(t);~e&&(M.splice(e,1),sn(t))}},clear(){M=[],Se.clear()}};function os(){Se.forEach(nn),Se.clear(),P(_t)}function nn(t){M.includes(t)||sn(t)}function sn(t){M.splice(as(M,e=>e.priority>t.priority),0,t)}function _t(t){let e=bt;for(let n=0;n<M.length;n++){let s=M[n];Ge=s.priority,s.idle||(yt(s),s.advance(t),s.idle||e.push(s))}return Ge=0,bt=M,bt.length=0,M=e,M.length>0}function as(t,e){let n=t.findIndex(e);return n<0?t.length:n}var rn={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},z="[-+]?\\d*\\.?\\d+",Be=z+"%";function He(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var us=new RegExp("rgb"+He(z,z,z)),cs=new RegExp("rgba"+He(z,z,z,z)),ls=new RegExp("hsl"+He(z,Be,Be)),ds=new RegExp("hsla"+He(z,Be,Be,z)),fs=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hs=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ms=/^#([0-9a-fA-F]{6})$/,ps=/^#([0-9a-fA-F]{8})$/;function gs(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=ms.exec(t))?parseInt(e[1]+"ff",16)>>>0:ee&&ee[t]!==void 0?ee[t]:(e=us.exec(t))?(ye(e[1])<<24|ye(e[2])<<16|ye(e[3])<<8|255)>>>0:(e=cs.exec(t))?(ye(e[1])<<24|ye(e[2])<<16|ye(e[3])<<8|un(e[4]))>>>0:(e=fs.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=ps.exec(t))?parseInt(e[1],16)>>>0:(e=hs.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=ls.exec(t))?(on(an(e[1]),Ke(e[2]),Ke(e[3]))|255)>>>0:(e=ds.exec(t))?(on(an(e[1]),Ke(e[2]),Ke(e[3]))|un(e[4]))>>>0:null}function vt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function on(t,e,n){let s=n<.5?n*(1+e):n+e-n*e,i=2*n-s,r=vt(i,s,t+1/3),u=vt(i,s,t),c=vt(i,s,t-1/3);return Math.round(r*255)<<24|Math.round(u*255)<<16|Math.round(c*255)<<8}function ye(t){let e=parseInt(t,10);return e<0?0:e>255?255:e}function an(t){return(parseFloat(t)%360+360)%360/360}function un(t){let e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Ke(t){let e=parseFloat(t);return e<0?0:e>100?1:e/100}function cn(t){let e=gs(t);if(e===null)return t;e=e||0;let n=(e&4278190080)>>>24,s=(e&16711680)>>>16,i=(e&65280)>>>8,r=(e&255)/255;return`rgba(${n}, ${s}, ${i}, ${r})`}var te=(t,e,n)=>{if(a.fun(t))return t;if(a.arr(t))return te({range:t,output:e,extrapolate:n});if(a.str(t.output[0]))return gt(t);let s=t,i=s.output,r=s.range||[0,1],u=s.extrapolateLeft||s.extrapolate||"extend",c=s.extrapolateRight||s.extrapolate||"extend",d=s.easing||(o=>o);return o=>{let f=bs(o,r);return ys(o,r[f],r[f+1],i[f],i[f+1],d,u,c,s.map)}};function ys(t,e,n,s,i,r,u,c,d){let o=d?d(t):t;if(o<e){if(u==="identity")return o;u==="clamp"&&(o=e)}if(o>n){if(c==="identity")return o;c==="clamp"&&(o=n)}return s===i?s:e===n?t<=e?s:i:(e===-1/0?o=-o:n===1/0?o=o-e:o=(o-e)/(n-e),o=r(o),s===-1/0?o=-o:i===1/0?o=o+s:o=o*(i-s)+s,o)}function bs(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}var Ae=Symbol.for("FluidValue.get"),be=Symbol.for("FluidValue.observers"),U=t=>Boolean(t&&t[Ae]),E=t=>t&&t[Ae]?t[Ae]():t,wt=t=>t[be]||null;function _s(t,e){t.eventObserved?t.eventObserved(e):t(e)}function le(t,e){let n=t[be];n&&n.forEach(s=>{_s(s,e)})}var Re=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");vs(this,e)}},vs=(t,e)=>ln(t,Ae,e);function J(t,e){if(t[Ae]){let n=t[be];n||ln(t,be,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function ne(t,e){let n=t[be];if(n&&n.has(e)){let s=n.size-1;s?n.delete(e):t[be]=null,t.observerRemoved&&t.observerRemoved(s,e)}}var ln=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),dn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ws=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Pt,Ps=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,xs=(t,e,n,s,i)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(s)}, ${i})`,We=t=>{Pt||(Pt=ee?new RegExp(`(${Object.keys(ee).join("|")})`,"g"):/^\b$/);let e=t.output.map(r=>E(r).replace(ws,cn).replace(Pt,cn)),n=e.map(r=>r.match(dn).map(Number)),i=n[0].map((r,u)=>n.map(c=>{if(!(u in c))throw Error('The arity of each "output" value must be equal');return c[u]})).map(r=>te(C(I({},t),{output:r})));return r=>{let u=0;return e[0].replace(dn,()=>String(i[u++](r))).replace(Ps,xs)}},xt="react-spring: ",fn=t=>{let e=t,n=!1;if(typeof e!="function")throw new TypeError(`${xt}once requires a function parameter`);return(...s)=>{n||(e(...s),n=!0)}},Ss=fn(console.warn);function St(){Ss(`${xt}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var As=fn(console.warn);function hn(){As(`${xt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead)`)}function _e(t){return a.str(t)&&(t[0]=="#"||/\d/.test(t)||t in(ee||{}))}var ve=t=>(0,h.useEffect)(t,Rs),Rs=[];function Fe(){let t=(0,h.useState)()[1],e=(0,h.useState)(Fs)[0];return ve(e.unmount),()=>{e.current&&t({})}}function Fs(){let t={current:!0,unmount:()=>()=>{t.current=!1}};return t}function mn(t,e){let[n]=(0,h.useState)(()=>({inputs:e,result:t()})),s=(0,h.useRef)(),i=s.current,r=i;return r?Boolean(e&&r.inputs&&Is(e,r.inputs))||(r={inputs:e,result:t()}):r=n,(0,h.useEffect)(()=>{s.current=r,i==n&&(n.inputs=n.result=void 0)},[r]),r.result}function Is(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function Ye(t){let e=(0,h.useRef)();return(0,h.useEffect)(()=>{e.current=t}),e.current}var K=typeof window!="undefined"&&window.document&&window.document.createElement?h.useLayoutEffect:h.useEffect;var Ie=Symbol.for("Animated:node"),Ts=t=>!!t&&t[Ie]===t,L=t=>t&&t[Ie],Je=(t,e)=>Xt(t,Ie,e),Te=t=>t&&t[Ie]&&t[Ie].getPayload(),At=class{constructor(){Je(this,this)}getPayload(){return this.payload||[]}},se=class extends At{constructor(e){super();this._value=e,this.done=!0,this.durationProgress=0,a.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new se(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,n){return a.num(e)&&(this.lastPosition=e,n&&(e=Math.round(e/n)*n,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,a.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},ie=class extends se{constructor(e){super(0);this._string=null,this._toString=te({output:[e,e]})}static create(e){return new ie(e)}getValue(){let e=this._string;return e==null?this._string=this._toString(this._value):e}setValue(e){if(a.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=te({output:[this.getValue(),e]})),this._value=0,super.reset()}},Ze={dependencies:null},we=class extends At{constructor(e){super();this.source=e,this.setValue(e)}getValue(e){let n={};return D(this.source,(s,i)=>{Ts(s)?n[i]=s.getValue(e):U(s)?n[i]=E(s):e||(n[i]=s)}),n}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&g(this.payload,e=>e.reset())}_makePayload(e){if(e){let n=new Set;return D(e,this._addToPayload,n),Array.from(n)}}_addToPayload(e){Ze.dependencies&&U(e)&&Ze.dependencies.add(e);let n=Te(e);n&&g(n,s=>this.add(s))}},Xe=class extends we{constructor(e){super(e)}static create(e){return new Xe(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let n=this.getPayload();return e.length==n.length?n.some((s,i)=>s.setValue(e[i])):(super.setValue(e.map(ks)),!0)}};function ks(t){return(_e(t)?ie:se).create(t)}function et(t){let e=L(t);return e?e.constructor:a.arr(t)?Xe:_e(t)?ie:se}var pn=(t,e)=>{let n=!a.fun(t)||t.prototype&&t.prototype.isReactComponent;return(0,h.forwardRef)((s,i)=>{let r=(0,h.useRef)(null),u=n&&(0,h.useCallback)(y=>{r.current=Vs(i,y)},[i]),[c,d]=Os(s,e),o=Fe(),f=()=>{let y=r.current;if(n&&!y)return;(y?e.applyAnimatedValues(y,c.getValue(!0)):!1)===!1&&o()},l=new gn(f,d),p=(0,h.useRef)();K(()=>{let y=p.current;p.current=l,g(d,m=>J(m,l)),y&&(g(y.deps,m=>ne(m,y)),P.cancel(y.update))}),(0,h.useEffect)(f,[]),ve(()=>()=>{let y=p.current;g(y.deps,m=>ne(m,y))});let x=e.getComponentProps(c.getValue());return(0,h.createElement)(t,C(I({},x),{ref:u}))})},gn=class{constructor(e,n){this.update=e,this.deps=n}eventObserved(e){e.type=="change"&&P.write(this.update)}};function Os(t,e){let n=new Set;return Ze.dependencies=n,t.style&&(t=C(I({},t),{style:e.createAnimatedStyle(t.style)})),t=new we(t),Ze.dependencies=null,[t,n]}function Vs(t,e){return t&&(a.fun(t)?t(e):t.current=e),e}var yn=Symbol.for("AnimatedComponent"),bn=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:n=i=>new we(i),getComponentProps:s=i=>i}={})=>{let i={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:s},r=u=>{let c=_n(u)||"Anonymous";return a.str(u)?u=r[u]||(r[u]=pn(u,i)):u=u[yn]||(u[yn]=pn(u,i)),u.displayName=`Animated(${c})`,u};return D(t,(u,c)=>{a.arr(t)&&(c=_n(u)),r[c]=r(u)}),{animated:r}},_n=t=>a.str(t)?t:t&&a.str(t.displayName)?t.displayName:a.fun(t)&&t.name||null;function N(t,...e){return a.fun(t)?t(...e):t}var ke=(t,e)=>t===!0||!!(e&&t&&(a.fun(t)?t(e):V(t).includes(e))),vn=(t,e)=>a.obj(t)?e&&t[e]:t,wn=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,Es=t=>t,tt=(t,e=Es)=>{let n=Cs;t.default&&t.default!==!0&&(t=t.default,n=Object.keys(t));let s={};for(let i of n){let r=e(t[i],i);a.und(r)||(s[i]=r)}return s},Cs=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Us={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 qs(t){let e={},n=0;if(D(t,(s,i)=>{Us[i]||(e[i]=s,n++)}),n)return e}function Rt(t){let e=qs(t);if(e){let n={to:e};return D(t,(s,i)=>i in e||(n[i]=s)),n}return I({},t)}function Oe(t){return t=E(t),a.arr(t)?t.map(Oe):_e(t)?Q.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function Pn(t){for(let e in t)return!0;return!1}function Ft(t){return a.fun(t)||a.arr(t)&&a.obj(t[0])}function It(t,e){var n;(n=t.ref)==null||n.delete(t),e==null||e.delete(t)}function xn(t,e){var n;e&&t.ref!==e&&((n=t.ref)==null||n.delete(t),e.add(t),t.ref=e)}function js(t,e,n=1e3){K(()=>{if(e){let s=0;g(t,(i,r)=>{let u=i.current;if(u.length){let c=n*e[r];isNaN(c)?c=s:s=c,g(u,d=>{g(d.queue,o=>{let f=o.delay;o.delay=l=>c+N(f||0,l)}),d.start()})}})}else{let s=Promise.resolve();g(t,i=>{let r=i.current;if(r.length){let u=r.map(c=>{let d=c.queue;return c.queue=[],d});s=s.then(()=>(g(r,(c,d)=>g(u[d]||[],o=>c.queue.push(o))),i.start()))}})}})}var Ns={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}},$s=t=>t,Tt=C(I({},Ns.default),{mass:1,damping:1,easing:$s,clamp:!1}),Sn=class{constructor(){this.velocity=0,Object.assign(this,Tt)}};function Ds(t,e,n){n&&(n=I({},n),An(n,e),e=I(I({},n),e)),An(t,e),Object.assign(t,e);for(let u in Tt)t[u]==null&&(t[u]=Tt[u]);let{mass:s,frequency:i,damping:r}=t;return a.und(i)||(i<.01&&(i=.01),r<0&&(r=0),t.tension=Math.pow(2*Math.PI/i,2)*s,t.friction=4*Math.PI*r*s/i),t}function An(t,e){if(!a.und(e.decay))t.duration=void 0;else{let n=!a.und(e.tension)||!a.und(e.friction);(n||!a.und(e.frequency)||!a.und(e.damping)||!a.und(e.mass))&&(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}}var Rn=[],Fn=class{constructor(){this.changed=!1,this.values=Rn,this.toValues=null,this.fromValues=Rn,this.config=new Sn,this.immediate=!1}};function In(t,{key:e,props:n,defaultProps:s,state:i,actions:r}){return new Promise((u,c)=>{var d;let o,f,l=ke((d=n.cancel)!=null?d:s==null?void 0:s.cancel,e);if(l)y();else{a.und(n.pause)||(i.paused=ke(n.pause,e));let m=s==null?void 0:s.pause;m!==!0&&(m=i.paused||ke(m,e)),o=N(n.delay||0,e),m?(i.resumeQueue.add(x),r.pause()):(r.resume(),x())}function p(){i.resumeQueue.add(x),i.timeouts.delete(f),f.cancel(),o=f.time-P.now()}function x(){o>0?(f=P.setTimeout(y,o),i.pauseQueue.add(p),i.timeouts.add(f)):y()}function y(){i.pauseQueue.delete(p),i.timeouts.delete(f),t<=(i.cancelId||0)&&(l=!0);try{r.start(C(I({},n),{callId:t,cancel:l}),u)}catch(m){c(m)}}})}var kt=(t,e)=>e.length==1?e[0]:e.some(n=>n.cancelled)?Pe(t.get()):e.every(n=>n.noop)?Tn(t.get()):G(t.get(),e.every(n=>n.finished)),Tn=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),G=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),Pe=t=>({value:t,cancelled:!0,finished:!1});function kn(t,e,n,s){let{callId:i,parentId:r,onRest:u}=e,{asyncTo:c,promise:d}=n;return!r&&t===c&&!e.reset?d:n.promise=(async()=>{n.asyncId=i,n.asyncTo=t;let o=tt(e,(w,F)=>F==="onRest"?void 0:w),f,l,p=new Promise((w,F)=>(f=w,l=F)),x=w=>{let F=i<=(n.cancelId||0)&&Pe(s)||i!==n.asyncId&&G(s,!1);if(F)throw w.result=F,l(w),w},y=(w,F)=>{let b=new Ot,v=new Vt;return(async()=>{if(Q.skipAnimation)throw Ve(n),v.result=G(s,!1),l(v),v;x(b);let S=a.obj(w)?I({},w):C(I({},F),{to:w});S.parentId=i,D(o,(T,B)=>{a.und(S[B])&&(S[B]=T)});let q=await s.start(S);return x(b),n.paused&&await new Promise(T=>{n.resumeQueue.add(T)}),q})()},m;if(Q.skipAnimation)return Ve(n),G(s,!1);try{let w;a.arr(t)?w=(async F=>{for(let b of F)await y(b)})(t):w=Promise.resolve(t(y,s.stop.bind(s))),await Promise.all([w.then(f),p]),m=G(s.get(),!0,!1)}catch(w){if(w instanceof Ot)m=w.result;else if(w instanceof Vt)m=w.result;else throw w}finally{i==n.asyncId&&(n.asyncId=r,n.asyncTo=r?c:void 0,n.promise=r?d:void 0)}return a.fun(u)&&P.batchedUpdates(()=>{u(m,s,s.item)}),m})()}function Ve(t,e){me(t.timeouts,n=>n.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}var Ot=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.")}},Vt=class extends Error{constructor(){super("SkipAnimationSignal")}},Et=t=>t instanceof nt,Qs=1,nt=class extends Re{constructor(){super(...arguments);this.id=Qs++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=L(this);return e&&e.getValue()}to(...e){return Q.to(this,e)}interpolate(...e){return St(),Q.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,n=!1){le(this,{type:"change",parent:this,value:e,idle:n})}_onPriorityChange(e){this.idle||ge.sort(this),le(this,{type:"priority",parent:this,priority:e})}},de=Symbol.for("SpringPhase"),On=1,Ct=2,Ut=4,qt=t=>(t[de]&On)>0,re=t=>(t[de]&Ct)>0,Ee=t=>(t[de]&Ut)>0,Vn=(t,e)=>e?t[de]|=Ct|On:t[de]&=~Ct,En=(t,e)=>e?t[de]|=Ut:t[de]&=~Ut,Cn=class extends nt{constructor(e,n){super();if(this.animation=new Fn,this.defaultProps={},this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!a.und(e)||!a.und(n)){let s=a.obj(e)?I({},e):C(I({},n),{from:e});a.und(s.default)&&(s.default=!0),this.start(s)}}get idle(){return!(re(this)||this._state.asyncTo)||Ee(this)}get goal(){return E(this.animation.to)}get velocity(){let e=L(this);return e instanceof se?e.lastVelocity||0:e.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return qt(this)}get isAnimating(){return re(this)}get isPaused(){return Ee(this)}advance(e){let n=!0,s=!1,i=this.animation,{config:r,toValues:u}=i,c=Te(i.to);!c&&U(i.to)&&(u=V(E(i.to))),i.values.forEach((o,f)=>{if(o.done)return;let l=o.constructor==ie?1:c?c[f].lastPosition:u[f],p=i.immediate,x=l;if(!p){if(x=o.lastPosition,r.tension<=0){o.done=!0;return}let y=o.elapsedTime+=e,m=i.fromValues[f],w=o.v0!=null?o.v0:o.v0=a.arr(r.velocity)?r.velocity[f]:r.velocity,F;if(a.und(r.duration))if(r.decay){let b=r.decay===!0?.998:r.decay,v=Math.exp(-(1-b)*y);x=m+w/(1-b)*(1-v),p=Math.abs(o.lastPosition-x)<.1,F=w*v}else{F=o.lastVelocity==null?w:o.lastVelocity;let b=r.precision||(m==l?.005:Math.min(1,Math.abs(l-m)*.001)),v=r.restVelocity||b/10,S=r.clamp?0:r.bounce,q=!a.und(S),T=m==l?o.v0>0:m<l,B,_=!1,A=1,k=Math.ceil(e/A);for(let O=0;O<k&&(B=Math.abs(F)>v,!(!B&&(p=Math.abs(l-x)<=b,p)));++O){q&&(_=x==l||x>l==T,_&&(F=-F*S,x=l));let R=-r.tension*1e-6*(x-l),j=-r.friction*.001*F,$=(R+j)/r.mass;F=F+$*A,x=x+F*A}}else{let b=1;r.duration>0&&(this._memoizedDuration!==r.duration&&(this._memoizedDuration=r.duration,o.durationProgress>0&&(o.elapsedTime=r.duration*o.durationProgress,y=o.elapsedTime+=e)),b=(r.progress||0)+y/this._memoizedDuration,b=b>1?1:b<0?0:b,o.durationProgress=b),x=m+r.easing(b)*(l-m),F=(x-o.lastPosition)/e,p=b==1}o.lastVelocity=F,Number.isNaN(x)&&(console.warn("Got NaN while animating:",this),p=!0)}c&&!c[f].done&&(p=!1),p?o.done=!0:n=!1,o.setValue(x,r.round)&&(s=!0)});let d=L(this);if(n){let o=E(i.to);(d.setValue(o)||s)&&this._onChange(o),this._stop()}else s&&this._onChange(d.getValue())}set(e){return P.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(re(this)){let{to:e,config:n}=this.animation;P.batchedUpdates(()=>{this._onStart(),n.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,n){let s;return a.und(e)?(s=this.queue||[],this.queue=[]):s=[a.obj(e)?e:C(I({},n),{to:e})],Promise.all(s.map(i=>this._update(i))).then(i=>kt(this,i))}stop(e){let{to:n}=this.animation;return this._focus(this.get()),Ve(this._state,e&&this._lastCallId),P.batchedUpdates(()=>this._stop(n,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){let n=this.key||"",{to:s,from:i}=e;s=a.obj(s)?s[n]:s,(s==null||Ft(s))&&(s=void 0),i=a.obj(i)?i[n]:i,i==null&&(i=void 0);let r={to:s,from:i};return qt(this)||(e.reverse&&([s,i]=[i,s]),i=E(i),a.und(i)?L(this)||this._set(s):this._set(i)),r}_update(s,n){var e=ue(s,[]);let{key:i,defaultProps:r}=this;e.default&&Object.assign(r,tt(e,(d,o)=>/^on/.test(o)?vn(d,i):d)),jn(this,e,"onProps"),qe(this,"onProps",e,this);let u=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 c=this._state;return In(++this._lastCallId,{key:i,props:e,defaultProps:r,state:c,actions:{pause:()=>{Ee(this)||(En(this,!0),pe(c.pauseQueue),qe(this,"onPause",G(this,Ce(this,this.animation.to)),this))},resume:()=>{Ee(this)&&(En(this,!1),re(this)&&this._resume(),pe(c.resumeQueue),qe(this,"onResume",G(this,Ce(this,this.animation.to)),this))},start:this._merge.bind(this,u)}}).then(d=>{if(e.loop&&d.finished&&!(n&&d.noop)){let o=Un(e);if(o)return this._update(o,!0)}return d})}_merge(e,n,s){if(n.cancel)return this.stop(!0),s(Pe(this));let i=!a.und(e.to),r=!a.und(e.from);if(i||r)if(n.callId>this._lastToId)this._lastToId=n.callId;else return s(Pe(this));let{key:u,defaultProps:c,animation:d}=this,{to:o,from:f}=d,{to:l=o,from:p=f}=e;r&&!i&&(!n.default||a.und(l))&&(l=p),n.reverse&&([l,p]=[p,l]);let x=!Y(p,f);x&&(d.from=p),p=E(p);let y=!Y(l,o);y&&this._focus(l);let m=Ft(n.to),{config:w}=d,{decay:F,velocity:b}=w;(i||r)&&(w.velocity=0),n.config&&!m&&Ds(w,N(n.config,u),n.config!==c.config?N(c.config,u):void 0);let v=L(this);if(!v||a.und(l))return s(G(this,!0));let S=a.und(n.reset)?r&&!n.default:!a.und(p)&&ke(n.reset,u),q=S?p:this.get(),T=Oe(l),B=a.num(T)||a.arr(T)||_e(T),_=!m&&(!B||ke(c.immediate||n.immediate,u));if(y){let R=et(l);if(R!==v.constructor)if(_)v=this._set(T);else throw Error(`Cannot animate between ${v.constructor.name} and ${R.name}, as the "to" prop suggests`)}let A=v.constructor,k=U(l),O=!1;if(!k){let R=S||!qt(this)&&x;(y||R)&&(O=Y(Oe(q),T),k=!O),(!Y(w.decay,F)||!Y(w.velocity,b))&&(k=!0)}if(O&&re(this)&&(d.changed&&!S?k=!0:k||this._stop(o)),!m&&((k||U(o))&&(d.values=v.getPayload(),d.toValues=U(l)?null:A==ie?[1]:V(T)),d.immediate!=_&&(d.immediate=_,!_&&!S&&this._set(o)),k)){let{onRest:R}=d;g(zs,$=>jn(this,n,$));let j=G(this,Ce(this,o));pe(this._pendingCalls,j),this._pendingCalls.add(s),d.changed&&P.batchedUpdates(()=>{var $;d.changed=!S,R==null||R(j,this),S?N(c.onRest,j):($=d.onStart)==null||$.call(d,j,this)})}S&&this._set(q),m?s(kn(n.to,n,this._state,this)):k?this._start():re(this)&&!y?this._pendingCalls.add(s):s(Tn(q))}_focus(e){let n=this.animation;e!==n.to&&(wt(this)&&this._detach(),n.to=e,wt(this)&&this._attach())}_attach(){let e=0,{to:n}=this.animation;U(n)&&(J(n,this),Et(n)&&(e=n.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;U(e)&&ne(e,this)}_set(e,n=!0){let s=E(e);if(!a.und(s)){let i=L(this);if(!i||!Y(s,i.getValue())){let r=et(s);!i||i.constructor!=r?Je(this,r.create(s)):i.setValue(s),i&&P.batchedUpdates(()=>{this._onChange(s,n)})}}return L(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,qe(this,"onStart",G(this,Ce(this,e.to)),this))}_onChange(e,n){n||(this._onStart(),N(this.animation.onChange,e,this)),N(this.defaultProps.onChange,e,this),super._onChange(e,n)}_start(){let e=this.animation;L(this).reset(E(e.to)),e.immediate||(e.fromValues=e.values.map(n=>n.lastPosition)),re(this)||(Vn(this,!0),Ee(this)||this._resume())}_resume(){Q.skipAnimation?this.finish():ge.start(this)}_stop(e,n){if(re(this)){Vn(this,!1);let s=this.animation;g(s.values,r=>{r.done=!0}),s.toValues&&(s.onChange=s.onPause=s.onResume=void 0),le(this,{type:"idle",parent:this});let i=n?Pe(this.get()):G(this.get(),Ce(this,e!=null?e:s.to));pe(this._pendingCalls,i),s.changed&&(s.changed=!1,qe(this,"onRest",i,this))}}};function Ce(t,e){let n=Oe(e),s=Oe(t.get());return Y(s,n)}function Un(t,e=t.loop,n=t.to){let s=N(e);if(s){let i=s!==!0&&Rt(s),r=(i||t).reverse,u=!i||i.reset;return Ue(I(C(I({},t),{loop:e,default:!1,pause:void 0,to:!r||Ft(n)?n:void 0,from:u?t.from:void 0,reset:u}),i))}}function Ue(t){let{to:e,from:n}=t=Rt(t),s=new Set;return a.obj(e)&&qn(e,s),a.obj(n)&&qn(n,s),t.keys=s.size?Array.from(s):null,t}function Ms(t){let e=Ue(t);return a.und(e.default)&&(e.default=tt(e)),e}function qn(t,e){D(t,(n,s)=>n!=null&&e.add(s))}var zs=["onStart","onRest","onChange","onPause","onResume"];function jn(t,e,n){t.animation[n]=e[n]!==wn(e,n)?vn(e[n],t.key):void 0}function qe(t,e,...n){var s,i,r,u;(i=(s=t.animation)[e])==null||i.call(s,...n),(u=(r=t.defaultProps)[e])==null||u.call(r,...n)}var Ls=["onStart","onChange","onRest"],Gs=1,jt=class{constructor(e,n){this.id=Gs++,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),n&&(this._flush=n),e&&this.start(I({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((n,s)=>e[s]=n.get()),e}set(e){for(let n in e){let s=e[n];a.und(s)||this.springs[n].set(s)}}update(e){return e&&this.queue.push(Ue(e)),this}start(e){let{queue:n}=this;return e?n=V(e).map(Ue):this.queue=[],this._flush?this._flush(this,n):(Qn(this,n),Nt(this,n))}stop(e,n){if(e!==!!e&&(n=e),n){let s=this.springs;g(V(n),i=>s[i].stop(!!e))}else Ve(this._state,this._lastAsyncId),this.each(s=>s.stop(!!e));return this}pause(e){if(a.und(e))this.start({pause:!0});else{let n=this.springs;g(V(e),s=>n[s].pause())}return this}resume(e){if(a.und(e))this.start({pause:!1});else{let n=this.springs;g(V(e),s=>n[s].resume())}return this}each(e){D(this.springs,e)}_onFrame(){let{onStart:e,onChange:n,onRest:s}=this._events,i=this._active.size>0,r=this._changed.size>0;(i&&!this._started||r&&!this._started)&&(this._started=!0,me(e,([d,o])=>{o.value=this.get(),d(o,this,this._item)}));let u=!i&&this._started,c=r||u&&s.size?this.get():null;r&&n.size&&me(n,([d,o])=>{o.value=c,d(o,this,this._item)}),u&&(this._started=!1,me(s,([d,o])=>{o.value=c,d(o,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;P.onFrame(this._onFrame)}};function Nt(t,e){return Promise.all(e.map(n=>Nn(t,n))).then(n=>kt(t,n))}async function Nn(t,e,n){let{keys:s,to:i,from:r,loop:u,onRest:c,onResolve:d}=e,o=a.obj(e.default)&&e.default;u&&(e.loop=!1),i===!1&&(e.to=null),r===!1&&(e.from=null);let f=a.arr(i)||a.fun(i)?i:void 0;f?(e.to=void 0,e.onRest=void 0,o&&(o.onRest=void 0)):g(Ls,m=>{let w=e[m];if(a.fun(w)){let F=t._events[m];e[m]=({finished:b,cancelled:v})=>{let S=F.get(w);S?(b||(S.finished=!1),v&&(S.cancelled=!0)):F.set(w,{value:null,finished:b||!1,cancelled:v||!1})},o&&(o[m]=e[m])}});let l=t._state;e.pause===!l.paused?(l.paused=e.pause,pe(e.pause?l.pauseQueue:l.resumeQueue)):l.paused&&(e.pause=!0);let p=(s||Object.keys(t.springs)).map(m=>t.springs[m].start(e)),x=e.cancel===!0||wn(e,"cancel")===!0;(f||x&&l.asyncId)&&p.push(In(++t._lastAsyncId,{props:e,state:l,actions:{pause:Le,resume:Le,start(m,w){x?(Ve(l,t._lastAsyncId),w(Pe(t))):(m.onRest=c,w(kn(f,m,l,t)))}}})),l.paused&&await new Promise(m=>{l.resumeQueue.add(m)});let y=kt(t,await Promise.all(p));if(u&&y.finished&&!(n&&y.noop)){let m=Un(e,u,i);if(m)return Qn(t,[m]),Nn(t,m,!0)}return d&&P.batchedUpdates(()=>d(y,t,t.item)),y}function $t(t,e){let n=I({},t.springs);return e&&g(V(e),s=>{a.und(s.keys)&&(s=Ue(s)),a.obj(s.to)||(s=C(I({},s),{to:void 0})),Dn(n,s,i=>$n(i))}),n}function Dt(t,e){D(e,(n,s)=>{t.springs[s]||(t.springs[s]=n,J(n,t))})}function $n(t,e){let n=new Cn;return n.key=t,e&&J(n,e),n}function Dn(t,e,n){e.keys&&g(e.keys,s=>{(t[s]||(t[s]=n(s)))._prepareNode(e)})}function Qn(t,e){g(e,n=>{Dn(t.springs,n,s=>$n(s,t))})}var je=n=>{var s=n,{children:t}=s,e=ue(s,["children"]);let i=(0,h.useContext)(st),r=e.pause||!!i.pause,u=e.immediate||!!i.immediate;e=mn(()=>({pause:r,immediate:u}),[r,u]);let{Provider:c}=st;return(0,h.createElement)(c,{value:e},t)},st=Bs(je,{});je.Provider=st.Provider;je.Consumer=st.Consumer;function Bs(t,e){return Object.assign(t,(0,h.createContext)(e)),t.Provider._context=t,t.Consumer._context=t,t}var it=class extends Function{constructor(){super("return arguments.callee._call.apply(arguments.callee, arguments)");this.current=[]}_call(e){hn(),this.start(e)}set(e){g(this.current,n=>n.set(e))}start(e){let n=[];return g(this.current,(s,i)=>{if(a.und(e))n.push(s.start());else{let r=this._getProps(e,s,i);r&&n.push(s.start(r))}}),n}update(e){return g(this.current,(n,s)=>n.update(this._getProps(e,n,s))),this}add(e){this.current.includes(e)||this.current.push(e)}delete(e){let n=this.current.indexOf(e);~n&&this.current.splice(n,1)}_getProps(e,n,s){return a.fun(e)?e(s,n):e}};g(["stop","pause","resume"],t=>{it.prototype[t]=function(){return g(this.current,e=>e[t](...arguments)),this}});function Qt(t,e,n){let s=a.fun(e)&&e;s&&!n&&(n=[]);let i=(0,h.useMemo)(()=>s||arguments.length==3?new it:void 0,[]),r=(0,h.useRef)(0),u=Fe(),c=(0,h.useMemo)(()=>({ctrls:[],queue:[],flush(b,v){let S=$t(b,v);return r.current>0&&!c.queue.length&&!Object.keys(S).some(T=>!b.springs[T])?Nt(b,v):new Promise(T=>{Dt(b,S),c.queue.push(()=>{T(Nt(b,v))}),u()})}}),[]),d=[...c.ctrls],o=[],f=Ye(t)||0,l=d.slice(t,f);(0,h.useMemo)(()=>{d.length=t,p(f,t)},[t]),(0,h.useMemo)(()=>{p(0,Math.min(f,t))},n);function p(b,v){for(let S=b;S<v;S++){let q=d[S]||(d[S]=new jt(null,c.flush)),T=s?s(S,q):e[S];T&&(o[S]=Ms(T))}}let x=d.map((b,v)=>$t(b,o[v])),y=(0,h.useContext)(je),m=Ye(y),w=y!==m&&Pn(y);K(()=>{r.current++,c.ctrls=d;let{queue:b}=c;b.length&&(c.queue=[],g(b,v=>v())),g(l,v=>{It(v,i),v.stop(!0)}),g(d,(v,S)=>{let q=x[S];Dt(v,q),i==null||i.add(v),w&&v.start({default:y});let T=o[S];T&&(xn(v,T.ref),v.ref?v.queue.push(T):v.start(T))})}),ve(()=>()=>{g(c.ctrls,b=>b.stop(!0))});let F=x.map(b=>I({},b));return i?[F,i]:F}function Hs(t,e){let n=a.fun(t),[[s],i]=Qt(1,n?t:[t],n?e||[]:e);return n||arguments.length==2?[s,i]:s}function Ks(t,e,n){let s=a.fun(e)&&e;s&&!n&&(n=[]);let i=!0,r=Qt(t,(c,d)=>{let o=s?s(c,d):e;return i=i&&o.reverse,o},n||[{}]),u=r[1];return K(()=>{g(u.current,(c,d)=>{let o=u.current[d+(i?1:-1)];o&&c.start({to:o.springs})})},n),s||arguments.length==3?(u._getProps=(c,d,o)=>{let f=a.fun(c)?c(o,d):c;if(f){let l=u.current[o+(f.reverse?1:-1)];return l&&(f.to=l.springs),f}},r):r[0]}var Mn="mount",rt="enter",zn="update",ot="leave";function Ws(t,e,n){let{reset:s,sort:i,trail:r=0,expires:u=!0,onDestroyed:c}=e,d=(0,h.useMemo)(()=>arguments.length==3?new it:void 0,[]),o=V(t),f=[],l=(0,h.useRef)(null),p=s?null:l.current;K(()=>{l.current=f}),ve(()=>()=>g(l.current,_=>{_.expired&&clearTimeout(_.expirationId),It(_.ctrl,d),_.ctrl.stop(!0)}));let x=Js(o,e,p),y=s&&l.current||[];K(()=>g(y,({ctrl:_,item:A,key:k})=>{It(_,d),N(c,A,k)}));let m=[];if(p&&g(p,(_,A)=>{_.expired?(clearTimeout(_.expirationId),y.push(_)):(A=m[A]=x.indexOf(_.key),~A&&(f[A]=_))}),g(o,(_,A)=>{f[A]||(f[A]={key:x[A],item:_,phase:Mn,ctrl:new jt},f[A].ctrl.item=_)}),m.length){let _=-1;g(m,(A,k)=>{let O=p[k];~A?(_=f.indexOf(O),f[_]=C(I({},O),{item:o[A]})):e.leave&&f.splice(++_,0,O)})}a.fun(i)&&f.sort((_,A)=>i(_.item,A.item));let w=-r,F=Fe(),b=tt(e),v=new Map;g(f,(_,A)=>{let k=_.key,O=_.phase,R,j;if(O==Mn)R=e.enter,j=rt;else{let W=x.indexOf(k)<0;if(O!=ot)if(W)R=e.leave,j=ot;else if(R=e.update)j=zn;else return;else if(!W)R=e.enter,j=rt;else return}if(R=N(R,_.item,A),R=a.obj(R)?Rt(R):{to:R},!R.config){let W=e.config||b.config;R.config=N(W,_.item,A,j)}let $=I(C(I({},b),{delay:w+=r,reset:!1}),R);if(j==rt&&a.und($.from)){let W=a.und(e.initial)||p?e.from:e.initial;$.from=N(W,_.item,A)}let{onResolve:Zn}=$;$.onResolve=W=>{N(Zn,W);let ut=l.current,oe=ut.find($e=>$e.key===k);if(!!oe&&!(W.cancelled&&oe.phase!=zn)&&oe.ctrl.idle){let $e=ut.every(ae=>ae.ctrl.idle);if(oe.phase==ot){let ae=N(u,oe.item);if(ae!==!1){let ct=ae===!0?0:ae;if(oe.expired=!0,!$e&&ct>0){ct<=2147483647&&(oe.expirationId=setTimeout(F,ct));return}}}$e&&ut.some(ae=>ae.expired)&&F()}};let Xn=$t(_.ctrl,$);v.set(_,{phase:j,springs:Xn,payload:$})});let S=(0,h.useContext)(je),q=Ye(S),T=S!==q&&Pn(S);K(()=>{T&&g(f,_=>{_.ctrl.start({default:S})})},[S]),K(()=>{g(v,({phase:_,springs:A,payload:k},O)=>{let{ctrl:R}=O;O.phase=_,d==null||d.add(R),xn(R,k.ref),Dt(R,A),T&&_==rt&&R.start({default:S}),R[R.ref?"update":"start"](k)})},s?void 0:n);let B=_=>(0,h.createElement)(h.Fragment,null,f.map((A,k)=>{let{springs:O}=v.get(A)||A.ctrl,R=_(I({},O),A.item,A,k);return R&&R.type?(0,h.createElement)(R.type,C(I({},R.props),{key:a.str(A.key)||a.num(A.key)?A.key:A.ctrl.id,ref:R.ref})):R}));return d?[B,d]:B}var Ys=1;function Js(t,{key:e,keys:n=e},s){if(n===null){let i=new Set;return t.map(r=>{let u=s&&s.find(c=>c.item===r&&c.phase!==ot&&!i.has(c));return u?(i.add(u),u.key):Ys++})}return a.und(n)?t:a.fun(n)?t.map(n):V(n)}var Mt=class extends nt{constructor(e,n){super();this.source=e,this.idle=!0,this._active=new Set,this.calc=te(...n);let s=this._get(),i=et(s);Je(this,i.create(s))}advance(e){let n=this._get(),s=this.get();Y(n,s)||(L(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&Ln(this._active)&&zt(this)}_get(){let e=a.arr(this.source)?this.source.map(E):V(E(this.source));return this.calc(...e)}_start(){this.idle&&!Ln(this._active)&&(this.idle=!1,g(Te(this),e=>{e.done=!1}),Q.skipAnimation?(P.batchedUpdates(()=>this.advance()),zt(this)):ge.start(this))}_attach(){let e=1;g(V(this.source),n=>{U(n)&&J(n,this),Et(n)&&(n.idle||this._active.add(n),e=Math.max(e,n.priority+1))}),this.priority=e,this._start()}_detach(){g(V(this.source),e=>{U(e)&&ne(e,this)}),this._active.clear(),zt(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=V(this.source).reduce((n,s)=>Math.max(n,(Et(s)?s.priority:0)+1),0))}};function Zs(t){return t.idle!==!1}function Ln(t){return!t.size||Array.from(t).every(Zs)}function zt(t){t.idle||(t.idle=!0,g(Te(t),e=>{e.done=!0}),le(t,{type:"idle",parent:t}))}var Xs=(t,...e)=>(St(),new Mt(t,e));Q.assign({createStringInterpolator:We,to:(t,e)=>new Mt(t,e)});var Ai=ge.advance;var fe={};Ht(fe,{default:()=>Gn});he(fe,ki);import*as Gn from"react-dom";import*as ki from"react-dom";var Bn=/^--/;function ei(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!Bn.test(t)&&!(Ne.hasOwnProperty(t)&&Ne[t])?e+"px":(""+e).trim()}var Hn={};function ti(t,e){if(!t.nodeType||!t.setAttribute)return!1;let n=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",f=e,{style:s,children:i,scrollTop:r,scrollLeft:u}=f,c=ue(f,["style","children","scrollTop","scrollLeft"]),d=Object.values(c),o=Object.keys(c).map(l=>n||t.hasAttribute(l)?l:Hn[l]||(Hn[l]=l.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));i!==void 0&&(t.textContent=i);for(let l in s)if(s.hasOwnProperty(l)){let p=ei(l,s[l]);l==="float"?l="cssFloat":Bn.test(l)?t.style.setProperty(l,p):t.style[l]=p}o.forEach((l,p)=>{t.setAttribute(l,d[p])}),r!==void 0&&(t.scrollTop=r),u!==void 0&&(t.scrollLeft=u)}var Ne={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},ni=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),si=["Webkit","Ms","Moz","O"];Ne=Object.keys(Ne).reduce((t,e)=>(si.forEach(n=>t[ni(n,e)]=t[e]),t),Ne);var ii=/^(matrix|translate|scale|rotate|skew)/,ri=/^(translate)/,oi=/^(rotate|skew)/,Lt=(t,e)=>a.num(t)&&t!==0?t+e:t,at=(t,e)=>a.arr(t)?t.every(n=>at(n,e)):a.num(t)?t===e:parseFloat(t)===e,Kn=class extends we{constructor(r){var u=r,{x:e,y:n,z:s}=u,i=ue(u,["x","y","z"]);let c=[],d=[];(e||n||s)&&(c.push([e||0,n||0,s||0]),d.push(o=>[`translate3d(${o.map(f=>Lt(f,"px")).join(",")})`,at(o,0)])),D(i,(o,f)=>{if(f==="transform")c.push([o||""]),d.push(l=>[l,l===""]);else if(ii.test(f)){if(delete i[f],a.und(o))return;let l=ri.test(f)?"px":oi.test(f)?"deg":"";c.push(V(o)),d.push(f==="rotate3d"?([p,x,y,m])=>[`rotate3d(${p},${x},${y},${Lt(m,l)})`,at(m,0)]:p=>[`${f}(${p.map(x=>Lt(x,l)).join(",")})`,at(p,f.startsWith("scale")?1:0)])}}),c.length&&(i.transform=new Wn(c,d));super(i)}},Wn=class extends Re{constructor(e,n){super();this.inputs=e,this.transforms=n,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",n=!0;return g(this.inputs,(s,i)=>{let r=E(s[0]),[u,c]=this.transforms[i](a.arr(r)?r:s.map(E));e+=" "+u,n=n&&c}),n?"none":e}observerAdded(e){e==1&&g(this.inputs,n=>g(n,s=>U(s)&&J(s,this)))}observerRemoved(e){e==0&&g(this.inputs,n=>g(n,s=>U(s)&&ne(s,this)))}eventObserved(e){e.type=="change"&&(this._value=null),le(this,e)}},ai=["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"];Q.assign({batchedUpdates:fe.unstable_batchedUpdates,createStringInterpolator:We,colors:rn});var ui=bn(ai,{applyAnimatedValues:ti,createAnimatedStyle:t=>new Kn(t),getComponentProps:s=>{var i=s,{scrollTop:t,scrollLeft:e}=i,n=ue(i,["scrollTop","scrollLeft"]);return n}}),ci=ui.animated;var li="(prefers-reduced-motion: reduce)",Yn=(()=>typeof window=="undefined"||!window.location||!window.location.href||!window.matchMedia?!0:Boolean(new URL(window.location.href).searchParams.get("eyes-storybook")))(),Jn=()=>Yn?{matches:!0,addListener:()=>{},removeListener:()=>{}}:window.matchMedia(li);function di(){let[t,e]=h.useState(Jn().matches);return h.useEffect(()=>{let n=Jn(),s=()=>{e(n.matches)};return n.addListener(s),()=>{n.removeListener(s)}},[]),t}export{Q as Globals,ci as animated,Xs as interpolate,Yn as isRenderingOnServer,js as useChain,di as useReducedMotion,Hs as useSpring,Qt as useSprings,Ks as useTrail,Ws as useTransition};
var ns=Object.defineProperty,ss=Object.defineProperties;var is=Object.getOwnPropertyDescriptors;var Ne=Object.getOwnPropertySymbols;var Bt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable;var Kt=(t,e,n)=>e in t?ns(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,F=(t,e)=>{for(var n in e||(e={}))Bt.call(e,n)&&Kt(t,n,e[n]);if(Ne)for(var n of Ne(e))Ht.call(e,n)&&Kt(t,n,e[n]);return t},E=(t,e)=>ss(t,is(e));var ae=(t,e)=>{var n={};for(var s in t)Bt.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&Ne)for(var s of Ne(t))e.indexOf(s)<0&&Ht.call(t,s)&&(n[s]=t[s]);return n};var $e=B(),w=t=>ve(t,$e),De=B();w.write=t=>ve(t,De);var Qe=B();w.onStart=t=>ve(t,Qe);var lt=B();w.onFrame=t=>ve(t,lt);var dt=B();w.onFinish=t=>ve(t,dt);var ue=[];w.setTimeout=(t,e)=>{let n=w.now()+e,s=()=>{let r=ue.findIndex(u=>u.cancel==s);~r&&ue.splice(r,1),Z.count-=~r?1:0},i={time:n,handler:t,cancel:s};return ue.splice(Wt(n),0,i),Z.count+=1,Yt(),i};var Wt=t=>~(~ue.findIndex(e=>e.time>t)||~ue.length);w.cancel=t=>{$e.delete(t),De.delete(t)};w.sync=t=>{ht=!0,w.batchedUpdates(t),ht=!1};w.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function s(...i){e=i,w.onStart(n)}return s.handler=t,s.cancel=()=>{Qe.delete(n),e=null},s};var ft=typeof window!="undefined"?window.requestAnimationFrame:()=>{};w.use=t=>ft=t;w.now=typeof performance!="undefined"?()=>performance.now():Date.now;w.batchedUpdates=t=>t();w.catch=console.error;var J=-1,ht=!1;function ve(t,e){ht?(e.delete(t),t(0)):(e.add(t),Yt())}function Yt(){J<0&&(J=0,ft(Jt))}function Jt(){~J&&(ft(Jt),w.batchedUpdates(rs))}function rs(){let t=J;J=w.now();let e=Wt(J);e&&(Zt(ue.splice(0,e),n=>n.handler()),Z.count-=e),Qe.flush(),$e.flush(t?Math.min(64,J-t):16.667),lt.flush(),De.flush(),dt.flush()}function B(){let t=new Set,e=t;return{add(n){Z.count+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return Z.count-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,Z.count-=e.size,Zt(e,s=>s(n)&&t.add(s)),Z.count+=t.size,e=t)}}}function Zt(t,e){t.forEach(n=>{try{e(n)}catch(s){w.catch(s)}})}var Z={count:0,clear(){J=-1,ue=[],Qe=B(),$e=B(),lt=B(),De=B(),dt=B(),Z.count=0}};import{useEffect as Me,useState as mt,useRef as Xt,useLayoutEffect as os}from"react";function ze(){}var en=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),a={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function W(t,e){if(a.arr(t)){if(!a.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}var p=(t,e)=>t.forEach(e);function $(t,e,n){for(let s in t)e.call(n,t[s],s)}var O=t=>a.und(t)?[]:a.arr(t)?t:[t];function de(t,e){if(t.size){let n=Array.from(t);t.clear(),p(n,e)}}var fe=(t,...e)=>de(t,n=>n(...e)),pt,tn,X=null,nn=!1,gt=ze,as=t=>{t.to&&(tn=t.to),t.now&&(w.now=t.now),t.colors!==void 0&&(X=t.colors),t.skipAnimation!=null&&(nn=t.skipAnimation),t.createStringInterpolator&&(pt=t.createStringInterpolator),t.requestAnimationFrame&&w.use(t.requestAnimationFrame),t.batchedUpdates&&(w.batchedUpdates=t.batchedUpdates),t.willAdvance&&(gt=t.willAdvance)},D=Object.freeze({__proto__:null,get createStringInterpolator(){return pt},get to(){return tn},get colors(){return X},get skipAnimation(){return nn},get willAdvance(){return gt},assign:as}),we=new Set,Q=[],yt=[],Le=0,he={get idle(){return!we.size&&!Q.length},start(t){Le>t.priority?(we.add(t),w.onStart(us)):(sn(t),w(bt))},advance:bt,sort(t){if(Le)w.onFrame(()=>he.sort(t));else{let e=Q.indexOf(t);~e&&(Q.splice(e,1),rn(t))}},clear(){Q=[],we.clear()}};function us(){we.forEach(sn),we.clear(),w(bt)}function sn(t){Q.includes(t)||rn(t)}function rn(t){Q.splice(cs(Q,e=>e.priority>t.priority),0,t)}function bt(t){let e=yt;for(let n=0;n<Q.length;n++){let s=Q[n];Le=s.priority,s.idle||(gt(s),s.advance(t),s.idle||e.push(s))}return Le=0,yt=Q,yt.length=0,Q=e,Q.length>0}function cs(t,e){let n=t.findIndex(e);return n<0?t.length:n}var on={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},M="[-+]?\\d*\\.?\\d+",Ge=M+"%";function Be(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ls=new RegExp("rgb"+Be(M,M,M)),ds=new RegExp("rgba"+Be(M,M,M,M)),fs=new RegExp("hsl"+Be(M,Ge,Ge)),hs=new RegExp("hsla"+Be(M,Ge,Ge,M)),ms=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ps=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gs=/^#([0-9a-fA-F]{6})$/,ys=/^#([0-9a-fA-F]{8})$/;function bs(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=gs.exec(t))?parseInt(e[1]+"ff",16)>>>0:X&&X[t]!==void 0?X[t]:(e=ls.exec(t))?(me(e[1])<<24|me(e[2])<<16|me(e[3])<<8|255)>>>0:(e=ds.exec(t))?(me(e[1])<<24|me(e[2])<<16|me(e[3])<<8|cn(e[4]))>>>0:(e=ms.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=ys.exec(t))?parseInt(e[1],16)>>>0:(e=ps.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=fs.exec(t))?(an(un(e[1]),He(e[2]),He(e[3]))|255)>>>0:(e=hs.exec(t))?(an(un(e[1]),He(e[2]),He(e[3]))|cn(e[4]))>>>0:null}function _t(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function an(t,e,n){let s=n<.5?n*(1+e):n+e-n*e,i=2*n-s,r=_t(i,s,t+1/3),u=_t(i,s,t),c=_t(i,s,t-1/3);return Math.round(r*255)<<24|Math.round(u*255)<<16|Math.round(c*255)<<8}function me(t){let e=parseInt(t,10);return e<0?0:e>255?255:e}function un(t){return(parseFloat(t)%360+360)%360/360}function cn(t){let e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function He(t){let e=parseFloat(t);return e<0?0:e>100?1:e/100}function ln(t){let e=bs(t);if(e===null)return t;e=e||0;let n=(e&4278190080)>>>24,s=(e&16711680)>>>16,i=(e&65280)>>>8,r=(e&255)/255;return`rgba(${n}, ${s}, ${i}, ${r})`}var ee=(t,e,n)=>{if(a.fun(t))return t;if(a.arr(t))return ee({range:t,output:e,extrapolate:n});if(a.str(t.output[0]))return pt(t);let s=t,i=s.output,r=s.range||[0,1],u=s.extrapolateLeft||s.extrapolate||"extend",c=s.extrapolateRight||s.extrapolate||"extend",d=s.easing||(o=>o);return o=>{let f=vs(o,r);return _s(o,r[f],r[f+1],i[f],i[f+1],d,u,c,s.map)}};function _s(t,e,n,s,i,r,u,c,d){let o=d?d(t):t;if(o<e){if(u==="identity")return o;u==="clamp"&&(o=e)}if(o>n){if(c==="identity")return o;c==="clamp"&&(o=n)}return s===i?s:e===n?t<=e?s:i:(e===-1/0?o=-o:n===1/0?o=o-e:o=(o-e)/(n-e),o=r(o),s===-1/0?o=-o:i===1/0?o=o+s:o=o*(i-s)+s,o)}function vs(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}var Pe=Symbol.for("FluidValue.get"),pe=Symbol.for("FluidValue.observers"),C=t=>Boolean(t&&t[Pe]),V=t=>t&&t[Pe]?t[Pe]():t,vt=t=>t[pe]||null;function ws(t,e){t.eventObserved?t.eventObserved(e):t(e)}function ce(t,e){let n=t[pe];n&&n.forEach(s=>{ws(s,e)})}var xe=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ps(this,e)}},Ps=(t,e)=>dn(t,Pe,e);function Y(t,e){if(t[Pe]){let n=t[pe];n||dn(t,pe,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function te(t,e){let n=t[pe];if(n&&n.has(e)){let s=n.size-1;s?n.delete(e):t[pe]=null,t.observerRemoved&&t.observerRemoved(s,e)}}var dn=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),fn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,xs=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,wt,Ss=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,As=(t,e,n,s,i)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(s)}, ${i})`,Ke=t=>{wt||(wt=X?new RegExp(`(${Object.keys(X).join("|")})`,"g"):/^\b$/);let e=t.output.map(r=>V(r).replace(xs,ln).replace(wt,ln)),n=e.map(r=>r.match(fn).map(Number)),i=n[0].map((r,u)=>n.map(c=>{if(!(u in c))throw Error('The arity of each "output" value must be equal');return c[u]})).map(r=>ee(E(F({},t),{output:r})));return r=>{let u=0;return e[0].replace(fn,()=>String(i[u++](r))).replace(Ss,As)}},Pt="react-spring: ",hn=t=>{let e=t,n=!1;if(typeof e!="function")throw new TypeError(`${Pt}once requires a function parameter`);return(...s)=>{n||(e(...s),n=!0)}},Rs=hn(console.warn);function xt(){Rs(`${Pt}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Fs=hn(console.warn);function mn(){Fs(`${Pt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead)`)}function ge(t){return a.str(t)&&(t[0]=="#"||/\d/.test(t)||t in(X||{}))}var ye=t=>Me(t,Is),Is=[];function Se(){let t=mt()[1],e=mt(Ts)[0];return ye(e.unmount),()=>{e.current&&t({})}}function Ts(){let t={current:!0,unmount:()=>()=>{t.current=!1}};return t}function pn(t,e){let[n]=mt(()=>({inputs:e,result:t()})),s=Xt(),i=s.current,r=i;return r?Boolean(e&&r.inputs&&ks(e,r.inputs))||(r={inputs:e,result:t()}):r=n,Me(()=>{s.current=r,i==n&&(n.inputs=n.result=void 0)},[r]),r.result}function ks(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function We(t){let e=Xt();return Me(()=>{e.current=t}),e.current}var H=typeof window!="undefined"&&window.document&&window.document.createElement?os:Me;import{useContext as At,createElement as Rt,createContext as $s,useMemo as Fe,useRef as Pn,useState as Vi,Fragment as Ds}from"react";import{forwardRef as Os,useRef as gn,useCallback as Vs,useEffect as Es,createElement as Cs}from"react";var Ae=Symbol.for("Animated:node"),Us=t=>!!t&&t[Ae]===t,z=t=>t&&t[Ae],Ye=(t,e)=>en(t,Ae,e),Re=t=>t&&t[Ae]&&t[Ae].getPayload(),St=class{constructor(){Ye(this,this)}getPayload(){return this.payload||[]}},ne=class extends St{constructor(e){super();this._value=e,this.done=!0,this.durationProgress=0,a.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new ne(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,n){return a.num(e)&&(this.lastPosition=e,n&&(e=Math.round(e/n)*n,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,a.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},se=class extends ne{constructor(e){super(0);this._string=null,this._toString=ee({output:[e,e]})}static create(e){return new se(e)}getValue(){let e=this._string;return e==null?this._string=this._toString(this._value):e}setValue(e){if(a.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=ee({output:[this.getValue(),e]})),this._value=0,super.reset()}},Je={dependencies:null},be=class extends St{constructor(e){super();this.source=e,this.setValue(e)}getValue(e){let n={};return $(this.source,(s,i)=>{Us(s)?n[i]=s.getValue(e):C(s)?n[i]=V(s):e||(n[i]=s)}),n}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&p(this.payload,e=>e.reset())}_makePayload(e){if(e){let n=new Set;return $(e,this._addToPayload,n),Array.from(n)}}_addToPayload(e){Je.dependencies&&C(e)&&Je.dependencies.add(e);let n=Re(e);n&&p(n,s=>this.add(s))}},Ze=class extends be{constructor(e){super(e)}static create(e){return new Ze(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let n=this.getPayload();return e.length==n.length?n.some((s,i)=>s.setValue(e[i])):(super.setValue(e.map(qs)),!0)}};function qs(t){return(ge(t)?se:ne).create(t)}function Xe(t){let e=z(t);return e?e.constructor:a.arr(t)?Ze:ge(t)?se:ne}var yn=(t,e)=>{let n=!a.fun(t)||t.prototype&&t.prototype.isReactComponent;return Os((s,i)=>{let r=gn(null),u=n&&Vs(g=>{r.current=Ns(i,g)},[i]),[c,d]=js(s,e),o=Se(),f=()=>{let g=r.current;if(n&&!g)return;(g?e.applyAnimatedValues(g,c.getValue(!0)):!1)===!1&&o()},l=new bn(f,d),m=gn();H(()=>{let g=m.current;m.current=l,p(d,h=>Y(h,l)),g&&(p(g.deps,h=>te(h,g)),w.cancel(g.update))}),Es(f,[]),ye(()=>()=>{let g=m.current;p(g.deps,h=>te(h,g))});let P=e.getComponentProps(c.getValue());return Cs(t,E(F({},P),{ref:u}))})},bn=class{constructor(e,n){this.update=e,this.deps=n}eventObserved(e){e.type=="change"&&w.write(this.update)}};function js(t,e){let n=new Set;return Je.dependencies=n,t.style&&(t=E(F({},t),{style:e.createAnimatedStyle(t.style)})),t=new be(t),Je.dependencies=null,[t,n]}function Ns(t,e){return t&&(a.fun(t)?t(e):t.current=e),e}var _n=Symbol.for("AnimatedComponent"),vn=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:n=i=>new be(i),getComponentProps:s=i=>i}={})=>{let i={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:s},r=u=>{let c=wn(u)||"Anonymous";return a.str(u)?u=r[u]||(r[u]=yn(u,i)):u=u[_n]||(u[_n]=yn(u,i)),u.displayName=`Animated(${c})`,u};return $(t,(u,c)=>{a.arr(t)&&(c=wn(u)),r[c]=r(u)}),{animated:r}},wn=t=>a.str(t)?t:t&&a.str(t.displayName)?t.displayName:a.fun(t)&&t.name||null;function j(t,...e){return a.fun(t)?t(...e):t}var Ie=(t,e)=>t===!0||!!(e&&t&&(a.fun(t)?t(e):O(t).includes(e))),xn=(t,e)=>a.obj(t)?e&&t[e]:t,Sn=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,Qs=t=>t,et=(t,e=Qs)=>{let n=Ms;t.default&&t.default!==!0&&(t=t.default,n=Object.keys(t));let s={};for(let i of n){let r=e(t[i],i);a.und(r)||(s[i]=r)}return s},Ms=["config","onProps","onStart","onChange","onPause","onResume","onRest"],zs={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 Ls(t){let e={},n=0;if($(t,(s,i)=>{zs[i]||(e[i]=s,n++)}),n)return e}function Ft(t){let e=Ls(t);if(e){let n={to:e};return $(t,(s,i)=>i in e||(n[i]=s)),n}return F({},t)}function Te(t){return t=V(t),a.arr(t)?t.map(Te):ge(t)?D.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function An(t){for(let e in t)return!0;return!1}function It(t){return a.fun(t)||a.arr(t)&&a.obj(t[0])}function Tt(t,e){var n;(n=t.ref)==null||n.delete(t),e==null||e.delete(t)}function Rn(t,e){var n;e&&t.ref!==e&&((n=t.ref)==null||n.delete(t),e.add(t),t.ref=e)}function Gs(t,e,n=1e3){H(()=>{if(e){let s=0;p(t,(i,r)=>{let u=i.current;if(u.length){let c=n*e[r];isNaN(c)?c=s:s=c,p(u,d=>{p(d.queue,o=>{let f=o.delay;o.delay=l=>c+j(f||0,l)}),d.start()})}})}else{let s=Promise.resolve();p(t,i=>{let r=i.current;if(r.length){let u=r.map(c=>{let d=c.queue;return c.queue=[],d});s=s.then(()=>(p(r,(c,d)=>p(u[d]||[],o=>c.queue.push(o))),i.start()))}})}})}var Bs={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}},Hs=t=>t,kt=E(F({},Bs.default),{mass:1,damping:1,easing:Hs,clamp:!1}),Fn=class{constructor(){this.velocity=0,Object.assign(this,kt)}};function Ks(t,e,n){n&&(n=F({},n),In(n,e),e=F(F({},n),e)),In(t,e),Object.assign(t,e);for(let u in kt)t[u]==null&&(t[u]=kt[u]);let{mass:s,frequency:i,damping:r}=t;return a.und(i)||(i<.01&&(i=.01),r<0&&(r=0),t.tension=Math.pow(2*Math.PI/i,2)*s,t.friction=4*Math.PI*r*s/i),t}function In(t,e){if(!a.und(e.decay))t.duration=void 0;else{let n=!a.und(e.tension)||!a.und(e.friction);(n||!a.und(e.frequency)||!a.und(e.damping)||!a.und(e.mass))&&(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}}var Tn=[],kn=class{constructor(){this.changed=!1,this.values=Tn,this.toValues=null,this.fromValues=Tn,this.config=new Fn,this.immediate=!1}};function On(t,{key:e,props:n,defaultProps:s,state:i,actions:r}){return new Promise((u,c)=>{var d;let o,f,l=Ie((d=n.cancel)!=null?d:s==null?void 0:s.cancel,e);if(l)g();else{a.und(n.pause)||(i.paused=Ie(n.pause,e));let h=s==null?void 0:s.pause;h!==!0&&(h=i.paused||Ie(h,e)),o=j(n.delay||0,e),h?(i.resumeQueue.add(P),r.pause()):(r.resume(),P())}function m(){i.resumeQueue.add(P),i.timeouts.delete(f),f.cancel(),o=f.time-w.now()}function P(){o>0?(f=w.setTimeout(g,o),i.pauseQueue.add(m),i.timeouts.add(f)):g()}function g(){i.pauseQueue.delete(m),i.timeouts.delete(f),t<=(i.cancelId||0)&&(l=!0);try{r.start(E(F({},n),{callId:t,cancel:l}),u)}catch(h){c(h)}}})}var Ot=(t,e)=>e.length==1?e[0]:e.some(n=>n.cancelled)?_e(t.get()):e.every(n=>n.noop)?Vn(t.get()):L(t.get(),e.every(n=>n.finished)),Vn=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),L=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),_e=t=>({value:t,cancelled:!0,finished:!1});function En(t,e,n,s){let{callId:i,parentId:r,onRest:u}=e,{asyncTo:c,promise:d}=n;return!r&&t===c&&!e.reset?d:n.promise=(async()=>{n.asyncId=i,n.asyncTo=t;let o=et(e,(v,R)=>R==="onRest"?void 0:v),f,l,m=new Promise((v,R)=>(f=v,l=R)),P=v=>{let R=i<=(n.cancelId||0)&&_e(s)||i!==n.asyncId&&L(s,!1);if(R)throw v.result=R,l(v),v},g=(v,R)=>{let y=new Vt,_=new Et;return(async()=>{if(D.skipAnimation)throw ke(n),_.result=L(s,!1),l(_),_;P(y);let x=a.obj(v)?F({},v):E(F({},R),{to:v});x.parentId=i,$(o,(I,G)=>{a.und(x[G])&&(x[G]=I)});let U=await s.start(x);return P(y),n.paused&&await new Promise(I=>{n.resumeQueue.add(I)}),U})()},h;if(D.skipAnimation)return ke(n),L(s,!1);try{let v;a.arr(t)?v=(async R=>{for(let y of R)await g(y)})(t):v=Promise.resolve(t(g,s.stop.bind(s))),await Promise.all([v.then(f),m]),h=L(s.get(),!0,!1)}catch(v){if(v instanceof Vt)h=v.result;else if(v instanceof Et)h=v.result;else throw v}finally{i==n.asyncId&&(n.asyncId=r,n.asyncTo=r?c:void 0,n.promise=r?d:void 0)}return a.fun(u)&&w.batchedUpdates(()=>{u(h,s,s.item)}),h})()}function ke(t,e){de(t.timeouts,n=>n.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}var Vt=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.")}},Et=class extends Error{constructor(){super("SkipAnimationSignal")}},Ct=t=>t instanceof tt,Ws=1,tt=class extends xe{constructor(){super(...arguments);this.id=Ws++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=z(this);return e&&e.getValue()}to(...e){return D.to(this,e)}interpolate(...e){return xt(),D.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,n=!1){ce(this,{type:"change",parent:this,value:e,idle:n})}_onPriorityChange(e){this.idle||he.sort(this),ce(this,{type:"priority",parent:this,priority:e})}},le=Symbol.for("SpringPhase"),Cn=1,Ut=2,qt=4,jt=t=>(t[le]&Cn)>0,ie=t=>(t[le]&Ut)>0,Oe=t=>(t[le]&qt)>0,Un=(t,e)=>e?t[le]|=Ut|Cn:t[le]&=~Ut,qn=(t,e)=>e?t[le]|=qt:t[le]&=~qt,jn=class extends tt{constructor(e,n){super();if(this.animation=new kn,this.defaultProps={},this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!a.und(e)||!a.und(n)){let s=a.obj(e)?F({},e):E(F({},n),{from:e});a.und(s.default)&&(s.default=!0),this.start(s)}}get idle(){return!(ie(this)||this._state.asyncTo)||Oe(this)}get goal(){return V(this.animation.to)}get velocity(){let e=z(this);return e instanceof ne?e.lastVelocity||0:e.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return jt(this)}get isAnimating(){return ie(this)}get isPaused(){return Oe(this)}advance(e){let n=!0,s=!1,i=this.animation,{config:r,toValues:u}=i,c=Re(i.to);!c&&C(i.to)&&(u=O(V(i.to))),i.values.forEach((o,f)=>{if(o.done)return;let l=o.constructor==se?1:c?c[f].lastPosition:u[f],m=i.immediate,P=l;if(!m){if(P=o.lastPosition,r.tension<=0){o.done=!0;return}let g=o.elapsedTime+=e,h=i.fromValues[f],v=o.v0!=null?o.v0:o.v0=a.arr(r.velocity)?r.velocity[f]:r.velocity,R;if(a.und(r.duration))if(r.decay){let y=r.decay===!0?.998:r.decay,_=Math.exp(-(1-y)*g);P=h+v/(1-y)*(1-_),m=Math.abs(o.lastPosition-P)<.1,R=v*_}else{R=o.lastVelocity==null?v:o.lastVelocity;let y=r.precision||(h==l?.005:Math.min(1,Math.abs(l-h)*.001)),_=r.restVelocity||y/10,x=r.clamp?0:r.bounce,U=!a.und(x),I=h==l?o.v0>0:h<l,G,b=!1,S=1,T=Math.ceil(e/S);for(let k=0;k<T&&(G=Math.abs(R)>_,!(!G&&(m=Math.abs(l-P)<=y,m)));++k){U&&(b=P==l||P>l==I,b&&(R=-R*x,P=l));let A=-r.tension*1e-6*(P-l),q=-r.friction*.001*R,N=(A+q)/r.mass;R=R+N*S,P=P+R*S}}else{let y=1;r.duration>0&&(this._memoizedDuration!==r.duration&&(this._memoizedDuration=r.duration,o.durationProgress>0&&(o.elapsedTime=r.duration*o.durationProgress,g=o.elapsedTime+=e)),y=(r.progress||0)+g/this._memoizedDuration,y=y>1?1:y<0?0:y,o.durationProgress=y),P=h+r.easing(y)*(l-h),R=(P-o.lastPosition)/e,m=y==1}o.lastVelocity=R,Number.isNaN(P)&&(console.warn("Got NaN while animating:",this),m=!0)}c&&!c[f].done&&(m=!1),m?o.done=!0:n=!1,o.setValue(P,r.round)&&(s=!0)});let d=z(this);if(n){let o=V(i.to);(d.setValue(o)||s)&&this._onChange(o),this._stop()}else s&&this._onChange(d.getValue())}set(e){return w.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ie(this)){let{to:e,config:n}=this.animation;w.batchedUpdates(()=>{this._onStart(),n.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,n){let s;return a.und(e)?(s=this.queue||[],this.queue=[]):s=[a.obj(e)?e:E(F({},n),{to:e})],Promise.all(s.map(i=>this._update(i))).then(i=>Ot(this,i))}stop(e){let{to:n}=this.animation;return this._focus(this.get()),ke(this._state,e&&this._lastCallId),w.batchedUpdates(()=>this._stop(n,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){let n=this.key||"",{to:s,from:i}=e;s=a.obj(s)?s[n]:s,(s==null||It(s))&&(s=void 0),i=a.obj(i)?i[n]:i,i==null&&(i=void 0);let r={to:s,from:i};return jt(this)||(e.reverse&&([s,i]=[i,s]),i=V(i),a.und(i)?z(this)||this._set(s):this._set(i)),r}_update(s,n){var e=ae(s,[]);let{key:i,defaultProps:r}=this;e.default&&Object.assign(r,et(e,(d,o)=>/^on/.test(o)?xn(d,i):d)),Dn(this,e,"onProps"),Ce(this,"onProps",e,this);let u=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 c=this._state;return On(++this._lastCallId,{key:i,props:e,defaultProps:r,state:c,actions:{pause:()=>{Oe(this)||(qn(this,!0),fe(c.pauseQueue),Ce(this,"onPause",L(this,Ve(this,this.animation.to)),this))},resume:()=>{Oe(this)&&(qn(this,!1),ie(this)&&this._resume(),fe(c.resumeQueue),Ce(this,"onResume",L(this,Ve(this,this.animation.to)),this))},start:this._merge.bind(this,u)}}).then(d=>{if(e.loop&&d.finished&&!(n&&d.noop)){let o=Nn(e);if(o)return this._update(o,!0)}return d})}_merge(e,n,s){if(n.cancel)return this.stop(!0),s(_e(this));let i=!a.und(e.to),r=!a.und(e.from);if(i||r)if(n.callId>this._lastToId)this._lastToId=n.callId;else return s(_e(this));let{key:u,defaultProps:c,animation:d}=this,{to:o,from:f}=d,{to:l=o,from:m=f}=e;r&&!i&&(!n.default||a.und(l))&&(l=m),n.reverse&&([l,m]=[m,l]);let P=!W(m,f);P&&(d.from=m),m=V(m);let g=!W(l,o);g&&this._focus(l);let h=It(n.to),{config:v}=d,{decay:R,velocity:y}=v;(i||r)&&(v.velocity=0),n.config&&!h&&Ks(v,j(n.config,u),n.config!==c.config?j(c.config,u):void 0);let _=z(this);if(!_||a.und(l))return s(L(this,!0));let x=a.und(n.reset)?r&&!n.default:!a.und(m)&&Ie(n.reset,u),U=x?m:this.get(),I=Te(l),G=a.num(I)||a.arr(I)||ge(I),b=!h&&(!G||Ie(c.immediate||n.immediate,u));if(g){let A=Xe(l);if(A!==_.constructor)if(b)_=this._set(I);else throw Error(`Cannot animate between ${_.constructor.name} and ${A.name}, as the "to" prop suggests`)}let S=_.constructor,T=C(l),k=!1;if(!T){let A=x||!jt(this)&&P;(g||A)&&(k=W(Te(U),I),T=!k),(!W(v.decay,R)||!W(v.velocity,y))&&(T=!0)}if(k&&ie(this)&&(d.changed&&!x?T=!0:T||this._stop(o)),!h&&((T||C(o))&&(d.values=_.getPayload(),d.toValues=C(l)?null:S==se?[1]:O(I)),d.immediate!=b&&(d.immediate=b,!b&&!x&&this._set(o)),T)){let{onRest:A}=d;p(Js,N=>Dn(this,n,N));let q=L(this,Ve(this,o));fe(this._pendingCalls,q),this._pendingCalls.add(s),d.changed&&w.batchedUpdates(()=>{var N;d.changed=!x,A==null||A(q,this),x?j(c.onRest,q):(N=d.onStart)==null||N.call(d,q,this)})}x&&this._set(U),h?s(En(n.to,n,this._state,this)):T?this._start():ie(this)&&!g?this._pendingCalls.add(s):s(Vn(U))}_focus(e){let n=this.animation;e!==n.to&&(vt(this)&&this._detach(),n.to=e,vt(this)&&this._attach())}_attach(){let e=0,{to:n}=this.animation;C(n)&&(Y(n,this),Ct(n)&&(e=n.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;C(e)&&te(e,this)}_set(e,n=!0){let s=V(e);if(!a.und(s)){let i=z(this);if(!i||!W(s,i.getValue())){let r=Xe(s);!i||i.constructor!=r?Ye(this,r.create(s)):i.setValue(s),i&&w.batchedUpdates(()=>{this._onChange(s,n)})}}return z(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,Ce(this,"onStart",L(this,Ve(this,e.to)),this))}_onChange(e,n){n||(this._onStart(),j(this.animation.onChange,e,this)),j(this.defaultProps.onChange,e,this),super._onChange(e,n)}_start(){let e=this.animation;z(this).reset(V(e.to)),e.immediate||(e.fromValues=e.values.map(n=>n.lastPosition)),ie(this)||(Un(this,!0),Oe(this)||this._resume())}_resume(){D.skipAnimation?this.finish():he.start(this)}_stop(e,n){if(ie(this)){Un(this,!1);let s=this.animation;p(s.values,r=>{r.done=!0}),s.toValues&&(s.onChange=s.onPause=s.onResume=void 0),ce(this,{type:"idle",parent:this});let i=n?_e(this.get()):L(this.get(),Ve(this,e!=null?e:s.to));fe(this._pendingCalls,i),s.changed&&(s.changed=!1,Ce(this,"onRest",i,this))}}};function Ve(t,e){let n=Te(e),s=Te(t.get());return W(s,n)}function Nn(t,e=t.loop,n=t.to){let s=j(e);if(s){let i=s!==!0&&Ft(s),r=(i||t).reverse,u=!i||i.reset;return Ee(F(E(F({},t),{loop:e,default:!1,pause:void 0,to:!r||It(n)?n:void 0,from:u?t.from:void 0,reset:u}),i))}}function Ee(t){let{to:e,from:n}=t=Ft(t),s=new Set;return a.obj(e)&&$n(e,s),a.obj(n)&&$n(n,s),t.keys=s.size?Array.from(s):null,t}function Ys(t){let e=Ee(t);return a.und(e.default)&&(e.default=et(e)),e}function $n(t,e){$(t,(n,s)=>n!=null&&e.add(s))}var Js=["onStart","onRest","onChange","onPause","onResume"];function Dn(t,e,n){t.animation[n]=e[n]!==Sn(e,n)?xn(e[n],t.key):void 0}function Ce(t,e,...n){var s,i,r,u;(i=(s=t.animation)[e])==null||i.call(s,...n),(u=(r=t.defaultProps)[e])==null||u.call(r,...n)}var Zs=["onStart","onChange","onRest"],Xs=1,Nt=class{constructor(e,n){this.id=Xs++,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),n&&(this._flush=n),e&&this.start(F({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((n,s)=>e[s]=n.get()),e}set(e){for(let n in e){let s=e[n];a.und(s)||this.springs[n].set(s)}}update(e){return e&&this.queue.push(Ee(e)),this}start(e){let{queue:n}=this;return e?n=O(e).map(Ee):this.queue=[],this._flush?this._flush(this,n):(Ln(this,n),$t(this,n))}stop(e,n){if(e!==!!e&&(n=e),n){let s=this.springs;p(O(n),i=>s[i].stop(!!e))}else ke(this._state,this._lastAsyncId),this.each(s=>s.stop(!!e));return this}pause(e){if(a.und(e))this.start({pause:!0});else{let n=this.springs;p(O(e),s=>n[s].pause())}return this}resume(e){if(a.und(e))this.start({pause:!1});else{let n=this.springs;p(O(e),s=>n[s].resume())}return this}each(e){$(this.springs,e)}_onFrame(){let{onStart:e,onChange:n,onRest:s}=this._events,i=this._active.size>0,r=this._changed.size>0;(i&&!this._started||r&&!this._started)&&(this._started=!0,de(e,([d,o])=>{o.value=this.get(),d(o,this,this._item)}));let u=!i&&this._started,c=r||u&&s.size?this.get():null;r&&n.size&&de(n,([d,o])=>{o.value=c,d(o,this,this._item)}),u&&(this._started=!1,de(s,([d,o])=>{o.value=c,d(o,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;w.onFrame(this._onFrame)}};function $t(t,e){return Promise.all(e.map(n=>Qn(t,n))).then(n=>Ot(t,n))}async function Qn(t,e,n){let{keys:s,to:i,from:r,loop:u,onRest:c,onResolve:d}=e,o=a.obj(e.default)&&e.default;u&&(e.loop=!1),i===!1&&(e.to=null),r===!1&&(e.from=null);let f=a.arr(i)||a.fun(i)?i:void 0;f?(e.to=void 0,e.onRest=void 0,o&&(o.onRest=void 0)):p(Zs,h=>{let v=e[h];if(a.fun(v)){let R=t._events[h];e[h]=({finished:y,cancelled:_})=>{let x=R.get(v);x?(y||(x.finished=!1),_&&(x.cancelled=!0)):R.set(v,{value:null,finished:y||!1,cancelled:_||!1})},o&&(o[h]=e[h])}});let l=t._state;e.pause===!l.paused?(l.paused=e.pause,fe(e.pause?l.pauseQueue:l.resumeQueue)):l.paused&&(e.pause=!0);let m=(s||Object.keys(t.springs)).map(h=>t.springs[h].start(e)),P=e.cancel===!0||Sn(e,"cancel")===!0;(f||P&&l.asyncId)&&m.push(On(++t._lastAsyncId,{props:e,state:l,actions:{pause:ze,resume:ze,start(h,v){P?(ke(l,t._lastAsyncId),v(_e(t))):(h.onRest=c,v(En(f,h,l,t)))}}})),l.paused&&await new Promise(h=>{l.resumeQueue.add(h)});let g=Ot(t,await Promise.all(m));if(u&&g.finished&&!(n&&g.noop)){let h=Nn(e,u,i);if(h)return Ln(t,[h]),Qn(t,h,!0)}return d&&w.batchedUpdates(()=>d(g,t,t.item)),g}function Dt(t,e){let n=F({},t.springs);return e&&p(O(e),s=>{a.und(s.keys)&&(s=Ee(s)),a.obj(s.to)||(s=E(F({},s),{to:void 0})),zn(n,s,i=>Mn(i))}),n}function Qt(t,e){$(e,(n,s)=>{t.springs[s]||(t.springs[s]=n,Y(n,t))})}function Mn(t,e){let n=new jn;return n.key=t,e&&Y(n,e),n}function zn(t,e,n){e.keys&&p(e.keys,s=>{(t[s]||(t[s]=n(s)))._prepareNode(e)})}function Ln(t,e){p(e,n=>{zn(t.springs,n,s=>Mn(s,t))})}var Ue=n=>{var s=n,{children:t}=s,e=ae(s,["children"]);let i=At(nt),r=e.pause||!!i.pause,u=e.immediate||!!i.immediate;e=pn(()=>({pause:r,immediate:u}),[r,u]);let{Provider:c}=nt;return Rt(c,{value:e},t)},nt=ei(Ue,{});Ue.Provider=nt.Provider;Ue.Consumer=nt.Consumer;function ei(t,e){return Object.assign(t,$s(e)),t.Provider._context=t,t.Consumer._context=t,t}var st=class extends Function{constructor(){super("return arguments.callee._call.apply(arguments.callee, arguments)");this.current=[]}_call(e){mn(),this.start(e)}set(e){p(this.current,n=>n.set(e))}start(e){let n=[];return p(this.current,(s,i)=>{if(a.und(e))n.push(s.start());else{let r=this._getProps(e,s,i);r&&n.push(s.start(r))}}),n}update(e){return p(this.current,(n,s)=>n.update(this._getProps(e,n,s))),this}add(e){this.current.includes(e)||this.current.push(e)}delete(e){let n=this.current.indexOf(e);~n&&this.current.splice(n,1)}_getProps(e,n,s){return a.fun(e)?e(s,n):e}};p(["stop","pause","resume"],t=>{st.prototype[t]=function(){return p(this.current,e=>e[t](...arguments)),this}});function Mt(t,e,n){let s=a.fun(e)&&e;s&&!n&&(n=[]);let i=Fe(()=>s||arguments.length==3?new st:void 0,[]),r=Pn(0),u=Se(),c=Fe(()=>({ctrls:[],queue:[],flush(y,_){let x=Dt(y,_);return r.current>0&&!c.queue.length&&!Object.keys(x).some(I=>!y.springs[I])?$t(y,_):new Promise(I=>{Qt(y,x),c.queue.push(()=>{I($t(y,_))}),u()})}}),[]),d=[...c.ctrls],o=[],f=We(t)||0,l=d.slice(t,f);Fe(()=>{d.length=t,m(f,t)},[t]),Fe(()=>{m(0,Math.min(f,t))},n);function m(y,_){for(let x=y;x<_;x++){let U=d[x]||(d[x]=new Nt(null,c.flush)),I=s?s(x,U):e[x];I&&(o[x]=Ys(I))}}let P=d.map((y,_)=>Dt(y,o[_])),g=At(Ue),h=We(g),v=g!==h&&An(g);H(()=>{r.current++,c.ctrls=d;let{queue:y}=c;y.length&&(c.queue=[],p(y,_=>_())),p(l,_=>{Tt(_,i),_.stop(!0)}),p(d,(_,x)=>{let U=P[x];Qt(_,U),i==null||i.add(_),v&&_.start({default:g});let I=o[x];I&&(Rn(_,I.ref),_.ref?_.queue.push(I):_.start(I))})}),ye(()=>()=>{p(c.ctrls,y=>y.stop(!0))});let R=P.map(y=>F({},y));return i?[R,i]:R}function ti(t,e){let n=a.fun(t),[[s],i]=Mt(1,n?t:[t],n?e||[]:e);return n||arguments.length==2?[s,i]:s}function ni(t,e,n){let s=a.fun(e)&&e;s&&!n&&(n=[]);let i=!0,r=Mt(t,(c,d)=>{let o=s?s(c,d):e;return i=i&&o.reverse,o},n||[{}]),u=r[1];return H(()=>{p(u.current,(c,d)=>{let o=u.current[d+(i?1:-1)];o&&c.start({to:o.springs})})},n),s||arguments.length==3?(u._getProps=(c,d,o)=>{let f=a.fun(c)?c(o,d):c;if(f){let l=u.current[o+(f.reverse?1:-1)];return l&&(f.to=l.springs),f}},r):r[0]}var Gn="mount",it="enter",Bn="update",rt="leave";function si(t,e,n){let{reset:s,sort:i,trail:r=0,expires:u=!0,onDestroyed:c}=e,d=Fe(()=>arguments.length==3?new st:void 0,[]),o=O(t),f=[],l=Pn(null),m=s?null:l.current;H(()=>{l.current=f}),ye(()=>()=>p(l.current,b=>{b.expired&&clearTimeout(b.expirationId),Tt(b.ctrl,d),b.ctrl.stop(!0)}));let P=ri(o,e,m),g=s&&l.current||[];H(()=>p(g,({ctrl:b,item:S,key:T})=>{Tt(b,d),j(c,S,T)}));let h=[];if(m&&p(m,(b,S)=>{b.expired?(clearTimeout(b.expirationId),g.push(b)):(S=h[S]=P.indexOf(b.key),~S&&(f[S]=b))}),p(o,(b,S)=>{f[S]||(f[S]={key:P[S],item:b,phase:Gn,ctrl:new Nt},f[S].ctrl.item=b)}),h.length){let b=-1;p(h,(S,T)=>{let k=m[T];~S?(b=f.indexOf(k),f[b]=E(F({},k),{item:o[S]})):e.leave&&f.splice(++b,0,k)})}a.fun(i)&&f.sort((b,S)=>i(b.item,S.item));let v=-r,R=Se(),y=et(e),_=new Map;p(f,(b,S)=>{let T=b.key,k=b.phase,A,q;if(k==Gn)A=e.enter,q=it;else{let K=P.indexOf(T)<0;if(k!=rt)if(K)A=e.leave,q=rt;else if(A=e.update)q=Bn;else return;else if(!K)A=e.enter,q=it;else return}if(A=j(A,b.item,S),A=a.obj(A)?Ft(A):{to:A},!A.config){let K=e.config||y.config;A.config=j(K,b.item,S,q)}let N=F(E(F({},y),{delay:v+=r,reset:!1}),A);if(q==it&&a.und(N.from)){let K=a.und(e.initial)||m?e.from:e.initial;N.from=j(K,b.item,S)}let{onResolve:es}=N;N.onResolve=K=>{j(es,K);let ut=l.current,re=ut.find(je=>je.key===T);if(!!re&&!(K.cancelled&&re.phase!=Bn)&&re.ctrl.idle){let je=ut.every(oe=>oe.ctrl.idle);if(re.phase==rt){let oe=j(u,re.item);if(oe!==!1){let ct=oe===!0?0:oe;if(re.expired=!0,!je&&ct>0){ct<=2147483647&&(re.expirationId=setTimeout(R,ct));return}}}je&&ut.some(oe=>oe.expired)&&R()}};let ts=Dt(b.ctrl,N);_.set(b,{phase:q,springs:ts,payload:N})});let x=At(Ue),U=We(x),I=x!==U&&An(x);H(()=>{I&&p(f,b=>{b.ctrl.start({default:x})})},[x]),H(()=>{p(_,({phase:b,springs:S,payload:T},k)=>{let{ctrl:A}=k;k.phase=b,d==null||d.add(A),Rn(A,T.ref),Qt(A,S),I&&b==it&&A.start({default:x}),A[A.ref?"update":"start"](T)})},s?void 0:n);let G=b=>Rt(Ds,null,f.map((S,T)=>{let{springs:k}=_.get(S)||S.ctrl,A=b(F({},k),S.item,S,T);return A&&A.type?Rt(A.type,E(F({},A.props),{key:a.str(S.key)||a.num(S.key)?S.key:S.ctrl.id,ref:A.ref})):A}));return d?[G,d]:G}var ii=1;function ri(t,{key:e,keys:n=e},s){if(n===null){let i=new Set;return t.map(r=>{let u=s&&s.find(c=>c.item===r&&c.phase!==rt&&!i.has(c));return u?(i.add(u),u.key):ii++})}return a.und(n)?t:a.fun(n)?t.map(n):O(n)}var zt=class extends tt{constructor(e,n){super();this.source=e,this.idle=!0,this._active=new Set,this.calc=ee(...n);let s=this._get(),i=Xe(s);Ye(this,i.create(s))}advance(e){let n=this._get(),s=this.get();W(n,s)||(z(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&Hn(this._active)&&Lt(this)}_get(){let e=a.arr(this.source)?this.source.map(V):O(V(this.source));return this.calc(...e)}_start(){this.idle&&!Hn(this._active)&&(this.idle=!1,p(Re(this),e=>{e.done=!1}),D.skipAnimation?(w.batchedUpdates(()=>this.advance()),Lt(this)):he.start(this))}_attach(){let e=1;p(O(this.source),n=>{C(n)&&Y(n,this),Ct(n)&&(n.idle||this._active.add(n),e=Math.max(e,n.priority+1))}),this.priority=e,this._start()}_detach(){p(O(this.source),e=>{C(e)&&te(e,this)}),this._active.clear(),Lt(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=O(this.source).reduce((n,s)=>Math.max(n,(Ct(s)?s.priority:0)+1),0))}};function oi(t){return t.idle!==!1}function Hn(t){return!t.size||Array.from(t).every(oi)}function Lt(t){t.idle||(t.idle=!0,p(Re(t),e=>{e.done=!0}),ce(t,{type:"idle",parent:t}))}var ai=(t,...e)=>(xt(),new zt(t,e));D.assign({createStringInterpolator:Ke,to:(t,e)=>new zt(t,e)});var Ci=he.advance;import{unstable_batchedUpdates as ui}from"react-dom";var Kn=/^--/;function ci(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!Kn.test(t)&&!(qe.hasOwnProperty(t)&&qe[t])?e+"px":(""+e).trim()}var Wn={};function li(t,e){if(!t.nodeType||!t.setAttribute)return!1;let n=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",f=e,{style:s,children:i,scrollTop:r,scrollLeft:u}=f,c=ae(f,["style","children","scrollTop","scrollLeft"]),d=Object.values(c),o=Object.keys(c).map(l=>n||t.hasAttribute(l)?l:Wn[l]||(Wn[l]=l.replace(/([A-Z])/g,m=>"-"+m.toLowerCase())));i!==void 0&&(t.textContent=i);for(let l in s)if(s.hasOwnProperty(l)){let m=ci(l,s[l]);l==="float"?l="cssFloat":Kn.test(l)?t.style.setProperty(l,m):t.style[l]=m}o.forEach((l,m)=>{t.setAttribute(l,d[m])}),r!==void 0&&(t.scrollTop=r),u!==void 0&&(t.scrollLeft=u)}var qe={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},di=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),fi=["Webkit","Ms","Moz","O"];qe=Object.keys(qe).reduce((t,e)=>(fi.forEach(n=>t[di(n,e)]=t[e]),t),qe);var hi=/^(matrix|translate|scale|rotate|skew)/,mi=/^(translate)/,pi=/^(rotate|skew)/,Gt=(t,e)=>a.num(t)&&t!==0?t+e:t,ot=(t,e)=>a.arr(t)?t.every(n=>ot(n,e)):a.num(t)?t===e:parseFloat(t)===e,Yn=class extends be{constructor(r){var u=r,{x:e,y:n,z:s}=u,i=ae(u,["x","y","z"]);let c=[],d=[];(e||n||s)&&(c.push([e||0,n||0,s||0]),d.push(o=>[`translate3d(${o.map(f=>Gt(f,"px")).join(",")})`,ot(o,0)])),$(i,(o,f)=>{if(f==="transform")c.push([o||""]),d.push(l=>[l,l===""]);else if(hi.test(f)){if(delete i[f],a.und(o))return;let l=mi.test(f)?"px":pi.test(f)?"deg":"";c.push(O(o)),d.push(f==="rotate3d"?([m,P,g,h])=>[`rotate3d(${m},${P},${g},${Gt(h,l)})`,ot(h,0)]:m=>[`${f}(${m.map(P=>Gt(P,l)).join(",")})`,ot(m,f.startsWith("scale")?1:0)])}}),c.length&&(i.transform=new Jn(c,d));super(i)}},Jn=class extends xe{constructor(e,n){super();this.inputs=e,this.transforms=n,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",n=!0;return p(this.inputs,(s,i)=>{let r=V(s[0]),[u,c]=this.transforms[i](a.arr(r)?r:s.map(V));e+=" "+u,n=n&&c}),n?"none":e}observerAdded(e){e==1&&p(this.inputs,n=>p(n,s=>C(s)&&Y(s,this)))}observerRemoved(e){e==0&&p(this.inputs,n=>p(n,s=>C(s)&&te(s,this)))}eventObserved(e){e.type=="change"&&(this._value=null),ce(this,e)}},gi=["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"];D.assign({batchedUpdates:ui,createStringInterpolator:Ke,colors:on});var yi=vn(gi,{applyAnimatedValues:li,createAnimatedStyle:t=>new Yn(t),getComponentProps:s=>{var i=s,{scrollTop:t,scrollLeft:e}=i,n=ae(i,["scrollTop","scrollLeft"]);return n}}),bi=yi.animated;import*as at from"react";var _i="(prefers-reduced-motion: reduce)",Zn=(()=>typeof window=="undefined"||!window.location||!window.location.href||!window.matchMedia?!0:Boolean(new URL(window.location.href).searchParams.get("eyes-storybook")))(),Xn=()=>Zn?{matches:!0,addListener:()=>{},removeListener:()=>{}}:window.matchMedia(_i);function vi(){let[t,e]=at.useState(Xn().matches);return at.useEffect(()=>{let n=Xn(),s=()=>{e(n.matches)};return n.addListener(s),()=>{n.removeListener(s)}},[]),t}export{D as Globals,bi as animated,ai as interpolate,Zn as isRenderingOnServer,Gs as useChain,vi as useReducedMotion,ti as useSpring,Mt as useSprings,ni as useTrail,si as useTransition};
{
"name": "@twilio-paste/animation-library",
"version": "0.3.4",
"version": "0.3.5",
"category": "interaction",

@@ -5,0 +5,0 @@ "status": "production",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc