PageSourceSearch

https://www.sendsay.ai/assets/vendor-spring-4Nu4NWB4.js

js sendsay.ai collected 2026-10-02 01:11:56 UTC 42,352 bytes, 1 lines download raw bytes

1import{r as P,a as _n}from"./vendor-react-D31aa1Hl.js";var et=ve(),g=e=>ge(e,et),tt=ve();g.write=e=>ge(e,tt);var Ve=ve();g.onStart=e=>ge(e,Ve);var nt=ve();g.onFrame=e=>ge(e,nt);var it=ve();g.onFinish=e=>ge(e,it);var K=[];g.setTimeout=(e,t)=>{const n=g.now()+t,i=()=>{const r=K.findIndex(a=>a.cancel==i);~r&&K.splice(r,1),D-=~r?1:0},s={time:n,handler:e,cancel:i};return K.splice(Nt(n),0,s),D+=1,$t(),s};var Nt=e=>~(~K.findIndex(t=>t.time>e)||~K.length);g.cancel=e=>{Ve.delete(e),nt.delete(e),it.delete(e),et.delete(e),tt.delete(e)};g.sync=e=>{Be=!0,g.batchedUpdates(e),Be=!1};g.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function i(...s){t=s,g.onStart(n)}return i.handler=e,i.cancel=()=>{Ve.delete(n),t=null},i};var st=typeof window<"u"?window.requestAnimationFrame:()=>{};g.use=e=>st=e;g.now=typeof performance<"u"?()=>performance.now():Date.now;g.batchedUpdates=e=>e();g.catch=console.error;g.frameLoop="always";g.advance=()=>{g.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):jt()};var z=-1,D=0,Be=!1;function ge(e,t){Be?(t.delete(e),e(0)):(t.add(e),$t())}function $t(){z<0&&(z=0,g.frameLoop!=="demand"&&st(Qt))}function wn(){z=-1}function Qt(){~z&&(st(Qt),g.batchedUpdates(jt))}function jt(){const e=z;z=g.now();const t=Nt(z);if(t&&(zt(K.splice(0,t),n=>n.handler()),D-=t),!D){wn();return}Ve.flush(),et.flush(e?Math.min(64,z-e):16.667),nt.flush(),tt.flush(),it.flush()}function ve(){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,zt(t,i=>i(n)&&e.add(i)),D+=e.size,t=e)}}}function zt(e,t){e.forEach(n=>{try{t(n)}catch(i){g.catch(i)}})}var Sn=Object.defineProperty,An=(e,t)=>{for(var n in t)Sn(e,n,{get:t[n],enumerable:!0})},q={};An(q,{assign:()=>In,colors:()=>x,createStringInterpolator:()=>at,skipAnimation:()=>xt,to:()=>Dt,willAdvance:()=>ot});function Le(){}var Pn=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),c={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 $(e,t){if(c.arr(e)){if(!c.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 b=(e,t)=>e.forEach(t);function N(e,t,n){if(c.arr(e)){for(let i=0;i<e.length;i++)t.call(n,e[i],`${i}`);return}for(const i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i)}var k=e=>c.und(e)?[]:c.arr(e)?e:[e];function se(e,t){if(e.size){const n=Array.from(e);e.clear(),b(n,t)}}var ie=(e,...t)=>se(e,n=>n(...t)),rt=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),at,Dt,x=null,xt=!1,ot=Le,In=e=>{e.to&&(Dt=e.to),e.now&&(g.now=e.now),e.colors!==void 0&&(x=e.colors),e.skipAnimation!=null&&(xt=e.skipAnimation),e.createStringInterpolator&&(at=e.createStringInterpolator),e.requestAnimationFrame&&g.use(e.requestAnimationFrame),e.batchedUpdates&&(g.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ot=e.willAdvance),e.frameLoop&&(g.frameLoop=e.frameLoop)},re=new Set,F=[],$e=[],Pe=0,Me={get idle(){return!re.size&&!F.length},start(e){Pe>e.priority?(re.add(e),g.onStart(Rn)):(Bt(e),g(Ge))},advance:Ge,sort(e){if(Pe)g.onFrame(()=>Me.sort(e));else{const t=F.indexOf(e);~t&&(F.splice(t,1),Lt(e))}},clear(){F=[],re.clear()}};function Rn(){re.forEach(Bt),re.clear(),g(Ge)}function Bt(e){F.includes(e)||Lt(e)}function Lt(e){F.splice(kn(F,t=>t.priority>e.priority),0,e)}function Ge(e){const t=$e;for(let n=0;n<F.length;n++){const i=F[n];Pe=i.priority,i.idle||(ot(i),i.advance(e),i.idle||t.push(i))}return Pe=0,$e=F,$e.length=0,F=t,F.length>0}function kn(e,t){const n=e.findIndex(t);return n<0?e.length:n}var On=(e,t,n)=>Math.min(Math.max(n,e),t),Vn={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,dar
1kgoldenrod: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},T="[-+]?\\d*\\.?\\d+",Ie=T+"%";function Fe(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Mn=new RegExp("rgb"+Fe(T,T,T)),Fn=new RegExp("rgba"+Fe(T,T,T,T)),Cn=new RegExp("hsl"+Fe(T,Ie,Ie)),En=new RegExp("hsla"+Fe(T,Ie,Ie,T)),Tn=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,qn=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Un=/^#([0-9a-fA-F]{6})$/,Nn=/^#([0-9a-fA-F]{8})$/;function $n(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Un.exec(e))?parseInt(t[1]+"ff",16)>>>0:x&&x[e]!==void 0?x[e]:(t=Mn.exec(e))?(W(t[1])<<24|W(t[2])<<16|W(t[3])<<8|255)>>>0:(t=Fn.exec(e))?(W(t[1])<<24|W(t[2])<<16|W(t[3])<<8|pt(t[4]))>>>0:(t=Tn.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Nn.exec(e))?parseInt(t[1],16)>>>0:(t=qn.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Cn.exec(e))?(ht(mt(t[1]),be(t[2]),be(t[3]))|255)>>>0:(t=En.exec(e))?(ht(mt(t[1]),be(t[2]),be(t[3]))|pt(t[4]))>>>0:null}function Qe(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 ht(e,t,n){const i=n<.5?n*(1+t):n+t-n*t,s=2*n-i,r=Qe(s,i,e+1/3),a=Qe(s,i,e),o=Qe(s,i,e-1/3);return Math.round(r*255)<<24|Math.round(a*255)<<16|Math.round(o*255)<<8}function W(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function mt(e){return(parseFloat(e)%360+360)%360/360}function pt(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function be(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function gt(e){let t=$n(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,i=(t&16711680)>>>16,s=(t&65280)>>>8,r=(t&255)/255;return`rgba(${n}, ${i}, ${s}, ${r})`}
1var ue=(e,t,n)=>{if(c.fun(e))return e;if(c.arr(e))return ue({range:e,output:t,extrapolate:n});if(c.str(e.output[0]))return at(e);const i=e,s=i.output,r=i.range||[0,1],a=i.extrapolateLeft||i.extrapolate||"extend",o=i.extrapolateRight||i.extrapolate||"extend",l=i.easing||(u=>u);return u=>{const f=jn(u,r);return Qn(u,r[f],r[f+1],s[f],s[f+1],l,a,o,i.map)}};function Qn(e,t,n,i,s,r,a,o,l){let u=l?l(e):e;if(u<t){if(a==="identity")return u;a==="clamp"&&(u=t)}if(u>n){if(o==="identity")return u;o==="clamp"&&(u=n)}return i===s?i:t===n?e<=t?i:s:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=r(u),i===-1/0?u=-u:s===1/0?u=u+i:u=u*(s-i)+i,u)}function jn(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var zn=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const i=n*e,s=t==="end"?Math.floor(i):Math.ceil(i);return On(0,1,s/e)},Re=1.70158,_e=Re*1.525,vt=Re+1,yt=2*Math.PI/3,bt=2*Math.PI/4.5,we=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,Dn={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=>vt*e*e*e-Re*e*e,easeOutBack:e=>1+vt*Math.pow(e-1,3)+Re*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((_e+1)*2*e-_e)/2:(Math.pow(2*e-2,2)*((_e+1)*(e*2-2)+_e)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*yt),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*yt)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*bt))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*bt)/2+1,easeInBounce:e=>1-we(1-e),easeOutBounce:we,easeInOutBounce:e=>e<.5?(1-we(1-2*e))/2:(1+we(2*e-1))/2,steps:zn},ce=Symbol.for("FluidValue.get"),J=Symbol.for("FluidValue.observers"),M=e=>!!(e&&e[ce]),R=e=>e&&e[ce]?e[ce]():e,_t=e=>e[J]||null;function xn(e,t){e.eventObserved?e.eventObserved(t):e(t)}function le(e,t){const n=e[J];n&&n.forEach(i=>{xn(i,t)})}var Gt=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Bn(this,e)}},Bn=(e,t)=>Ht(e,ce,t);function X(e,t){if(e[ce]){let n=e[J];n||Ht(e,J,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function de(e,t){const n=e[J];if(n&&n.has(t)){const i=n.size-1;i?n.delete(t):e[J]=null,e.observerRemoved&&e.observerRemoved(i,t)}}var Ht=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Se=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ln=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,wt=new RegExp(`(${Se.source})(%|[a-z]+)`,"i"),Gn=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ce=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Wt=e=>{const[t,n]=Hn(e);if(!t||rt())return e;const i=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(i)return i.trim();if(n&&n.startsWith("--")){const s=window.getComputedStyle(document.documentElement).getPropertyValue(n);return s||e}else{if(n&&Ce.test(n))return Wt(n);if(n)return n}return e},Hn=e=>{const t=Ce.exec(e);if(!t)return[,];const[,n,i]=t;return[n,i]},je,Wn=(e,t,n,i,s)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(i)}, ${s})`,Kt=e=>{je||(je=x?new RegExp(`(${Object.keys(x).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(r=>R(r).replace(Ce,Wt).replace(Ln,gt).replace(je,gt)),n=t.map(r=>r.match(Se).map(Number)),s=n[0].map((r,a)=>n.map(o=>{if(!(a in o))throw Error('The arity of each "output" value must be equal');return o[a]})).map(r=>ue({...e,output:r}));return r=>{var l;const a=!wt.test(t[0])&&((l=t.find(u=>wt.test(u)))==null?void 0:l.replace(Se,""));let o=0;return t[0].replace(Se,()=>`${s[o++](r)}${a||""}`).replace(Gn,Wn)}},ut="react-spring: ",Zt=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${ut}once requires a function parameter`);return(...i)=>{n||(t(...i),n=!0)}},Kn=Zt(console.warn);function Zn(){Kn(`${ut}
1The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Jn=Zt(console.warn);function Xn(){Jn(`${ut}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 Ee(e){return c.str(e)&&(e[0]=="#"||/\d/.test(e)||!rt()&&Ce.test(e)||e in(x||{}))}var Te=rt()?P.useEffect:P.useLayoutEffect,Yn=()=>{const e=P.useRef(!1);return Te(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Jt(){const e=P.useState()[1],t=Yn();return()=>{t.current&&e(Math.random())}}var Xt=e=>P.useEffect(e,ei),ei=[];function St(e){const t=P.useRef(void 0);return P.useEffect(()=>{t.current=e}),t.current}var fe=Symbol.for("Animated:node"),ti=e=>!!e&&e[fe]===e,U=e=>e&&e[fe],ct=(e,t)=>Pn(e,fe,t),qe=e=>e&&e[fe]&&e[fe].getPayload(),Yt=class{constructor(){ct(this,this)}getPayload(){return this.payload||[]}},Ue=class en extends Yt{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,c.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new en(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return c.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(){const{done:t}=this;this.done=!1,c.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},ke=class tn extends Ue{constructor(t){super(0),this._string=null,this._toString=ue({output:[t,t]})}static create(t){return new tn(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(c.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=ue({output:[this.getValue(),t]})),this._value=0,super.reset()}},Oe={dependencies:null},Ne=class extends Yt{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return N(this.source,(n,i)=>{ti(n)?t[i]=n.getValue(e):M(n)?t[i]=R(n):e||(t[i]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&b(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return N(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Oe.dependencies&&M(e)&&Oe.dependencies.add(e);const t=qe(e);t&&b(t,n=>this.add(n))}},ni=class nn extends Ne{constructor(t){super(t)}static create(t){return new nn(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((i,s)=>i.setValue(t[s])).some(Boolean):(super.setValue(t.map(ii)),!0)}};function ii(e){return(Ee(e)?ke:Ue).create(e)}function He(e){const t=U(e);return t?t.constructor:c.arr(e)?ni:Ee(e)?ke:Ue}var At=(e,t)=>{const n=!c.fun(e)||e.prototype&&e.prototype.isReactComponent;return P.forwardRef((i,s)=>{const r=P.useRef(null),a=n&&P.useCallback(_=>{r.current=ai(s,_)},[s]),[o,l]=ri(i,t),u=Jt(),f=()=>{const _=r.current;if(n&&!_)return;(_?t.applyAnimatedValues(_,o.getValue(!0)):!1)===!1&&u()},d=new si(f,l),h=P.useRef(void 0);Te(()=>(h.current=d,b(l,_=>X(_,d)),()=>{h.current&&(b(h.current.deps,_=>de(_,h.current)),g.cancel(h.current.update))})),P.useEffect(f,[]),Xt(()=>()=>{const _=h.current;b(_.deps,v=>de(v,_))});const p=t.getComponentProps(o.getValue());return P.createElement(e,{...p,ref:a})})},si=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&g.write(this.update)}};function ri(e,t){const n=new Set;return Oe.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}
1),e=new Ne(e),Oe.dependencies=null,[e,n]}function ai(e,t){return e&&(c.fun(e)?e(t):e.current=t),t}var Pt=Symbol.for("AnimatedComponent"),oi=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=s=>new Ne(s),getComponentProps:i=s=>s}={})=>{const s={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:i},r=a=>{const o=It(a)||"Anonymous";return c.str(a)?a=r[a]||(r[a]=At(a,s)):a=a[Pt]||(a[Pt]=At(a,s)),a.displayName=`Animated(${o})`,a};return N(e,(a,o)=>{c.arr(e)&&(o=It(a)),r[o]=r(a)}),{animated:r}},It=e=>c.str(e)?e:e&&c.str(e.displayName)?e.displayName:c.fun(e)&&e.name||null;function j(e,...t){return c.fun(e)?e(...t):e}var ae=(e,t)=>e===!0||!!(t&&e&&(c.fun(e)?e(t):k(e).includes(t))),sn=(e,t)=>c.obj(e)?t&&e[t]:e,rn=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,ui=e=>e,lt=(e,t=ui)=>{let n=ci;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const i={};for(const s of n){const r=t(e[s],s);c.und(r)||(i[s]=r)}return i},ci=["config","onProps","onStart","onChange","onPause","onResume","onRest"],li={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 di(e){const t={};let n=0;if(N(e,(i,s)=>{li[s]||(t[s]=i,n++)}),n)return t}function an(e){const t=di(e);if(t){const n={to:t};return N(e,(i,s)=>s in t||(n[s]=i)),n}return{...e}}function he(e){return e=R(e),c.arr(e)?e.map(he):Ee(e)?q.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function fi(e){for(const t in e)return!0;return!1}function We(e){return c.fun(e)||c.arr(e)&&c.obj(e[0])}function hi(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function mi(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}function xi(e,t,n=1e3){Te(()=>{if(t){let i=0;b(e,(s,r)=>{const a=s.current;if(a.length){let o=n*t[r];isNaN(o)?o=i:i=o,b(a,l=>{b(l.queue,u=>{const f=u.delay;u.delay=d=>o+j(f||0,d)})}),s.start()}})}else{let i=Promise.resolve();b(e,s=>{const r=s.current;if(r.length){const a=r.map(o=>{const l=o.queue;return o.queue=[],l});i=i.then(()=>(b(r,(o,l)=>b(a[l]||[],u=>o.queue.push(u))),Promise.all(s.start())))}})}})}var pi={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}},Ke={...pi.default,mass:1,damping:1,easing:Dn.linear,clamp:!1},gi=class{constructor(){this.velocity=0,Object.assign(this,Ke)}};function vi(e,t,n){n&&(n={...n},Rt(n,t),t={...n,...t}),Rt(e,t),Object.assign(e,t);for(const a in Ke)e[a]==null&&(e[a]=Ke[a]);let{frequency:i,damping:s}=e;const{mass:r}=e;return c.und(i)||(i<.01&&(i=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*s*r/i),e}function Rt(e,t){if(!c.und(t.decay))e.duration=void 0;else{const n=!c.und(t.tension)||!c.und(t.friction);(n||!c.und(t.frequency)||!c.und(t.damping)||!c.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var kt=[],yi=class{constructor(){this.changed=!1,this.values=kt,this.toValues=null,this.fromValues=kt,this.config=new gi,this.immediate=!1}};function on(e,{key:t,props:n,defaultProps:i,state:s,actions:r}){return new Promise((a,o)=>{let l,u,f=ae(n.cancel??(i==null?void 0:i.cancel),t);if(f)p();else{c.und(n.pause)||(s.paused=ae(n.pause,t));let _=i==null?void 0:i.pause;_!==!0&&(_=s.paused||ae(_,t)),l=j(n.delay||0,t),_?(s.resumeQueue.add(h),r.pause()):(r.resume(),h())}function d(){s.resumeQueue.add(h),s.timeouts.delete(u),u.cancel(),l=u.time-g.now()}function h(){l>0&&!q.skipAnimation?(s.delayed=!0,u=g.setTimeout(p,l),s.pauseQueue.add(d),s.timeouts.add(u)):p()}function p(){s.delayed&&(s.delayed=!1),s.pauseQueue.delete(d),s.timeouts.delete(u),e<=(s.cancelId||0)&&(f=!0);try{r.start({...n,callId:e,cancel:f},a)}catch(_){o(_)}}})}var dt=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Z(e.get()):t.every(n=>n.noop)?un(e.get()):E(e.get(),t.every(n=>n.finished)),un=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),E=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Z=e=>({value:e,cancelled:!0,finished:!1});function cn(e,t,n,i){const{callId:s,parentId:r,onRest:a}=t,{asyncTo:o,promise:l}=n;return!r&&e===o&&!t.reset?l:n.promise=(async()=>{n.asyncId=s,n.asyncTo=e;const u=lt(t,(w,m)=>m==="onRest"?void 0:w);let f,d;const h=new Promise((w,m)=>(f=w,d=m)),p=w=>{const m=s<=(n.cancelId||0)&&Z(i)||s!==n.asyncId&&E(i,!1);if(m)throw w.result=m,d(w),w},_=(w,m)=>{const S=new Ot,y=new Vt;return(async()=>
1{if(q.skipAnimation)throw me(n),y.result=E(i,!1),d(y),y;p(S);const A=c.obj(w)?{...w}:{...m,to:w};A.parentId=s,N(u,(B,O)=>{c.und(A[O])&&(A[O]=B)});const I=await i.start(A);return p(S),n.paused&&await new Promise(B=>{n.resumeQueue.add(B)}),I})()};let v;if(q.skipAnimation)return me(n),E(i,!1);try{let w;c.arr(e)?w=(async m=>{for(const S of m)await _(S)})(e):w=Promise.resolve(e(_,i.stop.bind(i))),await Promise.all([w.then(f),h]),v=E(i.get(),!0,!1)}catch(w){if(w instanceof Ot)v=w.result;else if(w instanceof Vt)v=w.result;else throw w}finally{s==n.asyncId&&(n.asyncId=r,n.asyncTo=r?o:void 0,n.promise=r?l:void 0)}return c.fun(a)&&g.batchedUpdates(()=>{a(v,i,i.item)}),v})()}function me(e,t){se(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}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")}},Ze=e=>e instanceof ft,bi=1,ft=class extends Gt{constructor(){super(...arguments),this.id=bi++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=U(this);return e&&e.getValue()}to(...e){return q.to(this,e)}interpolate(...e){return Zn(),q.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){le(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Me.sort(this),le(this,{type:"priority",parent:this,priority:e})}},L=Symbol.for("SpringPhase"),ln=1,Je=2,Xe=4,ze=e=>(e[L]&ln)>0,Q=e=>(e[L]&Je)>0,ee=e=>(e[L]&Xe)>0,Mt=(e,t)=>t?e[L]|=Je|ln:e[L]&=~Je,Ft=(e,t)=>t?e[L]|=Xe:e[L]&=~Xe,_i=class extends ft{constructor(e,t){if(super(),this.animation=new yi,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,!c.und(e)||!c.und(t)){const n=c.obj(e)?{...e}:{...t,from:e};c.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Q(this)||this._state.asyncTo)||ee(this)}get goal(){return R(this.animation.to)}get velocity(){const e=U(this);return e instanceof Ue?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return ze(this)}get isAnimating(){return Q(this)}get isPaused(){return ee(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const i=this.animation;let{toValues:s}=i;const{config:r}=i,a=qe(i.to);!a&&M(i.to)&&(s=k(R(i.to))),i.values.forEach((u,f)=>{if(u.done)return;const d=u.constructor==ke?1:a?a[f].lastPosition:s[f];let h=i.immediate,p=d;if(!h){if(p=u.lastPosition,r.tension<=0){u.done=!0;return}let _=u.elapsedTime+=e;const v=i.fromValues[f],w=u.v0!=null?u.v0:u.v0=c.arr(r.velocity)?r.velocity[f]:r.velocity;let m;const S=r.precision||(v==d?.005:Math.min(1,Math.abs(d-v)*.001));if(c.und(r.duration))if(r.decay){const y=r.decay===!0?.998:r.decay,A=Math.exp(-(1-y)*_);p=v+w/(1-y)*(1-A),h=Math.abs(u.lastPosition-p)<=S,m=w*A}else{m=u.lastVelocity==null?w:u.lastVelocity;const y=r.restVelocity||S/10,A=r.clamp?0:r.bounce,I=!c.und(A),B=v==d?u.v0>0:v<d;let O,ye=!1;const V=1,Y=Math.ceil(e/V);for(let C=0;C<Y&&(O=Math.abs(m)>y,!(!O&&(h=Math.abs(d-p)<=S,h)));++C){I&&(ye=p==d||p>d==B,ye&&(m=-m*A,p=d));const G=-r.tension*1e-6*(p-d),H=-r.friction*.001*m,bn=(G+H)/r.mass;m=m+bn*V,p=p+m*V}}else{let y=1;r.duration>0&&(this._memoizedDuration!==r.duration&&(this._memoizedDuration=r.duration,u.durationProgress>0&&(u.elapsedTime=r.duration*u.durationProgress,_=u.elapsedTime+=e)),y=(r.progress||0)+_/this._memoizedDuration,y=y>1?1:y<0?0:y,u.durationProgress=y),p=v+r.easing(y)*(d-v),m=(p-u.lastPosition)/e,h=y==1}u.lastVelocity=m,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),h=!0)}a&&!a[f].done&&(h=!1),h?u.done=!0:t=!1,u.setValue(p,r.round)&&(n=!0)});const o=U(this),l=o.getValue();if(t){const u=R(i.to);(l!==u||n)&&!r.decay?(o.setValue(u),this._onChange(u)):n&&r.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return g.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Q(this)){const{to:e,config:t}=this.animation;g.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 c.und(e)?(n=this.queue||[],this.queue=[]):n=[c.obj(e)?e:{...t,to:e}],Promise.all(n.map(i=>this._update(i))).then(i=>dt(this,i))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),me(this._state,e&&this._lastCallId),g.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){const t=this.key||"";let{to:n,from:i}=e;n=c.obj(n)?n[t]:n,(n==null||We(n))&&(n=void 0),i=c.obj(i)?i[t]:i,i==null&&(i=void 0);const s={to:n,from:i};return ze(this)||(e.reverse&&([n,i]=[i,n]),i=R(i),c.und(i)?U(this)||this._set(n):this._set(i)),s}_update({...e},t){const{key:n,defaultProps:i}=this;e.default&&Object.assign(i,lt(e,(a,o)=>/^on/.test(o)?sn(a,n):a)),Et(this,e,"onProps"),ne(this,"onProps",e,this);const s=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did 
1you forget to pass your component to `animated(...)` before animating its props?");const r=this._state;return on(++this._lastCallId,{key:n,props:e,defaultProps:i,state:r,actions:{pause:()=>{ee(this)||(Ft(this,!0),ie(r.pauseQueue),ne(this,"onPause",E(this,te(this,this.animation.to)),this))},resume:()=>{ee(this)&&(Ft(this,!1),Q(this)&&this._resume(),ie(r.resumeQueue),ne(this,"onResume",E(this,te(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const o=dn(e);if(o)return this._update(o,!0)}return a})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Z(this));const i=!c.und(e.to),s=!c.und(e.from);if(i||s)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Z(this));const{key:r,defaultProps:a,animation:o}=this,{to:l,from:u}=o;let{to:f=l,from:d=u}=e;s&&!i&&(!t.default||c.und(f))&&(f=d),t.reverse&&([f,d]=[d,f]);const h=!$(d,u);h&&(o.from=d),d=R(d);const p=!$(f,l);p&&this._focus(f);const _=We(t.to),{config:v}=o,{decay:w,velocity:m}=v;(i||s)&&(v.velocity=0),t.config&&!_&&vi(v,j(t.config,r),t.config!==a.config?j(a.config,r):void 0);let S=U(this);if(!S||c.und(f))return n(E(this,!0));const y=c.und(t.reset)?s&&!t.default:!c.und(d)&&ae(t.reset,r),A=y?d:this.get(),I=he(f),B=c.num(I)||c.arr(I)||Ee(I),O=!_&&(!B||ae(a.immediate||t.immediate,r));if(p){const C=He(f);if(C!==S.constructor)if(O)S=this._set(I);else throw Error(`Cannot animate between ${S.constructor.name} and ${C.name}, as the "to" prop suggests`)}const ye=S.constructor;let V=M(f),Y=!1;if(!V){const C=y||!ze(this)&&h;(p||C)&&(Y=$(he(A),I),V=!Y),(!$(o.immediate,O)&&!O||!$(v.decay,w)||!$(v.velocity,m))&&(V=!0)}if(Y&&Q(this)&&(o.changed&&!y?V=!0:V||this._stop(l)),!_&&((V||M(l))&&(o.values=S.getPayload(),o.toValues=M(f)?null:ye==ke?[1]:k(I)),o.immediate!=O&&(o.immediate=O,!O&&!y&&this._set(l)),V)){const{onRest:C}=o;b(Si,H=>Et(this,t,H));const G=E(this,te(this,l));ie(this._pendingCalls,G),this._pendingCalls.add(n),o.changed&&g.batchedUpdates(()=>{var H;o.changed=!y,C==null||C(G,this),y?j(a.onRest,G):(H=o.onStart)==null||H.call(o,G,this)})}y&&this._set(A),_?n(cn(t.to,t,this._state,this)):V?this._start():Q(this)&&!p?this._pendingCalls.add(n):n(un(A))}_focus(e){const t=this.animation;e!==t.to&&(_t(this)&&this._detach(),t.to=e,_t(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;M(t)&&(X(t,this),Ze(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;M(e)&&de(e,this)}_set(e,t=!0){const n=R(e);if(!c.und(n)){const i=U(this);if(!i||!$(n,i.getValue())){const s=He(n);!i||i.constructor!=s?ct(this,s.create(n)):i.setValue(n),i&&g.batchedUpdates(()=>{this._onChange(n,t)})}}return U(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,ne(this,"onStart",E(this,te(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),j(this.animation.onChange,e,this)),j(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;U(this).reset(R(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Q(this)||(Mt(this,!0),ee(this)||this._resume())}_resume(){q.skipAnimation?this.finish():Me.start(this)}_stop(e,t){if(Q(this)){Mt(this,!1);const n=this.animation;b(n.values,s=>{s.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),le(this,{type:"idle",parent:this});const i=t?Z(this.get()):E(this.get(),te(this,e??n.to));ie(this._pendingCalls,i),n.changed&&(n.changed=!1,ne(this,"onRest",i,this))}}};function te(e,t){const n=he(t),i=he(e.get());return $(i,n)}function dn(e,t=e.loop,n=e.to){const i=j(t);if(i){const s=i!==!0&&an(i),r=(s||e).reverse,a=!s||s.reset;return pe({...e,loop:t,default:!1,pause:void 0,to:!r||We(n)?n:void 0,from:a?e.from:void 0,reset:a,...s})}}function pe(e){const{to:t,from:n}=e=an(e),i=new Set;return c.obj(t)&&Ct(t,i),c.obj(n)&&Ct(n,i),e.keys=i.size?Array.from(i):null,e}function wi(e){const t=pe(e);return c.und(t.default)&&(t.default=lt(t)),t}function Ct(e,t){N(e,(n,i)=>n!=null&&t.add(i))}var Si=["onStart","onRest","onChange","onPause","onResume"];function Et(e,t,n){e.animation[n]=t[n]!==rn(t,n)?sn(t[n],e.key):void 0}function ne(e,t,...n){var i,s,r,a;(s=(i=e.animation)[t])==null||s.call(i,...n),(a=(r=e.defaultProps)[t])==null||a.call(r,...n)}var Ai=["onStart","onChange","onRest"],Pi=1,Ii=class{constructor(e,t){this.id=Pi++,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),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(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];c.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(pe(e)),this}start(e){let{queue:t}=this;return e?t=k(e).map(pe):this.queue=[],this._flush?this._flush(this,t):(gn(this,t),Ye(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;b(k(t),i=>n[i].stop(!!e))}else me(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(c.und(e))this.start({pause:!0});else{const t=this.springs;b(k(e),n=>t[n].pause())}return this}resume(e){if(c.und(e))this.start({pause:!1});else{const t=this.springs;b(k(e),n=>t[n].resume())}return this}each(e){N(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,i=this._active.size>0,s=this._changed.size>0;(i&&!this._started||s&&!this._started)&&(this._started=!0,se(e,([o,l])=>{l.value=this.get(),o(l,this,this._item)}));const r=!i&&this._started,a=s||r&&n.size?this.get():null;s&&t.size&&se(t,([o,l])=>{l.value=a,o(l,this,this._item)}),r&&(this._started=!1,se(n,([o,l])=>{l.value=a,o(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;g.onFrame(this._onFrame)}};function Ye(e,t){return Promise.all(t.map(n=>fn(e,n))).then(n=>dt(e,n))}async function fn(e,t,n){const{keys:i,to:s,from:r,loop:a,onRest:o,onRes
1olve:l}=t,u=c.obj(t.default)&&t.default;a&&(t.loop=!1),s===!1&&(t.to=null),r===!1&&(t.from=null);const f=c.arr(s)||c.fun(s)?s:void 0;f?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):b(Ai,v=>{const w=t[v];if(c.fun(w)){const m=e._events[v];t[v]=({finished:S,cancelled:y})=>{const A=m.get(w);A?(S||(A.finished=!1),y&&(A.cancelled=!0)):m.set(w,{value:null,finished:S||!1,cancelled:y||!1})},u&&(u[v]=t[v])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,ie(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(i||Object.keys(e.springs)).map(v=>e.springs[v].start(t)),p=t.cancel===!0||rn(t,"cancel")===!0;(f||p&&d.asyncId)&&h.push(on(++e._lastAsyncId,{props:t,state:d,actions:{pause:Le,resume:Le,start(v,w){p?(me(d,e._lastAsyncId),w(Z(e))):(v.onRest=o,w(cn(f,v,d,e)))}}})),d.paused&&await new Promise(v=>{d.resumeQueue.add(v)});const _=dt(e,await Promise.all(h));if(a&&_.finished&&!(n&&_.noop)){const v=dn(t,a,s);if(v)return gn(e,[v]),fn(e,v,!0)}return l&&g.batchedUpdates(()=>l(_,e,e.item)),_}function Tt(e,t){const n={...e.springs};return t&&b(k(t),i=>{c.und(i.keys)&&(i=pe(i)),c.obj(i.to)||(i={...i,to:void 0}),pn(n,i,s=>mn(s))}),hn(e,n),n}function hn(e,t){N(t,(n,i)=>{e.springs[i]||(e.springs[i]=n,X(n,e))})}function mn(e,t){const n=new _i;return n.key=e,t&&X(n,t),n}function pn(e,t,n){t.keys&&b(t.keys,i=>{(e[i]||(e[i]=n(i)))._prepareNode(t)})}function gn(e,t){b(t,n=>{pn(e.springs,n,i=>mn(i,e))})}var Ri=P.createContext({pause:!1,immediate:!1}),vn=()=>{const e=[],t=function(i){Xn();const s=[];return b(e,(r,a)=>{if(c.und(i))s.push(r.start());else{const o=n(i,r,a);o&&s.push(r.start(o))}}),s};t.current=e,t.add=function(i){e.includes(i)||e.push(i)},t.delete=function(i){const s=e.indexOf(i);~s&&e.splice(s,1)},t.pause=function(){return b(e,i=>i.pause(...arguments)),this},t.resume=function(){return b(e,i=>i.resume(...arguments)),this},t.set=function(i){b(e,(s,r)=>{const a=c.fun(i)?i(r,s):i;a&&s.set(a)})},t.start=function(i){const s=[];return b(e,(r,a)=>{if(c.und(i))s.push(r.start());else{const o=this._getProps(i,r,a);o&&s.push(r.start(o))}}),s},t.stop=function(){return b(e,i=>i.stop(...arguments)),this},t.update=function(i){return b(e,(s,r)=>s.update(this._getProps(i,s,r))),this};const n=function(i,s,r){return c.fun(i)?i(r,s):i};return t._getProps=n,t};function ki(e,t,n){const i=c.fun(t)&&t;i&&!n&&(n=[]);const s=P.useMemo(()=>i||arguments.length==3?vn():void 0,[]),r=P.useRef(0),a=Jt(),o=P.useMemo(()=>({ctrls:[],queue:[],flush(m,S){const y=Tt(m,S);return r.current>0&&!o.queue.length&&!Object.keys(y).some(I=>!m.springs[I])?Ye(m,S):new Promise(I=>{hn(m,y),o.queue.push(()=>{I(Ye(m,S))}),a()})}}),[]),l=P.useRef([...o.ctrls]),u=P.useRef([]),f=St(e)||0;P.useMemo(()=>{b(l.current.slice(e,f),m=>{hi(m,s),m.stop(!0)}),l.current.length=e,d(f,e)},[e]),P.useMemo(()=>{d(0,Math.min(f,e))},n);function d(m,S){for(let y=m;y<S;y++){const A=l.current[y]||(l.current[y]=new Ii(null,o.flush)),I=i?i(y,A):t[y];I&&(u.current[y]=wi(I))}}const h=l.current.map((m,S)=>Tt(m,u.current[S])),p=P.useContext(Ri),_=St(p),v=p!==_&&fi(p);Te(()=>{r.current++,o.ctrls=l.current;const{queue:m}=o;m.length&&(o.queue=[],b(m,S=>S())),b(l.current,(S,y)=>{s==null||s.add(S),v&&S.start({default:p});const A=u.current[y];A&&(mi(S,A.ref),S.ref?S.queue.push(A):S.start(A))})}),Xt(()=>()=>{b(o.ctrls,m=>m.stop(!0))});const w=h.map(m=>({...m}));return s?[w,s]:w}function Bi(e,t){const n=c.fun(e),[[i],s]=ki(1,n?e:[e],n?[]:t);return n||arguments.length==2?[i,s]:i}var Oi=()=>vn(),Li=()=>P.useState(Oi)[0],Vi=class extends ft{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ue(...t);const n=this._get(),i=He(n);ct(this,i.create(n))}advance(e){const t=this._get(),n=this.get();$(t,n)||(U(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&qt(this._active)&&De(this)}_get(){const e=c.arr(this.source)?this.source.map(R):k(R(this.source));return this.calc(...e)}_start(){this.idle&&!qt(this._active)&&(this.idle=!1,b(qe(this),e=>{e.done=!1}),q.skipAnimation?(g.batchedUpdates(()=>this.advance()),De(this)):Me.start(this))}_attach(){let e=1;b(k(this.source),t=>{M(t)&&X(t,this),Ze(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){b(k(this.source),e=>{M(e)&&de(e,this)}),this._active.clear(),De(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=k(this.source).reduce((t,n)=>Math.max(t,(Ze(n)?n.priority:0)+1),0))}};function Mi(e){return e.idle!==!1}function qt(e){return!e.size||Array.from(e).every(Mi)}function De(e){e.idle||(e.idle=!0,b(qe(e),t=>{t.done=!0}),le(e,{type:"idle",parent:e}))}q.assign({createStringInterpolator:Kt,to:(e,t)=>new Vi(e,t)});var yn=/^--/;function Fi(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!yn.test(e)&&!(oe.hasOwnProperty(e)&&oe[e])?t+"px":(""+t).trim()}var Ut={};function Ci(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:i,style:s,children:r,scrollTop:a,scrollLeft:o,viewBox:l,...u}=t,f=Object.values(u),d=Object.keys(u).map(h=>n||e.hasAttribute(h)?h:Ut[h]||(Ut[h]=h.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));r!==void 0&&(e.textContent=r);for(const h in s)if(s.hasOwnProperty(h)){const p=Fi(h,s[h]);yn.test(h)?e.style.setProperty(h,p):e.style[h]=p}
1d.forEach((h,p)=>{e.setAttribute(h,f[p])}),i!==void 0&&(e.className=i),a!==void 0&&(e.scrollTop=a),o!==void 0&&(e.scrollLeft=o),l!==void 0&&e.setAttribute("viewBox",l)}var oe={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},Ei=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Ti=["Webkit","Ms","Moz","O"];oe=Object.keys(oe).reduce((e,t)=>(Ti.forEach(n=>e[Ei(n,t)]=e[t]),e),oe);var qi=/^(matrix|translate|scale|rotate|skew)/,Ui=/^(translate)/,Ni=/^(rotate|skew)/,xe=(e,t)=>c.num(e)&&e!==0?e+t:e,Ae=(e,t)=>c.arr(e)?e.every(n=>Ae(n,t)):c.num(e)?e===t:parseFloat(e)===t,$i=class extends Ne{constructor({x:e,y:t,z:n,...i}){const s=[],r=[];(e||t||n)&&(s.push([e||0,t||0,n||0]),r.push(a=>[`translate3d(${a.map(o=>xe(o,"px")).join(",")})`,Ae(a,0)])),N(i,(a,o)=>{if(o==="transform")s.push([a||""]),r.push(l=>[l,l===""]);else if(qi.test(o)){if(delete i[o],c.und(a))return;const l=Ui.test(o)?"px":Ni.test(o)?"deg":"";s.push(k(a)),r.push(o==="rotate3d"?([u,f,d,h])=>[`rotate3d(${u},${f},${d},${xe(h,l)})`,Ae(h,0)]:u=>[`${o}(${u.map(f=>xe(f,l)).join(",")})`,Ae(u,o.startsWith("scale")?1:0)])}}),s.length&&(i.transform=new Qi(s,r)),super(i)}},Qi=class extends Gt{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 b(this.inputs,(n,i)=>{const s=R(n[0]),[r,a]=this.transforms[i](c.arr(s)?s:n.map(R));e+=" "+r,t=t&&a}),t?"none":e}observerAdded(e){e==1&&b(this.inputs,t=>b(t,n=>M(n)&&X(n,this)))}observerRemoved(e){e==0&&b(this.inputs,t=>b(t,n=>M(n)&&de(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),le(this,e)}},ji=["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:_n.unstable_batchedUpdates,createStringInterpolator:Kt,colors:Vn});var zi=oi(ji,{applyAnimatedValues:Ci,createAnimatedStyle:e=>new $i(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Gi=zi.animated;export{Bi as a,xi as b,Gi as c,Li as u};

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.