1import{a as he,b as Ln}from"/assets/chunk-NL3OMZLD.digested.js";import{c as ne,e as M}from"/assets/chunk-OWE7WXFZ.digested.js";M();M();M();var It=Object.defineProperty,At=(e,t)=>{let n={};for(var s in e)It(n,s,{get:e[s],enumerable:!0});return t||It(n,Symbol.toStringTag,{value:"Module"}),n};M();var Xe=pe(),m=e=>me(e,Xe),Ke=pe();m.write=e=>me(e,Ke);var Ve=pe();m.onStart=e=>me(e,Ve);var Ze=pe();m.onFrame=e=>me(e,Ze);var Je=pe();m.onFinish=e=>me(e,Je);var se=[];m.setTimeout=(e,t)=>{let n=m.now()+t,s=()=>{let r=se.findIndex(c=>c.cancel==s);~r&&se.splice(r,1),D-=~r?1:0},i={time:n,handler:e,cancel:s};return se.splice(Pt(n),0,i),D+=1,Rt(),i};var Pt=e=>~(~se.findIndex(t=>t.time>e)||~se.length);m.cancel=e=>{Ve.delete(e),Ze.delete(e),Je.delete(e),Xe.delete(e),Ke.delete(e)};m.sync=e=>{Ye=!0,m.batchedUpdates(e),Ye=!1};m.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function s(...i){t=i,m.onStart(n)}return s.handler=e,s.cancel=()=>{Ve.delete(n),t=null},s};var et=typeof window<"u"?window.requestAnimationFrame:()=>{};m.use=e=>et=e;m.now=typeof performance<"u"?()=>performance.now():Date.now;m.batchedUpdates=e=>e();m.catch=console.error;m.frameLoop="always";m.onDemand=()=>{};m.advance=()=>{m.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):kt()};var W=-1,D=0,Ye=!1;function me(e,t){Ye?(t.delete(e),e(0)):(t.add(e),Rt(),m.frameLoop==="demand"&&m.onDemand())}function Rt(){W<0&&(W=0,m.frameLoop!=="demand"&&et(Ot))}function $n(){W=-1}function Ot(){~W&&(et(Ot),m.batchedUpdates(kt))}function kt(){let e=W;W=m.now();let t=Pt(W);if(t&&(Et(se.splice(0,t),n=>n.handler()),D-=t),!D){$n();return}Ve.flush(),Xe.flush(e?Math.min(64,W-e):16.667),Ze.flush(),Ke.flush(),Je.flush(),m.frameLoop==="demand"&&D>0&&m.onDemand()}function pe(){let e=new Set,t=e;return{add(n){D+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return D-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,D-=t.size,Et(t,s=>s(n)&&e.add(s)),D+=e.size,t=e)}}}function Et(e,t){e.forEach(n=>{try{t(n)}catch(s){m.catch(s)}})}var x=ne(he(),1);function $e(){}
1var Nt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),u={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:(e=>typeof e=="function"),str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function j(e,t){if(u.arr(e)){if(!u.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var w=(e,t)=>e.forEach(t);function V(e,t,n){if(u.arr(e)){for(let s=0;s<e.length;s++)t.call(n,e[s],`${s}`);return}for(let s in e)e.hasOwnProperty(s)&&t.call(n,e[s],s)}var O=e=>u.und(e)?[]:u.arr(e)?e:[e];function oe(e,t){if(e.size){let n=Array.from(e);e.clear(),w(n,t)}}var ae=(e,...t)=>oe(e,n=>n(...t)),ot=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),z=At({assign:()=>qn,colors:()=>G,createStringInterpolator:()=>at,skipAnimation:()=>Ut,to:()=>jt,willAdvance:()=>ut}),at,jt,G=null,Ut=!1,ut=$e,qn=e=>{e.to&&(jt=e.to),e.now&&(m.now=e.now),e.colors!==void 0&&(G=e.colors),e.skipAnimation!=null&&(Ut=e.skipAnimation),e.createStringInterpolator&&(at=e.createStringInterpolator),e.requestAnimationFrame&&m.use(e.requestAnimationFrame),e.batchedUpdates&&(m.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ut=e.willAdvance),e.frameLoop&&(m.frameLoop=e.frameLoop),e.onDemand&&(m.onDemand=e.onDemand)},ge=new Set,C=[],tt=[],xe=0,ue={get idle(){return!ge.size&&!C.length},start(e){xe>e.priority?(ge.add(e),m.onStart(Nn)):(Dt(e),m(it))},advance:it,sort(e){if(xe)m.onFrame(()=>ue.sort(e));else{let t=C.indexOf(e);~t&&(C.splice(t,1),Qt(e))}},clear(){C=[],ge.clear()}};function Nn(){ge.forEach(Dt),ge.clear(),m(it)}function Dt(e){C.includes(e)||Qt(e)}function Qt(e){C.splice(jn(C,t=>t.priority>e.priority),0,e)}function it(e){let t=tt;for(let n=0;n<C.length;n++){let s=C[n];xe=s.priority,s.idle||(ut(s),s.advance(e),s.idle||t.push(s))}return xe=0,tt=C,tt.length=0,C=t,C.length>0}function jn(e,t){let n=e.findIndex(t);return n<0?e.length:n}var Un=(e,t,n)=>Math.min(Math.max(n,e),t),Bt={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},N="[-+]?\\d*\\.?\\d+",ze="[-+]?\\d*\\.?\\d+%";function qe(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Dn=new RegExp("rgb"+qe(N,N,N)),Qn=new RegExp("rgba"+qe(N,N,N,N)),Bn=new RegExp("hsl"+qe(N,ze,ze)),Hn=new RegExp("hsla"
1+qe(N,ze,ze,N)),Wn=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Gn=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Yn=/^#([0-9a-fA-F]{6})$/,Xn=/^#([0-9a-fA-F]{8})$/;function Kn(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Yn.exec(e))?parseInt(t[1]+"ff",16)>>>0:G&&G[e]!==void 0?G[e]:(t=Dn.exec(e))?(ie(t[1])<<24|ie(t[2])<<16|ie(t[3])<<8|255)>>>0:(t=Qn.exec(e))?(ie(t[1])<<24|ie(t[2])<<16|ie(t[3])<<8|Vt(t[4]))>>>0:(t=Wn.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Xn.exec(e))?parseInt(t[1],16)>>>0:(t=Gn.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Bn.exec(e))?(Mt(Ft(t[1]),Te(t[2]),Te(t[3]))|255)>>>0:(t=Hn.exec(e))?(Mt(Ft(t[1]),Te(t[2]),Te(t[3]))|Vt(t[4]))>>>0:null}function nt(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Mt(e,t,n){let s=n<.5?n*(1+t):n+t-n*t,i=2*n-s,r=nt(i,s,e+1/3),c=nt(i,s,e),a=nt(i,s,e-1/3);return Math.round(r*255)<<24|Math.round(c*255)<<16|Math.round(a*255)<<8}function ie(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function Ft(e){return(parseFloat(e)%360+360)%360/360}function Vt(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Te(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function Tt(e){let t=Kn(e);return t===null?e:(t=t||0,`rgba(${(t&4278190080)>>>24}, ${(t&16711680)>>>16}, ${(t&65280)>>>8}, ${(t&255)/255})`)}var Y=(e,t,n)=>{if(u.fun(e))return e;if(u.arr(e))return Y({range:e,output:t,extrapolate:n});if(u.str(e.output[0]))return at(e);let s=e,i=s.output,r=s.range||[0,1],c=s.extrapolateLeft||s.extrapolate||"extend",a=s.extrapolateRight||s.extrapolate||"extend",l=s.easing||(o=>o);return o=>{let g=Jn(o,r);return Zn(o,r[g],r[g+1],i[g],i[g+1],l,c,a,s.map)}};function Zn(e,t,n,s,i,r,c,a,l){let o=l?l(e):e;if(o<t){if(c==="identity")return o;c==="clamp"&&(o=t)}if(o>n){if(a==="identity")return o;a==="clamp"&&(o=n)}return s===i?s:t===n?e<=t?s:i:(t===-1/0?o=-o:n===1/0?o=o-t:o=(o-t)/(n-t),o=r(o),s===-1/0?o=-o:i===1/0?o=o+s:o=o*(i-s)+s,o)}function Jn(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var es=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);let s=n*e;return Un(0,1,(t==="end"?Math.floor(s):Math.ceil(s))/e)},rt=1.70158,Ct=rt*1.525,xt=2.70158,zt=2*Math.PI/3,Lt=2*Math.PI/4.5,Ce=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,ct={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>xt*e*e*e-rt*e*e,easeOutBack:e=>1+xt*Math.pow(e-1,3)+rt*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(3.5949095*2*e-Ct)/2:(Math.pow(2*e-2,2)*(3.5949095*(e*2-2)+Ct)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*zt),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*zt)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Lt))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Lt)/2+1,easeInBounce:e=>1-Ce(1-e),easeOutBounce:Ce,easeInOutBounce:e=>e<.5?(1-Ce(1-2*e))/2:(1+Ce(2*e-1))/2,steps:es},ye=Symbol.for("FluidValue.get"),re=Symbol.for("FluidValue.observers"),k=e=>!!(e&&e[ye]),A=e=>e&&e[ye]?e[ye]():e,lt=e=>e[re]||null;function ts(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Z(e,t){let n=e[re];
1n&&n.forEach(s=>{ts(s,t)})}var Ne=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");ns(this,e)}},ns=(e,t)=>Ht(e,ye,t);function Q(e,t){if(e[ye]){let n=e[re];n||Ht(e,re,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function X(e,t){let n=e[re];if(n&&n.has(t)){let s=n.size-1;s?n.delete(t):e[re]=null,e.observerRemoved&&e.observerRemoved(s,t)}}var Ht=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Le=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ss=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,$t=new RegExp(`(${Le.source})(%|[a-z]+)`,"i"),is=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,je=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Wt=e=>{let[t,n]=rs(e);if(!t||ot())return e;let s=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(s)return s.trim();if(n&&n.startsWith("--")){let i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&je.test(n))return Wt(n);if(n)return n}return e},rs=e=>{let t=je.exec(e);if(!t)return[,];let[,n,s]=t;return[n,s]},st,os=(e,t,n,s,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(s)}, ${i})`,qt=e=>e.match(Le)??[],Ue=e=>{st||(st=G?new RegExp(`(${Object.keys(G).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(a=>A(a).replace(je,Wt).replace(ss,Tt).replace(st,Tt)),n=t.map(a=>qt(a).map(Number)),s=n[0].map((a,l)=>n.map(o=>{if(!(l in o))throw Error('The arity of each "output" value must be equal');return o[l]})).map(a=>Y({...e,output:a})),i=e.range||[0,1],r=t.map(a=>qt(a)),c=r[0].map((a,l)=>{let o=r.map(g=>{let y=g[l],f=y.indexOf(".");return f===-1?0:y.length-f-1});return o.every(g=>g===o[0])&&o[0]>0?o[0]:null});return a=>{let l=i.indexOf(a);if(l!==-1)return t[l];let o=!$t.test(t[0])&&t.find(y=>$t.test(y))?.replace(Le,""),g=0;return t[0].replace(Le,()=>{let y=g++,f=s[y](a),p=c[y];return`${p!=null?f.toFixed(p):f}${o||""}`}).replace(is,os)}},dt="react-spring: ",Gt=e=>{let t=e,n=!1;if(typeof t!="function")throw new TypeError(`${dt}once requires a function parameter`);return(...s)=>{n||(t(...s),n=!0)}},as=Gt(console.warn);function Yt(){as(`${dt}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var us=Gt(console.warn);function Xt(){us(`${dt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function ce(e){return u.str(e)&&(e[0]=="#"||/\d/.test(e)||!ot()&&je.test(e)||e in(G||{}))}function Kt(e){let t=(0,x.useRef)(null);return t.current===null&&(t.current=e()),t.current}var le=ot()?x.useEffect:x.useLayoutEffect,cs=()=>{let e=(0,x.useRef)(!1);return le(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function De(){let e=(0,x.useState)()[1],t=cs();return()=>{t.current&&e(Math.random())}}var ve=e=>(0,x.useEffect)(e,ls),ls=[];function ft(e){let t=(0,x.useRef)(void 0);return(0,x.useEffect)(()=>{t.current=e}),t.current}var Me=ne(he(),1),T=ne(he(),1);M();var nn=ne(he(),1),B=ne(he(),1),be=Symbol.for("Animated:node"),ds=e=>!!e&&e[be]===e,$=e=>e&&e[be],Be=(e,t)=>Nt(e,be,t),we=e=>e&&e[be]&&e[be].getPayload(),sn=class{constructor(){Be(this,this)}getPayload(){return this.payload||[]}},_e=class rn extends sn{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,u.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new rn(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return u.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){let{done:t}=this;this.done=!1,u.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Se=class on extends _e{constructor(t){super(0),this._string=null,this._toString=Y({output:[t,t]})}static create(t){return new on(t)}getValue(){let t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(u.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Y({output:[this.getValue(),t]})),this._value=0,super.reset()}},Qe={dependencies:null},Ie=class extends sn{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return V(this.source,(n,s)=>{ds(n)?t[s]=n.getValue(e):k(n)?t[s]=A(n):e||(t[s]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&w(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return V(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Qe.dependencies&&k(e)&&Qe.dependencies.add(e);let t=we(e);t&&w(t,n=>this.add(n))}},fs=class an extends Ie{constructor(t){super(t)}static create(t){return new an(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){let n=this.getPayload();return t.length==n.length?n.map((s,i)=>s.setValue(t[i])).some(Boolean):(super.setValue(t.map(hs)),!0)}};function hs(e){return(ce(e)?Se:_e).create(e)}function He(e){let t=$(e);
1return t?t.constructor:u.arr(e)?fs:ce(e)?Se:_e}var Zt=(e,t)=>{let n=!u.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,B.forwardRef)((s,i)=>{let r=(0,B.useRef)(null),c=n&&(0,B.useCallback)(b=>{r.current=gs(i,b)},[i]),[a,l]=ps(s,t),o=De(),g=()=>{let b=r.current;n&&!b||(b?t.applyAnimatedValues(b,a.getValue(!0)):!1)===!1&&o()},y=new ms(g,l),f=(0,B.useRef)(void 0);le(()=>(f.current=y,w(l,b=>Q(b,y)),()=>{f.current&&(w(f.current.deps,b=>X(b,f.current)),m.cancel(f.current.update))})),(0,B.useEffect)(g,[]),ve(()=>()=>{let b=f.current;w(b.deps,I=>X(I,b))});let p=t.getComponentProps(a.getValue());return nn.createElement(e,{...p,ref:c})})},ms=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&m.write(this.update)}};function ps(e,t){let n=new Set;return Qe.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Ie(e),Qe.dependencies=null,[e,n]}function gs(e,t){return e&&(u.fun(e)?e(t):e.current=t),t}var Jt=Symbol.for("AnimatedComponent"),en=new WeakMap,un=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Ie(i),getComponentProps:s=i=>i}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:s},r=c=>{let a=tn(c)||"Anonymous";if(u.str(c))c=r[c]||(r[c]=Zt(c,i));else{let l=c[Jt]??en.get(c);if(!l){l=Zt(c,i);try{c[Jt]=l}catch{}en.set(c,l)}c=l}return c.displayName=`Animated(${a})`,c};return V(e,(c,a)=>{u.arr(e)&&(a=tn(c)),r[a]=r(c)}),{animated:r}},tn=e=>u.str(e)?e:e&&u.str(e.displayName)?e.displayName:u.fun(e)&&e.name||null;M();function J(e,...t){return u.fun(e)?e(...t):e}var Oe=(e,t)=>e===!0||!!(t&&e&&(u.fun(e)?e(t):O(e).includes(t))),bn=(e,t)=>u.obj(e)?t&&e[t]:e,wn=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,ys=e=>e,bt=(e,t=ys)=>{let n=vs;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));let s={};for(let i of n){let r=t(e[i],i);u.und(r)||(s[i]=r)}return s},vs=["config","onProps","onStart","onChange","onPause","onResume","onRest"],bs={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 ws(e){let t={},n=0;if(V(e,(s,i)=>{bs[i]||(t[i]=s,n++)}),n)return t}function _n(e){let t=ws(e);if(t){let n={to:t};return V(e,(s,i)=>i in t||(n[i]=s)),n}return{...e}}function ke(e){let t=A(e);return u.arr(t)?t.map(ke):ce(t)?z.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function _s(e){for(let t in e)return!0;return!1}function pt(e){return u.fun(e)||u.arr(e)&&u.obj(e[0])}function Ss(e,t){e.ref?.delete(e),t?.delete(e)}function Is(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var As={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}},gt={...As.default,mass:1,damping:1,easing:ct.linear,clamp:!1},Ps=class{constructor(){this.velocity=0,Object.assign(this,gt)}};function Rs(e,t,n){n&&(n={...n},cn(n,t),t={...n,...t}),cn(e,t),Object.assign(e,t);for(let c in gt)e[c]==null&&(e[c]=gt[c]);let{frequency:s,damping:i}=e,{mass:r}=e;return u.und(s)||(s<.01&&(s=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/s,2)*r,e.friction=4*Math.PI*i*r/s),e}function cn(e,t){if(!u.und(t.decay))e.duration=void 0;else{let n=!u.und(t.tension)||!u.und(t.friction);(n||!u.und(t.frequency)||!u.und(t.damping)||!u.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var ln=[],Os=class{constructor(){this.changed=!1,this.values=ln,this.toValues=null,this.fromValues=ln,this.config=new Ps,this.immediate=!1}};function Sn(e,{key:t,props:n,defaultProps:s,state:i,actions:r}){return new Promise((c,a)=>{let l,o,g=Oe(n.cancel??s?.cancel,t);if(g)p();else{u.und(n.pause)||(i.paused=Oe(n.pause,t));let b=s?.pause;b!==!0&&(b=i.paused||Oe(b,t)),l=J(n.delay||0,t),b?(i.resumeQueue.add(f),r.pause()):(r.resume(),f())}function y(){i.resumeQueue.add(f),i.timeouts.delete(o),o.cancel(),l=o.time-m.now()}function f(){l>0&&!z.skipAnimation?(i.delayed=!0,o=m.setTimeout(p,l),i.pauseQueue.add(y),i.timeouts.add(o)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(y),i.timeouts.delete(o),e<=(i.cancelId||0)&&(g=!0);try{r.start({...n,callId:e,cancel:g},c)}catch(b){a(b)}}})}var wt=(e,t)=>
1t.length==1?t[0]:t.some(n=>n.cancelled)?de(e.get()):t.every(n=>n.noop)?In(e.get()):q(e.get(),t.every(n=>n.finished)),In=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),q=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),de=e=>({value:e,cancelled:!0,finished:!1});function An(e,t,n,s){let{callId:i,parentId:r,onRest:c}=t,{asyncTo:a,promise:l}=n;return!r&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let o=bt(t,(v,h)=>h==="onRest"?void 0:v),g,y,f=new Promise((v,h)=>(g=v,y=h)),p=v=>{let h=i<=(n.cancelId||0)&&de(s)||i!==n.asyncId&&q(s,!1);if(h)throw v.result=h,y(v),v},b=0,I=1024,P=(v,h)=>{let S=new dn,_=new fn;return(async()=>{p(S);let E=u.obj(v)?{...v}:{...h,to:v};if(E.parentId=i,V(o,(H,R)=>{u.und(E[R])&&(E[R]=H)}),z.skipAnimation){if(++b>I)throw We(n),_.result=q(s,!1),y(_),_;return E.immediate=!0,await s.start(E)}let L=await s.start(E);return p(S),n.paused&&await new Promise(H=>{n.resumeQueue.add(H)}),L})()},d;try{let v;u.arr(e)?v=(async h=>{for(let S of h)await P(S)})(e):v=Promise.resolve(e(P,s.stop.bind(s))),await Promise.all([v.then(g),f]),d=q(s.get(),!0,!1)}catch(v){if(v instanceof dn)d=v.result;else if(v instanceof fn)d=v.result;else throw v}finally{i==n.asyncId&&(n.asyncId=r,n.asyncTo=r?a:void 0,n.promise=r?l:void 0)}return u.fun(c)&&m.batchedUpdates(()=>{c(d,s,s.item)}),d})()}function We(e,t){oe(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var dn=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.")}},fn=class extends Error{constructor(){super("SkipAnimationSignal")}},yt=e=>e instanceof _t,ks=1,_t=class extends Ne{constructor(...e){super(...e),this.id=ks++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=$(this);return e&&e.getValue()}to(...e){return z.to(this,e)}interpolate(...e){return Yt(),z.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Z(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ue.sort(this),Z(this,{type:"priority",parent:this,priority:e})}},ee=Symbol.for("SpringPhase"),Es=1,Ms=2,Pn=4,ht=e=>(e[ee]&Es)>0,K=e=>(e[ee]&Ms)>0,Ae=e=>(e[ee]&Pn)>0,hn=(e,t)=>t?e[ee]|=3:e[ee]&=-3,mn=(e,t)=>t?e[ee]|=Pn:e[ee]&=-5,Rn=class extends _t{constructor(e,t){if(super(),this.animation=new Os,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,!u.und(e)||!u.und(t)){let n=u.obj(e)?{...e}:{...t,from:e};u.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(K(this)||this._state.asyncTo)||Ae(this)}get goal(){return A(this.animation.to)}get velocity(){let e=$(this);return e instanceof _e?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return ht(this)}get isAnimating(){return K(this)}get isPaused(){return Ae(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,s=this.animation,{toValues:i}=s,{config:r}=s,c=we(s.to);!c&&k(s.to)&&(i=O(A(s.to))),s.values.forEach((o,g)=>{if(o.done)return;let y=o.constructor==Se?1:c?c[g].lastPosition:i[g],f=s.immediate,p=y;if(!f){if(p=o.lastPosition,r.tension<=0){o.done=!0;return}let b=o.elapsedTime+=e,I=s.fromValues[g],P=o.v0!=null?o.v0:o.v0=u.arr(r.velocity)?r.velocity[g]:r.velocity,d,v=r.precision||(I==y?.005:Math.max(Math.max(Math.abs(y),Math.abs(I),1)*Number.EPSILON,Math.min(1,Math.abs(y-I)*.001)));if(u.und(r.duration))if(r.decay){let h=r.decay===!0?.998:r.decay,S=Math.exp(-(1-h)*b);p=I+P/(1-h)*(1-S),f=Math.abs(o.lastPosition-p)<=v,d=P*S}else{d=o.lastVelocity==null?P:o.lastVelocity;let h=r.restVelocity||v/10,S=r.clamp?0:r.bounce,_=!u.und(S),E=I==y?o.v0>0:I<y,L,H=!1,R=1,fe=Math.ceil(e/R);for(let U=0;U<fe&&(L=Math.abs(d)>h,!(!L&&(f=Math.abs(y-p)<=v,f)));++U){_&&(H=p==y||p>y==E,H&&(d=-d*S,p=y));let te=(-r.tension*1e-6*(p-y)+-r.friction*.001*d)/r.mass;d=d+te*R,p=p+d*R}}else{let h=1;r.duration>0&&(this._memoizedDuration!==r.duration&&(this._memoizedDuration=r.duration,o.durationProgress>0&&(o.elapsedTime=r.duration*o.durationProgress,b=o.elapsedTime+=e)),h=(r.progress||0)+b/this._memoizedDuration,h=h>1?1:h<0?0:h,o.durationProgress=h),p=I+r.easing(h)*(y-I),d=(p-o.lastPosition)/e,f=h==1}o.lastVelocity=d,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}
1c&&!c[g].done&&(f=!1),f?o.done=!0:t=!1,o.setValue(p,r.round)&&(n=!0)});let a=$(this),l=a.getValue();if(t){let o=A(s.to);(l!==o||n)&&!r.decay?(a.setValue(o),this._onChange(o)):n&&r.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return m.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(K(this)){let{to:e,config:t}=this.animation;m.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return u.und(e)?(n=this.queue||[],this.queue=[]):n=[u.obj(e)?e:{...t,to:e}],Promise.all(n.map(s=>this._update(s))).then(s=>wt(this,s))}stop(e){let{to:t}=this.animation;return u.und(t)||this._focus(this.get()),We(this._state,e&&this._lastCallId),m.batchedUpdates(()=>this._stop(t,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 t=this.key||"",{to:n,from:s}=e;n=u.obj(n)?n[t]:n,(n==null||pt(n))&&(n=void 0),s=u.obj(s)?s[t]:s,s==null&&(s=void 0);let i={to:n,from:s};return ht(this)||(e.reverse&&([n,s]=[s,n]),s=A(s),u.und(s)?$(this)||this._set(n):this._set(s)),i}_update({...e},t){let{key:n,defaultProps:s}=this;e.default&&Object.assign(s,bt(e,(c,a)=>/^on/.test(a)?bn(c,n):c)),gn(this,e,"onProps"),Re(this,"onProps",e,this);let i=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 r=this._state;return Sn(++this._lastCallId,{key:n,props:e,defaultProps:s,state:r,actions:{pause:()=>{Ae(this)||(mn(this,!0),ae(r.pauseQueue),Re(this,"onPause",q(this,Pe(this,this.animation.to)),this))},resume:()=>{Ae(this)&&(mn(this,!1),K(this)&&this._resume(),ae(r.resumeQueue),Re(this,"onResume",q(this,Pe(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(c=>{if(e.loop&&c.finished&&!(t&&c.noop)){let a=On(e);if(a)return this._update(a,!0)}return c})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(de(this));let s=!u.und(e.to),i=!u.und(e.from);if(s||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(de(this));let{key:r,defaultProps:c,animation:a}=this,{to:l,from:o}=a,{to:g=l,from:y=o}=e;i&&!s&&(!t.default||u.und(g))&&(g=y),t.reverse&&([g,y]=[y,g]);let f=!j(y,o);f&&(a.from=y),y=A(y);let p=!j(g,l);p&&this._focus(g);let b=pt(t.to),{config:I}=a,{decay:P,velocity:d}=I;(s||i)&&!I.decay&&(I.velocity=0),t.config&&!b&&Rs(I,J(t.config,r),t.config!==c.config?J(c.config,r):void 0);let v=$(this);if(!v||u.und(g))return n(q(this,!0));let h=u.und(t.reset)?i&&!t.default:!u.und(y)&&Oe(t.reset,r),S=h?y:this.get(),_=ke(g),E=u.num(_)||u.arr(_)||ce(_),L=!b&&(!E||Oe(c.immediate||t.immediate,r));if(p){let U=He(g);if(U!==v.constructor)if(L)v=this._set(_);else throw Error(`Cannot animate between ${v.constructor.name} and ${U.name}, as the "to" prop suggests`)}let H=v.constructor,R=k(g),fe=!1;if(!R){let U=h||!ht(this)&&f;(p||U)&&(fe=j(ke(S),_),R=!fe),(!j(a.immediate,L)&&!L||!j(I.decay,P)||!j(I.velocity,d))&&(R=!0)}if(fe&&K(this)&&(a.changed&&!h?R=!0:R||this._stop(l)),!b&&((R||k(l))&&(a.values=v.getPayload(),a.toValues=k(g)?null:H==Se?[1]:O(_)),a.immediate!=L&&(a.immediate=L,!L&&!h&&this._set(l)),R)){let{onRest:U}=a;w(Vs,zn=>gn(this,t,zn));let te=q(this,Pe(this,l));
1ae(this._pendingCalls,te),this._pendingCalls.add(n),a.changed&&m.batchedUpdates(()=>{a.changed=!h,U?.(te,this),h?J(c.onRest,te):a.onStart?.(te,this)})}h&&this._set(S),b?n(An(t.to,t,this._state,this)):R?this._start():K(this)&&!p?this._pendingCalls.add(n):n(In(S))}_focus(e){let t=this.animation;e!==t.to&&(lt(this)&&this._detach(),t.to=e,lt(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;k(t)&&(Q(t,this),yt(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;k(e)&&X(e,this)}_set(e,t=!0){let n=A(e);if(!u.und(n)){let s=$(this);if(!s||!j(n,s.getValue())){let i=He(n);!s||s.constructor!=i?Be(this,i.create(n)):s.setValue(n),s&&m.batchedUpdates(()=>{this._onChange(n,t)})}}return $(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,Re(this,"onStart",q(this,Pe(this,e.to)),this))}_onChange(e,t){let n=q(e,!1);t||(this._onStart(),J(this.animation.onChange,n,this)),J(this.defaultProps.onChange,n,this),super._onChange(e,t)}_start(){let e=this.animation;$(this).reset(A(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),K(this)||(hn(this,!0),Ae(this)||this._resume())}_resume(){z.skipAnimation?this.finish():ue.start(this)}_stop(e,t){if(K(this)){hn(this,!1);let n=this.animation;w(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Z(this,{type:"idle",parent:this});let s=t?de(this.get()):q(this.get(),Pe(this,e??n.to));
1ae(this._pendingCalls,s),n.changed=!1,Re(this,"onRest",s,this)}}};function Pe(e,t){let n=ke(t);return j(ke(e.get()),n)}function On(e,t=e.loop,n=e.to){let s=J(t);if(s){let i=s!==!0&&_n(s),r=(i||e).reverse,c=!i||i.reset;return Ee({...e,loop:t,default:!1,pause:void 0,to:!r||pt(n)?n:void 0,from:c?e.from:void 0,reset:c,...i})}}function Ee(e){let{to:t,from:n}=e=_n(e),s=new Set;return u.obj(t)&&pn(t,s),u.obj(n)&&pn(n,s),e.keys=s.size?Array.from(s):null,e}function Fs(e){let t=Ee(e);return u.und(t.default)&&(t.default=bt(t)),t}function pn(e,t){V(e,(n,s)=>n!=null&&t.add(s))}var Vs=["onStart","onRest","onChange","onPause","onResume"];function gn(e,t,n){e.animation[n]=t[n]!==wn(t,n)?bn(t[n],e.key):void 0}function Re(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Ts=["onStart","onChange","onRest"],Cs=1,xs=class{constructor(e,t){this.id=Cs++,this.springs={},this.queue=[],this._lastAsyncId=0,this._lastLoopId=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),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];u.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Ee(e)),this}start(e){let{queue:t}=this;return e?t=O(e).map(Ee):this.queue=[],this._flush?this._flush(this,t):(Vn(this,t),vt(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let n=this.springs;w(O(t),s=>n[s].stop(!!e))}else We(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(u.und(e))this.start({pause:!0});else{let t=this.springs;w(O(e),n=>t[n].pause())}return this}resume(e){if(u.und(e))this.start({pause:!1});else{let t=this.springs;w(O(e),n=>t[n].resume())}return this}each(e){V(this.springs,e)}onLoopReset(e){let t=this._onLoopReset??(this._onLoopReset=new Set);return t.add(e),()=>{t.delete(e)}}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,s=this._active.size>0,i=this._changed.size>0;(s&&!this._started||i&&!this._started)&&(this._started=!0,oe(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));let r=!s&&this._started,c=i||r&&n.size?this.get():null;i&&t.size&&oe(t,([a,l])=>{l.value=c,a(l,this,this._item)}),r&&(this._started=!1,oe(n,([a,l])=>{l.value=c,a(l,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;m.onFrame(this._onFrame)}};function vt(e,t){return Promise.all(t.map(n=>kn(e,n))).then(n=>wt(e,n))}async function kn(e,t,n){let{keys:s,to:i,from:r,loop:c,onRest:a,onResolve:l}=t,o=u.obj(t.default)&&t.default;c&&(t.loop=!1);let g=t,y=!n&&!g.parentId&&"loop"in t?++e._lastLoopId:n?g.loopId:e._lastLoopId;i===!1&&(t.to=null),r===!1&&(t.from=null);let f=u.arr(i)||u.fun(i)?i:void 0;f?(t.to=void 0,t.onRest=void 0,o&&(o.onRest=void 0)):w(Ts,d=>{let v=t[d];if(u.fun(v)){let h=e._events[d];t[d]=(({finished:S,cancelled:_})=>{let E=h.get(v);E?(S||(E.finished=!1),_&&(E.cancelled=!0)):h.set(v,{value:null,finished:S||!1,cancelled:_||!1})}),o&&(o[d]=t[d])}});let p=e._state;t.pause===!p.paused?(p.paused=t.pause,ae(t.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(t.pause=!0);let b=(s||Object.keys(e.springs)).map(d=>e.springs[d].start(t)),I=t.cancel===!0||wn(t,"cancel")===!0;(f||I&&p.asyncId)&&b.push(Sn(++e._lastAsyncId,{props:t,state:p,actions:{pause:$e,resume:$e,start(d,v){I?(We(p,e._lastAsyncId),v(de(e))):(d.onRest=a,v(An(f,d,p,e)))}}})),p.paused&&await new Promise(d=>{p.resumeQueue.add(d)});let P=wt(e,await Promise.all(b));if(c&&P.finished&&!(n&&P.noop)&&y===e._lastLoopId){let d=On(t,c,i);if(d)return d.loopId=y,e._onLoopReset?.forEach(v=>v()),Vn(e,[d]),kn(e,d,!0)}return l&&m.batchedUpdates(()=>l(P,e,e.item)),P}function yn(e,t){let n={...e.springs};return t&&w(O(t),s=>{u.und(s.keys)&&(s=Ee(s)),u.obj(s.to)||(s={...s,to:void 0}),Fn(n,s,i=>Mn(i))}),En(e,n),n}function En(e,t){V(t,(n,s)=>{e.springs[s]||(e.springs[s]=n,Q(n,e))})}function Mn(e,t){let n=new Rn;return n.key=e,t&&Q(n,t),n}function Fn(e,t,n){t.keys&&w(t.keys,s=>
1{(e[s]||(e[s]=n(s)))._prepareNode(t)})}function Vn(e,t){w(t,n=>{Fn(e.springs,n,s=>Mn(s,e))})}var zs=Me.createContext({pause:!1,immediate:!1}),Ls=()=>{let e=[],t=function(s){Xt();let i=[];return w(e,(r,c)=>{if(u.und(s))i.push(r.start());else{let a=n(s,r,c);a&&i.push(r.start(a))}}),i};t.current=e,t.add=function(s){e.includes(s)||e.push(s)},t.delete=function(s){let i=e.indexOf(s);~i&&e.splice(i,1)},t.pause=function(){return w(e,s=>s.pause(...arguments)),this},t.resume=function(){return w(e,s=>s.resume(...arguments)),this},t.set=function(s){w(e,(i,r)=>{let c=u.fun(s)?s(r,i):s;c&&i.set(c)})},t.start=function(s){let i=[];return w(e,(r,c)=>{if(u.und(s))i.push(r.start());else{let a=this._getProps(s,r,c);a&&i.push(r.start(a))}}),i},t.stop=function(){return w(e,s=>s.stop(...arguments)),this},t.update=function(s){return w(e,(i,r)=>i.update(this._getProps(s,i,r))),this};let n=function(s,i,r){return u.fun(s)?s(r,i):s};return t._getProps=n,t};function $s(e,t,n){let s=u.fun(t)&&t;s&&!n&&(n=[]);let i=(0,T.useMemo)(()=>s||arguments.length==3?Ls():void 0,[]),r=(0,T.useRef)(0),c=De(),a=(0,T.useMemo)(()=>({ctrls:[],queue:[],flush(d,v){let h=yn(d,v);return r.current>0&&!a.queue.length&&!Object.keys(h).some(S=>!d.springs[S])?vt(d,v):new Promise(S=>{En(d,h),a.queue.push(()=>{S(vt(d,v))}),c()})}}),[]),l=(0,T.useRef)([...a.ctrls]),o=(0,T.useRef)([]),g=(0,T.useRef)([]);g.current=[];let y=ft(e)||0;(0,T.useMemo)(()=>{w(l.current.slice(e,y),d=>{Ss(d,i),d.stop(!0)}),l.current.length=e,f(y,e)},[e]),(0,T.useMemo)(()=>{f(0,Math.min(y,e))},n);function f(d,v){for(let h=d;h<v;h++){let S=l.current[h]||(l.current[h]=new xs(null,a.flush)),_=s?s(h,S):t[h];_&&(o.current[h]=Fs(_))}}let p=l.current.map((d,v)=>yn(d,o.current[v])),b=(0,T.useContext)(zs),I=b!==ft(b)&&_s(b);le(()=>{r.current++,a.ctrls=l.current;let{queue:d}=a;d.length&&(a.queue=[],w(d,h=>h()));let v=o.current.length>0?o.current:g.current;w(l.current,(h,S)=>{i?.add(h),I&&h.start({default:b});let _=v[S];_&&(Is(h,_.ref),h.ref?h.queue.push({..._,default:u.obj(_.default)?{..._.default}:_.default}):h.start(_))}),o.current.length>0&&(g.current=o.current),o.current=[]}),ve(()=>()=>{w(a.ctrls,d=>d.stop(!0))});let P=p.map(d=>({...d}));return i?[P,i]:P}function wi(e,t){let n=u.fun(e),[[s],i]=$s(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[s,i]:s}var _i=(e,t)=>{let n=Kt(()=>new Rn(e,t));return ve(()=>()=>{n.stop()}),n};var qs=class extends _t{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Y(...t);let n=this._get(),s=He(n);Be(this,s.create(n))}advance(e){let t=this._get();j(t,this.get())||($(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&vn(this._active)&&mt(this)}_get(){let e=u.arr(this.source)?this.source.map(A):O(A(this.source));return this.calc(...e)}_start(){this.idle&&!vn(this._active)&&(this.idle=!1,w(we(this),e=>{e.done=!1}),z.skipAnimation?(m.batchedUpdates(()=>this.advance()),mt(this)):ue.start(this))}_attach(){let e=1;w(O(this.source),t=>{k(t)&&Q(t,this),yt(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){w(O(this.source),e=>{k(e)&&X(e,this)}),this._active.clear(),mt(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((t,n)=>Math.max(t,(yt(n)?n.priority:0)+1),0))}};function Ns(e){return e.idle!==!1}function vn(e){return!e.size||Array.from(e).every(Ns)}function mt(e){e.idle||(e.idle=!0,w(we(e),t=>{t.done=!0}),Z(e,{type:"idle",parent:e}))}z.assign({createStringInterpolator:Ue,to:(e,t)=>new qs(e,t)});var Si=ue.advance;M();var Cn=ne(Ln(),1);var xn=/^--/;function js(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!xn.test(e)&&!(Fe.hasOwnProperty(e)&&Fe[e])?t+"px":(""+t).trim()}var Tn={};function Us(e,t){if(!e.nodeType||!e.setAttribute||!e.removeAttribute)return!1;let n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:s,style:i,children:r,scrollTop:c,scrollLeft:a,viewBox:l,...o}=t,g=Object.values(o),y=Object.keys(o).map(f=>n||e.hasAttribute(f)?f:Tn[f]||(Tn[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));t.hasOwnProperty("children")&&(e.textContent=r);
1for(let f in i)if(i.hasOwnProperty(f)){let p=js(f,i[f]);xn.test(f)?e.style.setProperty(f,p):e.style[f]=p}y.forEach((f,p)=>{let b=g[p];b!==void 0?e.setAttribute(f,b):e.removeAttribute(f)}),t.hasOwnProperty("className")&&(s!==void 0?e.className=s:e.removeAttribute("class")),c!==void 0&&(e.scrollTop=c),a!==void 0&&(e.scrollLeft=a),t.hasOwnProperty("viewBox")&&(l!==void 0?e.setAttribute("viewBox",l):e.removeAttribute("viewBox"))}var Fe={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},Ds=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Qs=["Webkit","Ms","Moz","O"];Fe=Object.keys(Fe).reduce((e,t)=>(Qs.forEach(n=>e[Ds(n,t)]=e[t]),e),Fe);var Bs=/^(matrix3d|matrix|translate3d|translate[XYZ]?|scale3d|scale[XYZ]?|rotate3d|rotate[XYZ]?|skew[XY]?)$/,Hs=/^(translate)/,Ws=/^(rotate|skew)/,St=(e,t)=>u.num(e)&&e!==0?e+t:e,Ge=(e,t)=>u.arr(e)?e.every(n=>Ge(n,t)):u.num(e)?e===t:parseFloat(e)===t,Gs=class extends Ie{constructor({x:e,y:t,z:n,...s}){let i=[],r=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),r.push(c=>[`translate3d(${c.map(a=>St(a,"px")).join(",")})`,Ge(c,0)])),V(s,(c,a)=>{if(a==="transform")i.push([c||""]),r.push(l=>[l,l===""]);else if(Bs.test(a)){if(delete s[a],u.und(c))return;let l=Hs.test(a)?"px":Ws.test(a)?"deg":"";i.push(O(c)),r.push(a==="rotate3d"?([o,g,y,f])=>[`rotate3d(${o},${g},${y},${St(f,l)})`,Ge(f,0)]:o=>[`${a}(${o.map(g=>St(g,l)).join(",")})`,Ge(o,a.startsWith("scale")?1:0)])}}),i.length&&(s.transform=new Ys(i,r)),super(s)}},Ys=class extends Ne{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return w(this.inputs,(n,s)=>{let i=A(n[0]),[r,c]=this.transforms[s](u.arr(i)?i:n.map(A));e+=" "+r,t=t&&c}),t?"none":e}observerAdded(e){e==1&&w(this.inputs,t=>w(t,n=>k(n)&&Q(n,this)))}observerRemoved(e){e==0&&w(this.inputs,t=>w(t,n=>k(n)&&X(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Z(this,e)}},Xs=["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"];z.assign({batchedUpdates:Cn.unstable_batchedUpdates,createStringInterpolator:Ue,colors:Bt});var Ks=un(Xs,{applyAnimatedValues:Us,createAnimatedStyle:e=>new Gs(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Li=Ks.animated;export{wi as a,_i as b,Li as c};
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.