1import{a as e,o as t,t as n}from"./rolldown-runtime-C0FnF6B9.js";import{n as r,t as i}from"./jsx-runtime-CKeovgl0.js";import{r as a}from"./preload-helper-GL7oveUC.js";import{Mt as o,jt as s}from"./detect-it.esm-DZnguM0j.js";var c=Object.defineProperty,l=(e,t)=>{let n={};for(var r in e)c(n,r,{get:e[r],enumerable:!0});return t||c(n,Symbol.toStringTag,{value:`Module`}),n},u=D(),d=e=>S(e,u),f=D();d.write=e=>S(e,f);var p=D();d.onStart=e=>S(e,p);var m=D();d.onFrame=e=>S(e,m);var h=D();d.onFinish=e=>S(e,h);var g=[];d.setTimeout=(e,t)=>{let n=d.now()+t,r=()=>{let e=g.findIndex(e=>e.cancel==r);~e&&g.splice(e,1),b-=+!!~e},i={time:n,handler:e,cancel:r};return g.splice(_(n),0,i),b+=1,C(),i};var _=e=>~(~g.findIndex(t=>t.time>e)||~g.length);d.cancel=e=>{p.delete(e),m.delete(e),h.delete(e),u.delete(e),f.delete(e)},d.sync=e=>{x=!0,d.batchedUpdates(e),x=!1},d.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,d.onStart(n)}return r.handler=e,r.cancel=()=>{p.delete(n),t=null},r};var v=typeof window<`u`?window.requestAnimationFrame:()=>{};d.use=e=>v=e,d.now=typeof performance<`u`?()=>performance.now():Date.now,d.batchedUpdates=e=>e(),d.catch=console.error,d.frameLoop=`always`,d.onDemand=()=>{},d.advance=()=>{d.frameLoop===`demand`?E():console.warn(`Cannot call the manual advancement of rafz whilst frameLoop is not set as demand`)};var y=-1,b=0,x=!1;function S(e,t){x?(t.delete(e),e(0)):(t.add(e),C(),d.frameLoop===`demand`&&d.onDemand())}function C(){y<0&&(y=0,d.frameLoop!==`demand`&&v(T))}function w(){y=-1}function T(){~y&&(v(T),d.batchedUpdates(E))}function E(){let e=y;y=d.now();let t=_(y);if(t&&(O(g.splice(0,t),e=>e.handler()),b-=t),!b){w();return}p.flush(),u.flush(e?Math.min(64,y-e):16.667),m.flush(),f.flush(),h.flush(),d.frameLoop===`demand`&&b>0&&d.onDemand()}function D(){let e=new Set,t=e;return{add(n){b+=+(t==e&&!e.has(n)),e.add(n)},delete(n){return b-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,b-=t.size,O(t,t=>t(n)&&e.add(t)),b+=e.size,t=e)}}}function O(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}var k=t(r(),1);function A(){}var ee=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),j={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 M(e,t){if(j.arr(e)){if(!j.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 N=(e,t)=>e.forEach(t);function P(e,t,n){if(j.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(let r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var F=e=>j.und(e)?[]:j.arr(e)?e:[e];function te(e,t){if(e.size){let n=Array.from(e);e.clear(),N(n,t)}}var ne=(e,...t)=>te(e,e=>e(...t)),re=()=>typeof window>`u`||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),I=l({assign:()=>le,colors:()=>oe,createStringInterpolator:()=>ie,skipAnimation:()=>se,to:()=>ae,willAdvance:()=>ce}),ie,ae,oe=null,se=!1,ce=A,le=e=>{e.to&&(ae=e.to),e.now&&(d.now=e.now),e.colors!==void 0&&(oe=e.colors),e.skipAnimation!=null&&(se=e.skipAnimation),e.createStringInterpolator&&(ie=e.createStringInterpolator),e.requestAnimationFrame&&d.use(e.requestAnimationFrame),e.batchedUpdates&&(d.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ce=e.willAdvance),e.frameLoop&&(d.frameLoop=e.frameLoop),e.onDemand&&(d.onDemand=e.onDemand)},ue=new Set,L=[],de=[],fe=0,pe={get idle(){return!ue.size&&!L.length},start(e){fe>e.priority?(ue.add(e),d.onStart(me)):(he(e),d(_e))},advance:_e,sort(e){if(fe)d.onFrame(()=>pe.sort(e));else{let t=L.indexOf(e);~t&&(L.splice(t,1),ge(e))}},clear(){L=[],ue.clear()}};function me(){ue.forEach(he),ue.clear(),d(_e)}function he(e){L.includes(e)||ge(e)}function ge(e){L.splice(ve(L,t=>t.priority>e.priority),0,e)}function _e(e){let t=de;for(let n=0;n<L.length;n++){let r=L[n];fe=r.priority,r.idle||(ce(r),r.advance(e),r.idle||t.push(r))}return fe=0,de=L,de.length=0,L=t,L.length>0}function ve(e,t){let n=e.findIndex(t);return n<0?e.length:n}var ye=(e,t,n)=>Math.min(Math.max(n,e),t),be={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},R=`[-+]?\\d*\\.?\\d+`,xe=`[-+]?\\d*\\.?\\d+%`;function Se(...e){return`\\(\\s*(`+e.join(`)\\s*,\\s*(`)+`)\\s*\\)`}var Ce=RegExp(`rgb`+Se(R,R,R)),we=RegExp(`rgba`+Se(R,R,R,R)),Te=RegExp(`hsl`+Se(R,xe,xe)),Ee=RegExp(`hsla`+Se(R,xe,xe,R)),De=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ke=/^#([0-9a-fA-F]{6})$/,Ae=/^#([0-9a-fA-F]{8})$/;function je(e){let t;return typeof e==`number`?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ke.exec(e))?parseInt(t[1]+`ff`,16)>>>0:oe&&oe[e]!==void 0?oe[e]:(t=Ce.exec(e))?(Pe(t[1])<<24|Pe(t[2])<<16|Pe(t[3])<<8|255)>>>0:(t=we.exec(e))?(Pe(t[1])<<24|Pe(t[2])<<16|Pe(t[3])<<8|Ie(t[4]))>>>0:(t=De.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+`ff`,16)>>>0:(t=Ae.exec(e))?parseInt(t[1],16)>>>0:(t=Oe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Te.exec(e))?(Ne(Fe(t[1]),Le(t[2]),Le(t[3]))|255)>>>0:(t=Ee.exec(e))?(Ne(Fe(t[1]),Le(t[2]),Le(t[3]))|Ie(t[4]))>>>0:null}function Me(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ne(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=Me(i,r,e+1/3),o=Me(i,r,e),s=Me(i,r,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Pe(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function Fe(e){return(parseFloat(e)%360+360)%360/360}function Ie(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Le(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function Re(e){let t=je(e);return t===null?e:(t||=0,`rgba(${(t&4278190080)>>>24}, ${(t&16711680)>>>16}, ${(t&65280)>>>8}, ${(t&255)/255})`)}
1var ze=(e,t,n)=>{if(j.fun(e))return e;if(j.arr(e))return ze({range:e,output:t,extrapolate:n});if(j.str(e.output[0]))return ie(e);let r=e,i=r.output,a=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||`extend`,s=r.extrapolateRight||r.extrapolate||`extend`,c=r.easing||(e=>e);return e=>{let t=Ve(e,a);return Be(e,a[t],a[t+1],i[t],i[t+1],c,o,s,r.map)}};function Be(e,t,n,r,i,a,o,s,c){let l=c?c(e):e;if(l<t){if(o===`identity`)return l;o===`clamp`&&(l=t)}if(l>n){if(s===`identity`)return l;s===`clamp`&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=a(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}function Ve(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var He=(e,t=`end`)=>n=>{n=t===`end`?Math.min(n,.999):Math.max(n,.001);let r=n*e;return ye(0,1,(t===`end`?Math.floor(r):Math.ceil(r))/e)},Ue=1.70158,We=Ue*1.525,Ge=2.70158,Ke=2*Math.PI/3,qe=2*Math.PI/4.5,Je=e=>{let t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Ye={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-(-2*e+2)**2/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-(1-e)**3,easeInOutCubic:e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-(1-e)**4,easeInOutQuart:e=>e<.5?8*e*e*e*e:1-(-2*e+2)**4/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-(1-e)**5,easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-(-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:2**(10*e-10),easeOutExpo:e=>e===1?1:1-2**(-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?2**(20*e-10)/2:(2-2**(-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-e**2),easeOutCirc:e=>Math.sqrt(1-(e-1)**2),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-(2*e)**2))/2:(Math.sqrt(1-(-2*e+2)**2)+1)/2,easeInBack:e=>Ge*e*e*e-Ue*e*e,easeOutBack:e=>1+Ge*(e-1)**3+Ue*(e-1)**2,easeInOutBack:e=>e<.5?(2*e)**2*(7.189819*e-We)/2:((2*e-2)**2*(3.5949095*(e*2-2)+We)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-(2**(10*e-10))*Math.sin((e*10-10.75)*Ke),easeOutElastic:e=>e===0?0:e===1?1:2**(-10*e)*Math.sin((e*10-.75)*Ke)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(2**(20*e-10)*Math.sin((20*e-11.125)*qe))/2:2**(-20*e+10)*Math.sin((20*e-11.125)*qe)/2+1,easeInBounce:e=>1-Je(1-e),easeOutBounce:Je,easeInOutBounce:e=>e<.5?(1-Je(1-2*e))/2:(1+Je(2*e-1))/2,steps:He},Xe=Symbol.for(`FluidValue.get`),Ze=Symbol.for(`FluidValue.observers`),z=e=>!!(e&&e[Xe]),B=e=>e&&e[Xe]?e[Xe]():e,Qe=e=>e[Ze]||null;function $e(e,t){e.eventObserved?e.eventObserved(t):e(t)}function et(e,t){let n=e[Ze];n&&n.forEach(e=>{$e(e,t)})}var tt=class{constructor(e){if(!e&&!(e=this.get))throw Error(`Unknown getter`);nt(this,e)}},nt=(e,t)=>at(e,Xe,t);function rt(e,t){if(e[Xe]){let n=e[Ze];n||at(e,Ze,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function it(e,t){let n=e[Ze];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[Ze]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var at=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ot=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,st=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ct=RegExp(`(${ot.source})(%|[a-z]+)`,`i`),lt=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ut=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,dt=e=>{let[t,n]=ft(e);if(!t||re())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith(`--`)?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&ut.test(n)?dt(n):n||e},ft=e=>{let t=ut.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},pt,mt=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,ht=e=>e.match(ot)??[],gt=e=>{pt||=oe?RegExp(`(${Object.keys(oe).join(`|`)})(?!\\w)`,`g`):/^\b$/;let t=e.output.map(e=>B(e).replace(ut,dt).replace(st,Re).replace(pt,Re)),n=t.map(e=>ht(e).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error(`The arity of each "output" value must be equal`);return e[t]})).map(t=>ze({...e,output:t})),i=e.range||[0,1],a=t.map(e=>ht(e)),o=a[0].map((e,t)=>{let n=a.map(e=>{let n=e[t],r=n.indexOf(`.`);return r===-1?0:n.length-r-1});return n.every(e=>e===n[0])&&n[0]>0?n[0]:null});return e=>{let n=i.indexOf(e);if(n!==-1)return t[n];let a=!ct.test(t[0])&&t.find(e=>ct.test(e))?.replace(ot,``),s=0;return t[0].replace(ot,()=>{let t=s++,n=r[t](e),i=o[t];return`${i==null?n:n.toFixed(i)}${a||``}`}).replace(lt,mt)}},_t=`react-spring: `,vt=e=>{let t=e,n=!1;if(typeof t!=`function`)throw TypeError(`${_t}once requires a function parameter`);return(...e)=>{n||=(t(...e),!0)}},yt=vt(console.warn);function bt(){yt(`${_t}
1The "interpolate" function is deprecated in v9 (use "to" instead)`)}var xt=vt(console.warn);function St(){xt(`${_t}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 Ct(e){return j.str(e)&&(e[0]==`#`||/\d/.test(e)||!re()&&ut.test(e)||e in(oe||{}))}var wt=re()?k.useEffect:k.useLayoutEffect,Tt=()=>{let e=(0,k.useRef)(!1);return wt(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Et(){let e=(0,k.useState)()[1],t=Tt();return()=>{t.current&&e(Math.random())}}var Dt=e=>(0,k.useEffect)(e,Ot),Ot=[];function kt(e){let t=(0,k.useRef)(void 0);return(0,k.useEffect)(()=>{t.current=e}),t.current}var At=Symbol.for(`Animated:node`),jt=e=>!!e&&e[At]===e,V=e=>e&&e[At],Mt=(e,t)=>ee(e,At,t),Nt=e=>e&&e[At]&&e[At].getPayload(),Pt=class{constructor(){Mt(this,this)}getPayload(){return this.payload||[]}},Ft=class e extends Pt{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,j.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return j.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,j.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},It=class e extends Ft{constructor(e){super(0),this._string=null,this._toString=ze({output:[e,e]})}static create(t){return new e(t)}getValue(){return this._string??=this._toString(this._value)}setValue(e){if(j.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=ze({output:[this.getValue(),e]})),this._value=0,super.reset()}},Lt={dependencies:null},Rt=class extends Pt{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return P(this.source,(n,r)=>{jt(n)?t[r]=n.getValue(e):z(n)?t[r]=B(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&N(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return P(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Lt.dependencies&&z(e)&&Lt.dependencies.add(e);let t=Nt(e);t&&N(t,e=>this.add(e))}},zt=class e extends Rt{constructor(e){super(e)}static create(t){return new e(t)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(Bt)),!0)}};function Bt(e){return(Ct(e)?It:Ft).create(e)}function Vt(e){let t=V(e);return t?t.constructor:j.arr(e)?zt:Ct(e)?It:Ft}var Ht=(e,t)=>{let n=!j.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,k.forwardRef)((r,i)=>{let a=(0,k.useRef)(null),o=n&&(0,k.useCallback)(e=>{a.current=Gt(i,e)},[i]),[s,c]=Wt(r,t),l=Et(),u=()=>{let e=a.current;n&&!e||(e?t.applyAnimatedValues(e,s.getValue(!0)):!1)===!1&&l()},f=new Ut(u,c),p=(0,k.useRef)(void 0);wt(()=>(p.current=f,N(c,e=>rt(e,f)),()=>{p.current&&(N(p.current.deps,e=>it(e,p.current)),d.cancel(p.current.update))})),(0,k.useEffect)(u,[]),Dt(()=>()=>{let e=p.current;N(e.deps,t=>it(t,e))});let m=t.getComponentProps(s.getValue());return k.createElement(e,{...m,ref:o})})},Ut=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type==`change`&&d.write(this.update)}};function Wt(e,t){let n=new Set;return Lt.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}
1),e=new Rt(e),Lt.dependencies=null,[e,n]}function Gt(e,t){return e&&(j.fun(e)?e(t):e.current=t),t}var Kt=Symbol.for(`AnimatedComponent`),qt=new WeakMap,Jt=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new Rt(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=Yt(e)||`Anonymous`;if(j.str(e))e=a[e]||(a[e]=Ht(e,i));else{let t=e[Kt]??qt.get(e);if(!t){t=Ht(e,i);try{e[Kt]=t}catch{}qt.set(e,t)}e=t}return e.displayName=`Animated(${t})`,e};return P(e,(t,n)=>{j.arr(e)&&(n=Yt(t)),a[n]=a(t)}),{animated:a}},Yt=e=>j.str(e)?e:e&&j.str(e.displayName)?e.displayName:j.fun(e)&&e.name||null;function H(e,...t){return j.fun(e)?e(...t):e}var Xt=(e,t)=>e===!0||!!(t&&e&&(j.fun(e)?e(t):F(e).includes(t))),Zt=(e,t)=>j.obj(e)?t&&e[t]:e,Qt=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,$t=e=>e,en=(e,t=$t)=>{let n=tn;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));let r={};for(let i of n){let n=t(e[i],i);j.und(n)||(r[i]=n)}return r},tn=[`config`,`onProps`,`onStart`,`onChange`,`onPause`,`onResume`,`onRest`],nn={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 rn(e){let t={},n=0;if(P(e,(e,r)=>{nn[r]||(t[r]=e,n++)}),n)return t}function an(e){let t=rn(e);if(t){let n={to:t};return P(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function on(e){let t=B(e);return j.arr(t)?t.map(on):Ct(t)?I.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function sn(e){for(let t in e)return!0;return!1}function cn(e){return j.fun(e)||j.arr(e)&&j.obj(e[0])}function ln(e,t){e.ref?.delete(e),t?.delete(e)}function un(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var dn={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}},fn={...dn.default,mass:1,damping:1,easing:Ye.linear,clamp:!1},pn=class{constructor(){this.velocity=0,Object.assign(this,fn)}};function mn(e,t,n){n&&(n={...n},hn(n,t),t={...n,...t}),hn(e,t),Object.assign(e,t);for(let t in fn)e[t]??(e[t]=fn[t]);let{frequency:r,damping:i}=e,{mass:a}=e;return j.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=(2*Math.PI/r)**2*a,e.friction=4*Math.PI*i*a/r),e}function hn(e,t){if(!j.und(t.decay))e.duration=void 0;else{let n=!j.und(t.tension)||!j.und(t.friction);(n||!j.und(t.frequency)||!j.und(t.damping)||!j.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var gn=[],_n=class{constructor(){this.changed=!1,this.values=gn,this.toValues=null,this.fromValues=gn,this.config=new pn,this.immediate=!1}};function vn(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let c,l,u=Xt(n.cancel??r?.cancel,t);if(u)m();else{j.und(n.pause)||(i.paused=Xt(n.pause,t));let e=r?.pause;e!==!0&&(e=i.paused||Xt(e,t)),c=H(n.delay||0,t),e?(i.resumeQueue.add(p),a.pause()):(a.resume(),p())}function f(){i.resumeQueue.add(p),i.timeouts.delete(l),l.cancel(),c=l.time-d.now()}function p(){c>0&&!I.skipAnimation?(i.delayed=!0,l=d.setTimeout(m,c),i.pauseQueue.add(f),i.timeouts.add(l)):m()}function m(){i.delayed&&=!1,i.pauseQueue.delete(f),i.timeouts.delete(l),e<=(i.cancelId||0)&&(u=!0);try{a.start({...n,callId:e,cancel:u},o)}catch(e){s(e)}}})}var yn=(e,t)=>t.length==1?t[0]:t.some(e=>e.cancelled)?xn(e.get()):t.every(e=>e.noop)?bn(e.get()):U(e.get(),t.every(e=>e.finished)),bn=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),U=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),xn=e=>({value:e,cancelled:!0,finished:!1});function Sn(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:c}=n;return!a&&e===s&&!t.reset?c:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let l=en(t,(e,t)=>t===`onRest`?void 0:e),u,f,p=new Promise((e,t)=>(u=e,f=t)),m=e=>{let t=i<=(n.cancelId||0)&&xn(r)||i!==n.asyncId&&U(r,!1);if(t)throw e.result=t,f(e),e},h=0,g=(e,t)=>{let a=new wn,o=new Tn;return(async()=>{m(a);let s=j.obj(e)?{...e}:{...t,to:e};if(s.parentId=i,P(l,(e,t)=>{j.und(s[t])&&(s[t]=e)}),I.skipAnimation){if(++h>1024)throw Cn(n),o.result=U(r,!1),f(o),o;return s.immediate=!0,await r.start(s)}let c=await r.start(s);return m(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),c})()},_;
1try{let t;t=j.arr(e)?(async e=>{for(let t of e)await g(t)})(e):Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([t.then(u),p]),_=U(r.get(),!0,!1)}catch(e){if(e instanceof wn)_=e.result;else if(e instanceof Tn)_=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?c:void 0)}return j.fun(o)&&d.batchedUpdates(()=>{o(_,r,r.item)}),_})()}function Cn(e,t){te(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var wn=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.")}},Tn=class extends Error{constructor(){super(`SkipAnimationSignal`)}},En=e=>e instanceof On,Dn=1,On=class extends tt{constructor(...e){super(...e),this.id=Dn++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=V(this);return e&&e.getValue()}to(...e){return I.to(this,e)}interpolate(...e){return bt(),I.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){et(this,{type:`change`,parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||pe.sort(this),et(this,{type:`priority`,parent:this,priority:e})}},kn=Symbol.for(`SpringPhase`),An=1,jn=2,Mn=4,Nn=e=>(e[kn]&An)>0,Pn=e=>(e[kn]&jn)>0,Fn=e=>(e[kn]&Mn)>0,In=(e,t)=>t?e[kn]|=3:e[kn]&=-3,Ln=(e,t)=>t?e[kn]|=Mn:e[kn]&=-5,Rn=class extends On{constructor(e,t){if(super(),this.animation=new _n,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,!j.und(e)||!j.und(t)){let n=j.obj(e)?{...e}:{...t,from:e};j.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Pn(this)||this._state.asyncTo)||Fn(this)}get goal(){return B(this.animation.to)}get velocity(){let e=V(this);return e instanceof Ft?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return Nn(this)}get isAnimating(){return Pn(this)}get isPaused(){return Fn(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:a}=r,o=Nt(r.to);!o&&z(r.to)&&(i=F(B(r.to))),r.values.forEach((s,c)=>{if(s.done)return;let l=s.constructor==It?1:o?o[c].lastPosition:i[c],u=r.immediate,d=l;if(!u){if(d=s.lastPosition,a.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[c],i=s.v0==null?s.v0=j.arr(a.velocity)?a.velocity[c]:a.velocity:s.v0,o,f=a.precision||(n==l?.005:Math.max(Math.max(Math.abs(l),Math.abs(n),1)*2**-52,Math.min(1,Math.abs(l-n)*.001)));if(!j.und(a.duration)){let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(a.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+a.easing(r)*(l-n),o=(d-s.lastPosition)/e,u=r==1}else if(a.decay){let e=a.decay===!0?.998:a.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=f,o=i*r}else{o=s.lastVelocity==null?i:s.lastVelocity;let t=a.restVelocity||f/10,r=a.clamp?0:a.bounce,c=!j.und(r),p=n==l?s.v0>0:n<l,m,h=!1,g=Math.ceil(e/1);for(let e=0;e<g&&(m=Math.abs(o)>t,!(!m&&(u=Math.abs(l-d)<=f,u)));++e){c&&(h=d==l||d>l==p,h&&(o=-o*r,d=l));let e=(-a.tension*1e-6*(d-l)+-a.friction*.001*o)/a.mass;o+=e*1,d+=o*1}}s.lastVelocity=o,Number.isNaN(d)&&(console.warn(`Got NaN while animating:`,this),u=!0)}o&&!o[c].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,a.round)&&(n=!0)});let s=V(this),c=s.getValue();if(t){let e=B(r.to);(c!==e||n)&&!a.decay?(s.setValue(e),this._onChange(e)):n&&a.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return d.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Pn(this)){let{to:e,config:t}=this.animation;d.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||=[]).push(e),this}start(e,t){let n;return j.und(e)?(n=this.queue||[],this.queue=[]):n=[j.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>yn(this,e))}stop(e){let{to:t}=this.animation;return j.und(t)||this._focus(this.get()),Cn(this._state,e&&this._lastCallId),d.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:r}=e;n=j.obj(n)?n[t]:n,(n==null||cn(n))&&(n=void 0),r=j.obj(r)?r[t]:r,r??=void 0;let i={to:n,from:r};return Nn(this)||(e.reverse&&([n,r]=[r,n]),r=B(r),j.und(r)?V(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,en(e,(e,t)=>/^on/.test(t)?Zt(e,n):e)),Gn(this,e,`onProps`),Kn(this,`onProps`,e,this);let i=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?");let a=this._state;return vn(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{Fn(this)||(Ln(this,!0),ne(a.pauseQueue),Kn(this,`onPause`,U(this,zn(this,this.animation.to)),this))},resume:()=>{Fn(this)&&(Ln(this,!1),Pn(this)&&this._resume(),ne(a.resumeQueue),Kn(this,`onResume`,U(this,zn(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=Bn(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(xn(this));let r=!j.und(e.to),i=!j.und(e.from);if(r||i){if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(xn(this))}let{key:a,defaultProps:o,animation:s}=this,{to:c,from:l}=s,{to:u=c,from:f=l}=e;i&&!r&&(!t.default||j.und(u))&&(u=f),t.reverse&&([u,f]=[f,u]);let p=!M(f,l);p&&(s.from=f),f=B(f);let m=!M(u,c);m&&this._focus(u);let h=cn(t.to),{config:g}=s,{decay:_,velocity:v}=g;(r||i)&&!g.decay&&(g.velocity=0),t.config&&!h&&mn(g,H(t.config,a),t.config===o.config?void 0:H(o.config,a));let y=V(this);if(!y||j.und(u))return n(U(this,!0));let b=j.und(t.reset)?i&&!t.default:!j.und(f)&&Xt(t.reset,a),x=b?f:this.get(),S=on(u),C=j.num(S)||j.arr(S)||Ct(S),w=!h&&(!C||Xt(o.immediate||t.immediate,a));if(m){let e=Vt(u);if(e!==y.constructor){if(w)y=this._set(S);else throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let T=y.constructor,E=z(u),D=!1;if(!E){let e=b||!Nn(this)&&p;(m||e)&&(D=M(on(x),S),E=!D),(!M(s.immediate,w)&&!w||!M(g.decay,_)||!M(g.velocity,v))&&(E=!0)}if(D&&Pn(this)&&(s.changed&&!b?E=!0:E||this._stop(c)),!h&&((E||z(c))&&(s.values=y.getPayload(),s.toValues=z(u)?null:T==It?[1]:F(S)),s.immediate!=w&&(s.immediate=w,!w&&!b&&this._set(c)),E)){let{onRest:e}=s;N(Wn,e=>Gn(this,t,e));let r=U(this,zn(this,c));ne(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&d.batchedUpdates(()=>{s.changed=!b,e?.(r,this),b?H(o.onRest,r):s.onStart?.(r,this)})}b&&this._set(x),h?n(Sn(t.to,t,this._state,this)):E?this._start():Pn(this)&&!m?this._pendingCalls.add(n):n(bn(x))}_focus(e){let t=this.animation;e!==t.to&&(Qe(this)&&this._detach(),t.to=e,Qe(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;z(t)&&(rt(t,this),En(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;z(e)&&it(e,this)}_set(e,t=!0){let n=B(e);if(!j.und(n)){let e=V(this);if(!e||!M(n,e.getValue())){let r=Vt(n);!e||e.constructor!=r?Mt(this,r.create(n)):e.setValue(n),e&&d.batchedUpdates(()=>{this._onChange(n,t)})}}return V(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,Kn(this,`onStart`,U(this,zn(this,e.to)),this))}_onChange(e,t){let n=U(e,!1);t||(this._onStart(),H(this.animation.onChange,n,this)),H(this.defaultProps.onChange,n,this),super._onChange(e,t)}_start(){let e=this.animation;V(this).reset(B(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),Pn(this)||(In(this,!0),Fn(this)||this._resume())}_resume(){I.skipAnimation?this.finish():pe.start(this)}_stop(e,t){if(Pn(this)){In(this,!1);let n=this.animation;N(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),et(this,{type:`idle`,parent:this});let r=t?xn(this.get()):U(this.get(),zn(this,e??n.to));ne(this._pendingCalls,r),n.changed=!1,Kn(this,`onRest`,r,this)}}};function zn(e,t){let n=on(t);return M(on(e.get()),n)}function Bn(e,t=e.loop,n=e.to){let r=H(t);if(r){let i=r!==!0&&an(r),a=(i||e).reverse,o=!i||i.reset;return Vn({...e,loop:t,default:!1,pause:void 0,to:!a||cn(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function Vn(e){let{to:t,from:n}=e=an(e),r=new Set;return j.obj(t)&&Un(t,r),j.obj(n)&&Un(n,r),e.keys=r.size?Array.from(r):null,e}function Hn(e){let t=Vn(e);return j.und(t.default)&&(t.default=en(t)),t}function Un(e,t){P(e,(e,n)=>e!=null&&t.add(n))}var Wn=[`onStart`,`onRest`,`onChange`,`onPause`,`onResume`];function Gn(e,t,n){e.animation[n]=t[n]===Qt(t,n)?void 0:Zt(t[n],e.key)}function Kn(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var qn=[`onStart`,`onChange`,`onRest`],Jn=1,Yn=class{constructor(e,t){this.id=Jn++,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];j.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Vn(e)),this}start(e){let{queue:t}=this;return e?t=F(e).map(Vn):this.queue=[],this._flush?this._flush(this,t):(nr(this,t),Xn(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let n=this.springs;N(F(t),t=>n[t].stop(!!e))}else Cn(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(j.und(e))this.start({pause:!0});else{let t=this.springs;N(F(e),e=>t[e].pause())}return this}resume(e){if(j.und(e))this.start({pause:!1});else{let t=this.springs;N(F(e),e=>t[e].resume())}return this}each(e){P(this.springs,e)}onLoopReset(e){let t=this._onLoopReset??=new Set;return t.add(e),()=>{t.delete(e)}}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,te(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&te(t,([e,t])=>{t.value=o,e(t,this,this._item)}),a&&(this._started=!1,te(n,([e,t])=>{t.value=o,e(t,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;d.onFrame(this._onFrame)}};function Xn(e,t){return Promise.all(t.map(t=>Zn(e,t))).then(t=>yn(e,t))}async function Zn(e,t,n){let{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:c}=t,l=j.obj(t.default)&&t.default;o&&(t.loop=!1);let u=t,f=!n&&!u.parentId&&`loop`in t?++e._lastLoopId:n?u.loopId:e._lastLoopId;i===!1&&(t.to=null),a===!1&&(t.from=null);let p=j.arr(i)||j.fun(i)?i:void 0;p?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):N(qn,n=>{let r=t[n];if(j.fun(r)){let i=e._events[n];t[n]=(({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})}),l&&(l[n]=t[n])}});let m=e._state;t.pause===!m.paused?(m.paused=t.pause,ne(t.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(t.pause=!0);let h=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),g=t.cancel===!0||Qt(t,`cancel`)===!0;(p||g&&m.asyncId)&&h.push(vn(++e._lastAsyncId,{props:t,state:m,actions:{pause:A,resume:A,start(t,n){g?(Cn(m,e._lastAsyncId),n(xn(e))):(t.onRest=s,n(Sn(p,t,m,e)))}}})),m.paused&&await new Promise(e=>{m.resumeQueue.add(e)});let _=yn(e,await Promise.all(h));if(o&&_.finished&&!(n&&_.noop)&&f===e._lastLoopId){let n=Bn(t,o,i);
1if(n)return n.loopId=f,e._onLoopReset?.forEach(e=>e()),nr(e,[n]),Zn(e,n,!0)}return c&&d.batchedUpdates(()=>c(_,e,e.item)),_}function Qn(e,t){let n={...e.springs};return t&&N(F(t),e=>{j.und(e.keys)&&(e=Vn(e)),j.obj(e.to)||(e={...e,to:void 0}),tr(n,e,e=>er(e))}),$n(e,n),n}function $n(e,t){P(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,rt(t,e))})}function er(e,t){let n=new Rn;return n.key=e,t&&rt(n,t),n}function tr(e,t,n){t.keys&&N(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function nr(e,t){N(t,t=>{tr(e.springs,t,t=>er(t,e))})}var rr=k.createContext({pause:!1,immediate:!1}),ir=()=>{let e=[],t=function(t){St();let r=[];return N(e,(e,i)=>{if(j.und(t))r.push(e.start());else{let a=n(t,e,i);a&&r.push(e.start(a))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return N(e,e=>e.pause(...arguments)),this},t.resume=function(){return N(e,e=>e.resume(...arguments)),this},t.set=function(t){N(e,(e,n)=>{let r=j.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return N(e,(e,r)=>{if(j.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return N(e,e=>e.stop(...arguments)),this},t.update=function(t){return N(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return j.fun(e)?e(n,t):e};return t._getProps=n,t};function ar(e,t,n){let r=j.fun(t)&&t;r&&!n&&(n=[]);let i=(0,k.useMemo)(()=>r||arguments.length==3?ir():void 0,[]),a=(0,k.useRef)(0),o=Et(),s=(0,k.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=Qn(e,t);return a.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?Xn(e,t):new Promise(r=>{$n(e,n),s.queue.push(()=>{r(Xn(e,t))}),o()})}}),[]),c=(0,k.useRef)([...s.ctrls]),l=(0,k.useRef)([]),u=(0,k.useRef)([]);u.current=[];let d=kt(e)||0;(0,k.useMemo)(()=>{N(c.current.slice(e,d),e=>{ln(e,i),e.stop(!0)}),c.current.length=e,f(d,e)},[e]),(0,k.useMemo)(()=>{f(0,Math.min(d,e))},n);function f(e,n){for(let i=e;i<n;i++){let e=c.current[i]||(c.current[i]=new Yn(null,s.flush)),n=r?r(i,e):t[i];n&&(l.current[i]=Hn(n))}}let p=c.current.map((e,t)=>Qn(e,l.current[t])),m=(0,k.useContext)(rr),h=m!==kt(m)&&sn(m);wt(()=>{a.current++,s.ctrls=c.current;let{queue:e}=s;e.length&&(s.queue=[],N(e,e=>e()));let t=l.current.length>0?l.current:u.current;N(c.current,(e,n)=>{i?.add(e),h&&e.start({default:m});let r=t[n];r&&(un(e,r.ref),e.ref?e.queue.push({...r,default:j.obj(r.default)?{...r.default}:r.default}):e.start(r))}),l.current.length>0&&(u.current=l.current),l.current=[]}),Dt(()=>()=>{N(s.ctrls,e=>e.stop(!0))});let g=p.map(e=>({...e}));return i?[g,i]:g}function or(e,t){let n=j.fun(e),[[r],i]=ar(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}function sr(e,t,n){let r=j.fun(t)&&t,{reset:i,sort:a,trail:o=0,reverse:s=!1,expires:c=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:d,config:f}=r?r():t,p=(0,k.useMemo)(()=>r||arguments.length==3?ir():void 0,[]),m=F(e),h=[],g=(0,k.useRef)(null),_=i?null:g.current;wt(()=>{g.current=h}),Dt(()=>(N(h,e=>{p?.add(e.ctrl),e.ctrl.ref=void 0}),()=>{N(g.current,e=>{e.expired&&clearTimeout(e.expirationId),ln(e.ctrl,p),e.ctrl.stop(!0)})}));let v=lr(m,r?r():t,_),y=i&&g.current||[];wt(()=>N(y,({ctrl:e,item:t,key:n})=>{ln(e,p),H(u,t,n)}));let b=[];if(_&&N(_,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):(t=b[t]=v.indexOf(e.key),~t&&(h[t]=e))}),N(m,(e,t)=>{h[t]||(h[t]={key:v[t],item:e,phase:`mount`,ctrl:new Yn},h[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;N(b,(t,r)=>{let i=_[r];~t?(e=h.indexOf(i),h[e]={...i,item:m[t]}):n&&h.splice(++e,0,i)})}j.fun(a)&&h.sort((e,t)=>a(e.item,t.item));let x=-o,S=[],C=Et(),w=en(t),T=new Map,E=(0,k.useRef)(new Map),D=(0,k.useRef)(!1);if(N(h,(e,n)=>{let i=e.key,a=e.phase,s=r?r():t,u,p,m=H(s.delay||0,i);if(a==`mount`)u=s.enter,p=`enter`;else{let e=v.indexOf(i)<0;if(a!=`leave`){if(e)u=s.leave,p=`leave`;else if(u=s.update)p=`update`;else return}else if(!e)u=s.enter,p=`enter`;else return}if(u=H(u,e.item,n),u=j.obj(u)?an(u):{to:u},!u.config){let t=f||w.config;u.config=H(t,e.item,n,p)}x+=o;let h={...w,delay:m+x,ref:d,immediate:s.immediate,reset:!1,...u};if(p==`enter`&&j.und(h.from)){let i=r?r():t;h.from=H(j.und(i.initial)||_?i.from:i.initial,e.item,n)}
1let{onResolve:y}=h;h.onResolve=e=>{H(y,e);let t=g.current,n=t.find(e=>e.key===i);if(n&&!(e.cancelled&&n.phase!=`update`)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if(n.phase==`leave`){E.current.delete(n);let t=H(c,n.item);if(t!==!1){let r=t===!0?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(C,r));return}}}e&&t.some(e=>e.expired)&&(l&&(D.current=!0),C())}};let b=Qn(e.ctrl,h);S.push({payload:h,propsDelay:m}),p===`leave`&&l?E.current.set(e,{phase:p,springs:b,payload:h}):T.set(e,{phase:p,springs:b,payload:h})}),s&&o){let e=S.length;N(S,({payload:t,propsDelay:n},r)=>{t.delay=n+(e-1-r)*o})}let O=(0,k.useContext)(rr),A=O!==kt(O)&&sn(O);wt(()=>{A&&N(h,e=>{e.ctrl.start({default:O})})},[O]),N(T,(e,t)=>{if(E.current.size){let e=h.findIndex(e=>e.key===t.key);h.splice(e,1)}}),wt(()=>{N(E.current.size?E.current:T,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,p?.add(r),A&&e==`enter`&&r.start({default:O}),t&&(un(r,t.ref),r.ref&&!D.current?r.update(t):(r.start(t),D.current&&=!1))})},i?void 0:n);let ee=e=>k.createElement(k.Fragment,null,h.map((t,n)=>{let r=T.get(t)||E.current.get(t),{springs:i}=r||t.ctrl,a=r?{...t,phase:r.phase}:t,o=e({...i},t.item,a,n),s=j.str(t.key)||j.num(t.key)?t.key:t.ctrl.id,c=o?.props??{},l=c?.ref;return o&&o.type?k.createElement(o.type,{...c,key:s,ref:l}):o}));return p?[ee,p]:ee}var cr=1;function lr(e,{key:t,keys:n=t},r){if(n===null){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&n.phase!==`leave`&&!t.has(n));return n?(t.add(n),n.key):cr++})}return j.und(n)?e:j.fun(n)?e.map(n):F(n)}var ur=class extends On{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ze(...t);let n=this._get(),r=Vt(n);Mt(this,r.create(n))}advance(e){let t=this._get();M(t,this.get())||(V(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&fr(this._active)&&pr(this)}_get(){let e=j.arr(this.source)?this.source.map(B):F(B(this.source));return this.calc(...e)}_start(){this.idle&&!fr(this._active)&&(this.idle=!1,N(Nt(this),e=>{e.done=!1}),I.skipAnimation?(d.batchedUpdates(()=>this.advance()),pr(this)):pe.start(this))}_attach(){let e=1;N(F(this.source),t=>{z(t)&&rt(t,this),En(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){N(F(this.source),e=>{z(e)&&it(e,this)}),this._active.clear(),pr(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=F(this.source).reduce((e,t)=>Math.max(e,(En(t)?t.priority:0)+1),0))}};function dr(e){return e.idle!==!1}function fr(e){return!e.size||Array.from(e).every(dr)}function pr(e){e.idle||(e.idle=!0,N(Nt(e),e=>{e.done=!0}),et(e,{type:`idle`,parent:e}))}var mr=(e,...t)=>new ur(e,t);I.assign({createStringInterpolator:gt,to:(e,t)=>new ur(e,t)}),pe.advance;var hr=t(a(),1),gr=/^--/;function _r(e,t){return t==null||typeof t==`boolean`||t===``?``:typeof t==`number`&&t!==0&&!gr.test(e)&&!(br.hasOwnProperty(e)&&br[e])?t+`px`:(``+t).trim()}var vr={};function yr(e,t){if(!e.nodeType||!e.setAttribute||!e.removeAttribute)return!1;let n=e.nodeName===`filter`||e.parentNode&&e.parentNode.nodeName===`filter`,{className:r,style:i,children:a,scrollTop:o,scrollLeft:s,viewBox:c,...l}=t,u=Object.values(l),d=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:vr[t]||(vr[t]=t.replace(/([A-Z])/g,e=>`-`+e.toLowerCase())));t.hasOwnProperty(`children`)&&(e.textContent=a);for(let t in i)if(i.hasOwnProperty(t)){let n=_r(t,i[t]);gr.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach((t,n)=>{let r=u[n];r===void 0?e.removeAttribute(t):e.setAttribute(t,r)}),t.hasOwnProperty(`className`)&&(r===void 0?e.removeAttribute(`class`):e.className=r),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s),t.hasOwnProperty(`viewBox`)&&(c===void 0?e.removeAttribute(`viewBox`):e.setAttribute(`viewBox`,c))}var br={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},xr=(e,t)=>
1e+t.charAt(0).toUpperCase()+t.substring(1),Sr=[`Webkit`,`Ms`,`Moz`,`O`];br=Object.keys(br).reduce((e,t)=>(Sr.forEach(n=>e[xr(n,t)]=e[t]),e),br);var Cr=/^(matrix3d|matrix|translate3d|translate[XYZ]?|scale3d|scale[XYZ]?|rotate3d|rotate[XYZ]?|skew[XY]?)$/,wr=/^(translate)/,Tr=/^(rotate|skew)/,Er=(e,t)=>j.num(e)&&e!==0?e+t:e,Dr=(e,t)=>j.arr(e)?e.every(e=>Dr(e,t)):j.num(e)?e===t:parseFloat(e)===t,Or=class extends Rt{constructor({x:e,y:t,z:n,...r}){let i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(e=>[`translate3d(${e.map(e=>Er(e,`px`)).join(`,`)})`,Dr(e,0)])),P(r,(e,t)=>{if(t===`transform`)i.push([e||``]),a.push(e=>[e,e===``]);else if(Cr.test(t)){if(delete r[t],j.und(e))return;let n=wr.test(t)?`px`:Tr.test(t)?`deg`:``;i.push(F(e)),a.push(t===`rotate3d`?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Er(i,n)})`,Dr(i,0)]:e=>[`${t}(${e.map(e=>Er(e,n)).join(`,`)})`,Dr(e,+!!t.startsWith(`scale`))])}}),i.length&&(r.transform=new kr(i,a)),super(r)}},kr=class extends tt{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||=this._get()}_get(){let e=``,t=!0;return N(this.inputs,(n,r)=>{let i=B(n[0]),[a,o]=this.transforms[r](j.arr(i)?i:n.map(B));e+=` `+a,t&&=o}),t?`none`:e}observerAdded(e){e==1&&N(this.inputs,e=>N(e,e=>z(e)&&rt(e,this)))}observerRemoved(e){e==0&&N(this.inputs,e=>N(e,e=>z(e)&&it(e,this)))}eventObserved(e){e.type==`change`&&(this._value=null),et(this,e)}},Ar=`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`.split(`.`);I.assign({batchedUpdates:hr.unstable_batchedUpdates,createStringInterpolator:gt,colors:be});var jr=Jt(Ar,{applyAnimatedValues:yr,createAnimatedStyle:e=>new Or(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,Mr=k.forwardRef,W=i(),Nr=e=>(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,W.jsx)(`path`,{d:`m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z`})}),Pr=e=>(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,W.jsx)(`path`,{d:`M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Z`})}),Fr=2147483647,G=36,Ir=1,Lr=26,Rr=38,zr=700,Br=72,Vr=128,Hr=`-`,Ur=/^xn--/,Wr=/[^\0-\x7F]/,Gr=/[\x2E\u3002\uFF0E\uFF61]/g,Kr={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},qr=35,K=Math.floor,Jr=String.fromCharCode;function Yr(e){throw RangeError(Kr[e])}function Xr(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Zr(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(Gr,`.`);let i=Xr(e.split(`.`),t).join(`.`);return r+i}function Qr(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var $r=e=>String.fromCodePoint(...e),ei=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:G},ti=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},ni=function(e,t,n){let r=0;for(e=n?K(e/zr):e>>1,e+=K(e/t);e>455;r+=G)e=K(e/qr);return K(r+36*e/(e+Rr))},ri=function(e){let t=[],n=e.length,r=0,i=Vr,a=Br,o=e.lastIndexOf(Hr);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&Yr(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=G;;i+=G){s>=n&&Yr(`invalid-input`);let o=ei(e.charCodeAt(s++));o>=G&&Yr(`invalid-input`),o>K((Fr-r)/t)&&Yr(`overflow`),r+=o*t;let c=i<=a?Ir:i>=a+Lr?Lr:i-a;if(o<c)break;let l=G-c;t>K(Fr/l)&&Yr(`overflow`),t*=l}let c=t.length+1;a=ni(r-o,c,o==0),K(r/c)>Fr-i&&Yr(`overflow`),i+=K(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},ii=function(e){let t=[];e=Qr(e);let n=e.length,r=Vr,i=0,a=Br;for(let n of e)n<128&&t.push(Jr(n));let o=t.length,s=o;
1for(o&&t.push(Hr);s<n;){let n=Fr;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>K((Fr-i)/c)&&Yr(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>Fr&&Yr(`overflow`),n===r){let e=i;for(let n=G;;n+=G){let r=n<=a?Ir:n>=a+Lr?Lr:n-a;if(e<r)break;let i=e-r,o=G-r;t.push(Jr(ti(r+i%o,0))),e=K(i/o)}t.push(Jr(ti(e,0))),a=ni(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},ai={version:`2.3.1`,ucs2:{decode:Qr,encode:$r},decode:ri,encode:ii,toASCII:function(e){return Zr(e,function(e){return Wr.test(e)?`xn--`+ii(e):e})},toUnicode:function(e){return Zr(e,function(e){return Ur.test(e)?ri(e.slice(4).toLowerCase()):e})}},oi=e=>(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,W.jsx)(`path`,{d:`M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z`})}),si=[`top`,`right`,`bottom`,`left`],q=Math.min,J=Math.max,ci=Math.round,li=Math.floor,Y=e=>({x:e,y:e}),ui={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function di(e,t,n){return J(e,q(t,n))}function fi(e,t){return typeof e==`function`?e(t):e}function pi(e){return e.split(`-`)[0]}function mi(e){return e.split(`-`)[1]}function hi(e){return e===`x`?`y`:`x`}function gi(e){return e===`y`?`height`:`width`}function X(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function _i(e){return hi(X(e))}function vi(e,t,n){n===void 0&&(n=!1);let r=mi(e),i=_i(e),a=gi(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Di(o)),[o,Di(o)]}function yi(e){let t=Di(e);return[bi(e),t,bi(t)]}function bi(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var xi=[`left`,`right`],Si=[`right`,`left`],Ci=[`top`,`bottom`],wi=[`bottom`,`top`];function Ti(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Si:xi:t?xi:Si;case`left`:case`right`:return t?Ci:wi;default:return[]}}function Ei(e,t,n,r){let i=mi(e),a=Ti(pi(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(bi)))),a}function Di(e){let t=pi(e);return ui[t]+e.slice(t.length)}function Oi(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function ki(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Oi(e)}function Ai(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ji(e,t,n){let{reference:r,floating:i}=e,a=X(t),o=_i(t),s=gi(o),c=pi(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=mi(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Mi(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=fi(t,e),p=ki(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ai(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Ai(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ni=50,Pi=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Mi},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ji(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Ni&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}
1):x.rects),{x:u,y:d}=ji(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Fi=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=fi(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=pi(r),_=X(o),v=pi(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Di(o)]:yi(o)),x=p!==`none`;!d&&x&&b.push(...Ei(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=vi(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===X(t)||T.every(e=>X(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=X(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Ii(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Li(e){return si.some(t=>e[t]>=0)}var Ri=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=fi(e,t);switch(i){case`referenceHidden`:{let e=Ii(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Li(e)}}}case`escaped`:{let e=Ii(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Li(e)}}}default:return{}}}}};function zi(e){let t=q(...e.map(e=>e.left)),n=q(...e.map(e=>e.top)),r=J(...e.map(e=>e.right)),i=J(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function Bi(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>Ai(zi(e)))}var Vi=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=fi(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=Bi(u),f=Ai(zi(u)),p=ki(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(X(n)===`y`){let e=d[0],t=d[d.length-1],r=pi(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return Ai({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=pi(n)===`left`,t=J(...d.map(e=>e.right)),r=q(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return Ai({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},Hi=new Set([`left`,`top`]);async function Ui(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=pi(n),s=mi(n),c=X(n)===`y`,l=Hi.has(o)?-1:1,u=a&&c?-1:1,d=fi(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Wi=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ui(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Gi=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=fi(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=X(i),p=hi(f),m=u[p],h=u[f],g=(e,t)=>di(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Ki=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=fi(e,t),c=await i.detectOverflow(t,s),l=pi(n),u=mi(n),d=X(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=q(p-c[m],g),y=q(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*J(c.left,c.right):S=p-2*J(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function qi(){return typeof window<`u`}function Ji(e){return Xi(e)?(e.nodeName||``).toLowerCase():`#document`}function Z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yi(e){return((Xi(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Xi(e){return qi()?e instanceof Node||e instanceof Z(e).Node:!1}function Q(e){return qi()?e instanceof Element||e instanceof Z(e).Element:!1}function Zi(e){return qi()?e instanceof HTMLElement||e instanceof Z(e).HTMLElement:!1}function Qi(e){return!qi()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot}function $i(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ea(e){return/^(table|td|th)$/.test(Ji(e))}function ta(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var na=/transform|translate|scale|rotate|perspective|filter/,ra=/paint|layout|strict|content/,ia=e=>!!e&&e!==`none`,aa;function oa(e){let t=Q(e)?$(e):e;return ia(t.transform)||ia(t.translate)||ia(t.scale)||ia(t.rotate)||ia(t.perspective)||!ca()&&(ia(t.backdropFilter)||ia(t.filter))||na.test(t.willChange||``)||ra.test(t.contain||``)}function sa(e){let t=da(e);for(;Zi(t)&&!la(t);){if(oa(t))return t;if(ta(t))return null;t=da(t)}return null}function ca(){return aa??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),aa}function la(e){return/^(html|body|#document)$/.test(Ji(e))}function $(e){return Z(e).getComputedStyle(e)}function ua(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function da(e){if(Ji(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Qi(e)&&e.host||Yi(e);return Qi(t)?t.host:t}function fa(e){let t=da(e);return la(t)?(e.ownerDocument||e).body:Zi(t)&&$i(t)?t:fa(t)}
vendor: 3,400 bytes, line 1
1function pa(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=fa(e),i=r===e.ownerDocument?.body,a=Z(r);if(i){let e=ma(a);return t.concat(a,a.visualViewport||[],$i(r)?r:[],e&&n?pa(e):[])}return t.concat(r,pa(r,[],n))}function ma(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ha(e){let t=$(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Zi(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ci(n)!==a||ci(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ga(e){return Q(e)?e:e.contextElement}function _a(e){let t=ga(e);if(!Zi(t))return Y(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ha(t),o=(a?ci(n.width):n.width)/r,s=(a?ci(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var va=Y(0);function ya(e){let t=Z(e);return!ca()||!t.visualViewport?va:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ba(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Z(e)}function xa(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ga(e),o=Y(1);t&&(r?Q(r)&&(o=_a(r)):o=_a(e));let s=ba(a,n,r)?ya(a):Y(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Z(a),t=Q(r)?Z(r):r,n=e,i=ma(n);for(;i&&t!==n;){let e=_a(i),t=i.getBoundingClientRect(),r=$(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Z(i),i=ma(n)}}return Ai({width:u,height:d,x:c,y:l})}function Sa(e,t){let n=ua(e).scrollLeft;return t?t.left+n:xa(Yi(e)).left+n}function Ca(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Sa(e,n),y:n.top+t.scrollTop}}function wa(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Yi(r),s=t?ta(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Y(1),u=Y(0),d=Zi(r);if((d||!a)&&((Ji(r)!==`body`||$i(o))&&(c=ua(r)),d)){let e=xa(r);l=_a(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ca(o,c):Y(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ta(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ea(e){let t=ua(e),n=e.ownerDocument.body,r=J(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=J(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Sa(e),o=-t.scrollTop;return $(n).direction===`rtl`&&(a+=J(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Da=25;function Oa(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Z(e),a=Yi(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!ca()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Sa(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Da&&(s-=o)}return{width:s,height:c,x:l,y:u}}function ka(e,t){let n=xa(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=_a(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Aa(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Oa(e,n,t);else if(t===`document`)r=Ea(Yi(e));
vendor: 5,135 bytes, line 1
1else if(Q(t))r=ka(t,n);else{let n=ya(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ai(r)}function ja(e,t){let n=t.get(e);if(n)return n;let r=pa(e,[],!1).filter(e=>Q(e)&&Ji(e)!==`body`),i=null,a=$(e).position===`fixed`,o=a?da(e):e;for(;Q(o)&&!la(o);){let e=$(o),t=oa(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=da(o)}return t.set(e,r),r}function Ma(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ta(t)?[]:ja(t,this._c):[].concat(n),r],o=Aa(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Aa(t,a[e],i);s=J(n.top,s),c=q(n.right,c),l=q(n.bottom,l),u=J(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Na(e){let{width:t,height:n}=ha(e);return{width:t,height:n}}function Pa(e,t,n){let r=Zi(t),i=Yi(t),a=n===`fixed`,o=xa(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Y(0);if((r||!a)&&((Ji(t)!==`body`||$i(i))&&(s=ua(t)),r)){let e=xa(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Sa(i));let l=i&&!r&&!a?Ca(i,s):Y(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Fa(e){return $(e).position===`static`}function Ia(e,t){if(!Zi(e)||$(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Yi(e)===n&&(n=n.ownerDocument.body),n}function La(e,t){let n=Z(e);if(ta(e))return n;if(!Zi(e)){let t=da(e);for(;t&&!la(t);){if(Q(t)&&!Fa(t))return t;t=da(t)}return n}let r=Ia(e,t);for(;r&&ea(r)&&Fa(r);)r=Ia(r,t);return r&&la(r)&&Fa(r)&&!oa(r)?n:r||sa(e)||n}var Ra=async function(e){let t=this.getOffsetParent||La,n=this.getDimensions,r=await n(e.floating);return{reference:Pa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function za(e){return $(e).direction===`rtl`}var Ba={convertOffsetParentRelativeRectToViewportRelativeRect:wa,getDocumentElement:Yi,getClippingRect:Ma,getOffsetParent:La,getElementRects:Ra,getClientRects:Ta,getDimensions:Na,getScale:_a,isElement:Q,isRTL:za};function Va(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ha(e,t,n){let r=null,i,a=Yi(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=li(d),h=li(a.clientWidth-(u+f)),g=li(a.clientHeight-(d+p)),_=li(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:J(0,q(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Va(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Z(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Ua(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ga(e),u=i||a?[...l?pa(l):[],...t?pa(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Ha(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?xa(e):null;c&&g();function g(){let t=xa(e);h&&!Va(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Wa=Wi,Ga=Gi,Ka=Fi,qa=Ki,Ja=Ri,Ya=Vi,Xa=(e,t,n)=>{let r=new Map,i=n??{},a={...Ba,...i.platform,_c:r};return Pi(e,t,{...i,platform:a})},Za=typeof document<`u`?k.useLayoutEffect:function(){};function Qa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Qa(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Qa(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function $a(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eo(e,t){let n=$a(e);return Math.round(t*n)/n}function to(e){let t=k.useRef(e);return Za(()=>{t.current=e}),t}function no(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=k.useState(r);Qa(f,r)||p(r);let[m,h]=k.useState(null),[g,_]=k.useState(null),v=k.useCallback(e=>
1{e!==S.current&&(S.current=e,h(e))},[]),y=k.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=k.useRef(null),C=k.useRef(null),w=k.useRef(u),T=c!=null,E=to(c),D=to(i),O=to(l),A=k.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Xa(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};ee.current&&!Qa(w.current,t)&&(w.current=t,hr.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Za(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ee=k.useRef(!1);Za(()=>(ee.current=!0,()=>{ee.current=!1}),[]),Za(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,A);A()}},[b,x,A,E,T]);let j=k.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=k.useMemo(()=>({reference:b,floating:x}),[b,x]),N=k.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=eo(M.floating,u.x),r=eo(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...$a(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return k.useMemo(()=>({...u,update:A,refs:j,elements:M,floatingStyles:N}),[u,A,j,M,N])}var ro=(e,t)=>{let n=Wa(e);return{name:n.name,fn:n.fn,options:[e,t]}},io=(e,t)=>{let n=Ga(e);return{name:n.name,fn:n.fn,options:[e,t]}},ao=(e,t)=>{let n=Ka(e);return{name:n.name,fn:n.fn,options:[e,t]}},oo=(e,t)=>{let n=qa(e);return{name:n.name,fn:n.fn,options:[e,t]}},so=(e,t)=>{let n=Ja(e);return{name:n.name,fn:n.fn,options:[e,t]}},co=(e,t)=>{let n=Ya(e);return{name:n.name,fn:n.fn,options:[e,t]}},lo=e=>(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,W.jsx)(`path`,{d:`M320-200v-560l440 280-440 280Z`})}),uo=e=>(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,W.jsx)(`path`,{d:`M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z`})}),fo=e=>(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,W.jsx)(`path`,{d:`M760-200v-160q0-50-35-85t-85-35H273l144 144-57 56-240-240 240-240 57 56-144 144h367q83 0 141.5 58.5T840-360v160h-80Z`})}),po=e=>(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,W.jsx)(`path`,{d:`M320-280 80-520l240-240 57 56-184 184 184 184-57 56Zm480 80v-160q0-50-35-85t-85-35H433l144 144-57 56-240-240 240-240 57 56-144 144h247q83 0 141.5 58.5T880-360v160h-80Z`})}),mo=e=>(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,W.jsx)(`path`,{d:`m233-120 65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Z`})}),ho=e=>(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,W.jsx)(`path`,{d:`m354-287 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-120l65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-350Z`})}),go=e=>(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,W.jsx)(`path`,{d:`m228-240 92-160q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 23-5.5 42.5T458-480L320-240h-92Zm360 0 92-160q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 23-5.5 42.5T818-480L680-240h-92Z`})}),_o=e=>(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,W.jsx)(`path`,{d:`M791-56 425-422 320-240h-92l92-160q-66 0-113-47t-47-113q0-27 8.5-51t23.5-44L56-791l56-57 736 736-57 56Zm-55-281L520-553v-7q0-66 47-113t113-47q66 0 113 47t47 113q0 23-5.5 42.5T818-480l-82 143Z`})}),vo=e=>(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,W.jsx)(`path`,{d:`M280-80 120-240l160-160 56 58-62 62h406v-160h80v240H274l62 62-56 58Zm-80-440v-240h486l-62-62 56-58 160 160-160 160-56-58 62-62H280v160h-80Z`})}),yo=e=>(0,W.jsxs)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,W.jsx)(`path`,{d:`M7 22L3 18L7 14L8.4 15.45L6.85 17H17V13H19V19H6.85L8.4 20.55L7 22ZM5 11V5H17.15L15.6 3.45L17 2L21 6L17 10L15.6 8.55L17.15 7H7V11H5Z`}),(0,W.jsx)(`path`,{d:`M9 9H15V15H9V9Z`})]}),bo=e=>(0,W.jsxs)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,W.jsx)(`path`,{d:`M19 13V17.8787L17 15.8787V13H19Z`}),(0,W.jsx)(`path`,{d:`M2.41421 2.70711L1 4.12132L5 8.12132V11H7V10.1213L13.8787 17H6.85L8.4 15.45L7 14L3 18L7 22L8.4 20.55L6.85 19H15.8787L19.3848 22.5061L20.799 21.0919L2.41421 2.70711Z`}),(0,W.jsx)(`path`,{d:`M17.15 7H8.12132L6.12132 5H17.15L15.6 3.45L17 2L21 6L17 10L15.6 8.55L17.15 7Z`})]}),xo=e=>(0,W.jsxs)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,W.jsx)(`path`,{d:`M8.4 15.45L7 14L3 18L7 22L8.4 20.55L6.85 19H13.5V18C13.5 17.6567 13.5638 17.3171 13.6988 17H6.85L8.4 15.45Z`}),(0,W.jsx)(`path`,{d:`M5 5V11H7V7H17.15L15.6 8.55L17 10L21 6L17 2L15.6 3.45L17.15 5H5Z`}),(0,W.jsx)(`path`,{d:`M16 22C15.7167 22 15.475 21.9083 15.275 21.725C15.0917 21.525 15 21.2833 15 21V18C15 17.7167 15.0917 17.4833 15.275 17.3C15.475 17.1 15.7167 17 16 17V16C16 15.45 16.1917 14.9833 16.575 14.6C16.975 14.2 17.45 14 18 14C18.55 14 19.0167 14.2 19.4 14.6C19.8 14.9833 20 15.45 20 16V17C20.2833 17 20.5167 17.1 20.7 17.3C20.9 17.4833 21 17.7167 21 18V21C21 21.2833 20.9 21.525 20.7 21.725C20.5167 21.9083 20.2833 22 20 22H16ZM17 17H19V16C19 15.7167 18.9 15.4833 18.7 15.3C18.5167 15.1 18.2833 15 18 15C17.7167 15 17.475 15.1 17.275 15.3C17.0917 15.4833 17 15.7167 17 16V17Z`})]}),So=e=>(0,W.jsxs)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,W.jsx)(`path`,{d:`M8.4 15.45L7 14L3 18L7 22L8.4 20.55L6.85 19H13.5V18C13.5 17.6567 13.5638 17.3171 13.6988 17H6.85L8.4 15.45Z`}),(0,W.jsx)(`path`,{d:`M15 14.1883C14.8435 14.443 14.7232 14.7147 14.6398 15H9V9H15V14.1883Z`}),(0,W.jsx)(`path`,{d:`M5 5V11H7V7H17.15L15.6 8.55L17 10L21 6L17 2L15.6 3.45L17.15 5H5Z`}),(0,W.jsx)(`path`,{d:`M16 22C15.7167 22 15.475 21.9083 15.275 21.725C15.0917 21.525 15 21.2833 15 21V18C15 17.7167 15.0917 17.4833 15.275 17.3C15.475 17.1 15.7167 17 16 17V16C16 15.45 16.1917 14.9833 16.575 14.6C16.975 14.2 17.45 14 18 14C18.55 14 19.0167 14.2 19.4 14.6C19.8 14.9833 20 15.45 20 16V17C20.2833 17 20.5167 17.1 20.7 17.3C20.9 17.4833 21 17.7167 21 18V21C21 21.2833 20.9 21.525 20.7 21.725C20.5167 21.9083 20.2833 22 20 22H16ZM17 17H19V16C19 15.7167 18.9 15.4833 18.7 15.3C18.5167 15.1 18.2833 15 18 15C17.7167 15 17.475 15.1 17.275 15.3C17.0917 15.4833 17 15.7167 17 16V17Z`})]}),Co=e=>(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,W.jsx)(`path`,{d:`M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z`})}),wo=n(((t,n)=>{var r=(o(),e(s)),i=`<<anonymous>>`,a,c=function(){invariant(!1,`ImmutablePropTypes type checking code is stripped in production.`)};c.isRequired=c;var l=function(){return c};a={listOf:l,mapOf:l,orderedMapOf:l,setOf:l,orderedSetOf:l,stackOf:l,iterableOf:l,recordOf:l,shape:l,contains:l,mapContains:l,orderedMapContains:l,list:c,map:c,orderedMap:c,set:c,orderedSet:c,stack:c,seq:c,record:c,iterable:c},a.iterable.indexed=p(`Indexed`,r.Iterable.isIndexed),a.iterable.keyed=p(`Keyed`,r.Iterable.isKeyed);function u(e){var t=typeof e;return Array.isArray(e)?`array`:e instanceof RegExp?`object`:e instanceof r.Iterable?`Immutable.`+e.toSource().split(` `)[0]:t}function d(e){function t(t,n,r,a,o,s){var c=[...arguments].slice(6);if(s||=r,a||=i,n[r]==null){var l=o;if(t)return Error(`Required `+l+" `"+s+"` was not specified in "+("`"+a+"`."))}else return e.apply(void 0,[n,r,a,o,s].concat(c))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function f(e,t){function n(n,r,i,a,o){var s=n[r];if(!t(s)){var c=u(s);return Error(`Invalid `+a+" `"+o+"` of type `"+c+"` "+("supplied to `"+i+"`, expected `"+e+"`."))}return null}return d(n)}function p(e,t){return f(`Iterable.`+e,function(e){return r.Iterable.isIterable(e)&&t(e)})}n.exports=a})),To=e=>(0,W.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,W.jsx)(`path`,{d:`M320-240h320v-80H320v80Zm0-160h320v-80H320v80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520h200L520-800v200Z`})}),Eo=`/packs/assets/logo-CMOH1sc4.svg`;export{Mr as A,oo as C,ai as D,oi as E,sr as F,I,dn as M,mr as N,Pr as O,or as P,io as S,Ua as T,lo as _,S
1o as a,co as b,yo as c,go as d,ho as f,uo as g,fo as h,Co as i,jr as j,Nr as k,vo as l,po as m,To as n,xo as o,mo as p,wo as r,bo as s,Eo as t,_o as u,ao as v,no as w,ro as x,so as y}; 2//# sourceMappingURL=logo-BuygaKrO.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.