From 9ce1809a45547415927db981f448240cddb22c3e Mon Sep 17 00:00:00 2001 From: MrWangJustToDo Date: Tue, 14 Jan 2025 09:40:35 +0000 Subject: [PATCH] deploy: 2931a7b1eef8d563856614401dbb380b9687ac1a --- 404.html | 2 +- ...96abc608bc8.js => 425-13d5781a971325a5.js} | 2 +- ...8d88f862e57.js => 679-8bb6375bc219038c.js} | 2 +- .../chunks/pages/_app-4c49463b85ca590e.js | 10 ------ .../chunks/pages/_app-68e7790044220623.js | 10 ++++++ .../chunks/pages/bridge-b71b18e1f5beff7c.js | 1 + .../chunks/pages/index-4e89f5089f13e7f4.js | 1 + .../chunks/pages/index-bbddece009a94be7.js | 1 - ...5f33cf4.js => webpack-fa42c012c47fec19.js} | 2 +- .../edNHoda_i-5mqiEYFkZsq/_buildManifest.js | 1 - .../harCOVmdHCwZcKi-1S8fD/_buildManifest.js | 1 + .../_ssgManifest.js | 0 bridge.html | 1 + bundle/detector.js | 1 + bundle/hook.js | 34 ++++++++++--------- bundle/panel.js | 1 + bundle/proxy.js | 1 + bundle/service-worker.js | 1 + devTool.html | 2 +- disablePopup.html | 2 +- enablePopup.html | 2 +- index.html | 2 +- 22 files changed, 44 insertions(+), 36 deletions(-) rename _next/static/chunks/{425-4c82996abc608bc8.js => 425-13d5781a971325a5.js} (99%) rename _next/static/chunks/{679-843178d88f862e57.js => 679-8bb6375bc219038c.js} (99%) delete mode 100644 _next/static/chunks/pages/_app-4c49463b85ca590e.js create mode 100644 _next/static/chunks/pages/_app-68e7790044220623.js create mode 100644 _next/static/chunks/pages/bridge-b71b18e1f5beff7c.js create mode 100644 _next/static/chunks/pages/index-4e89f5089f13e7f4.js delete mode 100644 _next/static/chunks/pages/index-bbddece009a94be7.js rename _next/static/chunks/{webpack-e8760bc9f5f33cf4.js => webpack-fa42c012c47fec19.js} (96%) delete mode 100644 _next/static/edNHoda_i-5mqiEYFkZsq/_buildManifest.js create mode 100644 _next/static/harCOVmdHCwZcKi-1S8fD/_buildManifest.js rename _next/static/{edNHoda_i-5mqiEYFkZsq => harCOVmdHCwZcKi-1S8fD}/_ssgManifest.js (100%) create mode 100644 bridge.html diff --git a/404.html b/404.html index 71b02c6..b03bf41 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/_next/static/chunks/425-4c82996abc608bc8.js b/_next/static/chunks/425-13d5781a971325a5.js similarity index 99% rename from _next/static/chunks/425-4c82996abc608bc8.js rename to _next/static/chunks/425-13d5781a971325a5.js index ff2f7b8..edcca21 100644 --- a/_next/static/chunks/425-4c82996abc608bc8.js +++ b/_next/static/chunks/425-13d5781a971325a5.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[425],{2296:function(t,e,n){n.d(e,{v:function(){return tK}});var i=n(559),r=n(1389);let s={type:"spring",stiffness:500,damping:25,restSpeed:10},a=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),o={type:"keyframes",duration:.8},l={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},u=(t,{keyframes:e})=>e.length>2?o:r.G.has(t)?t.startsWith("scale")?a(e[1]):s:l;var h=n(692),d=n(3376);let c={current:!1},p=t=>null!==t;function f(t,{repeat:e,repeatType:n="loop"},i){let r=t.filter(p),s=e&&"loop"!==n&&e%2==1?0:r.length-1;return s&&void 0!==i?i:r[s]}var m=n(1282),v=n(8263);let g=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function y(t,e,n,i){if(t===e&&n===i)return v.Z;let r=e=>(function(t,e,n,i,r){let s,a;let o=0;do(s=g(a=e+(n-e)/2,i,r)-t)>0?n=a:e=a;while(Math.abs(s)>1e-7&&++o<12);return a})(e,0,1,t,n);return t=>0===t||1===t?t:g(r(t),e,i)}var b=n(9382),w=n(1458);let A=y(.33,1.53,.69,.99),S=(0,w.M)(A),x=(0,b.o)(S),T=t=>(t*=2)<1?.5*S(t):.5*(2-Math.pow(2,-10*(t-1)));var V=n(6987),P=n(818);function M(t){return"function"==typeof t}var C=n(9805),E=n(7564),F=n(1257),k=n(4538);let D=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(k.P.test(t)||"0"===t)&&!t.startsWith("url("));class ${constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=C.X.now(),this.options={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:r,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,E.m)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=C.X.now(),this.hasAttemptedResolve=!0;let{name:n,type:i,velocity:r,delay:s,onComplete:a,onUpdate:o,isGenerator:l}=this.options;if(!l&&!function(t,e,n,i){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],a=D(r,e),o=D(s,e);return(0,F.K)(a===o,`You are trying to animate ${e} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}var I=n(3828);let O=(t,e,n=10)=>{let i="",r=Math.max(Math.round(e/n),2);for(let e=0;e=2e4?1/0:e}let W=["duration","bounce"],j=["stiffness","damping","mass"];function z(t,e){return e.some(e=>void 0!==t[e])}function U(t=L.visualDuration,e=L.bounce){let n;let r="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:a}=r,o=r.keyframes[0],l=r.keyframes[r.keyframes.length-1],u={done:!1,value:o},{stiffness:h,damping:d,mass:c,duration:p,velocity:f,isResolvedFromDuration:m}=function(t){let e={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...t};if(!z(t,j)&&z(t,W)){if(t.visualDuration){let n=2*Math.PI/(1.2*t.visualDuration),i=n*n,r=2*(0,K.u)(.05,1,1-t.bounce)*Math.sqrt(i);e={...e,mass:L.mass,stiffness:i,damping:r}}else{let n=function({duration:t=L.duration,bounce:e=L.bounce,velocity:n=L.velocity,mass:r=L.mass}){let s,a;(0,F.K)(t<=(0,i.w)(L.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=(0,K.u)(L.minDamping,L.maxDamping,o),t=(0,K.u)(L.minDuration,L.maxDuration,(0,i.X)(t)),o<1?(s=e=>{let i=e*o,r=i*t;return .001-(i-n)/X(e,o)*Math.exp(-r)},a=e=>{let i=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=X(Math.pow(e,2),o);return(i*n+n-r)*Math.exp(-i)*(-s(e)+.001>0?-1:1)/a}):(s=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),a=e=>t*t*(n-e)*Math.exp(-e*t));let l=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(s,a,5/t);if(t=(0,i.w)(t),isNaN(l))return{stiffness:L.stiffness,damping:L.damping,duration:t};{let e=Math.pow(l,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...n,mass:L.mass}).isResolvedFromDuration=!0}}return e}({...r,velocity:-(0,i.X)(r.velocity||0)}),v=f||0,g=d/(2*Math.sqrt(h*c)),y=l-o,b=(0,i.X)(Math.sqrt(h/c)),w=5>Math.abs(y);if(s||(s=w?L.restSpeed.granular:L.restSpeed.default),a||(a=w?L.restDelta.granular:L.restDelta.default),g<1){let t=X(b,g);n=e=>l-Math.exp(-g*b*e)*((v+g*b*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)n=t=>l-Math.exp(-b*t)*(y+(v+b*y)*t);else{let t=b*Math.sqrt(g*g-1);n=e=>{let n=Math.exp(-g*b*e),i=Math.min(t*e,300);return l-n*((v+g*b*y)*Math.sinh(i)+t*y*Math.cosh(i))/t}}let A={calculatedDuration:m&&p||null,next:t=>{let e=n(t);if(m)u.done=t>=p;else{let r=0;g<1&&(r=0===t?(0,i.w)(v):N(n,t,e));let o=Math.abs(r)<=s,h=Math.abs(l-e)<=a;u.done=o&&h}return u.value=u.done?l:e,u},toString:()=>{let t=Math.min(B(A),2e4),e=O(e=>A.next(t*e).value,t,30);return t+"ms "+e}};return A}function q({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let d,c;let p=t[0],f={done:!1,value:p},m=t=>void 0!==o&&tl,v=t=>void 0===o?l:void 0===l?o:Math.abs(o-t)-g*Math.exp(-t/i),A=t=>b+w(t),S=t=>{let e=w(t),n=A(t);f.done=Math.abs(e)<=u,f.value=f.done?b:n},x=t=>{m(f.value)&&(d=t,c=U({keyframes:[f.value,v(f.value)],velocity:N(A,t,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return x(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,S(t),x(t)),void 0!==d&&t>=d)?c.next(t-d):(e||S(t),f)}}}let Y=y(.42,0,1,1),_=y(0,0,.58,1),G=y(.42,0,.58,1),J=t=>Array.isArray(t)&&"number"!=typeof t[0],H=t=>Array.isArray(t)&&"number"==typeof t[0],Z={linear:v.Z,easeIn:Y,easeInOut:G,easeOut:_,circIn:V.Z7,circInOut:V.X7,circOut:V.Bn,backIn:S,backInOut:x,backOut:A,anticipate:T},Q=t=>{if(H(t)){(0,F.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,n,i,r]=t;return y(e,n,i,r)}return"string"==typeof t?((0,F.k)(void 0!==Z[t],`Invalid easing type '${t}'`),Z[t]):t};var tt=n(8814),te=n(519);function tn(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var ti=n(1008),tr=n(2165),ts=n(9242);function ta(t,e){return n=>n>0?e:t}let to=(t,e,n)=>{let i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},tl=[ti.$,tr.m,ts.J],tu=t=>tl.find(e=>e.test(t));function th(t){let e=tu(t);if((0,F.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===ts.J&&(n=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let r=0,s=0,a=0;if(e/=100){let i=n<.5?n*(1+e):n+e-n*e,o=2*n-i;r=tn(o,i,t+1/3),s=tn(o,i,t),a=tn(o,i,t-1/3)}else r=s=a=n;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*a),alpha:i}}(n)),n}let td=(t,e)=>{let n=th(t),i=th(e);if(!n||!i)return ta(t,e);let r={...n};return t=>(r.red=to(n.red,i.red,t),r.green=to(n.green,i.green,t),r.blue=to(n.blue,i.blue,t),r.alpha=(0,te.t)(n.alpha,i.alpha,t),tr.m.transform(r))};var tc=n(9392),tp=n(6849);let tf=new Set(["none","hidden"]);function tm(t,e){return n=>(0,te.t)(t,e,n)}function tv(t){return"number"==typeof t?tm:"string"==typeof t?(0,tp.t)(t)?ta:tc.$.test(t)?td:tb:Array.isArray(t)?tg:"object"==typeof t?tc.$.test(t)?td:ty:ta}function tg(t,e){let n=[...t],i=n.length,r=t.map((t,n)=>tv(t)(t,e[n]));return t=>{for(let e=0;e{for(let e in i)n[e]=i[e](t);return n}}let tb=(t,e)=>{let n=k.P.createTransformer(e),i=(0,k.V)(t),r=(0,k.V)(e);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?tf.has(t)&&!r.values.length||tf.has(e)&&!i.values.length?tf.has(t)?n=>n<=0?t:e:n=>n>=1?e:t:(0,tt.z)(tg(function(t,e){var n;let i=[],r={color:0,var:0,number:0};for(let s=0;se[0];if(2===s&&t[0]===t[1])return()=>e[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,n){let i=[],r=n||tw,s=t.length-1;for(let n=0;n{let n=0;if(o>1)for(;nl((0,K.u)(t[0],t[s-1],e)):l}((n&&n.length===e.length?n:function(t){let e=[0];return function(t,e){let n=t[t.length-1];for(let i=1;i<=e;i++){let r=(0,I.Y)(0,e,i);t.push((0,te.t)(n,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||G).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}let tS=t=>{let e=({timestamp:e})=>t(e);return{start:()=>m.Wi.update(e,!0),stop:()=>(0,m.Pn)(e),now:()=>m.frameData.isProcessing?m.frameData.timestamp:C.X.now()}},tx={decay:q,inertia:q,tween:tA,keyframes:tA,spring:U},tT=t=>t/100;class tV extends ${constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:n,element:i,keyframes:r}=this.options,s=(null==i?void 0:i.KeyframeResolver)||E.e;this.resolver=new s(r,(t,e)=>this.onKeyframesResolved(t,e),e,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,n;let{type:i="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:a,velocity:o=0}=this.options,l=M(i)?i:tx[i]||tA;l!==tA&&"number"!=typeof t[0]&&(e=(0,tt.z)(tT,tw(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===a&&(n=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=B(u));let{calculatedDuration:h}=u,d=h+s;return{generator:u,mirroredGenerator:n,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:d,totalDuration:d*(r+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:n}=this;if(!n){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:i,generator:r,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:o,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=n;if(null===this.startTime)return r.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:m,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let b=this.currentTime,w=r;if(c){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(n=1-n,m&&(n-=m/h)):"mirror"===p&&(w=s)),b=(0,K.u)(0,1,n)*h}let A=y?{done:!1,value:o[0]}:w.next(b);a&&(A.value=a(A.value));let{done:S}=A;y||null===l||(S=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return x&&void 0!==i&&(A.value=f(o,this.options,i)),v&&v(A.value),x&&this.finish(),A}get duration(){let{resolved:t}=this;return t?(0,i.X)(t.calculatedDuration):0}get time(){return(0,i.X)(this.currentTime)}set time(t){t=(0,i.w)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,i.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=tS,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let tP=new Set(["opacity","clipPath","filter","transform"]);function tM(t){let e;return()=>(void 0===e&&(e=t()),e)}let tC={linearEasing:void 0},tE=function(t,e){let n=tM(t);return()=>{var t;return null!==(t=tC[e])&&void 0!==t?t:n()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),tF=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,tk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tF([0,.65,.55,1]),circOut:tF([.55,0,1,.45]),backIn:tF([.31,.01,.66,-.59]),backOut:tF([.33,1.53,.69,.99])};function tD(t,e){t.timeline=e,t.onfinish=null}let t$=tM(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tI={anticipate:T,backInOut:x,circInOut:V.X7};class tO extends ${constructor(t){super(t);let{name:e,motionValue:n,element:i,keyframes:r}=this.options;this.resolver=new P.s(r,(t,e)=>this.onKeyframesResolved(t,e),e,n,i),this.resolver.scheduleResolve()}initPlayback(t,e){var n,i;let{duration:r=300,times:s,ease:a,type:o,motionValue:l,name:u,startTime:h}=this.options;if(!(null===(n=l.owner)||void 0===n?void 0:n.current))return!1;if("string"==typeof a&&tE()&&a in tI&&(a=tI[a]),M((i=this.options).type)||"spring"===i.type||!function t(e){return!!("function"==typeof e&&tE()||!e||"string"==typeof e&&(e in tk||tE())||H(e)||Array.isArray(e)&&e.every(t))}(i.ease)){let{onComplete:e,onUpdate:n,motionValue:i,element:l,...u}=this.options,h=function(t,e){let n=new tV({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:t[0]},r=[],s=0;for(;!i.done&&s<2e4;)r.push((i=n.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),r=h.duration,s=h.times,a=h.ease,o="keyframes"}let d=function(t,e,n,{delay:i=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:o="easeInOut",times:l}={}){let u={[e]:n};l&&(u.offset=l);let h=function t(e,n){if(e)return"function"==typeof e&&tE()?O(e,n):H(e)?tF(e):Array.isArray(e)?e.map(e=>t(e,n)||tk.easeOut):tk[e]}(o,r);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:i,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:a});return d.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?(tD(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:n}=this.options;l.set(f(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:o,ease:a,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,i.X)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,i.X)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:n}=e;n.currentTime=(0,i.w)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:n}=e;n.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return v.Z;let{animation:n}=e;tD(n,t)}else this.pendingTimeline=t;return v.Z}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:n,duration:r,type:s,ease:a,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:l,element:u,...h}=this.options,d=new tV({...h,keyframes:n,duration:r,type:s,ease:a,times:o,isGenerator:!0}),c=(0,i.w)(this.time);t.setWithVelocity(d.sample(c-10).value,d.sample(c).value,10)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:n,repeatDelay:i,repeatType:r,damping:s,type:a}=t;return t$()&&n&&tP.has(n)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!i&&"mirror"!==r&&0!==s&&"inertia"!==a}}let tR=tM(()=>void 0!==window.ScrollTimeline);class tN{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;ntR()&&n.attachTimeline?n.attachTimeline(t):e(n));return()=>{n.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;ee[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let tK=(t,e,n,r={},s,a)=>o=>{let l=(0,h.e)(r,t)||{},p=l.delay||r.delay||0,{elapsed:v=0}=r;v-=(0,i.w)(p);let g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-v,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:a?void 0:s};!function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(l)&&(g={...g,...u(t,g)}),g.duration&&(g.duration=(0,i.w)(g.duration)),g.repeatDelay&&(g.repeatDelay=(0,i.w)(g.repeatDelay)),void 0!==g.from&&(g.keyframes[0]=g.from);let y=!1;if(!1!==g.type&&(0!==g.duration||g.repeatDelay)||(g.duration=0,0!==g.delay||(y=!0)),(c.current||d.c.skipAnimations)&&(y=!0,g.duration=0,g.delay=0),y&&!a&&void 0!==e.get()){let t=f(g.keyframes,l);if(void 0!==t)return m.Wi.update(()=>{g.onUpdate(t),g.onComplete()}),new tN([])}return!a&&tO.supports(g)?new tO(g):new tV(g)}},2557:function(t,e,n){n.d(e,{s:function(){return r}});var i=n(3276);function r(t){return t.props[i.M]}},692:function(t,e,n){n.d(e,{e:function(){return i}});function i(t,e){return t?t[e]||t.default||t:void 0}},6987:function(t,e,n){n.d(e,{Bn:function(){return a},X7:function(){return o},Z7:function(){return s}});var i=n(9382),r=n(1458);let s=t=>1-Math.sin(Math.acos(t)),a=(0,r.M)(s),o=(0,i.o)(s)},9382:function(t,e,n){n.d(e,{o:function(){return i}});let i=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},1458:function(t,e,n){n.d(e,{M:function(){return i}});let i=t=>e=>1-t(1-e)},2623:function(t,e,n){n.d(e,{E:function(){return i}});function i(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}},9337:function(t,e,n){n.d(e,{Q:function(){return r},s:function(){return s}});var i=n(9835);function r(t){return{point:{x:t.pageX,y:t.pageY}}}let s=t=>e=>(0,i.DJ)(e)&&t(e,r(e))},9805:function(t,e,n){let i;n.d(e,{X:function(){return o}});var r=n(3376),s=n(1282);function a(){i=void 0}let o={now:()=>(void 0===i&&o.set(s.frameData.isProcessing||r.c.useManualTiming?s.frameData.timestamp:performance.now()),i),set:t=>{i=t,queueMicrotask(a)}}},400:function(t,e,n){n.d(e,{L:function(){return i}});class i{constructor(t){this.isMounted=!1,this.node=t}update(){}}},1073:function(t,e,n){n.d(e,{s:function(){return F}});var i=n(5150),r=n(3666);function s(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let i=0;i{g.Wi.update(()=>{o&&function(t,e){let{transitionEnd:n={},transition:i={},...r}=l(t,e)||{};for(let e in r={...r,...n}){let n=(0,c.Y)(r[e]);t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,p.BX)(n))}}(t,o)})}),y}function b(t,e,n={}){var i;let r=l(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);let a=r?()=>Promise.all(y(t,r,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(i=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;return function(t,e,n=0,i=0,r=1,s){let a=[],o=(t.variantChildren.size-1)*i,l=1===r?(t=0)=>t*i:(t=0)=>o-t*i;return Array.from(t.variantChildren).sort(w).forEach((t,i)=>{t.notify("AnimationStart",e),a.push(b(t,e,{...s,delay:n+l(i)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(a)}(t,e,r+i,a,o,n)}:()=>Promise.resolve(),{when:u}=s;if(!u)return Promise.all([a(),o(n.delay)]);{let[t,e]="beforeChildren"===u?[a,o]:[o,a];return t().then(()=>e())}}function w(t,e){return t.sortNodePosition(e)}let A=u.V.length,S=[...u.e].reverse(),x=u.e.length;function T(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function V(){return{animate:T(!0),whileInView:T(),whileHover:T(),whileTap:T(),whileDrag:T(),whileFocus:T(),exit:T()}}var P=n(400);class M extends P.L{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>b(t,e,n)));else if("string"==typeof e)i=b(t,e,n);else{let r="function"==typeof e?l(t,e,n.custom):e;i=Promise.all(y(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})})(t,e,n))),n=V(),o=!0,h=e=>(n,i)=>{var r;let s=l(t,i,"exit"===e?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...i}=s;n={...n,...i,...e}}return n};function d(l){let{props:d}=t,c=function t(e){if(!e)return;if(!e.isControllingVariants){let n=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(n.initial=e.props.initial),n}let n={};for(let t=0;tv&&w,P=!1,M=Array.isArray(b)?b:[b],C=M.reduce(h(u),{});!1===A&&(C={});let{prevResolvedValues:E={}}=y,F={...E,...C},k=e=>{V=!0,f.has(e)&&(P=!0,f.delete(e)),y.needsAnimating[e]=!0;let n=t.getValue(e);n&&(n.liveStyle=!1)};for(let t in F){let e=C[t],n=E[t];if(!m.hasOwnProperty(t))((0,r.C)(e)&&(0,r.C)(n)?s(e,n):e===n)?void 0!==e&&f.has(t)?k(t):y.protectedKeys[t]=!0:null!=e?k(t):f.add(t)}y.prevProp=b,y.prevResolvedValues=C,y.isActive&&(m={...m,...C}),o&&t.blockInitialAnimation&&(V=!1);let D=!(x&&T)||P;V&&D&&p.push(...M.map(t=>({animation:t,options:{type:u}})))}if(f.size){let e={};f.forEach(n=>{let i=t.getBaseTarget(n),r=t.getValue(n);r&&(r.liveStyle=!0),e[n]=null!=i?i:null}),p.push({animation:e})}let y=!!p.length;return o&&(!1===d.initial||d.initial===d.animate)&&!t.manuallyAnimateOnMount&&(y=!1),o=!1,y?e(p):Promise.resolve()}return{animateChanges:d,setActive:function(e,i){var r;if(n[e].isActive===i)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)}),n[e].isActive=i;let s=d(e);for(let t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=V(),o=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,i.H)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let C=0;class E extends P.L{constructor(){super(...arguments),this.id=C++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let F={animation:{Feature:M},exit:{Feature:E}}},5985:function(t,e,n){n.d(e,{E:function(){return w}});var i=n(400),r=n(9835),s=n(9337),a=n(1282);function o(t,e,n){let{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);let r=i["onHover"+n];r&&a.Wi.postRender(()=>r(e,(0,s.Q)(e)))}class l extends i.L{mount(){let{current:t}=this.node;t&&(this.unmount=(0,r.Mr)(t,t=>(o(this.node,t,"Start"),t=>o(this.node,t,"End"))))}unmount(){}}var u=n(2623),h=n(8814);class d extends i.L{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,h.z)((0,u.E)(this.node.current,"focus",()=>this.onFocus()),(0,u.E)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function c(t,e,n){let{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);let r=i["onTap"+("End"===n?"":n)];r&&a.Wi.postRender(()=>r(e,(0,s.Q)(e)))}class p extends i.L{mount(){let{current:t}=this.node;t&&(this.unmount=(0,r.OD)(t,t=>(c(this.node,t,"Start"),(t,{success:e})=>c(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let f=new WeakMap,m=new WeakMap,v=t=>{let e=f.get(t.target);e&&e(t)},g=t=>{t.forEach(v)},y={some:0,all:1};class b extends i.L{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:y[i]};return function(t,e,n){let i=function({root:t,...e}){let n=t||document;m.has(n)||m.set(n,{});let i=m.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(g,{root:t,...e})),i[r]}(e);return f.set(t,n),i.observe(t),()=>{f.delete(t),i.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),s=e?n:i;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}let w={inView:{Feature:b},tap:{Feature:p},focus:{Feature:d},hover:{Feature:l}}},4637:function(t,e,n){function i({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}n.d(e,{d7:function(){return s},i8:function(){return i},z2:function(){return r}})},4056:function(t,e,n){n.d(e,{D2:function(){return c},YY:function(){return u},am:function(){return h},o2:function(){return l},q2:function(){return s}});var i=n(519),r=n(7160);function s(t,e,n){return n+e*(t-n)}function a(t,e,n,i,r){return void 0!==r&&(t=i+r*(t-i)),i+n*(t-i)+e}function o(t,e=0,n=1,i,r){t.min=a(t.min,e,n,i,r),t.max=a(t.max,e,n,i,r)}function l(t,{x:e,y:n}){o(t.x,e.translate,e.scale,e.originPoint),o(t.y,n.translate,n.scale,n.originPoint)}function u(t,e,n,i=!1){let s,a;let o=n.length;if(o){e.x=e.y=1;for(let u=0;u.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function h(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,n,r,s=.5){let a=(0,i.t)(t.min,t.max,s);o(t,e,n,a,r)}function c(t,e){d(t.x,e.x,e.scaleX,e.scale,e.originX),d(t.y,e.y,e.scaleY,e.scale,e.originY)}},830:function(t,e,n){n.d(e,{dO:function(){return a},wc:function(){return r}});let i=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:i(),y:i()}),s=()=>({min:0,max:0}),a=()=>({x:s(),y:s()})},7160:function(t,e,n){function i(t){return void 0===t||1===t}function r({scale:t,scaleX:e,scaleY:n}){return!i(t)||!i(e)||!i(n)}function s(t){return r(t)||a(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function a(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}n.d(e,{D_:function(){return a},Lj:function(){return r},ud:function(){return s}})},8289:function(t,e,n){n.d(e,{J:function(){return s},z:function(){return a}});var i=n(4637),r=n(4056);function s(t,e){return(0,i.i8)((0,i.d7)(t.getBoundingClientRect(),e))}function a(t,e,n){let i=s(t,n),{scroll:a}=e;return a&&((0,r.am)(i.x,a.offset.x),(0,r.am)(i.y,a.offset.y)),i}},818:function(t,e,n){n.d(e,{s:function(){return f}});var i=n(1070),r=n(1257),s=n(1018),a=n(6849);let o=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var l=n(584),u=n(1622),h=n(7564),d=n(4538),c=n(8280);let p=new Set(["auto","none","0"]);class f extends h.e{constructor(t,e,n,i,r){super(t,e,n,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}},5315:function(t,e,n){n.d(e,{b:function(){return Y}});var i=n(9589),r=n(7436),s=n(6849),a=n(1389),o=n(1310),l=n(3676),u=n(6269),h=n(8289),d=n(5866);let c={current:null},p={current:!1};var f=n(3157),m=n(8923),v=n(9596),g=n(1574),y=n(9174),b=n(3971);let w=new WeakMap;var A=n(7564),S=n(1018),x=n(1070),T=n(9392),V=n(4538),P=n(1622),M=n(8559);let C=[...P.$,T.$,V.P],E=t=>C.find((0,M.l)(t));var F=n(8280),k=n(830),D=n(9805),$=n(1282);let I=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class O{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=A.e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=D.X.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),p.current||function(){if(p.current=!0,d.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>c.current=t.matches;t.addListener(e),e()}else c.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||c.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in w.delete(this.current),this.projection&&this.projection.unmount(),(0,$.Pn)(this.notifyUpdate),(0,$.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let n;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let i=a.G.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&$.Wi.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),n&&n(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in b.featureDefinitions){let e=b.featureDefinitions[t];if(!e)continue;let{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,k.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){let n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=(0,m.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let i=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&((0,S.P)(i)||(0,x.W)(i))?i=parseFloat(i):!E(i)&&V.P.test(e)&&(i=(0,F.T)(t,e)),this.setBaseTarget(t,(0,v.i)(i)?i.get():i)),(0,v.i)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let n;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let r=(0,y.o)(this.props,i,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(n=r[t])}if(i&&void 0!==n)return n;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,v.i)(r)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new f.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}var R=n(818);class N extends O{constructor(){super(...arguments),this.KeyframeResolver=R.s}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,v.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class K extends N{constructor(){super(...arguments),this.type="html",this.renderInstance=l.N}readValueFromInstance(t,e){if(a.G.has(e)){let t=(0,u.A)(e);return t&&t.default||0}{let n=window.getComputedStyle(t),i=((0,s.f)(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,h.J)(t,e)}build(t,e,n){(0,r.r)(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return(0,o.U)(t,e,n)}}var L=n(5603),X=n(889),B=n(26),W=n(5030),j=n(6745),z=n(1176);class U extends N{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=k.dO}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(a.G.has(e)){let t=(0,u.A)(e);return t&&t.default||0}return e=W.s.has(e)?e:(0,B.D)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return(0,L.U)(t,e,n)}build(t,e,n){(0,X.i)(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,i){(0,j.K)(t,e,n,i)}mount(t){this.isSVGTag=(0,z.a)(t.tagName),super.mount(t)}}var q=n(8316);let Y=(t,e)=>(0,q.q)(t)?new U(e):new K(e,{allowProjection:t!==i.Fragment})},584:function(t,e,n){n.d(e,{Ei:function(){return c},lw:function(){return p},mP:function(){return o},z2:function(){return a}});var i=n(1389),r=n(8813),s=n(6167);let a=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),o=t=>t===r.Rx||t===s.px,l=(t,e)=>parseFloat(t.split(", ")[e]),u=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;let r=i.match(/^matrix3d\((.+)\)$/u);if(r)return l(r[1],e);{let e=i.match(/^matrix\((.+)\)$/u);return e?l(e[1],t):0}},h=new Set(["x","y","z"]),d=i._.filter(t=>!h.has(t));function c(t){let e=[];return d.forEach(n=>{let i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}let p={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:u(4,13),y:u(5,14)};p.translateX=p.x,p.translateY=p.y},8280:function(t,e,n){n.d(e,{T:function(){return a}});var i=n(4538),r=n(8781),s=n(6269);function a(t,e){let n=(0,s.A)(t);return n!==r.h&&(n=i.P),n.getAnimatableNone?n.getAnimatableNone(e):void 0}},6269:function(t,e,n){n.d(e,{A:function(){return a}});var i=n(9392),r=n(8781);let s={...n(8188).j,color:i.$,backgroundColor:i.$,outlineColor:i.$,fill:i.$,stroke:i.$,borderColor:i.$,borderTopColor:i.$,borderRightColor:i.$,borderBottomColor:i.$,borderLeftColor:i.$,filter:r.h,WebkitFilter:r.h},a=t=>s[t]},1622:function(t,e,n){n.d(e,{$:function(){return a},C:function(){return o}});var i=n(8813),r=n(6167),s=n(8559);let a=[i.Rx,r.px,r.aQ,r.RW,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],o=t=>a.find((0,s.l)(t))},8559:function(t,e,n){n.d(e,{l:function(){return i}});let i=t=>e=>e.test(t)},7564:function(t,e,n){n.d(e,{e:function(){return d},m:function(){return h}});var i=n(584),r=n(1282);let s=new Set,a=!1,o=!1;function l(){if(o){let t=Array.from(s).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{let e=(0,i.Ei)(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=n.get(t);e&&e.forEach(([e,n])=>{var i;null===(i=t.getValue(e))||void 0===i||i.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}o=!1,a=!1,s.forEach(t=>t.complete()),s.clear()}function u(){s.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(o=!0)})}function h(){u(),l()}class d{constructor(t,e,n,i,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(s.add(this),a||(a=!0,r.Wi.read(u),r.Wi.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;for(let r=0;r-1&&t.splice(n,1)}n.d(e,{cl:function(){return r},y4:function(){return i}})},1018:function(t,e,n){n.d(e,{P:function(){return i}});let i=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},1070:function(t,e,n){n.d(e,{W:function(){return i}});let i=t=>/^0[^.\s]+$/u.test(t)},519:function(t,e,n){n.d(e,{t:function(){return i}});let i=(t,e,n)=>t+(e-t)*n},8814:function(t,e,n){n.d(e,{z:function(){return r}});let i=(t,e)=>n=>e(t(n)),r=(...t)=>t.reduce(i)},3828:function(t,e,n){n.d(e,{Y:function(){return i}});let i=(t,e,n)=>{let i=e-t;return 0===i?1:(n-t)/i}},3157:function(t,e,n){n.d(e,{L:function(){return r}});var i=n(8222);class r{constructor(){this.subscriptions=[]}add(t){return(0,i.y4)(this.subscriptions,t),()=>(0,i.cl)(this.subscriptions,t)}notify(t,e,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](t,e,n);else for(let r=0;r1e3*t,r=t=>t/1e3},1974:function(t,e,n){n.d(e,{R:function(){return i}});function i(t,e){return e?1e3/e*t:0}},8923:function(t,e,n){n.d(e,{BX:function(){return h}});var i=n(3157),r=n(1974),s=n(9805),a=n(1282);let o=t=>!isNaN(parseFloat(t)),l={current:void 0};class u{constructor(t,e={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let n=s.X.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=s.X.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=o(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new i.L);let n=this.events[t].add(e);return"change"===t?()=>{n(),a.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=s.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function h(t,e){return new u(t,e)}},1008:function(t,e,n){n.d(e,{$:function(){return r}});var i=n(2165);let r={test:(0,n(1595).i)("#"),parse:function(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:i.m.transform}},9242:function(t,e,n){n.d(e,{J:function(){return o}});var i=n(8813),r=n(6167),s=n(2612),a=n(1595);let o={test:(0,a.i)("hsl","hue"),parse:(0,a.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:a=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,s.N)(e))+", "+r.aQ.transform((0,s.N)(n))+", "+(0,s.N)(i.Fq.transform(a))+")"}},9392:function(t,e,n){n.d(e,{$:function(){return a}});var i=n(1008),r=n(9242),s=n(2165);let a={test:t=>s.m.test(t)||i.$.test(t)||r.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):r.J.test(t)?r.J.parse(t):i.$.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.m.transform(t):r.J.transform(t)}},2165:function(t,e,n){n.d(e,{m:function(){return u}});var i=n(1118),r=n(8813),s=n(2612),a=n(1595);let o=t=>(0,i.u)(0,255,t),l={...r.Rx,transform:t=>Math.round(o(t))},u={test:(0,a.i)("rgb","red"),parse:(0,a.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(n)+", "+(0,s.N)(r.Fq.transform(i))+")"}},1595:function(t,e,n){n.d(e,{i:function(){return s},d:function(){return a}});var i=n(9552);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(t,e)=>n=>!!("string"==typeof n&&r.test(n)&&n.startsWith(t)||e&&null!=n&&Object.prototype.hasOwnProperty.call(n,e)),a=(t,e,n)=>r=>{if("string"!=typeof r)return r;let[s,a,o,l]=r.match(i.K);return{[t]:parseFloat(s),[e]:parseFloat(a),[n]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}}},8781:function(t,e,n){n.d(e,{h:function(){return l}});var i=n(4538),r=n(9552);let s=new Set(["brightness","contrast","saturate","opacity"]);function a(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[i]=n.match(r.K)||[];if(!i)return t;let a=n.replace(i,""),o=s.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+a+")"}let o=/\b([a-z-]*)\(.*?\)/gu,l={...i.P,getAnimatableNone:t=>{let e=t.match(o);return e?e.map(a).join(" "):t}}},4538:function(t,e,n){n.d(e,{V:function(){return h},P:function(){return f}});var i=n(9392);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=n(9552),a=n(2612);let o="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function h(t){let e=t.toString(),n=[],r={color:[],number:[],var:[]},s=[],a=0,h=e.replace(u,t=>(i.$.test(t)?(r.color.push(a),s.push(l),n.push(i.$.parse(t))):t.startsWith("var(")?(r.var.push(a),s.push("var"),n.push(t)):(r.number.push(a),s.push(o),n.push(parseFloat(t))),++a,"${}")).split("${}");return{values:n,split:h,indexes:r,types:s}}function d(t){return h(t).values}function c(t){let{split:e,types:n}=h(t),r=e.length;return t=>{let s="";for(let u=0;u"number"==typeof t?0:t,f={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(s.K))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(r))||void 0===n?void 0:n.length)||0)>0},parse:d,createTransformer:c,getAnimatableNone:function(t){let e=d(t);return c(t)(e.map(p))}}},9552:function(t,e,n){n.d(e,{K:function(){return i}});let i=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},2612:function(t,e,n){n.d(e,{N:function(){return i}});let i=t=>Math.round(1e5*t)/1e5},743:function(t,e,n){n.d(e,{K:function(){return r}});var i=n(9596);function r(t,e){let n=t.getValue("willChange");if((0,i.i)(n)&&n.add)return n.add(e)}},9835:function(t,e,n){n.d(e,{Mr:function(){return a},DJ:function(){return o},OD:function(){return m},KV:function(){return v}});let i={x:!1,y:!1};function r(t,e){let n=function(t,e,n){if(t instanceof Element)return[t];if("string"==typeof t){let e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function s(t){return e=>{"touch"===e.pointerType||i.x||i.y||t(e)}}function a(t,e,n={}){let[i,a,o]=r(t,n),l=s(t=>{let{target:n}=t,i=e(t);if(!i||!n)return;let r=s(t=>{i(t),n.removeEventListener("pointerleave",r)});n.addEventListener("pointerleave",r,a)});return i.forEach(t=>{t.addEventListener("pointerenter",l,a)}),o}let o=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,l=new WeakSet;function u(t){return e=>{"Enter"===e.key&&t(e)}}function h(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let d=(t,e)=>{let n=t.currentTarget;if(!n)return;let i=u(()=>{if(l.has(n))return;h(n,"down");let t=u(()=>{h(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>h(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)},c=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),p=(t,e)=>!!e&&(t===e||p(t,e.parentElement));function f(t){return o(t)&&!(i.x||i.y)}function m(t,e,n={}){let[i,s,a]=r(t,n),o=t=>{let i=t.currentTarget;if(!f(t)||l.has(i))return;l.add(i);let r=e(t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",u),f(t)&&l.has(i)&&(l.delete(i),r&&r(t,{success:e}))},o=t=>{a(t,n.useGlobalTarget||p(i,t.target))},u=t=>{a(t,!1)};window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",u,s)};return i.forEach(t=>{c.has(t.tagName)||-1!==t.tabIndex||(t.tabIndex=0),(n.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),t.addEventListener("focus",t=>d(t,s),s)}),a}function v(t){return"x"===t||"y"===t?i[t]?null:(i[t]=!0,()=>{i[t]=!1}):i.x||i.y?null:(i.x=i.y=!0,()=>{i.x=i.y=!1})}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[425],{2296:function(t,e,n){n.d(e,{v:function(){return tK}});var i=n(559),r=n(1389);let s={type:"spring",stiffness:500,damping:25,restSpeed:10},a=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),o={type:"keyframes",duration:.8},l={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},u=(t,{keyframes:e})=>e.length>2?o:r.G.has(t)?t.startsWith("scale")?a(e[1]):s:l;var h=n(692),d=n(3376);let c={current:!1},p=t=>null!==t;function f(t,{repeat:e,repeatType:n="loop"},i){let r=t.filter(p),s=e&&"loop"!==n&&e%2==1?0:r.length-1;return s&&void 0!==i?i:r[s]}var m=n(1282),v=n(8263);let g=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function y(t,e,n,i){if(t===e&&n===i)return v.Z;let r=e=>(function(t,e,n,i,r){let s,a;let o=0;do(s=g(a=e+(n-e)/2,i,r)-t)>0?n=a:e=a;while(Math.abs(s)>1e-7&&++o<12);return a})(e,0,1,t,n);return t=>0===t||1===t?t:g(r(t),e,i)}var b=n(9382),w=n(1458);let A=y(.33,1.53,.69,.99),S=(0,w.M)(A),x=(0,b.o)(S),T=t=>(t*=2)<1?.5*S(t):.5*(2-Math.pow(2,-10*(t-1)));var V=n(6987),P=n(818);function M(t){return"function"==typeof t}var C=n(9805),E=n(7564),F=n(1257),k=n(4538);let D=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(k.P.test(t)||"0"===t)&&!t.startsWith("url("));class ${constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=C.X.now(),this.options={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:r,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,E.m)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=C.X.now(),this.hasAttemptedResolve=!0;let{name:n,type:i,velocity:r,delay:s,onComplete:a,onUpdate:o,isGenerator:l}=this.options;if(!l&&!function(t,e,n,i){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],a=D(r,e),o=D(s,e);return(0,F.K)(a===o,`You are trying to animate ${e} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}var I=n(3828);let O=(t,e,n=10)=>{let i="",r=Math.max(Math.round(e/n),2);for(let e=0;e=2e4?1/0:e}let W=["duration","bounce"],j=["stiffness","damping","mass"];function z(t,e){return e.some(e=>void 0!==t[e])}function U(t=L.visualDuration,e=L.bounce){let n;let r="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:a}=r,o=r.keyframes[0],l=r.keyframes[r.keyframes.length-1],u={done:!1,value:o},{stiffness:h,damping:d,mass:c,duration:p,velocity:f,isResolvedFromDuration:m}=function(t){let e={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...t};if(!z(t,j)&&z(t,W)){if(t.visualDuration){let n=2*Math.PI/(1.2*t.visualDuration),i=n*n,r=2*(0,K.u)(.05,1,1-t.bounce)*Math.sqrt(i);e={...e,mass:L.mass,stiffness:i,damping:r}}else{let n=function({duration:t=L.duration,bounce:e=L.bounce,velocity:n=L.velocity,mass:r=L.mass}){let s,a;(0,F.K)(t<=(0,i.w)(L.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=(0,K.u)(L.minDamping,L.maxDamping,o),t=(0,K.u)(L.minDuration,L.maxDuration,(0,i.X)(t)),o<1?(s=e=>{let i=e*o,r=i*t;return .001-(i-n)/X(e,o)*Math.exp(-r)},a=e=>{let i=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=X(Math.pow(e,2),o);return(i*n+n-r)*Math.exp(-i)*(-s(e)+.001>0?-1:1)/a}):(s=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),a=e=>t*t*(n-e)*Math.exp(-e*t));let l=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(s,a,5/t);if(t=(0,i.w)(t),isNaN(l))return{stiffness:L.stiffness,damping:L.damping,duration:t};{let e=Math.pow(l,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...n,mass:L.mass}).isResolvedFromDuration=!0}}return e}({...r,velocity:-(0,i.X)(r.velocity||0)}),v=f||0,g=d/(2*Math.sqrt(h*c)),y=l-o,b=(0,i.X)(Math.sqrt(h/c)),w=5>Math.abs(y);if(s||(s=w?L.restSpeed.granular:L.restSpeed.default),a||(a=w?L.restDelta.granular:L.restDelta.default),g<1){let t=X(b,g);n=e=>l-Math.exp(-g*b*e)*((v+g*b*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)n=t=>l-Math.exp(-b*t)*(y+(v+b*y)*t);else{let t=b*Math.sqrt(g*g-1);n=e=>{let n=Math.exp(-g*b*e),i=Math.min(t*e,300);return l-n*((v+g*b*y)*Math.sinh(i)+t*y*Math.cosh(i))/t}}let A={calculatedDuration:m&&p||null,next:t=>{let e=n(t);if(m)u.done=t>=p;else{let r=0;g<1&&(r=0===t?(0,i.w)(v):N(n,t,e));let o=Math.abs(r)<=s,h=Math.abs(l-e)<=a;u.done=o&&h}return u.value=u.done?l:e,u},toString:()=>{let t=Math.min(B(A),2e4),e=O(e=>A.next(t*e).value,t,30);return t+"ms "+e}};return A}function q({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let d,c;let p=t[0],f={done:!1,value:p},m=t=>void 0!==o&&tl,v=t=>void 0===o?l:void 0===l?o:Math.abs(o-t)-g*Math.exp(-t/i),A=t=>b+w(t),S=t=>{let e=w(t),n=A(t);f.done=Math.abs(e)<=u,f.value=f.done?b:n},x=t=>{m(f.value)&&(d=t,c=U({keyframes:[f.value,v(f.value)],velocity:N(A,t,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return x(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,S(t),x(t)),void 0!==d&&t>=d)?c.next(t-d):(e||S(t),f)}}}let Y=y(.42,0,1,1),_=y(0,0,.58,1),G=y(.42,0,.58,1),J=t=>Array.isArray(t)&&"number"!=typeof t[0],H=t=>Array.isArray(t)&&"number"==typeof t[0],Z={linear:v.Z,easeIn:Y,easeInOut:G,easeOut:_,circIn:V.Z7,circInOut:V.X7,circOut:V.Bn,backIn:S,backInOut:x,backOut:A,anticipate:T},Q=t=>{if(H(t)){(0,F.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,n,i,r]=t;return y(e,n,i,r)}return"string"==typeof t?((0,F.k)(void 0!==Z[t],`Invalid easing type '${t}'`),Z[t]):t};var tt=n(8814),te=n(519);function tn(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var ti=n(1008),tr=n(2165),ts=n(9242);function ta(t,e){return n=>n>0?e:t}let to=(t,e,n)=>{let i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},tl=[ti.$,tr.m,ts.J],tu=t=>tl.find(e=>e.test(t));function th(t){let e=tu(t);if((0,F.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===ts.J&&(n=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let r=0,s=0,a=0;if(e/=100){let i=n<.5?n*(1+e):n+e-n*e,o=2*n-i;r=tn(o,i,t+1/3),s=tn(o,i,t),a=tn(o,i,t-1/3)}else r=s=a=n;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*a),alpha:i}}(n)),n}let td=(t,e)=>{let n=th(t),i=th(e);if(!n||!i)return ta(t,e);let r={...n};return t=>(r.red=to(n.red,i.red,t),r.green=to(n.green,i.green,t),r.blue=to(n.blue,i.blue,t),r.alpha=(0,te.t)(n.alpha,i.alpha,t),tr.m.transform(r))};var tc=n(9392),tp=n(6849);let tf=new Set(["none","hidden"]);function tm(t,e){return n=>(0,te.t)(t,e,n)}function tv(t){return"number"==typeof t?tm:"string"==typeof t?(0,tp.t)(t)?ta:tc.$.test(t)?td:tb:Array.isArray(t)?tg:"object"==typeof t?tc.$.test(t)?td:ty:ta}function tg(t,e){let n=[...t],i=n.length,r=t.map((t,n)=>tv(t)(t,e[n]));return t=>{for(let e=0;e{for(let e in i)n[e]=i[e](t);return n}}let tb=(t,e)=>{let n=k.P.createTransformer(e),i=(0,k.V)(t),r=(0,k.V)(e);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?tf.has(t)&&!r.values.length||tf.has(e)&&!i.values.length?tf.has(t)?n=>n<=0?t:e:n=>n>=1?e:t:(0,tt.z)(tg(function(t,e){var n;let i=[],r={color:0,var:0,number:0};for(let s=0;se[0];if(2===s&&t[0]===t[1])return()=>e[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,n){let i=[],r=n||tw,s=t.length-1;for(let n=0;n{let n=0;if(o>1)for(;nl((0,K.u)(t[0],t[s-1],e)):l}((n&&n.length===e.length?n:function(t){let e=[0];return function(t,e){let n=t[t.length-1];for(let i=1;i<=e;i++){let r=(0,I.Y)(0,e,i);t.push((0,te.t)(n,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||G).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}let tS=t=>{let e=({timestamp:e})=>t(e);return{start:()=>m.Wi.update(e,!0),stop:()=>(0,m.Pn)(e),now:()=>m.frameData.isProcessing?m.frameData.timestamp:C.X.now()}},tx={decay:q,inertia:q,tween:tA,keyframes:tA,spring:U},tT=t=>t/100;class tV extends ${constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:n,element:i,keyframes:r}=this.options,s=(null==i?void 0:i.KeyframeResolver)||E.e;this.resolver=new s(r,(t,e)=>this.onKeyframesResolved(t,e),e,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,n;let{type:i="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:a,velocity:o=0}=this.options,l=M(i)?i:tx[i]||tA;l!==tA&&"number"!=typeof t[0]&&(e=(0,tt.z)(tT,tw(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===a&&(n=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=B(u));let{calculatedDuration:h}=u,d=h+s;return{generator:u,mirroredGenerator:n,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:d,totalDuration:d*(r+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:n}=this;if(!n){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:i,generator:r,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:o,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=n;if(null===this.startTime)return r.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:m,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let b=this.currentTime,w=r;if(c){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(n=1-n,m&&(n-=m/h)):"mirror"===p&&(w=s)),b=(0,K.u)(0,1,n)*h}let A=y?{done:!1,value:o[0]}:w.next(b);a&&(A.value=a(A.value));let{done:S}=A;y||null===l||(S=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return x&&void 0!==i&&(A.value=f(o,this.options,i)),v&&v(A.value),x&&this.finish(),A}get duration(){let{resolved:t}=this;return t?(0,i.X)(t.calculatedDuration):0}get time(){return(0,i.X)(this.currentTime)}set time(t){t=(0,i.w)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,i.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=tS,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let tP=new Set(["opacity","clipPath","filter","transform"]);function tM(t){let e;return()=>(void 0===e&&(e=t()),e)}let tC={linearEasing:void 0},tE=function(t,e){let n=tM(t);return()=>{var t;return null!==(t=tC[e])&&void 0!==t?t:n()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),tF=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,tk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tF([0,.65,.55,1]),circOut:tF([.55,0,1,.45]),backIn:tF([.31,.01,.66,-.59]),backOut:tF([.33,1.53,.69,.99])};function tD(t,e){t.timeline=e,t.onfinish=null}let t$=tM(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tI={anticipate:T,backInOut:x,circInOut:V.X7};class tO extends ${constructor(t){super(t);let{name:e,motionValue:n,element:i,keyframes:r}=this.options;this.resolver=new P.s(r,(t,e)=>this.onKeyframesResolved(t,e),e,n,i),this.resolver.scheduleResolve()}initPlayback(t,e){var n,i;let{duration:r=300,times:s,ease:a,type:o,motionValue:l,name:u,startTime:h}=this.options;if(!(null===(n=l.owner)||void 0===n?void 0:n.current))return!1;if("string"==typeof a&&tE()&&a in tI&&(a=tI[a]),M((i=this.options).type)||"spring"===i.type||!function t(e){return!!("function"==typeof e&&tE()||!e||"string"==typeof e&&(e in tk||tE())||H(e)||Array.isArray(e)&&e.every(t))}(i.ease)){let{onComplete:e,onUpdate:n,motionValue:i,element:l,...u}=this.options,h=function(t,e){let n=new tV({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:t[0]},r=[],s=0;for(;!i.done&&s<2e4;)r.push((i=n.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),r=h.duration,s=h.times,a=h.ease,o="keyframes"}let d=function(t,e,n,{delay:i=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:o="easeInOut",times:l}={}){let u={[e]:n};l&&(u.offset=l);let h=function t(e,n){if(e)return"function"==typeof e&&tE()?O(e,n):H(e)?tF(e):Array.isArray(e)?e.map(e=>t(e,n)||tk.easeOut):tk[e]}(o,r);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:i,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:a});return d.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?(tD(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:n}=this.options;l.set(f(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:o,ease:a,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,i.X)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,i.X)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:n}=e;n.currentTime=(0,i.w)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:n}=e;n.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return v.Z;let{animation:n}=e;tD(n,t)}else this.pendingTimeline=t;return v.Z}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:n,duration:r,type:s,ease:a,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:l,element:u,...h}=this.options,d=new tV({...h,keyframes:n,duration:r,type:s,ease:a,times:o,isGenerator:!0}),c=(0,i.w)(this.time);t.setWithVelocity(d.sample(c-10).value,d.sample(c).value,10)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:n,repeatDelay:i,repeatType:r,damping:s,type:a}=t;return t$()&&n&&tP.has(n)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!i&&"mirror"!==r&&0!==s&&"inertia"!==a}}let tR=tM(()=>void 0!==window.ScrollTimeline);class tN{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;ntR()&&n.attachTimeline?n.attachTimeline(t):e(n));return()=>{n.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;ee[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let tK=(t,e,n,r={},s,a)=>o=>{let l=(0,h.e)(r,t)||{},p=l.delay||r.delay||0,{elapsed:v=0}=r;v-=(0,i.w)(p);let g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-v,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:a?void 0:s};!function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(l)&&(g={...g,...u(t,g)}),g.duration&&(g.duration=(0,i.w)(g.duration)),g.repeatDelay&&(g.repeatDelay=(0,i.w)(g.repeatDelay)),void 0!==g.from&&(g.keyframes[0]=g.from);let y=!1;if(!1!==g.type&&(0!==g.duration||g.repeatDelay)||(g.duration=0,0!==g.delay||(y=!0)),(c.current||d.c.skipAnimations)&&(y=!0,g.duration=0,g.delay=0),y&&!a&&void 0!==e.get()){let t=f(g.keyframes,l);if(void 0!==t)return m.Wi.update(()=>{g.onUpdate(t),g.onComplete()}),new tN([])}return!a&&tO.supports(g)?new tO(g):new tV(g)}},2557:function(t,e,n){n.d(e,{s:function(){return r}});var i=n(3276);function r(t){return t.props[i.M]}},692:function(t,e,n){n.d(e,{e:function(){return i}});function i(t,e){return t?t[e]||t.default||t:void 0}},6987:function(t,e,n){n.d(e,{Bn:function(){return a},X7:function(){return o},Z7:function(){return s}});var i=n(9382),r=n(1458);let s=t=>1-Math.sin(Math.acos(t)),a=(0,r.M)(s),o=(0,i.o)(s)},9382:function(t,e,n){n.d(e,{o:function(){return i}});let i=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},1458:function(t,e,n){n.d(e,{M:function(){return i}});let i=t=>e=>1-t(1-e)},2623:function(t,e,n){n.d(e,{E:function(){return i}});function i(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}},9337:function(t,e,n){n.d(e,{Q:function(){return r},s:function(){return s}});var i=n(9835);function r(t){return{point:{x:t.pageX,y:t.pageY}}}let s=t=>e=>(0,i.DJ)(e)&&t(e,r(e))},9805:function(t,e,n){let i;n.d(e,{X:function(){return o}});var r=n(3376),s=n(1282);function a(){i=void 0}let o={now:()=>(void 0===i&&o.set(s.frameData.isProcessing||r.c.useManualTiming?s.frameData.timestamp:performance.now()),i),set:t=>{i=t,queueMicrotask(a)}}},400:function(t,e,n){n.d(e,{L:function(){return i}});class i{constructor(t){this.isMounted=!1,this.node=t}update(){}}},1073:function(t,e,n){n.d(e,{s:function(){return F}});var i=n(5150),r=n(3666);function s(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let i=0;i{g.Wi.update(()=>{o&&function(t,e){let{transitionEnd:n={},transition:i={},...r}=l(t,e)||{};for(let e in r={...r,...n}){let n=(0,c.Y)(r[e]);t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,p.BX)(n))}}(t,o)})}),y}function b(t,e,n={}){var i;let r=l(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);let a=r?()=>Promise.all(y(t,r,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(i=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;return function(t,e,n=0,i=0,r=1,s){let a=[],o=(t.variantChildren.size-1)*i,l=1===r?(t=0)=>t*i:(t=0)=>o-t*i;return Array.from(t.variantChildren).sort(w).forEach((t,i)=>{t.notify("AnimationStart",e),a.push(b(t,e,{...s,delay:n+l(i)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(a)}(t,e,r+i,a,o,n)}:()=>Promise.resolve(),{when:u}=s;if(!u)return Promise.all([a(),o(n.delay)]);{let[t,e]="beforeChildren"===u?[a,o]:[o,a];return t().then(()=>e())}}function w(t,e){return t.sortNodePosition(e)}let A=u.V.length,S=[...u.e].reverse(),x=u.e.length;function T(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function V(){return{animate:T(!0),whileInView:T(),whileHover:T(),whileTap:T(),whileDrag:T(),whileFocus:T(),exit:T()}}var P=n(400);class M extends P.L{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>b(t,e,n)));else if("string"==typeof e)i=b(t,e,n);else{let r="function"==typeof e?l(t,e,n.custom):e;i=Promise.all(y(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})})(t,e,n))),n=V(),o=!0,h=e=>(n,i)=>{var r;let s=l(t,i,"exit"===e?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...i}=s;n={...n,...i,...e}}return n};function d(l){let{props:d}=t,c=function t(e){if(!e)return;if(!e.isControllingVariants){let n=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(n.initial=e.props.initial),n}let n={};for(let t=0;tv&&w,P=!1,M=Array.isArray(b)?b:[b],C=M.reduce(h(u),{});!1===A&&(C={});let{prevResolvedValues:E={}}=y,F={...E,...C},k=e=>{V=!0,f.has(e)&&(P=!0,f.delete(e)),y.needsAnimating[e]=!0;let n=t.getValue(e);n&&(n.liveStyle=!1)};for(let t in F){let e=C[t],n=E[t];if(!m.hasOwnProperty(t))((0,r.C)(e)&&(0,r.C)(n)?s(e,n):e===n)?void 0!==e&&f.has(t)?k(t):y.protectedKeys[t]=!0:null!=e?k(t):f.add(t)}y.prevProp=b,y.prevResolvedValues=C,y.isActive&&(m={...m,...C}),o&&t.blockInitialAnimation&&(V=!1);let D=!(x&&T)||P;V&&D&&p.push(...M.map(t=>({animation:t,options:{type:u}})))}if(f.size){let e={};f.forEach(n=>{let i=t.getBaseTarget(n),r=t.getValue(n);r&&(r.liveStyle=!0),e[n]=null!=i?i:null}),p.push({animation:e})}let y=!!p.length;return o&&(!1===d.initial||d.initial===d.animate)&&!t.manuallyAnimateOnMount&&(y=!1),o=!1,y?e(p):Promise.resolve()}return{animateChanges:d,setActive:function(e,i){var r;if(n[e].isActive===i)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)}),n[e].isActive=i;let s=d(e);for(let t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=V(),o=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,i.H)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let C=0;class E extends P.L{constructor(){super(...arguments),this.id=C++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let F={animation:{Feature:M},exit:{Feature:E}}},5985:function(t,e,n){n.d(e,{E:function(){return w}});var i=n(400),r=n(9835),s=n(9337),a=n(1282);function o(t,e,n){let{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);let r=i["onHover"+n];r&&a.Wi.postRender(()=>r(e,(0,s.Q)(e)))}class l extends i.L{mount(){let{current:t}=this.node;t&&(this.unmount=(0,r.Mr)(t,t=>(o(this.node,t,"Start"),t=>o(this.node,t,"End"))))}unmount(){}}var u=n(2623),h=n(8814);class d extends i.L{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,h.z)((0,u.E)(this.node.current,"focus",()=>this.onFocus()),(0,u.E)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function c(t,e,n){let{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);let r=i["onTap"+("End"===n?"":n)];r&&a.Wi.postRender(()=>r(e,(0,s.Q)(e)))}class p extends i.L{mount(){let{current:t}=this.node;t&&(this.unmount=(0,r.OD)(t,t=>(c(this.node,t,"Start"),(t,{success:e})=>c(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let f=new WeakMap,m=new WeakMap,v=t=>{let e=f.get(t.target);e&&e(t)},g=t=>{t.forEach(v)},y={some:0,all:1};class b extends i.L{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:y[i]};return function(t,e,n){let i=function({root:t,...e}){let n=t||document;m.has(n)||m.set(n,{});let i=m.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(g,{root:t,...e})),i[r]}(e);return f.set(t,n),i.observe(t),()=>{f.delete(t),i.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),s=e?n:i;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}let w={inView:{Feature:b},tap:{Feature:p},focus:{Feature:d},hover:{Feature:l}}},4637:function(t,e,n){function i({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}n.d(e,{d7:function(){return s},i8:function(){return i},z2:function(){return r}})},4056:function(t,e,n){n.d(e,{D2:function(){return c},YY:function(){return u},am:function(){return h},o2:function(){return l},q2:function(){return s}});var i=n(519),r=n(5416);function s(t,e,n){return n+e*(t-n)}function a(t,e,n,i,r){return void 0!==r&&(t=i+r*(t-i)),i+n*(t-i)+e}function o(t,e=0,n=1,i,r){t.min=a(t.min,e,n,i,r),t.max=a(t.max,e,n,i,r)}function l(t,{x:e,y:n}){o(t.x,e.translate,e.scale,e.originPoint),o(t.y,n.translate,n.scale,n.originPoint)}function u(t,e,n,i=!1){let s,a;let o=n.length;if(o){e.x=e.y=1;for(let u=0;u.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function h(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,n,r,s=.5){let a=(0,i.t)(t.min,t.max,s);o(t,e,n,a,r)}function c(t,e){d(t.x,e.x,e.scaleX,e.scale,e.originX),d(t.y,e.y,e.scaleY,e.scale,e.originY)}},830:function(t,e,n){n.d(e,{dO:function(){return a},wc:function(){return r}});let i=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:i(),y:i()}),s=()=>({min:0,max:0}),a=()=>({x:s(),y:s()})},5416:function(t,e,n){function i(t){return void 0===t||1===t}function r({scale:t,scaleX:e,scaleY:n}){return!i(t)||!i(e)||!i(n)}function s(t){return r(t)||a(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function a(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}n.d(e,{D_:function(){return a},Lj:function(){return r},ud:function(){return s}})},8289:function(t,e,n){n.d(e,{J:function(){return s},z:function(){return a}});var i=n(4637),r=n(4056);function s(t,e){return(0,i.i8)((0,i.d7)(t.getBoundingClientRect(),e))}function a(t,e,n){let i=s(t,n),{scroll:a}=e;return a&&((0,r.am)(i.x,a.offset.x),(0,r.am)(i.y,a.offset.y)),i}},818:function(t,e,n){n.d(e,{s:function(){return f}});var i=n(1070),r=n(1257),s=n(1018),a=n(6849);let o=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var l=n(584),u=n(1622),h=n(7564),d=n(4538),c=n(8280);let p=new Set(["auto","none","0"]);class f extends h.e{constructor(t,e,n,i,r){super(t,e,n,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}},5315:function(t,e,n){n.d(e,{b:function(){return Y}});var i=n(9589),r=n(7436),s=n(6849),a=n(1389),o=n(1310),l=n(3676),u=n(6269),h=n(8289),d=n(5866);let c={current:null},p={current:!1};var f=n(3157),m=n(8923),v=n(9596),g=n(1574),y=n(9174),b=n(3971);let w=new WeakMap;var A=n(7564),S=n(1018),x=n(1070),T=n(9392),V=n(4538),P=n(1622),M=n(8559);let C=[...P.$,T.$,V.P],E=t=>C.find((0,M.l)(t));var F=n(8280),k=n(830),D=n(9805),$=n(1282);let I=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class O{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=A.e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=D.X.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),p.current||function(){if(p.current=!0,d.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>c.current=t.matches;t.addListener(e),e()}else c.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||c.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in w.delete(this.current),this.projection&&this.projection.unmount(),(0,$.Pn)(this.notifyUpdate),(0,$.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let n;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let i=a.G.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&$.Wi.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),n&&n(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in b.featureDefinitions){let e=b.featureDefinitions[t];if(!e)continue;let{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,k.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){let n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=(0,m.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let i=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&((0,S.P)(i)||(0,x.W)(i))?i=parseFloat(i):!E(i)&&V.P.test(e)&&(i=(0,F.T)(t,e)),this.setBaseTarget(t,(0,v.i)(i)?i.get():i)),(0,v.i)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let n;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let r=(0,y.o)(this.props,i,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(n=r[t])}if(i&&void 0!==n)return n;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,v.i)(r)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new f.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}var R=n(818);class N extends O{constructor(){super(...arguments),this.KeyframeResolver=R.s}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,v.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class K extends N{constructor(){super(...arguments),this.type="html",this.renderInstance=l.N}readValueFromInstance(t,e){if(a.G.has(e)){let t=(0,u.A)(e);return t&&t.default||0}{let n=window.getComputedStyle(t),i=((0,s.f)(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,h.J)(t,e)}build(t,e,n){(0,r.r)(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return(0,o.U)(t,e,n)}}var L=n(5603),X=n(889),B=n(26),W=n(5030),j=n(6745),z=n(1176);class U extends N{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=k.dO}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(a.G.has(e)){let t=(0,u.A)(e);return t&&t.default||0}return e=W.s.has(e)?e:(0,B.D)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return(0,L.U)(t,e,n)}build(t,e,n){(0,X.i)(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,i){(0,j.K)(t,e,n,i)}mount(t){this.isSVGTag=(0,z.a)(t.tagName),super.mount(t)}}var q=n(8316);let Y=(t,e)=>(0,q.q)(t)?new U(e):new K(e,{allowProjection:t!==i.Fragment})},584:function(t,e,n){n.d(e,{Ei:function(){return c},lw:function(){return p},mP:function(){return o},z2:function(){return a}});var i=n(1389),r=n(8813),s=n(6167);let a=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),o=t=>t===r.Rx||t===s.px,l=(t,e)=>parseFloat(t.split(", ")[e]),u=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;let r=i.match(/^matrix3d\((.+)\)$/u);if(r)return l(r[1],e);{let e=i.match(/^matrix\((.+)\)$/u);return e?l(e[1],t):0}},h=new Set(["x","y","z"]),d=i._.filter(t=>!h.has(t));function c(t){let e=[];return d.forEach(n=>{let i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}let p={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:u(4,13),y:u(5,14)};p.translateX=p.x,p.translateY=p.y},8280:function(t,e,n){n.d(e,{T:function(){return a}});var i=n(4538),r=n(8781),s=n(6269);function a(t,e){let n=(0,s.A)(t);return n!==r.h&&(n=i.P),n.getAnimatableNone?n.getAnimatableNone(e):void 0}},6269:function(t,e,n){n.d(e,{A:function(){return a}});var i=n(9392),r=n(8781);let s={...n(8188).j,color:i.$,backgroundColor:i.$,outlineColor:i.$,fill:i.$,stroke:i.$,borderColor:i.$,borderTopColor:i.$,borderRightColor:i.$,borderBottomColor:i.$,borderLeftColor:i.$,filter:r.h,WebkitFilter:r.h},a=t=>s[t]},1622:function(t,e,n){n.d(e,{$:function(){return a},C:function(){return o}});var i=n(8813),r=n(6167),s=n(8559);let a=[i.Rx,r.px,r.aQ,r.RW,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],o=t=>a.find((0,s.l)(t))},8559:function(t,e,n){n.d(e,{l:function(){return i}});let i=t=>e=>e.test(t)},7564:function(t,e,n){n.d(e,{e:function(){return d},m:function(){return h}});var i=n(584),r=n(1282);let s=new Set,a=!1,o=!1;function l(){if(o){let t=Array.from(s).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{let e=(0,i.Ei)(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=n.get(t);e&&e.forEach(([e,n])=>{var i;null===(i=t.getValue(e))||void 0===i||i.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}o=!1,a=!1,s.forEach(t=>t.complete()),s.clear()}function u(){s.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(o=!0)})}function h(){u(),l()}class d{constructor(t,e,n,i,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(s.add(this),a||(a=!0,r.Wi.read(u),r.Wi.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;for(let r=0;r-1&&t.splice(n,1)}n.d(e,{cl:function(){return r},y4:function(){return i}})},1018:function(t,e,n){n.d(e,{P:function(){return i}});let i=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},1070:function(t,e,n){n.d(e,{W:function(){return i}});let i=t=>/^0[^.\s]+$/u.test(t)},519:function(t,e,n){n.d(e,{t:function(){return i}});let i=(t,e,n)=>t+(e-t)*n},8814:function(t,e,n){n.d(e,{z:function(){return r}});let i=(t,e)=>n=>e(t(n)),r=(...t)=>t.reduce(i)},3828:function(t,e,n){n.d(e,{Y:function(){return i}});let i=(t,e,n)=>{let i=e-t;return 0===i?1:(n-t)/i}},3157:function(t,e,n){n.d(e,{L:function(){return r}});var i=n(8222);class r{constructor(){this.subscriptions=[]}add(t){return(0,i.y4)(this.subscriptions,t),()=>(0,i.cl)(this.subscriptions,t)}notify(t,e,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](t,e,n);else for(let r=0;r1e3*t,r=t=>t/1e3},1974:function(t,e,n){n.d(e,{R:function(){return i}});function i(t,e){return e?1e3/e*t:0}},8923:function(t,e,n){n.d(e,{BX:function(){return h}});var i=n(3157),r=n(1974),s=n(9805),a=n(1282);let o=t=>!isNaN(parseFloat(t)),l={current:void 0};class u{constructor(t,e={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let n=s.X.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=s.X.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=o(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new i.L);let n=this.events[t].add(e);return"change"===t?()=>{n(),a.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=s.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function h(t,e){return new u(t,e)}},1008:function(t,e,n){n.d(e,{$:function(){return r}});var i=n(2165);let r={test:(0,n(1595).i)("#"),parse:function(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:i.m.transform}},9242:function(t,e,n){n.d(e,{J:function(){return o}});var i=n(8813),r=n(6167),s=n(2612),a=n(1595);let o={test:(0,a.i)("hsl","hue"),parse:(0,a.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:a=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,s.N)(e))+", "+r.aQ.transform((0,s.N)(n))+", "+(0,s.N)(i.Fq.transform(a))+")"}},9392:function(t,e,n){n.d(e,{$:function(){return a}});var i=n(1008),r=n(9242),s=n(2165);let a={test:t=>s.m.test(t)||i.$.test(t)||r.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):r.J.test(t)?r.J.parse(t):i.$.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.m.transform(t):r.J.transform(t)}},2165:function(t,e,n){n.d(e,{m:function(){return u}});var i=n(1118),r=n(8813),s=n(2612),a=n(1595);let o=t=>(0,i.u)(0,255,t),l={...r.Rx,transform:t=>Math.round(o(t))},u={test:(0,a.i)("rgb","red"),parse:(0,a.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(n)+", "+(0,s.N)(r.Fq.transform(i))+")"}},1595:function(t,e,n){n.d(e,{i:function(){return s},d:function(){return a}});var i=n(9552);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(t,e)=>n=>!!("string"==typeof n&&r.test(n)&&n.startsWith(t)||e&&null!=n&&Object.prototype.hasOwnProperty.call(n,e)),a=(t,e,n)=>r=>{if("string"!=typeof r)return r;let[s,a,o,l]=r.match(i.K);return{[t]:parseFloat(s),[e]:parseFloat(a),[n]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}}},8781:function(t,e,n){n.d(e,{h:function(){return l}});var i=n(4538),r=n(9552);let s=new Set(["brightness","contrast","saturate","opacity"]);function a(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[i]=n.match(r.K)||[];if(!i)return t;let a=n.replace(i,""),o=s.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+a+")"}let o=/\b([a-z-]*)\(.*?\)/gu,l={...i.P,getAnimatableNone:t=>{let e=t.match(o);return e?e.map(a).join(" "):t}}},4538:function(t,e,n){n.d(e,{V:function(){return h},P:function(){return f}});var i=n(9392);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=n(9552),a=n(2612);let o="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function h(t){let e=t.toString(),n=[],r={color:[],number:[],var:[]},s=[],a=0,h=e.replace(u,t=>(i.$.test(t)?(r.color.push(a),s.push(l),n.push(i.$.parse(t))):t.startsWith("var(")?(r.var.push(a),s.push("var"),n.push(t)):(r.number.push(a),s.push(o),n.push(parseFloat(t))),++a,"${}")).split("${}");return{values:n,split:h,indexes:r,types:s}}function d(t){return h(t).values}function c(t){let{split:e,types:n}=h(t),r=e.length;return t=>{let s="";for(let u=0;u"number"==typeof t?0:t,f={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(s.K))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(r))||void 0===n?void 0:n.length)||0)>0},parse:d,createTransformer:c,getAnimatableNone:function(t){let e=d(t);return c(t)(e.map(p))}}},9552:function(t,e,n){n.d(e,{K:function(){return i}});let i=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},2612:function(t,e,n){n.d(e,{N:function(){return i}});let i=t=>Math.round(1e5*t)/1e5},743:function(t,e,n){n.d(e,{K:function(){return r}});var i=n(9596);function r(t,e){let n=t.getValue("willChange");if((0,i.i)(n)&&n.add)return n.add(e)}},9835:function(t,e,n){n.d(e,{Mr:function(){return a},DJ:function(){return o},OD:function(){return m},KV:function(){return v}});let i={x:!1,y:!1};function r(t,e){let n=function(t,e,n){if(t instanceof Element)return[t];if("string"==typeof t){let e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function s(t){return e=>{"touch"===e.pointerType||i.x||i.y||t(e)}}function a(t,e,n={}){let[i,a,o]=r(t,n),l=s(t=>{let{target:n}=t,i=e(t);if(!i||!n)return;let r=s(t=>{i(t),n.removeEventListener("pointerleave",r)});n.addEventListener("pointerleave",r,a)});return i.forEach(t=>{t.addEventListener("pointerenter",l,a)}),o}let o=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,l=new WeakSet;function u(t){return e=>{"Enter"===e.key&&t(e)}}function h(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let d=(t,e)=>{let n=t.currentTarget;if(!n)return;let i=u(()=>{if(l.has(n))return;h(n,"down");let t=u(()=>{h(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>h(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)},c=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),p=(t,e)=>!!e&&(t===e||p(t,e.parentElement));function f(t){return o(t)&&!(i.x||i.y)}function m(t,e,n={}){let[i,s,a]=r(t,n),o=t=>{let i=t.currentTarget;if(!f(t)||l.has(i))return;l.add(i);let r=e(t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",u),f(t)&&l.has(i)&&(l.delete(i),r&&r(t,{success:e}))},o=t=>{a(t,n.useGlobalTarget||p(i,t.target))},u=t=>{a(t,!1)};window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",u,s)};return i.forEach(t=>{c.has(t.tagName)||-1!==t.tabIndex||(t.tabIndex=0),(n.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),t.addEventListener("focus",t=>d(t,s),s)}),a}function v(t){return"x"===t||"y"===t?i[t]?null:(i[t]=!0,()=>{i[t]=!1}):i.x||i.y?null:(i.x=i.y=!0,()=>{i.x=i.y=!1})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/679-843178d88f862e57.js b/_next/static/chunks/679-8bb6375bc219038c.js similarity index 99% rename from _next/static/chunks/679-843178d88f862e57.js rename to _next/static/chunks/679-8bb6375bc219038c.js index f6347b5..fd1440e 100644 --- a/_next/static/chunks/679-843178d88f862e57.js +++ b/_next/static/chunks/679-8bb6375bc219038c.js @@ -1,4 +1,4 @@ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[679],{2700:function(e,t,i){e.exports=i(5)},8678:function(e,t,i){"use strict";i.d(t,{g:function(){return h}});var r=i(8762),n=i(7510),s=i(4189),a=i(4211),l=i(9589),o=i(9077),u=i(2920),d=i(217),c=(0,s.Gp)((e,t)=>{let{Component:i,domRef:c,context:h,children:p,classNames:f,getButtonGroupProps:m}=function(e){var t,i;let u=(0,n.w)(),[d,c]=(0,s.oe)(e,r.D.variantKeys),{ref:h,as:p,children:f,color:m="default",size:g="md",variant:v="solid",radius:b,isDisabled:y=!1,isIconOnly:x=!1,disableRipple:w=null!=(t=null==u?void 0:u.disableRipple)&&t,disableAnimation:S=null!=(i=null==u?void 0:u.disableAnimation)&&i,className:P,...C}=d,I=(0,a.gy)(h),z=(0,l.useMemo)(()=>(0,r.D)({...c,className:P}),[(0,o.Xx)(c),P]);return{Component:p||"div",children:f,domRef:I,context:(0,l.useMemo)(()=>({size:g,color:m,variant:v,radius:b,isIconOnly:x,isDisabled:y,disableAnimation:S,disableRipple:w,fullWidth:!!(null==e?void 0:e.fullWidth)}),[g,m,v,b,y,x,S,w,null==e?void 0:e.fullWidth]),classNames:z,getButtonGroupProps:(0,l.useCallback)(()=>({role:"group",...C}),[C])}}({...e,ref:t});return(0,d.jsx)(u.D,{value:h,children:(0,d.jsx)(i,{ref:c,className:f,...m(),children:p})})});c.displayName="NextUI.ButtonGroup";var h=c},9940:function(e,t,i){"use strict";i.d(t,{w:function(){return C}});var r=i(9744),n=i(3427),s=i(3123),a=(0,n.tv)({slots:{base:["flex","flex-col","relative","overflow-hidden","h-auto","outline-none","text-foreground","box-border","bg-content1",...s.Dh],header:["flex","p-3","z-10","w-full","justify-start","items-center","shrink-0","overflow-inherit","color-inherit","subpixel-antialiased"],body:["relative","flex","flex-1","w-full","p-3","flex-auto","flex-col","place-content-inherit","align-items-inherit","h-auto","break-words","text-left","overflow-y-auto","subpixel-antialiased"],footer:["p-3","h-auto","flex","w-full","items-center","overflow-hidden","color-inherit","subpixel-antialiased"]},variants:{shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},radius:{none:{base:"rounded-none",header:"rounded-none",footer:"rounded-none"},sm:{base:"rounded-small",header:"rounded-t-small",footer:"rounded-b-small"},md:{base:"rounded-medium",header:"rounded-t-medium",footer:"rounded-b-medium"},lg:{base:"rounded-large",header:"rounded-t-large",footer:"rounded-b-large"}},fullWidth:{true:{base:"w-full"}},isHoverable:{true:{base:"data-[hover=true]:bg-content2 dark:data-[hover=true]:bg-content2"}},isPressable:{true:{base:"cursor-pointer"}},isBlurred:{true:{base:["bg-background/80","dark:bg-background/20","backdrop-blur-md","backdrop-saturate-150"]}},isFooterBlurred:{true:{footer:["bg-background/10","backdrop-blur","backdrop-saturate-150"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:"",false:{base:"transition-transform-background motion-reduce:transition-none"}}},compoundVariants:[{isPressable:!0,class:"data-[pressed=true]:scale-[0.97] tap-highlight-transparent"}],defaultVariants:{radius:"lg",shadow:"md",fullWidth:!1,isHoverable:!1,isPressable:!1,isDisabled:!1,isFooterBlurred:!1}}),l=i(9589),o=i(6367),u=i(2014),d=i(709),c=i(1596),h=i(7414),p=i(7510),f=i(4189),m=i(1870),g=i(9077),v=i(1273),b=i(7433),y=i(4211),x=i(5867),w=i(6897),S=i(217),P=(0,f.Gp)((e,t)=>{let{children:i,context:n,Component:s,isPressable:P,disableAnimation:C,disableRipple:I,getCardProps:z,getRippleProps:E}=function(e){var t,i,r,n;let s=(0,p.w)(),[w,S]=(0,f.oe)(e,a.variantKeys),{ref:P,as:C,children:I,onClick:z,onPress:E,autoFocus:D,className:T,classNames:k,allowTextSelectionOnPress:M=!0,...B}=w,R=(0,y.gy)(P),j=C||(e.isPressable?"button":"div"),_="string"==typeof j,A=null!=(i=null!=(t=e.disableAnimation)?t:null==s?void 0:s.disableAnimation)&&i,L=null!=(n=null!=(r=e.disableRipple)?r:null==s?void 0:s.disableRipple)&&n,O=(0,m.W)(null==k?void 0:k.base,T),{onClear:N,onPress:F,ripples:V}=(0,x.i)(),K=(0,l.useCallback)(e=>{L||A||!R.current||F(e)},[L,A,R,F]),{buttonProps:W,isPressed:H}=(0,h.j)({onPress:(0,o.t)(E,K),elementType:C,isDisabled:!e.isPressable,onClick:z,allowTextSelectionOnPress:M,...B},R),{hoverProps:U,isHovered:$}=(0,c.X)({isDisabled:!e.isHoverable,...B}),{isFocusVisible:G,isFocused:q,focusProps:X}=(0,d.F)({autoFocus:D}),J=(0,l.useMemo)(()=>a({...S,disableAnimation:A}),[(0,g.Xx)(S),A]),Y=(0,l.useMemo)(()=>({slots:J,classNames:k,disableAnimation:A,isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,fullWidth:e.fullWidth}),[J,k,e.isDisabled,e.isFooterBlurred,A,e.fullWidth]),Z=(0,l.useCallback)((t={})=>({ref:R,className:J.base({class:O}),tabIndex:e.isPressable?0:-1,"data-hover":(0,v.PB)($),"data-pressed":(0,v.PB)(H),"data-focus":(0,v.PB)(q),"data-focus-visible":(0,v.PB)(G),"data-disabled":(0,v.PB)(e.isDisabled),...(0,u.d)(e.isPressable?{...W,...X,role:"button"}:{},e.isHoverable?U:{},(0,b.z)(B,{enabled:_}),(0,b.z)(t))}),[R,J,O,_,e.isPressable,e.isHoverable,e.isDisabled,$,H,G,W,X,U,B]),Q=(0,l.useCallback)(()=>({ripples:V,onClear:N}),[V,N]);return{context:Y,domRef:R,Component:j,classNames:k,children:I,isHovered:$,isPressed:H,disableAnimation:A,isPressable:e.isPressable,isHoverable:e.isHoverable,disableRipple:L,handlePress:K,isFocusVisible:G,getCardProps:Z,getRippleProps:Q}}({...e,ref:t});return(0,S.jsxs)(s,{...z(),children:[(0,S.jsx)(r.k,{value:n,children:i}),P&&!C&&!I&&(0,S.jsx)(w.L,{...E()})]})});P.displayName="NextUI.Card";var C=P},2511:function(e,t,i){"use strict";i.d(t,{G:function(){return u}});var r=i(9744),n=i(4189),s=i(4211),a=i(1870),l=i(217),o=(0,n.Gp)((e,t)=>{var i;let{as:n,className:o,children:u,...d}=e,c=(0,s.gy)(t),{slots:h,classNames:p}=(0,r.R)(),f=(0,a.W)(null==p?void 0:p.body,o);return(0,l.jsx)(n||"div",{ref:c,className:null==(i=h.body)?void 0:i.call(h,{class:f}),...d,children:u})});o.displayName="NextUI.CardBody";var u=o},9744:function(e,t,i){"use strict";i.d(t,{R:function(){return n},k:function(){return r}});var[r,n]=(0,i(4083).k)({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within "})},6179:function(e,t,i){"use strict";i.d(t,{K:function(){return O}});var r=i(217);function n(e){let{isSelected:t,disableAnimation:i,...n}=e;return(0,r.jsx)("svg",{"aria-hidden":"true",role:"presentation",viewBox:"0 0 17 18",...n,children:(0,r.jsx)("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!i&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{}})})}function s(e){let{isSelected:t,disableAnimation:i,...n}=e;return(0,r.jsx)("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...n,children:(0,r.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function a(e){let{isIndeterminate:t,...i}=e;return(0,r.jsx)(t?s:n,{...i})}var[l,o]=(0,i(4083).k)({name:"CheckboxGroupContext",strict:!1}),u=i(7510),d=i(9589),c=i(125);function h(e={}){let{isReadOnly:t}=e,[i,r]=(0,c.z)(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:i,setSelected:function(e){t||r(e)},toggle:function(){t||r(!i)}}}var p=i(3427),f=i(3123),m=(0,p.tv)({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...f.ID],hiddenInput:f.PZ,icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100 pointer-events-none",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 me-2","rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 me-2","rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 me-2","rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"]},md:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1}});(0,p.tv)({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}});var g=i(2889),v=i(1596),b=i(709),y=i(6367),x=i(2014),w=i(1273),S=i(4700),P=i(197),C=i(1870),I=i(9661),z=i(3361),E=i(9762),D=i(341),T=i(507),k=i(1771);function M(e,t,i){let r=(0,I.Q3)({...e,value:t.isSelected}),{isInvalid:n,validationErrors:s,validationDetails:a}=r.displayValidation,{labelProps:l,inputProps:o,isSelected:u,isPressed:c,isDisabled:h,isReadOnly:p}=function(e,t,i){let{isDisabled:r=!1,isReadOnly:n=!1,value:s,name:a,children:l,"aria-label":o,"aria-labelledby":u,validationState:d="valid",isInvalid:c}=e;null!=l||null!=o||null!=u||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:h,isPressed:p}=(0,E.r)({isDisabled:r}),{pressProps:f,isPressed:m}=(0,E.r)({isDisabled:r||n,onPress(){t.toggle()}}),{focusableProps:g}=(0,k.k)(e,i),v=(0,x.d)(h,g),b=(0,D.z)(e,{labelable:!0});return(0,T.y)(i,t.isSelected,t.setSelected),{labelProps:(0,x.d)(f,{onClick:e=>e.preventDefault()}),inputProps:(0,x.d)(b,{"aria-invalid":c||"invalid"===d||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":n||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:r,...null==s?{}:{value:s},name:a,type:"checkbox",...v}),isSelected:t.isSelected,isPressed:p||m,isDisabled:r,isReadOnly:n,isInvalid:c||"invalid"===d}}({...e,isInvalid:n},t,i);(0,z.Q)(e,r,i);let{isIndeterminate:f,isRequired:m,validationBehavior:g="aria"}=e;(0,d.useEffect)(()=>{i.current&&(i.current.indeterminate=!!f)});let{pressProps:v}=(0,E.r)({isDisabled:h||p,onPress(){let{[I.tL]:t}=e,{commitValidation:i}=t||r;i()}});return{labelProps:(0,x.d)(l,v),inputProps:{...o,checked:u,"aria-required":m&&"aria"===g||void 0,required:m&&"native"===g},isSelected:u,isPressed:c,isDisabled:h,isReadOnly:p,isInvalid:n,validationErrors:s,validationDetails:a}}let B=new WeakMap;var R=i(2110),j=i(7243),_=i(2090),A=i(9993),L=(0,i(4189).Gp)((e,t)=>{let{Component:i,children:n,icon:s=(0,r.jsx)(a,{}),getBaseProps:l,getWrapperProps:c,getInputProps:p,getIconProps:f,getLabelProps:z}=function(e={}){var t,i,r,n,s,a,l,c;let p=(0,u.w)(),f=o(),{validationBehavior:z}=(0,_.jn)(A.q)||{},E=!!f,{as:D,ref:T,value:k="",children:L,icon:O,name:N,isRequired:F,isReadOnly:V=!1,autoFocus:K=!1,isSelected:W,size:H=null!=(t=null==f?void 0:f.size)?t:"md",color:U=null!=(i=null==f?void 0:f.color)?i:"primary",radius:$=null==f?void 0:f.radius,lineThrough:G=null!=(r=null==f?void 0:f.lineThrough)&&r,isDisabled:q=null!=(n=null==f?void 0:f.isDisabled)&&n,disableAnimation:X=null!=(a=null!=(s=null==f?void 0:f.disableAnimation)?s:null==p?void 0:p.disableAnimation)&&a,validationState:J,isInvalid:Y=J?"invalid"===J:null!=(l=null==f?void 0:f.isInvalid)&&l,isIndeterminate:Z=!1,validationBehavior:Q=E?f.validationBehavior:null!=(c=null!=z?z:null==p?void 0:p.validationBehavior)?c:"native",defaultSelected:ee,classNames:et,className:ei,onValueChange:er,validate:en,...es}=e;f&&w.Ts&&(W&&(0,S.Z)("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),ee&&(0,S.Z)("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));let ea=(0,d.useRef)(null),el=(0,d.useRef)(null),eo=e.onChange;E&&(eo=(0,y.t)(()=>{f.groupState.resetValidation()},eo));let eu=(0,d.useId)(),ed=(0,d.useMemo)(()=>({name:N,value:k,children:L,autoFocus:K,defaultSelected:ee,isIndeterminate:Z,isRequired:F,isInvalid:Y,isSelected:W,isDisabled:q,isReadOnly:V,"aria-label":(0,P.x)(es["aria-label"],L),"aria-labelledby":es["aria-labelledby"]||eu,onChange:er}),[N,k,L,K,ee,Z,F,Y,W,q,V,es["aria-label"],es["aria-labelledby"],eu,er]),ec=h(ed),eh={isInvalid:Y,isRequired:F,validate:en,validationState:J,validationBehavior:Q},{inputProps:ep,isSelected:ef,isDisabled:em,isReadOnly:eg,isPressed:ev,isInvalid:eb}=E?function(e,t,i){var r,n;let s=h({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(i){i?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(i)}}),{name:a,descriptionId:l,errorMessageId:o,validationBehavior:u}=B.get(t);u=null!==(r=e.validationBehavior)&&void 0!==r?r:u;let{realtimeValidation:c}=(0,I.Q3)({...e,value:s.isSelected,name:void 0,validationBehavior:"aria"}),p=(0,d.useRef)(I.PS),f=()=>{t.setInvalid(e.value,c.isInvalid?c:p.current)};(0,d.useEffect)(f);let m=t.realtimeValidation.isInvalid?t.realtimeValidation:c,g="native"===u?t.displayValidation:m,v=M({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||a,isRequired:null!==(n=e.isRequired)&&void 0!==n?n:t.isRequired,validationBehavior:u,[I.tL]:{realtimeValidation:m,displayValidation:g,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(e){p.current=e,f()}}},s,i);return{...v,inputProps:{...v.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?o:null,l].filter(Boolean).join(" ")||void 0}}}({...ed,...eh},f.groupState,el):M({...ed,...eh},ec,el),ey="invalid"===J||Y||eb,ex=!(em||eg)&&ev,{hoverProps:ew,isHovered:eS}=(0,v.X)({isDisabled:ep.disabled}),{focusProps:eP,isFocused:eC,isFocusVisible:eI}=(0,b.F)({autoFocus:ep.autoFocus}),ez=(0,d.useMemo)(()=>m({color:U,size:H,radius:$,isInvalid:ey,lineThrough:G,isDisabled:em,disableAnimation:X}),[U,H,$,ey,G,em,X]);(0,R.G)(()=>{if(!el.current)return;let e=!!el.current.checked;ec.setSelected(e)},[el.current]);let eE=(0,g.W)(eo),eD=(0,d.useCallback)(e=>{if(eg||em){e.preventDefault();return}null==eE||eE(e)},[eg,em,eE]),eT=(0,C.W)(null==et?void 0:et.base,ei),ek=(0,d.useCallback)(()=>({ref:ea,className:ez.base({class:eT}),"data-disabled":(0,w.PB)(em),"data-selected":(0,w.PB)(ef||Z),"data-invalid":(0,w.PB)(ey),"data-hover":(0,w.PB)(eS),"data-focus":(0,w.PB)(eC),"data-pressed":(0,w.PB)(ex),"data-readonly":(0,w.PB)(ep.readOnly),"data-focus-visible":(0,w.PB)(eI),"data-indeterminate":(0,w.PB)(Z),...(0,x.d)(ew,es)}),[ez,eT,em,ef,Z,ey,eS,eC,ex,ep.readOnly,eI,ew,es]),eM=(0,d.useCallback)((e={})=>({...e,"aria-hidden":!0,className:(0,C.W)(ez.wrapper({class:(0,C.W)(null==et?void 0:et.wrapper,null==e?void 0:e.className)}))}),[ez,null==et?void 0:et.wrapper]),eB=(0,d.useCallback)(()=>({ref:(0,j.l)(el,T),...(0,x.d)(ep,eP),className:ez.hiddenInput({class:null==et?void 0:et.hiddenInput}),onChange:(0,y.t)(ep.onChange,eD)}),[ep,eP,eD,null==et?void 0:et.hiddenInput]),eR=(0,d.useCallback)(()=>({id:eu,className:ez.label({class:null==et?void 0:et.label})}),[ez,null==et?void 0:et.label,em,ef,ey]),ej=(0,d.useCallback)(()=>({isSelected:ef,isIndeterminate:Z,disableAnimation:X,className:ez.icon({class:null==et?void 0:et.icon})}),[ez,null==et?void 0:et.icon,ef,Z,X]);return{Component:D||"label",icon:O,children:L,isSelected:ef,isDisabled:em,isInvalid:ey,isFocused:eC,isHovered:eS,isFocusVisible:eI,getBaseProps:ek,getWrapperProps:eM,getInputProps:eB,getLabelProps:eR,getIconProps:ej}}({...e,ref:t}),E="function"==typeof s?s(f()):(0,d.cloneElement)(s,f());return(0,r.jsxs)(i,{...l(),children:[(0,r.jsx)("input",{...p()}),(0,r.jsx)("span",{...c(),children:E}),n&&(0,r.jsx)("span",{...z(),children:n})]})});L.displayName="NextUI.Checkbox";var O=L},9473:function(e,t,i){"use strict";i.d(t,{z:function(){return b}});var r=i(4189),n=i(2014),s=i(9762),a=i(709),l=i(5278),o=i(3427),u=i(3123),d=(0,o.tv)({slots:{base:["relative","max-w-fit","min-w-min","inline-flex","items-center","justify-between","box-border","whitespace-nowrap"],content:"flex-1 text-inherit font-normal",dot:["w-2","h-2","ml-1","rounded-full"],avatar:"flex-shrink-0",closeButton:["z-10","appearance-none","outline-none","select-none","transition-opacity","opacity-70","hover:opacity-100","cursor-pointer","active:opacity-disabled","tap-highlight-transparent"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-medium"},shadow:{},dot:{base:"border-medium border-default text-foreground bg-transparent"}},color:{default:{dot:"bg-default-400"},primary:{dot:"bg-primary"},secondary:{dot:"bg-secondary"},success:{dot:"bg-success"},warning:{dot:"bg-warning"},danger:{dot:"bg-danger"}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"text-medium",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"text-large",avatar:"w-5 h-5"},lg:{base:"px-2 h-8 text-medium",content:"px-2",closeButton:"text-xl",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isOneChar:{true:{},false:{}},isCloseable:{true:{},false:{}},hasStartContent:{true:{}},hasEndContent:{true:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isCloseButtonFocusVisible:{true:{closeButton:[...u.jR,"ring-1","rounded-full"]}}},defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:l.J.solid.default}},{variant:"solid",color:"primary",class:{base:l.J.solid.primary}},{variant:"solid",color:"secondary",class:{base:l.J.solid.secondary}},{variant:"solid",color:"success",class:{base:l.J.solid.success}},{variant:"solid",color:"warning",class:{base:l.J.solid.warning}},{variant:"solid",color:"danger",class:{base:l.J.solid.danger}},{variant:"shadow",color:"default",class:{base:l.J.shadow.default}},{variant:"shadow",color:"primary",class:{base:l.J.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:l.J.shadow.secondary}},{variant:"shadow",color:"success",class:{base:l.J.shadow.success}},{variant:"shadow",color:"warning",class:{base:l.J.shadow.warning}},{variant:"shadow",color:"danger",class:{base:l.J.shadow.danger}},{variant:"bordered",color:"default",class:{base:l.J.bordered.default}},{variant:"bordered",color:"primary",class:{base:l.J.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:l.J.bordered.secondary}},{variant:"bordered",color:"success",class:{base:l.J.bordered.success}},{variant:"bordered",color:"warning",class:{base:l.J.bordered.warning}},{variant:"bordered",color:"danger",class:{base:l.J.bordered.danger}},{variant:"flat",color:"default",class:{base:l.J.flat.default}},{variant:"flat",color:"primary",class:{base:l.J.flat.primary}},{variant:"flat",color:"secondary",class:{base:l.J.flat.secondary}},{variant:"flat",color:"success",class:{base:l.J.flat.success}},{variant:"flat",color:"warning",class:{base:l.J.flat.warning}},{variant:"flat",color:"danger",class:{base:l.J.flat.danger}},{variant:"faded",color:"default",class:{base:l.J.faded.default}},{variant:"faded",color:"primary",class:{base:l.J.faded.primary}},{variant:"faded",color:"secondary",class:{base:l.J.faded.secondary}},{variant:"faded",color:"success",class:{base:l.J.faded.success}},{variant:"faded",color:"warning",class:{base:l.J.faded.warning}},{variant:"faded",color:"danger",class:{base:l.J.faded.danger}},{variant:"light",color:"default",class:{base:l.J.light.default}},{variant:"light",color:"primary",class:{base:l.J.light.primary}},{variant:"light",color:"secondary",class:{base:l.J.light.secondary}},{variant:"light",color:"success",class:{base:l.J.light.success}},{variant:"light",color:"warning",class:{base:l.J.light.warning}},{variant:"light",color:"danger",class:{base:l.J.light.danger}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"sm",class:{base:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"md",class:{base:"w-6 h-6 min-w-6 min-h-6"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"lg",class:{base:"w-7 h-7 min-w-7 min-h-7"}},{isOneChar:!0,isCloseable:!1,hasStartContent:!1,hasEndContent:!1,class:{base:"px-0 justify-center",content:"px-0 flex-none"}},{isOneChar:!0,isCloseable:!0,hasStartContent:!1,hasEndContent:!1,class:{base:"w-auto"}},{isOneChar:!0,variant:"dot",class:{base:"w-auto h-7 px-1 items-center",content:"px-2"}},{hasStartContent:!0,size:"sm",class:{content:"pl-0.5"}},{hasStartContent:!0,size:["md","lg"],class:{content:"pl-1"}},{hasEndContent:!0,size:"sm",class:{content:"pr-0.5"}},{hasEndContent:!0,size:["md","lg"],class:{content:"pr-1"}}]}),c=i(4211),h=i(1870),p=i(9077),f=i(9589),m=i(1955),g=i(217),v=(0,r.Gp)((e,t)=>{let{Component:i,children:l,slots:o,classNames:u,isDot:v,isCloseable:b,startContent:y,endContent:x,getCloseButtonProps:w,getChipProps:S}=function(e){let[t,i]=(0,r.oe)(e,d.variantKeys),{ref:l,as:o,children:u,avatar:m,startContent:g,endContent:v,onClose:b,classNames:y,className:x,...w}=t,S=(0,c.gy)(l),P=(0,h.W)(null==y?void 0:y.base,x),C=!!b,I="dot"===e.variant,{focusProps:z,isFocusVisible:E}=(0,a.F)(),D=(0,f.useMemo)(()=>"string"==typeof u&&(null==u?void 0:u.length)===1,[u]),T=(0,f.useMemo)(()=>!!m||!!g,[m,g]),k=(0,f.useMemo)(()=>!!v||C,[v,C]),M=(0,f.useMemo)(()=>d({...i,hasStartContent:T,hasEndContent:k,isOneChar:D,isCloseable:C,isCloseButtonFocusVisible:E}),[(0,p.Xx)(i),E,T,k,D,C]),{pressProps:B}=(0,s.r)({isDisabled:!!(null==e?void 0:e.isDisabled),onPress:b}),R=e=>(0,f.isValidElement)(e)?(0,f.cloneElement)(e,{className:(0,h.W)("max-h-[80%]",e.props.className)}):null;return{Component:o||"div",children:u,slots:M,classNames:y,isDot:I,isCloseable:C,startContent:((0,f.isValidElement)(m)?(0,f.cloneElement)(m,{className:M.avatar({class:null==y?void 0:y.avatar})}):null)||R(g),endContent:R(v),getCloseButtonProps:()=>({role:"button",tabIndex:0,className:M.closeButton({class:null==y?void 0:y.closeButton}),"aria-label":"close chip",...(0,n.d)(B,z)}),getChipProps:()=>({ref:S,className:M.base({class:P}),...w})}}({...e,ref:t}),P=(0,f.useMemo)(()=>v&&!y?(0,g.jsx)("span",{className:o.dot({class:null==u?void 0:u.dot})}):y,[o,y,v]),C=(0,f.useMemo)(()=>b?(0,g.jsx)("span",{...w(),children:x||(0,g.jsx)(m.f,{})}):x,[x,b,w]);return(0,g.jsxs)(i,{...S(),children:[P,(0,g.jsx)("span",{className:o.content({class:null==u?void 0:u.content}),children:l}),C]})});v.displayName="NextUI.Chip";var b=v},7018:function(e,t,i){"use strict";i.d(t,{j:function(){return u}});var r=i(7433),n=(0,i(3427).tv)({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),s=i(9589),a=i(4189),l=i(217),o=(0,a.Gp)((e,t)=>{let{Component:i,getDividerProps:a}=function(e){var t;let i,a;let{as:l,className:o,orientation:u,...d}=e,c=l||"hr";"hr"===c&&"vertical"===u&&(c="div");let{separatorProps:h}=(t={elementType:"string"==typeof c?c:"hr",orientation:u},a=(0,r.z)(t,{enabled:"string"==typeof t.elementType}),("vertical"===t.orientation&&(i="vertical"),"hr"!==t.elementType)?{separatorProps:{...a,role:"separator","aria-orientation":i}}:{separatorProps:a}),p=(0,s.useMemo)(()=>n({orientation:u,className:o}),[u,o]);return{Component:c,getDividerProps:(0,s.useCallback)((e={})=>({className:p,role:"separator","data-orientation":u,...h,...d,...e}),[p,u,h,d])}}({...e});return(0,l.jsx)(i,{ref:t,...a()})});o.displayName="NextUI.Divider";var u=o},2090:function(e,t,i){"use strict";i.d(t,{pE:function(){return o},jn:function(){return l}});var r=i(9589),n=i(3960),s=i(2014),a=Symbol("default");function l(e,t){let i=(0,r.useContext)(e);if(null===t)return null;if(i&&"object"==typeof i&&"slots"in i&&i.slots){let e=new Intl.ListFormat().format(Object.keys(i.slots).map(e=>`"${e}"`));if(!t&&!i.slots[a])throw Error(`A slot prop is required. Valid slot names are ${e}.`);let r=t||a;if(!i.slots[r])throw Error(`Invalid slot "${t}". Valid slot names are ${e}.`);return i.slots[r]}return i}function o(e,t,i){let{ref:a,...o}=l(i,e.slot)||{},u=function(e){let t=(0,r.useRef)(null);return(0,r.useMemo)(()=>({get current(){return t.current},set current(value){t.current=value,"function"==typeof e?e(value):e&&(e.current=value)}}),[e])}((0,r.useMemo)(()=>(0,n.l)(t,a),[t,a])),d=(0,s.d)(o,e);return"style"in o&&o.style&&"style"in e&&e.style&&("function"==typeof o.style||"function"==typeof e.style?d.style=t=>{let i="function"==typeof o.style?o.style(t):o.style,r={...t.defaultStyle,...i},n="function"==typeof e.style?e.style({...t,defaultStyle:r}):e.style;return{...r,...n}}:d.style={...o.style,...e.style}),[d,u]}},9993:function(e,t,i){"use strict";i.d(t,{q:function(){return o}});var r=i(2090),n=i(9661),s=i(9589),a=(0,i(3427).tv)({base:"flex flex-col gap-2 items-start"}),l=i(217),o=(0,s.createContext)(null);(0,s.forwardRef)(function(e,t){[e,t]=(0,r.pE)(e,t,o);let{validationErrors:i,validationBehavior:u="native",children:d,className:c,...h}=e,p=(0,s.useMemo)(()=>a({className:c}),[c]);return(0,l.jsx)("form",{noValidate:"native"!==u,...h,ref:t,className:p,children:(0,l.jsx)(o.Provider,{value:{...e,validationBehavior:u},children:(0,l.jsx)(n.r7.Provider,{value:null!=i?i:{},children:d})})})})},5740:function(e,t,i){"use strict";i.d(t,{Y:function(){return A}});var r=i(7510),n=i(4189),s=i(2110),a=i(709),l=i(3427),o=i(3123),u=(0,l.tv)({slots:{base:"group flex flex-col data-[hidden=true]:hidden",label:["absolute","z-10","pointer-events-none","origin-top-left","flex-shrink-0","rtl:origin-top-right","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5","file:cursor-pointer file:bg-transparent file:border-0","autofill:bg-transparent bg-clip-text"],clearButton:["p-2","-m-2","z-10","absolute","end-3","start-auto","pointer-events-none","appearance-none","outline-none","select-none","opacity-0","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...o.Dh],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-50","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 focus-within:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-8 min-h-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-10 min-h-10 rounded-medium",input:"text-small",clearButton:"text-large"},lg:{label:"text-medium",inputWrapper:"h-12 min-h-12 rounded-large",input:"text-medium",clearButton:"text-large"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pe-2 ps-2 pointer-events-auto"},inside:{label:"cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"},false:{}},isClearable:{true:{input:"peer pe-6 input-search-cancel-button-none",clearButton:["peer-data-[filled=true]:pointer-events-auto","peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block","peer-data-[filled=true]:scale-100"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide",clearButton:"absolute top-2 right-2 rtl:right-auto rtl:left-2 z-10"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity]"],clearButton:["scale-90","ease-out","duration-150","transition-[opacity,transform]","motion-reduce:transition-none","motion-reduce:scale-100"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,labelPlacement:"inside",isDisabled:!1,isMultiline:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-100","data-[hover=true]:bg-primary-50","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-100","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-100","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-100","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...o.ID]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["!bg-danger-50","data-[hover=true]:!bg-danger-100","group-data-[focus=true]:!bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:!border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:!bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:"outside",isMultiline:!1,class:{base:"relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:start-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["start-3","end-auto","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["start-3","end-auto","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}},{isClearable:!0,isMultiline:!0,class:{clearButton:["group-data-[has-value=true]:opacity-70 group-data-[has-value=true]:block","group-data-[has-value=true]:scale-100","group-data-[has-value=true]:pointer-events-auto"]}}]}),d=i(4211),c=i(7433),h=i(1596),p=i(4915),f=i(9762),m=i(1273),g=i(1870),v=i(197),b=i(4700),y=i(9077),x=i(125),w=i(9589),S=i(2014),P=i(6367),C=i(341),I=i(507),z=i(4229),E=i(8948),D=i(1771),T=i(3361),k=i(9661),M=i(2090),B=i(9993),R=i(1955),j=i(217),_=(0,n.Gp)((e,t)=>{let{Component:i,label:l,description:o,isClearable:_,startContent:A,endContent:L,labelPlacement:O,hasHelper:N,isOutsideLeft:F,shouldLabelBeOutside:V,errorMessage:K,isInvalid:W,getBaseProps:H,getLabelProps:U,getInputProps:$,getInnerWrapperProps:G,getInputWrapperProps:q,getMainWrapperProps:X,getHelperWrapperProps:J,getDescriptionProps:Y,getErrorMessageProps:Z,getClearButtonProps:Q}=function(e){var t,i,l,o;let R=(0,r.w)(),{validationBehavior:j}=(0,M.jn)(B.q)||{},[_,A]=(0,n.oe)(e,u.variantKeys),{ref:L,as:O,type:N,label:F,baseRef:V,wrapperRef:K,description:W,className:H,classNames:U,autoFocus:$,startContent:G,endContent:q,onClear:X,onChange:J,validationState:Y,validationBehavior:Z=null!=(t=null!=j?j:null==R?void 0:R.validationBehavior)?t:"native",innerWrapperRef:Q,onValueChange:ee=()=>{},...et}=_,ei=(0,w.useCallback)(e=>{ee(null!=e?e:"")},[ee]),[er,en]=(0,w.useState)(!1),es=null!=(l=null!=(i=e.disableAnimation)?i:null==R?void 0:R.disableAnimation)&&l,ea=(0,d.gy)(L),el=(0,d.gy)(V),eo=(0,d.gy)(K),eu=(0,d.gy)(Q),[ed,ec]=(0,x.z)(_.value,null!=(o=_.defaultValue)?o:"",ei),eh=["date","time","month","week","range"].includes(N),ep=!(0,m.xb)(ed)||eh,ef=ep||er,em="hidden"===N,eg=e.isMultiline,ev="file"===N,eb=(0,g.W)(null==U?void 0:U.base,H,ep?"is-filled":""),ey=(0,w.useCallback)(()=>{var e;ec(""),null==X||X(),null==(e=ea.current)||e.focus()},[ec,X]);(0,s.G)(()=>{ea.current&&ec(ea.current.value)},[ea.current]);let{labelProps:ex,inputProps:ew,isInvalid:eS,validationErrors:eP,validationDetails:eC,descriptionProps:eI,errorMessageProps:ez}=function(e,t){let{inputElementType:i="input",isDisabled:r=!1,isRequired:n=!1,isReadOnly:s=!1,type:a="text",validationBehavior:l="aria"}=e,[o,u]=(0,x.z)(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=(0,D.k)(e,t),c=(0,k.Q3)({...e,value:o}),{isInvalid:h,validationErrors:p,validationDetails:f}=c.displayValidation,{labelProps:m,fieldProps:g,descriptionProps:v,errorMessageProps:b}=(0,E.U)({...e,isInvalid:h,errorMessage:e.errorMessage||p}),y=(0,C.z)(e,{labelable:!0}),P={type:a,pattern:e.pattern};return(0,I.y)(t,o,u),(0,T.Q)(e,c,t),(0,w.useEffect)(()=>{if(t.current instanceof(0,z.k)(t.current).HTMLTextAreaElement){let e=t.current;Object.defineProperty(e,"defaultValue",{get:()=>e.value,set:()=>{},configurable:!0})}},[t]),{labelProps:m,inputProps:(0,S.d)(y,"input"===i?P:void 0,{disabled:r,readOnly:s,required:n&&"native"===l,"aria-required":n&&"aria"===l||void 0,"aria-invalid":h||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:o,onChange:e=>u(e.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...g}),descriptionProps:v,errorMessageProps:b,isInvalid:h,validationErrors:p,validationDetails:f}}({...e,validationBehavior:Z,autoCapitalize:e.autoCapitalize,value:ed,"aria-label":(0,v.x)(e["aria-label"],e.label,e.placeholder),inputElementType:eg?"textarea":"input",onChange:ec},ea);ev&&(delete ew.value,delete ew.onChange);let{isFocusVisible:eE,isFocused:eD,focusProps:eT}=(0,a.F)({autoFocus:$,isTextInput:!0}),{isHovered:ek,hoverProps:eM}=(0,h.X)({isDisabled:!!(null==e?void 0:e.isDisabled)}),{isHovered:eB,hoverProps:eR}=(0,h.X)({isDisabled:!!(null==e?void 0:e.isDisabled)}),{focusProps:ej,isFocusVisible:e_}=(0,a.F)(),{focusWithinProps:eA}=(0,p.L)({onFocusWithinChange:en}),{pressProps:eL}=(0,f.r)({isDisabled:!!(null==e?void 0:e.isDisabled)||!!(null==e?void 0:e.isReadOnly),onPress:ey}),eO="invalid"===Y||eS,eN=(0,w.useMemo)(()=>{var t;if(ev){if(!e.labelPlacement)return"outside";if("inside"===e.labelPlacement)return(0,b.Z)("Input with file type doesn't support inside label. Converting to outside ..."),"outside"}return e.labelPlacement&&"inside"!==e.labelPlacement||F?null!=(t=e.labelPlacement)?t:"inside":"outside"},[e.labelPlacement,F]),eF="function"==typeof _.errorMessage?_.errorMessage({isInvalid:eO,validationErrors:eP,validationDetails:eC}):_.errorMessage||(null==eP?void 0:eP.join(" ")),eV=!!X||e.isClearable,eK=!!F||!!W||!!eF,eW=!!_.placeholder,eH=!!F,eU=!!W||!!eF,e$="outside"===eN||"outside-left"===eN,eG="inside"===eN,eq=!!ea.current&&(!ea.current.value||""===ea.current.value||!ed||""===ed)&&eW,eX="outside-left"===eN,eJ=!!G,eY=!!e$&&("outside-left"===eN||eW||"outside"===eN&&eJ),eZ="outside"===eN&&!eW&&!eJ,eQ=(0,w.useMemo)(()=>u({...A,isInvalid:eO,labelPlacement:eN,isClearable:eV,disableAnimation:es}),[(0,y.Xx)(A),eO,eN,eV,eJ,es]),e0=(0,w.useCallback)((t={})=>({ref:el,className:eQ.base({class:eb}),"data-slot":"base","data-filled":(0,m.PB)(ep||eW||eJ||eq||ev),"data-filled-within":(0,m.PB)(ef||eW||eJ||eq||ev),"data-focus-within":(0,m.PB)(er),"data-focus-visible":(0,m.PB)(eE),"data-readonly":(0,m.PB)(e.isReadOnly),"data-focus":(0,m.PB)(eD),"data-hover":(0,m.PB)(ek||eB),"data-required":(0,m.PB)(e.isRequired),"data-invalid":(0,m.PB)(eO),"data-disabled":(0,m.PB)(e.isDisabled),"data-has-elements":(0,m.PB)(eK),"data-has-helper":(0,m.PB)(eU),"data-has-label":(0,m.PB)(eH),"data-has-value":(0,m.PB)(!eq),"data-hidden":(0,m.PB)(em),...eA,...t}),[eQ,eb,ep,eD,ek,eB,eO,eU,eH,eK,eq,eJ,er,eE,ef,eW,eA,em,e.isReadOnly,e.isRequired,e.isDisabled]),e1=(0,w.useCallback)((e={})=>({"data-slot":"label",className:eQ.label({class:null==U?void 0:U.label}),...(0,S.d)(ex,eR,e)}),[eQ,eB,ex,null==U?void 0:U.label]),e4=(0,w.useCallback)((t={})=>({"data-slot":"input","data-filled":(0,m.PB)(ep),"data-filled-within":(0,m.PB)(ef),"data-has-start-content":(0,m.PB)(eJ),"data-has-end-content":(0,m.PB)(!!q),className:eQ.input({class:(0,g.W)(null==U?void 0:U.input,ep?"is-filled":"",eg?"pe-0":"")}),...(0,S.d)(eT,ew,(0,c.z)(et,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(ew))}),t),"aria-readonly":(0,m.PB)(e.isReadOnly),onChange:(0,P.t)(ew.onChange,J),ref:ea}),[eQ,ed,eT,ew,et,ep,ef,eJ,q,null==U?void 0:U.input,e.isReadOnly,e.isRequired,J]),e3=(0,w.useCallback)((e={})=>({ref:eo,"data-slot":"input-wrapper","data-hover":(0,m.PB)(ek||eB),"data-focus-visible":(0,m.PB)(eE),"data-focus":(0,m.PB)(eD),className:eQ.inputWrapper({class:(0,g.W)(null==U?void 0:U.inputWrapper,ep?"is-filled":"")}),...(0,S.d)(e,eM),onClick:e=>{ea.current&&e.currentTarget===e.target&&ea.current.focus()},style:{cursor:"text",...e.style}}),[eQ,ek,eB,eE,eD,ed,null==U?void 0:U.inputWrapper]),e2=(0,w.useCallback)((e={})=>({...e,ref:eu,"data-slot":"inner-wrapper",onClick:e=>{ea.current&&e.currentTarget===e.target&&ea.current.focus()},className:eQ.innerWrapper({class:(0,g.W)(null==U?void 0:U.innerWrapper,null==e?void 0:e.className)})}),[eQ,null==U?void 0:U.innerWrapper]),e5=(0,w.useCallback)((e={})=>({...e,"data-slot":"main-wrapper",className:eQ.mainWrapper({class:(0,g.W)(null==U?void 0:U.mainWrapper,null==e?void 0:e.className)})}),[eQ,null==U?void 0:U.mainWrapper]),e7=(0,w.useCallback)((e={})=>({...e,"data-slot":"helper-wrapper",className:eQ.helperWrapper({class:(0,g.W)(null==U?void 0:U.helperWrapper,null==e?void 0:e.className)})}),[eQ,null==U?void 0:U.helperWrapper]),e6=(0,w.useCallback)((e={})=>({...e,...eI,"data-slot":"description",className:eQ.description({class:(0,g.W)(null==U?void 0:U.description,null==e?void 0:e.className)})}),[eQ,null==U?void 0:U.description]),e9=(0,w.useCallback)((e={})=>({...e,...ez,"data-slot":"error-message",className:eQ.errorMessage({class:(0,g.W)(null==U?void 0:U.errorMessage,null==e?void 0:e.className)})}),[eQ,ez,null==U?void 0:U.errorMessage]),e8=(0,w.useCallback)((t={})=>({...t,type:"button",tabIndex:-1,disabled:e.isDisabled,"aria-label":"clear input","data-slot":"clear-button","data-focus-visible":(0,m.PB)(e_),className:eQ.clearButton({class:(0,g.W)(null==U?void 0:U.clearButton,null==t?void 0:t.className)}),...(0,S.d)(eL,ej)}),[eQ,e_,eL,ej,null==U?void 0:U.clearButton]);return{Component:O||"div",classNames:U,domRef:ea,label:F,description:W,startContent:G,endContent:q,labelPlacement:eN,isClearable:eV,hasHelper:eU,hasStartContent:eJ,isLabelOutside:eY,isOutsideLeft:eX,isLabelOutsideAsPlaceholder:eZ,shouldLabelBeOutside:e$,shouldLabelBeInside:eG,hasPlaceholder:eW,isInvalid:eO,errorMessage:eF,getBaseProps:e0,getLabelProps:e1,getInputProps:e4,getMainWrapperProps:e5,getInputWrapperProps:e3,getInnerWrapperProps:e2,getHelperWrapperProps:e7,getDescriptionProps:e6,getErrorMessageProps:e9,getClearButtonProps:e8}}({...e,ref:t}),ee=l?(0,j.jsx)("label",{...U(),children:l}):null,et=(0,w.useMemo)(()=>_?(0,j.jsx)("button",{...Q(),children:L||(0,j.jsx)(R.f,{})}):L,[_,Q]),ei=(0,w.useMemo)(()=>{let e=W&&K,t=e||o;return N&&t?(0,j.jsx)("div",{...J(),children:e?(0,j.jsx)("div",{...Z(),children:K}):(0,j.jsx)("div",{...Y(),children:o})}):null},[N,W,K,o,J,Z,Y]),er=(0,w.useMemo)(()=>(0,j.jsxs)("div",{...G(),children:[A,(0,j.jsx)("input",{...$()}),et]}),[A,et,$,G]),en=(0,w.useMemo)(()=>V?(0,j.jsxs)("div",{...X(),children:[(0,j.jsxs)("div",{...q(),children:[F?null:ee,er]}),ei]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("div",{...q(),children:[ee,er]}),ei]}),[O,ei,V,ee,er,K,o,X,q,Z,Y]);return(0,j.jsxs)(i,{...H(),children:[F?ee:null,en]})});_.displayName="NextUI.Input";var A=_},2312:function(e,t,i){"use strict";i.d(t,{R:function(){return s}});var r=i(9589);function n(e){return null}n.getCollectionNode=function*(e,t){let{childItems:i,title:n,children:s}=e,a=e.title||e.children,l=e.textValue||("string"==typeof a?a:"")||e["aria-label"]||"";l||(null==t?void 0:t.suppressTextValueWarning)||console.warn(" with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:a,textValue:l,"aria-label":e["aria-label"],hasChildNodes:null!=e.hasChildItems?e.hasChildItems:!!(e.childItems||e.title&&r.Children.count(e.children)>0),*childNodes(){if(i)for(let e of i)yield{type:"item",value:e};else if(n){let e=[];r.Children.forEach(s,t=>{e.push({type:"item",element:t})}),yield*e}}}};var s=n},7225:function(e,t,i){"use strict";i.d(t,{k:function(){return d}});var r=i(5412),n=i(9589),s=i(4189),a=i(4211),l=i(1870),o=i(217),u=(0,s.Gp)((e,t)=>{let{as:i,children:s,className:u,...d}=e,{slots:c,classNames:h,headerId:p,setHeaderMounted:f}=(0,r.v)(),m=(0,a.gy)(t);return(0,n.useEffect)(()=>(f(!0),()=>f(!1)),[f]),(0,o.jsx)(i||"header",{ref:m,className:c.header({class:(0,l.W)(null==h?void 0:h.header,u)}),id:p,...d,children:s})});u.displayName="NextUI.ModalHeader";var d=u},5412:function(e,t,i){"use strict";i.d(t,{D:function(){return r},v:function(){return n}});var[r,n]=(0,i(4083).k)({name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"})},271:function(e,t,i){"use strict";i.d(t,{I:function(){return d}});var r=i(5412),n=i(9589),s=i(4189),a=i(4211),l=i(1870),o=i(217),u=(0,s.Gp)((e,t)=>{let{as:i,children:s,className:u,...d}=e,{slots:c,classNames:h,bodyId:p,setBodyMounted:f}=(0,r.v)(),m=(0,a.gy)(t);return(0,n.useEffect)(()=>(f(!0),()=>f(!1)),[f]),(0,o.jsx)(i||"div",{ref:m,className:c.body({class:(0,l.W)(null==h?void 0:h.body,u)}),id:p,...d,children:s})});u.displayName="NextUI.ModalBody";var d=u},2086:function(e,t,i){"use strict";i.d(t,{R:function(){return z}});var r=i(1699),n=i(9440),s=i(1233),a=i(3677),l=i(2014),o=i(9589),u=i(3427),d=i(3123),c=(0,u.tv)({slots:{wrapper:["flex","w-screen","h-[100dvh]","fixed","inset-0","z-50","overflow-x-auto","justify-center","h-[--visual-viewport-height]"],base:["flex","flex-col","relative","bg-white","z-50","w-full","box-border","bg-content1","outline-none","mx-1","my-1","sm:mx-6","sm:my-16"],backdrop:"z-50",header:"flex py-4 px-6 flex-initial text-large font-semibold",body:"flex flex-1 flex-col gap-3 px-6 py-2",footer:"flex flex-row gap-2 px-6 py-4 justify-end",closeButton:["absolute","appearance-none","outline-none","select-none","top-1","end-1","p-2","text-foreground-500","rounded-full","hover:bg-default-100","active:bg-default-200","tap-highlight-transparent",...d.Dh]},variants:{size:{xs:{base:"max-w-xs"},sm:{base:"max-w-sm"},md:{base:"max-w-md"},lg:{base:"max-w-lg"},xl:{base:"max-w-xl"},"2xl":{base:"max-w-2xl"},"3xl":{base:"max-w-3xl"},"4xl":{base:"max-w-4xl"},"5xl":{base:"max-w-5xl"},full:{base:"my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] min-h-[100dvh] !rounded-none"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},placement:{auto:{wrapper:"items-end sm:items-center"},center:{wrapper:"items-center sm:items-center"},top:{wrapper:"items-start sm:items-start"},"top-center":{wrapper:"items-start sm:items-center"},bottom:{wrapper:"items-end sm:items-end"},"bottom-center":{wrapper:"items-end sm:items-center"}},shadow:{sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},backdrop:{transparent:{backdrop:"hidden"},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-md backdrop-saturate-150 bg-overlay/30"}},scrollBehavior:{normal:{base:"overflow-y-hidden"},inside:{base:"max-h-[calc(100%_-_8rem)]",body:"overflow-y-auto"},outside:{wrapper:"items-start sm:items-start overflow-y-auto",base:"my-16"}},disableAnimation:{false:{wrapper:["[--scale-enter:100%]","[--scale-exit:100%]","[--slide-enter:0px]","[--slide-exit:80px]","sm:[--scale-enter:100%]","sm:[--scale-exit:103%]","sm:[--slide-enter:0px]","sm:[--slide-exit:0px]"]}}},defaultVariants:{size:"md",radius:"lg",shadow:"sm",placement:"auto",backdrop:"opaque",scrollBehavior:"normal"},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"w-screen h-screen fixed inset-0"}}]}),h=i(7510),p=i(4189),f=i(7414),m=i(709),g=i(1870),v=i(9077),b=i(1273),y=i(4211),x=i(8215),w=i(3960),S=i(5412),P=i(4111),C=i(217),I=(0,p.Gp)((e,t)=>{let{children:i,...u}=e,d=function(e){var t,i,u;let d=(0,h.w)(),[S,P]=(0,p.oe)(e,c.variantKeys),{ref:C,as:I,className:z,classNames:E,isOpen:D,defaultOpen:T,onOpenChange:k,motionProps:M,closeButton:B,isDismissable:R=!0,hideCloseButton:j=!1,shouldBlockScroll:_=!0,portalContainer:A,isKeyboardDismissDisabled:L=!1,onClose:O,...N}=S,F=(0,y.gy)(C),V=(0,o.useRef)(null),[K,W]=(0,o.useState)(!1),[H,U]=(0,o.useState)(!1),$=null!=(i=null!=(t=e.disableAnimation)?t:null==d?void 0:d.disableAnimation)&&i,G=(0,o.useId)(),q=(0,o.useId)(),X=(0,o.useId)(),J=(0,x.d)({isOpen:D,defaultOpen:T,onOpenChange:e=>{null==k||k(e),e||null==O||O()}}),{modalProps:Y,underlayProps:Z}=function(e={shouldBlockScroll:!0},t,i){let{overlayProps:u,underlayProps:d}=(0,r.I)({...e,isOpen:t.isOpen,onClose:t.close},i);return(0,n.t)({isDisabled:!t.isOpen||!e.shouldBlockScroll}),(0,s.Bq)(),(0,o.useEffect)(()=>{if(t.isOpen&&i.current)return(0,a.R)([i.current])},[t.isOpen,i]),{modalProps:(0,l.d)(u),underlayProps:d}}({isDismissable:R,shouldBlockScroll:_,isKeyboardDismissDisabled:L},J,F),{buttonProps:Q}=(0,f.j)({onPress:J.close},V),{isFocusVisible:ee,focusProps:et}=(0,m.F)(),ei=(0,g.W)(null==E?void 0:E.base,z),er=(0,o.useMemo)(()=>c({...P,disableAnimation:$}),[(0,v.Xx)(P),$]),en=(0,o.useCallback)((e={})=>({className:er.backdrop({class:null==E?void 0:E.backdrop}),onClick:()=>J.close(),...Z,...e}),[er,E,Z]);return{Component:I||"section",slots:er,domRef:F,headerId:q,bodyId:X,motionProps:M,classNames:E,isDismissable:R,closeButton:B,hideCloseButton:j,portalContainer:A,shouldBlockScroll:_,backdrop:null!=(u=e.backdrop)?u:"opaque",isOpen:J.isOpen,onClose:J.close,disableAnimation:$,setBodyMounted:U,setHeaderMounted:W,getDialogProps:(t={},i=null)=>{var r;return{ref:(0,w.l)(i,F),...(0,l.d)(Y,N,t),className:er.base({class:(0,g.W)(ei,t.className)}),id:G,"data-open":(0,b.PB)(J.isOpen),"data-dismissable":(0,b.PB)(R),"aria-modal":(0,b.PB)(!0),"data-placement":null!=(r=null==e?void 0:e.placement)?r:"right","aria-labelledby":K?q:void 0,"aria-describedby":H?X:void 0}},getBackdropProps:en,getCloseButtonProps:()=>({role:"button",tabIndex:0,"aria-label":"Close","data-focus-visible":(0,b.PB)(ee),className:er.closeButton({class:null==E?void 0:E.closeButton}),...(0,l.d)(Q,et)})}}({...u,ref:t}),I=(0,C.jsx)(s.aV,{portalContainer:d.portalContainer,children:i});return(0,C.jsx)(S.D,{value:d,children:d.disableAnimation&&d.isOpen?I:(0,C.jsx)(P.M,{children:d.isOpen?I:null})})});I.displayName="NextUI.Modal";var z=I},8826:function(e,t,i){"use strict";i.d(t,{R:function(){return u}});var r=i(5412),n=i(4189),s=i(4211),a=i(1870),l=i(217),o=(0,n.Gp)((e,t)=>{let{as:i,children:n,className:o,...u}=e,{slots:d,classNames:c}=(0,r.v)(),h=(0,s.gy)(t);return(0,l.jsx)(i||"footer",{ref:h,className:d.footer({class:(0,a.W)(null==c?void 0:c.footer,o)}),...u,children:n})});o.displayName="NextUI.ModalFooter";var u=o},6775:function(e,t,i){"use strict";i.d(t,{A:function(){return x}});var r=i(6737),n={enter:{scale:"var(--scale-enter)",y:"var(--slide-enter)",opacity:1,willChange:"auto",transition:{scale:{duration:.4,ease:r.Lj.ease},opacity:{duration:.4,ease:r.Lj.ease},y:{type:"spring",bounce:0,duration:.6}}},exit:{scale:"var(--scale-exit)",y:"var(--slide-exit)",opacity:0,willChange:"transform",transition:{duration:.3,ease:r.Lj.ease}}},s=i(5412),a=i(9589),l=i(5997),o=i(217),u=e=>{let{isSelected:t,isIndeterminate:i,disableAnimation:r,...n}=e;return(0,o.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...n,children:(0,o.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})})},d=i(3264),c=i(2414),h=i(3538),p=i(6717);let f="undefined"!=typeof document&&window.visualViewport;function m(){return{width:f&&(null==f?void 0:f.width)||window.innerWidth,height:f&&(null==f?void 0:f.height)||window.innerHeight}}var g=i(2014),v=i(6367),b=()=>i.e(954).then(i.bind(i,2965)).then(e=>e.default),y=e=>{let{as:t,children:i,role:y="dialog",...x}=e,{Component:w,domRef:S,slots:P,classNames:C,motionProps:I,backdrop:z,closeButton:E,hideCloseButton:D,disableAnimation:T,getDialogProps:k,getBackdropProps:M,getCloseButtonProps:B,onClose:R}=(0,s.v)(),j=function(){let e=(0,p.Av)(),[t,i]=(0,a.useState)(()=>e?{width:0,height:0}:m());return(0,a.useEffect)(()=>{let e=()=>{i(e=>{let t=m();return t.width===e.width&&t.height===e.height?e:t})};return f?f.addEventListener("resize",e):window.addEventListener("resize",e),()=>{f?f.removeEventListener("resize",e):window.removeEventListener("resize",e)}},[]),t}(),{dialogProps:_}=(0,h.R)({role:y},S),A=(0,a.isValidElement)(E)?(0,a.cloneElement)(E,B()):(0,o.jsx)("button",{...B(),children:(0,o.jsx)(u,{})}),L=(0,a.useCallback)(e=>{"Tab"===e.key&&e.nativeEvent.isComposing&&(e.stopPropagation(),e.preventDefault())},[]),O=k((0,g.d)(_,x)),N=(0,o.jsxs)(t||w||"div",{...O,onKeyDown:(0,v.t)(O.onKeyDown,L),children:[(0,o.jsx)(l.U,{onDismiss:R}),!D&&A,"function"==typeof i?i(R):i,(0,o.jsx)(l.U,{onDismiss:R})]}),F=(0,a.useMemo)(()=>"transparent"===z?null:T?(0,o.jsx)("div",{...M()}):(0,o.jsx)(d.X,{features:b,children:(0,o.jsx)(c.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:r.y7.fade,...M()})}),[z,T,M]),V={"--visual-viewport-height":j.height+"px"},K=T?(0,o.jsx)("div",{className:P.wrapper({class:null==C?void 0:C.wrapper}),"data-slot":"wrapper",style:V,children:N}):(0,o.jsx)(d.X,{features:b,children:(0,o.jsx)(c.m.div,{animate:"enter",className:P.wrapper({class:null==C?void 0:C.wrapper}),"data-slot":"wrapper",exit:"exit",initial:"exit",variants:n,...I,style:V,children:N})});return(0,o.jsxs)("div",{tabIndex:-1,children:[F,K]})};y.displayName="NextUI.ModalContent";var x=y},2731:function(e,t,i){"use strict";i.d(t,{J:function(){return C}});var r=i(1760),n=i(9589),s=i(709),a=i(1596),l=i(9332),o=i(7877),u=i(2014),d=i(341),c=i(507),h=i(1771),p=i(3361),f=i(9762),m=i(7510),g=i(1273),v=i(4700),b=i(1870),y=i(4211),x=i(6367),w=i(4189),S=i(217),P=(0,w.Gp)((e,t)=>{let{Component:i,children:w,description:P,getBaseProps:C,getWrapperProps:I,getInputProps:z,getLabelProps:E,getLabelWrapperProps:D,getControlProps:T,getDescriptionProps:k}=function(e){var t,i,w,S,P;let C=(0,m.w)(),I=(0,r.F)(),{as:z,ref:E,classNames:D,id:T,value:k,children:M,description:B,size:R=null!=(t=null==I?void 0:I.size)?t:"md",color:j=null!=(i=null==I?void 0:I.color)?i:"primary",isDisabled:_=null!=(w=null==I?void 0:I.isDisabled)&&w,disableAnimation:A=null!=(P=null!=(S=null==I?void 0:I.disableAnimation)?S:null==C?void 0:C.disableAnimation)&&P,onChange:L=null==I?void 0:I.onChange,autoFocus:O=!1,className:N,...F}=e;I&&g.Ts&&("checked"in F&&(0,v.Z)('Remove props "checked" if in the Radio.Group.',"Radio"),void 0===k&&(0,v.Z)('Props "value" must be defined if in the Radio.Group.',"Radio"));let V=(0,y.gy)(E),K=(0,n.useRef)(null),W=(0,n.useId)(),H=(0,n.useId)(),U=(0,n.useMemo)(()=>{var e;return null!=(e=I.isRequired)&&e},[I.isRequired]),$=I.isInvalid,{inputProps:G,isDisabled:q,isSelected:X,isPressed:J}=function(e,t,i){let{value:r,children:n,"aria-label":s,"aria-labelledby":a}=e,l=e.isDisabled||t.isDisabled;null!=n||null!=s||null!=a||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let m=t.selectedValue===r,{pressProps:g,isPressed:v}=(0,f.r)({isDisabled:l}),{pressProps:b,isPressed:y}=(0,f.r)({isDisabled:l,onPress(){t.setSelectedValue(r)}}),{focusableProps:x}=(0,h.k)((0,u.d)(e,{onFocus:()=>t.setLastFocusedValue(r)}),i),w=(0,u.d)(g,x),S=(0,d.z)(e,{labelable:!0}),P=-1;null!=t.selectedValue?t.selectedValue===r&&(P=0):(t.lastFocusedValue===r||null==t.lastFocusedValue)&&(P=0),l&&(P=void 0);let{name:C,descriptionId:I,errorMessageId:z,validationBehavior:E}=(0,o.H).get(t);return(0,c.y)(i,t.selectedValue,t.setSelectedValue),(0,p.Q)({validationBehavior:E},t,i),{labelProps:(0,u.d)(b,{onClick:e=>e.preventDefault()}),inputProps:(0,u.d)(S,{...w,type:"radio",name:C,tabIndex:P,disabled:l,required:t.isRequired&&"native"===E,checked:m,value:r,onChange:e=>{e.stopPropagation(),t.setSelectedValue(r)},"aria-describedby":[e["aria-describedby"],t.isInvalid?z:null,I].filter(Boolean).join(" ")||void 0}),isDisabled:l,isSelected:m,isPressed:v||y}}({value:k,children:"function"==typeof M||M,...(0,n.useMemo)(()=>{let e=[F["aria-describedby"],H].filter(Boolean).join(" ")||void 0;return{id:T,isRequired:U,isDisabled:_,"aria-label":F["aria-label"],"aria-labelledby":F["aria-labelledby"]||W,"aria-describedby":e}},[T,_,U,B,F["aria-label"],F["aria-labelledby"],F["aria-describedby"],H])},I.groupState,K),{focusProps:Y,isFocused:Z,isFocusVisible:Q}=(0,s.F)({autoFocus:O}),ee=q||G.readOnly,{hoverProps:et,isHovered:ei}=(0,a.X)({isDisabled:ee}),er=!ee&&J,en=(0,n.useMemo)(()=>(0,l.k)({color:j,size:R,isInvalid:$,isDisabled:q,disableAnimation:A}),[j,R,q,$,A]),es=(0,b.W)(null==D?void 0:D.base,N),ea=(0,n.useCallback)((e={})=>({...e,ref:V,className:en.base({class:es}),"data-disabled":(0,g.PB)(q),"data-focus":(0,g.PB)(Z),"data-focus-visible":(0,g.PB)(Q),"data-selected":(0,g.PB)(X),"data-invalid":(0,g.PB)($),"data-hover":(0,g.PB)(ei),"data-pressed":(0,g.PB)(er),"data-hover-unselected":(0,g.PB)(ei&&!X),"data-readonly":(0,g.PB)(G.readOnly),"aria-required":(0,g.PB)(U),...(0,u.d)(et,F)}),[en,es,V,q,Z,Q,X,$,ei,er,G.readOnly,U,F]),el=(0,n.useCallback)((e={})=>({...e,"aria-hidden":!0,className:(0,b.W)(en.wrapper({class:(0,b.W)(null==D?void 0:D.wrapper,e.className)}))}),[en,null==D?void 0:D.wrapper]),eo=(0,n.useCallback)((e={})=>({ref:K,...(0,u.d)(e,G,Y),className:en.hiddenInput({class:null==D?void 0:D.hiddenInput}),onChange:(0,x.t)(G.onChange,L)}),[G,Y,L]),eu=(0,n.useCallback)((e={})=>({...e,id:W,className:en.label({class:null==D?void 0:D.label})}),[en,null==D?void 0:D.label,q,X,$]);return{Component:z||"label",children:M,isSelected:X,isDisabled:q,isInvalid:$,isFocusVisible:Q,description:B,getBaseProps:ea,getWrapperProps:el,getInputProps:eo,getLabelProps:eu,getLabelWrapperProps:(0,n.useCallback)((e={})=>({...e,className:en.labelWrapper({class:null==D?void 0:D.labelWrapper})}),[en,null==D?void 0:D.labelWrapper]),getControlProps:(0,n.useCallback)((e={})=>({...e,className:en.control({class:null==D?void 0:D.control})}),[en,null==D?void 0:D.control]),getDescriptionProps:(0,n.useCallback)((e={})=>({...e,id:H,className:en.description({class:null==D?void 0:D.description})}),[en,null==D?void 0:D.description])}}({...e,ref:t});return(0,S.jsxs)(i,{...C(),children:[(0,S.jsx)("input",{...z()}),(0,S.jsx)("span",{...I(),children:(0,S.jsx)("span",{...T()})}),(0,S.jsxs)("div",{...D(),children:[w&&(0,S.jsx)("span",{...E(),children:w}),P&&(0,S.jsx)("span",{...k(),children:P})]})]})});P.displayName="NextUI.Radio";var C=P},2415:function(e,t,i){"use strict";i.d(t,{X:function(){return D}});var r=i(9332),n=i(9589),s=i(9661),a=i(125);let l=Math.round(1e10*Math.random()),o=0;var u=i(7877),d=i(341),c=i(6176),h=i(2014),p=i(7599),f=i(8948),m=i(4915),g=i(2314),v=i(7510),b=i(4211),y=i(7433),x=i(197),w=i(1870),S=i(2090),P=i(9993),C=i(1760),I=i(4189),z=i(217),E=(0,I.Gp)((e,t)=>{let{Component:i,children:I,label:E,context:D,description:T,isInvalid:k,errorMessage:M,getGroupProps:B,getLabelProps:R,getWrapperProps:j,getDescriptionProps:_,getErrorMessageProps:A}=function(e){var t,i;let C=(0,v.w)(),{validationBehavior:I}=(0,S.jn)(P.q)||{},{as:z,ref:E,classNames:D,children:T,label:k,value:M,name:B,isInvalid:R,validationState:j,validationBehavior:_=null!=(t=null!=I?I:null==C?void 0:C.validationBehavior)?t:"native",size:A="md",color:L="primary",isDisabled:O=!1,disableAnimation:N=null!=(i=null==C?void 0:C.disableAnimation)&&i,orientation:F="vertical",isRequired:V=!1,isReadOnly:K,errorMessage:W,description:H,className:U,onChange:$,onValueChange:G,...q}=e,X=z||"div",J="string"==typeof X,Y=(0,b.gy)(E),Z=(0,n.useMemo)(()=>({...q,value:M,name:B,"aria-label":(0,x.x)(q["aria-label"],k),isRequired:V,isReadOnly:K,isInvalid:"invalid"===j||R,orientation:F,validationBehavior:_,onChange:G}),[q,M,B,k,V,K,R,j,_,F,G]),Q=function(e){var t;let i=(0,n.useMemo)(()=>e.name||`radio-group-${l}-${++o}`,[e.name]),[r,u]=(0,a.z)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onChange),[d,c]=(0,n.useState)(null),h=(0,s.Q3)({...e,value:r}),p=h.displayValidation.isInvalid;return{...h,name:i,selectedValue:r,setSelectedValue:t=>{e.isReadOnly||e.isDisabled||(u(t),h.commitValidation())},lastFocusedValue:d,setLastFocusedValue:c,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(p?"invalid":null),isInvalid:p}}(Z),{labelProps:ee,radioGroupProps:et,errorMessageProps:ei,descriptionProps:er,isInvalid:en,validationErrors:es,validationDetails:ea}=function(e,t){let{name:i,isReadOnly:r,isRequired:n,isDisabled:s,orientation:a="vertical",validationBehavior:l="aria"}=e,{direction:o}=(0,g.j)(),{isInvalid:v,validationErrors:b,validationDetails:y}=t.displayValidation,{labelProps:x,fieldProps:w,descriptionProps:S,errorMessageProps:P}=(0,f.U)({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||b}),C=(0,d.z)(e,{labelable:!0}),{focusWithinProps:I}=(0,m.L)({onBlurWithin(i){var r;null===(r=e.onBlur)||void 0===r||r.call(e,i),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),z=(0,c.Me)(i);return(0,u.H).set(t,{name:z,descriptionId:S.id,errorMessageId:P.id,validationBehavior:l}),{radioGroupProps:(0,h.d)(C,{role:"radiogroup",onKeyDown:e=>{let i,r;switch(e.key){case"ArrowRight":i="rtl"===o&&"vertical"!==a?"prev":"next";break;case"ArrowLeft":i="rtl"===o&&"vertical"!==a?"next":"prev";break;case"ArrowDown":i="next";break;case"ArrowUp":i="prev";break;default:return}e.preventDefault();let n=(0,p.QL)(e.currentTarget,{from:e.target});"next"===i?(r=n.nextNode())||(n.currentNode=e.currentTarget,r=n.firstChild()):(r=n.previousNode())||(n.currentNode=e.currentTarget,r=n.lastChild()),r&&(r.focus(),t.setSelectedValue(r.value))},"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":r||void 0,"aria-required":n||void 0,"aria-disabled":s||void 0,"aria-orientation":a,...w,...I}),labelProps:x,descriptionProps:S,errorMessageProps:P,isInvalid:v,validationErrors:b,validationDetails:y}}(Z,Q),el=Z.isInvalid||en||Q.isInvalid,eo=(0,n.useMemo)(()=>({size:A,color:L,groupState:Q,isRequired:V,isInvalid:el,isDisabled:O,disableAnimation:N,onChange:$}),[A,L,V,O,el,$,N,Q.name,Q.isDisabled,Q.isReadOnly,Q.isRequired,Q.selectedValue,Q.lastFocusedValue]),eu=(0,n.useMemo)(()=>(0,r.O)({isRequired:V,isInvalid:el,disableAnimation:N}),[el,V,N]),ed=(0,w.W)(null==D?void 0:D.base,U),ec=(0,n.useCallback)(()=>({ref:Y,className:eu.base({class:ed}),...(0,h.d)(et,(0,y.z)(q,{enabled:J}))}),[Y,eu,ed,et,q]),eh=(0,n.useCallback)(()=>({className:eu.label({class:null==D?void 0:D.label}),...ee}),[eu,null==D?void 0:D.label,ee,null==D?void 0:D.label]),ep=(0,n.useCallback)(()=>({className:eu.wrapper({class:null==D?void 0:D.wrapper}),role:"presentation","data-orientation":F}),[eu,null==D?void 0:D.wrapper,F,eu.wrapper]),ef=(0,n.useCallback)((e={})=>({...e,...er,className:eu.description({class:(0,w.W)(null==D?void 0:D.description,null==e?void 0:e.className)})}),[eu,null==D?void 0:D.description,er,eu.description]),em=(0,n.useCallback)((e={})=>({...e,...ei,className:eu.errorMessage({class:(0,w.W)(null==D?void 0:D.errorMessage,null==e?void 0:e.className)})}),[eu,null==D?void 0:D.errorMessage,ei]);return{Component:X,children:T,label:k,context:eo,description:H,isInvalid:el,errorMessage:"function"==typeof W?W({isInvalid:el,validationErrors:es,validationDetails:ea}):W||(null==es?void 0:es.join(" ")),getGroupProps:ec,getLabelProps:eh,getWrapperProps:ep,getDescriptionProps:ef,getErrorMessageProps:em}}({...e,ref:t});return(0,z.jsxs)(i,{...B(),children:[E&&(0,z.jsx)("span",{...R(),children:E}),(0,z.jsx)("div",{...j(),children:(0,z.jsx)(C.X,{value:D,children:I})}),k&&M?(0,z.jsx)("div",{...A(),children:M}):T?(0,z.jsx)("div",{..._(),children:T}):null]})});E.displayName="NextUI.RadioGroup";var D=E},1760:function(e,t,i){"use strict";i.d(t,{F:function(){return n},X:function(){return r}});var[r,n]=(0,i(4083).k)({name:"RadioGroupContext",strict:!1})},8536:function(e,t,i){"use strict";i.d(t,{g:function(){return tf}});var r=i(7510),n=i(4189),s=i(3427),a=i(3123),l=(0,s.tv)({slots:{base:["group inline-flex flex-col relative"],label:["block","absolute","z-10","origin-top-left","rtl:origin-top-right","subpixel-antialiased","text-small","text-foreground-500","pointer-events-none"],mainWrapper:"w-full flex flex-col",trigger:"relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",innerWrapper:"inline-flex h-full w-[calc(100%_-_theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",selectorIcon:"absolute end-3 w-4 h-4",spinner:"absolute end-3",value:["text-foreground-500","font-normal","w-full","text-start"],listboxWrapper:"scroll-py-6 w-full",listbox:"",popoverContent:"w-full p-1 overflow-hidden",helperWrapper:"p-1 flex relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{trigger:["bg-default-100","data-[hover=true]:bg-default-50","group-data-[focus=true]:bg-default-50"]},faded:{trigger:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 data-[focus=true]:border-default-400 data-[open=true]:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{trigger:["border-medium","border-default-200","data-[hover=true]:border-default-400","data-[open=true]:border-default-foreground","data-[focus=true]:border-default-foreground"],value:"group-data-[has-value=true]:text-default-foreground"},underlined:{trigger:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","data-[open=true]:after:w-full","data-[focus=true]:after:w-full"],value:"group-data-[has-value=true]:text-default-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",trigger:"h-8 min-h-8 px-2 rounded-small",value:"text-small"},md:{trigger:"h-10 min-h-10 rounded-medium",value:"text-small"},lg:{trigger:"h-12 min-h-12 rounded-large",value:"text-medium"}},radius:{none:{trigger:"rounded-none"},sm:{trigger:"rounded-small"},md:{trigger:"rounded-medium"},lg:{trigger:"rounded-large"},full:{trigger:"rounded-full"}},labelPlacement:{outside:{base:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap items-start",label:"relative pe-2 text-foreground"},inside:{label:"text-tiny cursor-pointer",trigger:"flex-col items-start justify-center gap-0"}},fullWidth:{true:{base:"w-full"},false:{base:"min-w-40"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",trigger:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",value:"!text-danger",selectorIcon:"text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",trigger:"!h-auto"},false:{value:"truncate"}},disableAnimation:{true:{trigger:"after:transition-none",base:"transition-none",label:"transition-none",selectorIcon:"transition-none"},false:{base:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","origin-top-left","rtl:origin-top-right","!duration-200","!ease-out","transition-[transform,color,left,opacity]","motion-reduce:transition-none"],selectorIcon:"transition-transform duration-150 ease motion-reduce:transition-none"}},disableSelectorIconRotation:{true:{},false:{selectorIcon:"data-[open=true]:rotate-180"}}},defaultVariants:{variant:"flat",color:"default",size:"md",labelPlacement:"inside",fullWidth:!0,isDisabled:!1,isMultiline:!1,disableSelectorIconRotation:!1},compoundVariants:[{variant:"flat",color:"default",class:{value:"group-data-[has-value=true]:text-default-foreground",trigger:["bg-default-100","data-[hover=true]:bg-default-50"]}},{variant:"flat",color:"primary",class:{trigger:["bg-primary-100","text-primary","data-[hover=true]:bg-primary-50","group-data-[focus=true]:bg-primary-50"],value:"text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{trigger:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50"],value:"text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{trigger:["bg-success-100","text-success-600","dark:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],value:"text-success-600 dark:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{trigger:["bg-warning-100","text-warning-600","dark:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],value:"text-warning-600 dark:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{trigger:["bg-danger-100","text-danger","dark:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],value:"text-danger dark:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{trigger:"data-[hover=true]:border-primary data-[focus=true]:border-primary data-[open=true]:border-primary",label:"text-primary"}},{variant:"faded",color:"secondary",class:{trigger:"data-[hover=true]:border-secondary data-[focus=true]:border-secondary data-[open=true]:border-secondary",label:"text-secondary"}},{variant:"faded",color:"success",class:{trigger:"data-[hover=true]:border-success data-[focus=true]:border-success data-[open=true]:border-success",label:"text-success"}},{variant:"faded",color:"warning",class:{trigger:"data-[hover=true]:border-warning data-[focus=true]:border-warning data-[open=true]:border-warning",label:"text-warning"}},{variant:"faded",color:"danger",class:{trigger:"data-[hover=true]:border-danger data-[focus=true]:border-danger data-[open=true]:border-danger",label:"text-danger"}},{variant:"underlined",color:"default",class:{value:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{trigger:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{trigger:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{trigger:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{trigger:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{trigger:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{trigger:["data-[open=true]:border-primary","data-[focus=true]:border-primary"],label:"text-primary"}},{variant:"bordered",color:"secondary",class:{trigger:["data-[open=true]:border-secondary","data-[focus=true]:border-secondary"],label:"text-secondary"}},{variant:"bordered",color:"success",class:{trigger:["data-[open=true]:border-success","data-[focus=true]:border-success"],label:"text-success"}},{variant:"bordered",color:"warning",class:{trigger:["data-[open=true]:border-warning","data-[focus=true]:border-warning"],label:"text-warning"}},{variant:"bordered",color:"danger",class:{trigger:["data-[open=true]:border-danger","data-[focus=true]:border-danger"],label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled=true]:text-foreground"}},{radius:"full",size:["sm"],class:{trigger:"px-3"}},{radius:"full",size:"md",class:{trigger:"px-4"}},{radius:"full",size:"lg",class:{trigger:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{trigger:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{trigger:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{trigger:[...a.Dh]}},{isInvalid:!0,variant:"flat",class:{trigger:["bg-danger-50","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{trigger:"!border-danger group-data-[focus=true]:border-danger"}},{isInvalid:!0,variant:"underlined",class:{trigger:"after:bg-danger"}},{labelPlacement:"inside",size:"sm",class:{trigger:"h-12 min-h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{trigger:"h-14 min-h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-medium",trigger:"h-16 min-h-16 py-2.5 gap-0"}},{labelPlacement:"outside",isMultiline:!1,class:{base:"group relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled=true]:start-0"]}},{labelPlacement:["inside"],class:{label:"group-data-[filled=true]:scale-85"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-5"}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"md",class:{label:["start-3","text-small","group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"lg",class:{label:["start-3","text-medium","group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}}]}),o=i(4211),u=i(7433),d=i(9589),c=i(7414),h=i(709),p=i(1870),f=i(9077),m=i(1273),g=i(2014),v=i(1596);class b{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){var t;let i=this.keyMap.get(e);return i&&null!==(t=i.prevKey)&&void 0!==t?t:null}getKeyAfter(e){var t;let i=this.keyMap.get(e);return i&&null!==(t=i.nextKey)&&void 0!==t?t:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){var t;this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let i=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)i(t)};for(let t of e)i(t);let r=null,n=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=n++),(r=t).nextKey=void 0;this.lastKey=null!==(t=null==r?void 0:r.key)&&void 0!==t?t:null}}class y extends Set{constructor(e,t,i){super(e),e instanceof y?(this.anchorKey=null!=t?t:e.anchorKey,this.currentKey=null!=i?i:e.currentKey):(this.anchorKey=null!=t?t:null,this.currentKey=null!=i?i:null)}}var x=i(125);function w(e,t){return e?"all"===e?"all":new y(e):t}function S(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function P(e,t,i){if(t.parentKey===i.parentKey)return t.index-i.index;let r=[...C(e,t),t],n=[...C(e,i),i],s=r.slice(0,n.length).findIndex((e,t)=>e!==n[t]);return -1!==s?(t=r[s],i=n[s],t.index-i.index):r.findIndex(e=>e===i)>=0?1:(n.findIndex(e=>e===t),-1)}function C(e,t){let i=[],r=t;for(;(null==r?void 0:r.parentKey)!=null;)(r=e.getItem(r.parentKey))&&i.unshift(r);return i}class I{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if("none"===this.state.selectionMode)return!1;let t=this.getKey(e);return null!=t&&("all"===this.state.selectedKeys?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let i=this.collection.getItem(e);(!t||i&&0>P(this.collection,i,t))&&(t=i)}return null!==(e=null==t?void 0:t.key)&&void 0!==e?e:null}get lastSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let i=this.collection.getItem(e);(!t||i&&P(this.collection,i,t)>0)&&(t=i)}return null!==(e=null==t?void 0:t.key)&&void 0!==e?e:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){let t;if("none"===this.selectionMode)return;if("single"===this.selectionMode){this.replaceSelection(e);return}let i=this.getKey(e);if(null!=i){if("all"===this.state.selectedKeys)t=new y([i],i,i);else{var r,n;let e=this.state.selectedKeys,s=null!==(r=e.anchorKey)&&void 0!==r?r:i;for(let r of(t=new y(e,s,i),this.getKeyRange(s,null!==(n=e.currentKey)&&void 0!==n?n:i)))t.delete(r);for(let e of this.getKeyRange(i,s))this.canSelectItem(e)&&t.add(e)}this.state.setSelectedKeys(t)}}getKeyRange(e,t){let i=this.collection.getItem(e),r=this.collection.getItem(t);return i&&r?0>=P(this.collection,i,r)?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var i;if(null===(i=this.layoutDelegate)||void 0===i?void 0:i.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let r=[],n=e;for(;null!=n;){let e=this.collection.getItem(n);if(e&&("item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&r.push(n),n===t)return r;n=this.collection.getKeyAfter(n)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||"cell"===t.type&&this.allowsCellSelection)return e;for(;t&&"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(null==t)return;let i=new y("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);i.has(t)?i.delete(t):this.canSelectItem(t)&&(i.add(t),i.anchorKey=t,i.currentKey=t),this.disallowEmptySelection&&0===i.size||this.state.setSelectedKeys(i)}replaceSelection(e){if("none"===this.selectionMode)return;let t=this.getKey(e);if(null==t)return;let i=this.canSelectItem(t)?new y([t],t,t):new y;this.state.setSelectedKeys(i)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new y;for(let i of e){let e=this.getKey(i);if(null!=e&&(t.add(e),"single"===this.selectionMode))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=i=>{for(;null!=i;){if(this.canSelectItem(i)){var r,n;let s=this.collection.getItem(i);(null==s?void 0:s.type)==="item"&&e.push(i),(null==s?void 0:s.hasChildNodes)&&(this.allowsCellSelection||"item"!==s.type)&&t(null!==(n=null===(r=function(e,t){let i=0;for(let t of e){if(0===i)return t;i++}}(S(s,this.collection),0))||void 0===r?void 0:r.key)&&void 0!==n?n:null)}i=this.collection.getKeyAfter(i)}};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new y)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let i of e)if(!t.has(i))return!1;for(let i of t)if(!e.has(i))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let i=this.collection.getItem(e);return!!i&&(null==i||null===(t=i.props)||void 0===t||!t.isDisabled)&&("cell"!==i.type||!!this.allowsCellSelection)}isDisabled(e){var t,i;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(i=this.collection.getItem(e))||void 0===i?void 0:null===(t=i.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,i;return!!(null===(i=this.collection.getItem(e))||void 0===i?void 0:null===(t=i.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}constructor(e,t,i){var r;this.collection=e,this.state=t,this.allowsCellSelection=null!==(r=null==i?void 0:i.allowsCellSelection)&&void 0!==r&&r,this._isSelectAll=null,this.layoutDelegate=(null==i?void 0:i.layoutDelegate)||null}}class z{build(e,t){return this.context=t,E(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:i}=e;if(d.isValidElement(t)&&t.type===d.Fragment)yield*this.iterateCollection({children:t.props.children,items:i});else if("function"==typeof t){if(!i)throw Error("props.children was a function but props.items is missing");let e=0;for(let r of i)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];d.Children.forEach(t,t=>{t&&e.push(t)});let i=0;for(let t of e)for(let e of this.getFullNode({element:t,index:i},{}))i++,yield e}}getKey(e,t,i,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${r}${t.key}`;let n=t.value;if(null!=n){var s;let e=null!==(s=n.key)&&void 0!==s?s:n.id;if(null==e)throw Error("No key found for item");return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,i,r){var n,s,a,l,o,u,c,h;if(d.isValidElement(e.element)&&e.element.type===d.Fragment){let s=[];d.Children.forEach(e.element.props.children,e=>{s.push(e)});let a=null!==(n=e.index)&&void 0!==n?n:0;for(let e of s)yield*this.getFullNode({element:e,index:a++},t,i,r);return}let p=e.element;if(!p&&e.value&&t&&t.renderer){let i=this.cache.get(e.value);if(i&&(!i.shouldInvalidate||!i.shouldInvalidate(this.context))){i.index=e.index,i.parentKey=r?r.key:null,yield i;return}p=t.renderer(e.value)}if(d.isValidElement(p)){let n=p.type;if("function"!=typeof n&&"function"!=typeof n.getCollectionNode){let e=p.type;throw Error(`Unknown element <${e}> in collection.`)}let d=n.getCollectionNode(p.props,this.context),c=null!==(s=e.index)&&void 0!==s?s:0,h=d.next();for(;!h.done&&h.value;){let n=h.value;e.index=c;let s=null!==(a=n.key)&&void 0!==a?a:null;null==s&&(s=n.element?null:this.getKey(p,e,t,i));let f=[...this.getFullNode({...n,key:s,index:c,wrapper:function(e,t){return e&&t?i=>e(t(i)):e||t||void 0}(e.wrapper,n.wrapper)},this.getChildState(t,n),i?`${i}${p.key}`:p.key,r)];for(let t of f){if(t.value=null!==(o=null!==(l=n.value)&&void 0!==l?l:e.value)&&void 0!==o?o:null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${D(t.type)}> in <${D(null!==(u=null==r?void 0:r.type)&&void 0!==u?u:"unknown parent type")}>. Only <${D(e.type)}> is supported.`);c++,yield t}h=d.next(f)}return}if(null==e.key||null==e.type)return;let f=this,m={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:null!==(c=e.value)&&void 0!==c?c:null,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:null!==(h=e.textValue)&&void 0!==h?h:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:E(function*(){if(!e.hasChildNodes||!e.childNodes)return;let i=0;for(let r of e.childNodes())for(let e of(null!=r.key&&(r.key=`${m.key}${r.key}`),f.getFullNode({...r,index:i},f.getChildState(t,r),m.key,m)))i++,yield e})};yield m}constructor(){this.cache=new WeakMap}}function E(e){let t=[],i=null;return{*[Symbol.iterator](){for(let e of t)yield e;for(let r of(i||(i=e()),i))t.push(r),yield r}}}function D(e){return e[0].toUpperCase()+e.slice(1)}function T(e){let{filter:t,layoutDelegate:i}=e,r=function(e){let{selectionMode:t="none",disallowEmptySelection:i=!1,allowDuplicateSelectionEvents:r,selectionBehavior:n="toggle",disabledBehavior:s="all"}=e,a=(0,d.useRef)(!1),[,l]=(0,d.useState)(!1),o=(0,d.useRef)(null),u=(0,d.useRef)(null),[,c]=(0,d.useState)(null),h=(0,d.useMemo)(()=>w(e.selectedKeys),[e.selectedKeys]),p=(0,d.useMemo)(()=>w(e.defaultSelectedKeys,new y),[e.defaultSelectedKeys]),[f,m]=(0,x.z)(h,p,e.onSelectionChange),g=(0,d.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,b]=(0,d.useState)(n);"replace"===n&&"toggle"===v&&"object"==typeof f&&0===f.size&&b("replace");let S=(0,d.useRef)(n);return(0,d.useEffect)(()=>{n!==S.current&&(b(n),S.current=n)},[n]),{selectionMode:t,disallowEmptySelection:i,selectionBehavior:v,setSelectionBehavior:b,get isFocused(){return a.current},setFocused(e){a.current=e,l(e)},get focusedKey(){return o.current},get childFocusStrategy(){return u.current},setFocusedKey(e,t="first"){o.current=e,u.current=t,c(e)},selectedKeys:f,setSelectedKeys(e){(r||!function(e,t){if(e.size!==t.size)return!1;for(let i of e)if(!t.has(i))return!1;return!0}(e,f))&&m(e)},disabledKeys:g,disabledBehavior:s}}(e),n=(0,d.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=(0,d.useCallback)(e=>new b(t?t(e):e),[t]),a=(0,d.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=function(e,t,i){let r=(0,d.useMemo)(()=>new z,[]),{children:n,items:s,collection:a}=e;return(0,d.useMemo)(()=>a||t(r.build({children:n,items:s},i)),[r,n,s,a,i,t])}(e,s,a),o=(0,d.useMemo)(()=>new I(l,r,{layoutDelegate:i}),[l,r,i]),u=(0,d.useRef)(null);return(0,d.useEffect)(()=>{if(null!=r.focusedKey&&!l.getItem(r.focusedKey)&&u.current){var e,t,i,n,s,a,d;let c=u.current.getItem(r.focusedKey),h=[...u.current.getKeys()].map(e=>{let t=u.current.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),p=[...l.getKeys()].map(e=>{let t=l.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),f=(null!==(e=null==h?void 0:h.length)&&void 0!==e?e:0)-(null!==(t=null==p?void 0:p.length)&&void 0!==t?t:0),m=Math.min(f>1?Math.max((null!==(i=null==c?void 0:c.index)&&void 0!==i?i:0)-f+1,0):null!==(n=null==c?void 0:c.index)&&void 0!==n?n:0,(null!==(s=null==p?void 0:p.length)&&void 0!==s?s:0)-1),g=null,v=!1;for(;m>=0;){if(!o.isDisabled(p[m].key)){g=p[m];break}m(null!==(a=null==c?void 0:c.index)&&void 0!==a?a:0)&&(m=null!==(d=null==c?void 0:c.index)&&void 0!==d?d:0),m--)}r.setFocusedKey(g?g.key:null)}u.current=l},[l,o,r,r.focusedKey]),{collection:l,disabledKeys:n,selectionManager:o}}var k=i(8215),M=i(9661),B=i(2314);let R=new Map;function j(e){let{locale:t}=(0,B.j)(),i=t+(e?Object.entries(e).sort((e,t)=>e[0]{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),n&&n({...e,type:"longpress"}),l.current=void 0},s),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};o(e.target,"contextmenu",t,{once:!0}),o(window,"pointerup",()=>{setTimeout(()=>{u(e.target,"contextmenu",t)},30)},{once:!0})}},onPressEnd(e){l.current&&clearTimeout(l.current),r&&("mouse"===e.pointerType||"touch"===e.pointerType)&&r({...e,type:"longpressend"})}}),h=function(e){let[t,i]=(0,d.useState)();return(0,K.b)(()=>{if(!e)return;let t=H.get(e);if(t)i(t.element.id);else{let r=`react-aria-description-${W++}`;i(r);let n=document.createElement("div");n.id=r,n.style.display="none",n.textContent=e,document.body.appendChild(n),t={refCount:0,element:n},H.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),H.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}(n&&!t?a:void 0);return{longPressProps:(0,g.d)(c,h)}}var $=i(5663);function G(e,t,i){let r,{type:n}=e,{isOpen:s}=t;(0,d.useEffect)(()=>{i&&i.current&&(0,$.v).set(i.current,t.close)}),"menu"===n?r=!0:"listbox"===n&&(r="listbox");let a=(0,O.Me)();return{triggerProps:{"aria-haspopup":r,"aria-expanded":s,"aria-controls":s?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}class q{getItemRect(e){let t=this.ref.current;if(!t)return null;let i=null!=e?t.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!i)return null;let r=t.getBoundingClientRect(),n=i.getBoundingClientRect();return{x:n.left-r.left+t.scrollLeft,y:n.top-r.top+t.scrollTop,width:n.width,height:n.height}}getContentSize(){var e,t;let i=this.ref.current;return{width:null!==(e=null==i?void 0:i.scrollWidth)&&void 0!==e?e:0,height:null!==(t=null==i?void 0:i.scrollHeight)&&void 0!==t?t:0}}getVisibleRect(){var e,t,i,r;let n=this.ref.current;return{x:null!==(e=null==n?void 0:n.scrollLeft)&&void 0!==e?e:0,y:null!==(t=null==n?void 0:n.scrollTop)&&void 0!==t?t:0,width:null!==(i=null==n?void 0:n.offsetWidth)&&void 0!==i?i:0,height:null!==(r=null==n?void 0:n.offsetHeight)&&void 0!==r?r:0}}constructor(e){this.ref=e}}var X=i(9075);class J{isDisabled(e){var t;return"all"===this.disabledBehavior&&((null===(t=e.props)||void 0===t?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let i=e;for(;null!=i;){let e=this.collection.getItem(i);if((null==e?void 0:e.type)==="item"&&!this.isDisabled(e))return i;i=t(i)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,i){let r=e,n=this.layoutDelegate.getItemRect(r);if(!n||null==r)return null;let s=n;do{if(null==(r=t(r)))break;n=this.layoutDelegate.getItemRect(r)}while(n&&i(s,n)&&null!=r);return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t="ltr"===this.direction?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):this.findKey(e,e=>this.getNextColumn(e,"rtl"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){let t="ltr"===this.direction?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):this.findKey(e,e=>this.getNextColumn(e,"ltr"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,i=this.layoutDelegate.getItemRect(e);if(!i)return null;if(t&&!(0,X.a)(t))return this.getFirstKey();let r=e;if("horizontal"===this.orientation){let e=Math.max(0,i.x+i.width-this.layoutDelegate.getVisibleRect().width);for(;i&&i.x>e&&null!=r;)i=null==(r=this.getKeyAbove(r))?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.max(0,i.y+i.height-this.layoutDelegate.getVisibleRect().height);for(;i&&i.y>e&&null!=r;)i=null==(r=this.getKeyAbove(r))?null:this.layoutDelegate.getItemRect(r)}return null!=r?r:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,i=this.layoutDelegate.getItemRect(e);if(!i)return null;if(t&&!(0,X.a)(t))return this.getLastKey();let r=e;if("horizontal"===this.orientation){let e=Math.min(this.layoutDelegate.getContentSize().width,i.y-i.width+this.layoutDelegate.getVisibleRect().width);for(;i&&i.x{var s;let a=1!==(s=e.key).length&&/^[A-Z]/i.test(s)?"":s;if(a&&!e.ctrlKey&&!e.metaKey&&e.currentTarget.contains(e.target)){if(" "!==a||!(n.search.trim().length>0)||(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),n.search+=a,null!=t.getKeyForSearch){let e=t.getKeyForSearch(n.search,i.focusedKey);null==e&&(e=t.getKeyForSearch(n.search)),null!=e&&(i.setFocusedKey(e),r&&r(e))}clearTimeout(n.timeout),n.timeout=setTimeout(()=>{n.search=""},1e3)}}:void 0}}}var Z=i(341),Q=i(6367),ee=i(2110),et=(e,t,i)=>{let r=null==t?void 0:t.current;if(!r||!r.contains(e)){let e=document.querySelectorAll("body > span[data-focus-scope-start]"),t=[];if(e.forEach(e=>{t.push(e.nextElementSibling)}),1===t.length)return i.close(),!1}return!r||!r.contains(e)},ei=i(2090),er=i(9993),en=new WeakMap,es=i(507),ea=i(8228),el=i(3361),eo=i(217);function eu(e){var t;let{state:i,triggerRef:r,selectRef:n,label:s,name:a,isDisabled:l}=e,{containerProps:o,inputProps:u,selectProps:d}=function(e,t,i){var r,n;let s=en.get(t)||{},{autoComplete:a,name:l=s.name,isDisabled:o=s.isDisabled,selectionMode:u,onChange:d}=e,{validationBehavior:c,isRequired:h,isInvalid:p}=s,f=(0,_.Kf)(),{visuallyHiddenProps:m}=(0,ea.S)();(0,es.y)(e.selectRef,t.selectedKeys,t.setSelectedKeys),(0,el.Q)({validationBehavior:c,focus:()=>{var e;return null==(e=i.current)?void 0:e.focus()}},t,e.selectRef);let g={autoComplete:a,disabled:o,"aria-invalid":p||void 0,"aria-required":h&&"aria"===c||void 0,required:h&&"native"===c};return{containerProps:{...m,"aria-hidden":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{...g,type:"text",tabIndex:null==f||t.isFocused||t.isOpen?-1:0,value:null!=(r=[...t.selectedKeys].join(","))?r:"",style:{fontSize:16},onFocus:()=>{var e;return null==(e=i.current)?void 0:e.focus()},onChange:()=>{}},selectProps:{...g,name:l,tabIndex:-1,size:t.collection.size,value:"multiple"===u?[...t.selectedKeys].map(e=>String(e)):null!=(n=[...t.selectedKeys][0])?n:"",multiple:"multiple"===u,onChange:e=>{t.setSelectedKeys(e.target.value),null==d||d(e)}}}}({...e,selectRef:n},i,r);return i.collection.size<=300?(0,eo.jsxs)("div",{...o,"data-testid":"hidden-select-container",children:[(0,eo.jsx)("input",{...u}),(0,eo.jsxs)("label",{children:[s,(0,eo.jsxs)("select",{...d,ref:n,children:[(0,eo.jsx)("option",{}),[...i.collection.getKeys()].map(e=>{let t=i.collection.getItem(e);if((null==t?void 0:t.type)==="item")return(0,eo.jsx)("option",{value:t.key,children:t.textValue},t.key)})]})]})]}):a?(0,eo.jsx)("input",{autoComplete:d.autoComplete,disabled:l,name:a,type:"hidden",value:null!=(t=[...i.selectedKeys].join(","))?t:""}):null}let ed=new WeakMap;var ec=i(4915),eh=i(8057),ep=i(7894);function ef(e){return(0,ep.ad)()?e.altKey:e.ctrlKey}function em(e){return(0,ep.V5)()?e.metaKey:e.ctrlKey}var eg=i(9297),ev=i(7599),eb=i(6814),ey=i(501),ex=i(1723),ew=i(2013);function eS(e,t,i,r){let n=(0,ew.i)(i),s=null==i;(0,d.useEffect)(()=>{if(s||!e.current)return;let i=e.current;return i.addEventListener(t,n,r),()=>{i.removeEventListener(t,n,r)}},[e,t,r,s,n])}function eP(e,t){let i=eC(e,t,"left"),r=eC(e,t,"top"),n=t.offsetWidth,s=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,{borderTopWidth:o,borderLeftWidth:u}=getComputedStyle(e),d=e.scrollLeft+parseInt(u,10),c=e.scrollTop+parseInt(o,10),h=d+e.clientWidth,p=c+e.clientHeight;i<=a?a=i-parseInt(u,10):i+n>h&&(a+=i+n-h),r<=c?l=r-parseInt(o,10):r+s>p&&(l+=r+s-p),e.scrollLeft=a,e.scrollTop=l}function eC(e,t,i){let r="left"===i?"offsetLeft":"offsetTop",n=0;for(;t.offsetParent&&(n+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){n-=e[r];break}t=t.offsetParent}return n}function eI(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(a).overflow)for(let t of function(e,t){let i=[];for(;e&&e!==document.documentElement;)(0,X.a)(e,void 0)&&i.push(e),e=e.parentElement;return i}(e))eP(t,e);else{var i,r,n,s;let{left:a,top:l}=e.getBoundingClientRect();null==e||null===(i=e.scrollIntoView)||void 0===i||i.call(e,{block:"nearest"});let{left:o,top:u}=e.getBoundingClientRect();(Math.abs(a-o)>1||Math.abs(l-u)>1)&&(null==t||null===(n=t.containingElement)||void 0===n||null===(r=n.scrollIntoView)||void 0===r||r.call(n,{block:"center",inline:"center"}),null===(s=e.scrollIntoView)||void 0===s||s.call(e,{block:"nearest"}))}}}var ez=(0,s.tv)({slots:{base:"w-full relative flex flex-col gap-1 p-1 overflow-hidden",list:"w-full flex flex-col gap-0.5 outline-none",emptyContent:["h-10","px-2","py-1.5","w-full","h-full","text-foreground-400","text-start"]}}),eE=(0,s.tv)({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","subpixel-antialiased","outline-none","cursor-pointer","tap-highlight-transparent",...a.Dh,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","flex-shrink-0"],shortcut:["px-1","py-0.5","rounded","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:["border-small border-transparent hover:border-default data-[hover=true]:bg-default-100","data-[selectable=true]:focus:border-default data-[selectable=true]:focus:bg-default-100"]},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},showDivider:{true:{base:["mb-1.5","after:content-['']","after:absolute","after:-bottom-1","after:left-0","after:right-0","after:h-divider","after:bg-divider"]},false:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{base:"data-[hover=true]:transition-colors"}},hasTitleTextChild:{true:{title:"truncate"}},hasDescriptionTextChild:{true:{description:"truncate"}}},defaultVariants:{variant:"solid",color:"default",showDivider:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:["data-[hover=true]:bg-default","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"solid",color:"primary",class:{base:["data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"solid",color:"secondary",class:{base:["data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"solid",color:"success",class:{base:["data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"solid",color:"warning",class:{base:["data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"solid",color:"danger",class:{base:["data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"shadow",color:"default",class:{base:["data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:shadow-default/50 data-[selectable=true]:focus:bg-default data-[selectable=true]:focus:text-default-foreground"]}},{variant:"shadow",color:"primary",class:{base:["data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:shadow-primary/30 data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"shadow",color:"secondary",class:{base:["data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:shadow-secondary/30 data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"shadow",color:"success",class:{base:["data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:shadow-success/30 data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"shadow",color:"warning",class:{base:["data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:shadow-warning/30 data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"shadow",color:"danger",class:{base:["data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:shadow-danger/30 data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"bordered",color:"default",class:{base:["data-[hover=true]:border-default","data-[selectable=true]:focus:border-default"]}},{variant:"bordered",color:"primary",class:{base:["data-[hover=true]:border-primary data-[hover=true]:text-primary","data-[selectable=true]:focus:border-primary data-[selectable=true]:focus:text-primary"]}},{variant:"bordered",color:"secondary",class:{base:["data-[hover=true]:border-secondary data-[hover=true]:text-secondary","data-[selectable=true]:focus:border-secondary data-[selectable=true]:focus:text-secondary"]}},{variant:"bordered",color:"success",class:{base:["data-[hover=true]:border-success data-[hover=true]:text-success","data-[selectable=true]:focus:border-success data-[selectable=true]:focus:text-success"]}},{variant:"bordered",color:"warning",class:{base:["data-[hover=true]:border-warning data-[hover=true]:text-warning","data-[selectable=true]:focus:border-warning data-[selectable=true]:focus:text-warning"]}},{variant:"bordered",color:"danger",class:{base:["data-[hover=true]:border-danger data-[hover=true]:text-danger","data-[selectable=true]:focus:border-danger data-[selectable=true]:focus:text-danger"]}},{variant:"flat",color:"default",class:{base:["data-[hover=true]:bg-default/40","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default/40","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"flat",color:"primary",class:{base:["data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary","data-[selectable=true]:focus:bg-primary/20 data-[selectable=true]:focus:text-primary"]}},{variant:"flat",color:"secondary",class:{base:["data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary","data-[selectable=true]:focus:bg-secondary/20 data-[selectable=true]:focus:text-secondary"]}},{variant:"flat",color:"success",class:{base:["data-[hover=true]:bg-success/20 data-[hover=true]:text-success","data-[selectable=true]:focus:bg-success/20 data-[selectable=true]:focus:text-success"]}},{variant:"flat",color:"warning",class:{base:["data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning","data-[selectable=true]:focus:bg-warning/20 data-[selectable=true]:focus:text-warning"]}},{variant:"flat",color:"danger",class:{base:["data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger","data-[selectable=true]:focus:bg-danger/20 data-[selectable=true]:focus:text-danger"]}},{variant:"faded",color:"default",class:{base:["data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"faded",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"faded",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"faded",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"faded",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"faded",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}},{variant:"light",color:"default",class:{base:["data-[hover=true]:text-default-500","data-[selectable=true]:focus:text-default-500"]}},{variant:"light",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"light",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"light",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"light",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"light",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}}]}),eD=(0,s.tv)({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}});function eT(e){let{isSelected:t,disableAnimation:i,...r}=e;return(0,eo.jsx)("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...r,children:(0,eo.jsx)("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:i?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var ek=i(4700);let eM=new WeakMap;function eB(){let e=window.event;return(null==e?void 0:e.key)==="Enter"}function eR(){let e=window.event;return(null==e?void 0:e.key)===" "||(null==e?void 0:e.code)==="Space"}var ej=i(6717),e_=e=>{let{Component:t,rendered:i,description:s,isSelectable:a,isSelected:l,isDisabled:o,selectedIcon:c,startContent:b,endContent:y,hideSelectedIcon:x,disableAnimation:w,getItemProps:P,getLabelProps:C,getWrapperProps:I,getDescriptionProps:z,getSelectedIconProps:E}=function(e){var t,i;let s=(0,r.w)(),[a,l]=(0,n.oe)(e,eE.variantKeys),{as:o,item:c,state:b,description:y,startContent:x,endContent:w,isVirtualized:P,selectedIcon:C,className:I,classNames:z,autoFocus:E,onPress:D,onClick:T,shouldHighlightOnFocus:k,hideSelectedIcon:M=!1,isReadOnly:B=!1,...R}=a,j=null!=(i=null!=(t=e.disableAnimation)?t:null==s?void 0:s.disableAnimation)&&i,A=(0,d.useRef)(null),L=o||(e.href?"a":"li"),N="string"==typeof L,{rendered:V,key:K}=c,W=b.disabledKeys.has(K)||e.isDisabled,H="none"!==b.selectionManager.selectionMode,$=!(0,ej.Av)()&&"undefined"!=typeof window&&window.screen.width<=700;T&&"function"==typeof T&&(0,ek.Z)("onClick is deprecated, please use onPress instead. See: https://github.com/nextui-org/nextui/issues/4292","ListboxItem");let{pressProps:G,isPressed:q}=(0,F.r)({ref:A,isDisabled:W,onPress:D}),{isHovered:X,hoverProps:J}=(0,v.X)({isDisabled:W}),{isFocusVisible:Y,focusProps:ee}=(0,h.F)({autoFocus:E}),{isFocused:et,isSelected:ei,optionProps:er,labelProps:en,descriptionProps:es}=function(e,t,i){var r,n,s,a,l,o,u,c;let{key:h}=e,p=ed.get(t),f=null!==(s=e.isDisabled)&&void 0!==s?s:t.selectionManager.isDisabled(h),m=null!==(a=e.isSelected)&&void 0!==a?a:t.selectionManager.isSelected(h),b=null!==(l=e.shouldSelectOnPressUp)&&void 0!==l?l:null==p?void 0:p.shouldSelectOnPressUp,y=null!==(o=e.shouldFocusOnHover)&&void 0!==o?o:null==p?void 0:p.shouldFocusOnHover,x=null!==(u=e.shouldUseVirtualFocus)&&void 0!==u?u:null==p?void 0:p.shouldUseVirtualFocus,w=null!==(c=e.isVirtualized)&&void 0!==c?c:null==p?void 0:p.isVirtualized,P=(0,O.mp)(),C=(0,O.mp)(),I={role:"option","aria-disabled":f||void 0,"aria-selected":"none"!==t.selectionManager.selectionMode?m:void 0};(0,ep.V5)()&&(0,ep.Pf)()||(I["aria-label"]=e["aria-label"],I["aria-labelledby"]=P,I["aria-describedby"]=C);let z=t.collection.getItem(h);if(w){let e=Number(null==z?void 0:z.index);I["aria-posinset"]=Number.isNaN(e)?void 0:e+1,I["aria-setsize"]=function(e){let t=eM.get(e);if(null!=t)return t;let i=0,r=t=>{for(let n of t)"section"===n.type?r(S(n,e)):i++};return r(e),eM.set(e,i),i}(t.collection)}let E=(null==p?void 0:p.onAction)?()=>{var e;return null==p?void 0:null===(e=p.onAction)||void 0===e?void 0:e.call(p,h)}:void 0,{itemProps:D,isPressed:T,isFocused:k,hasAction:M,allowsSelection:B}=function(e){let{selectionManager:t,key:i,ref:r,shouldSelectOnPressUp:n,shouldUseVirtualFocus:s,focus:a,isDisabled:l,onAction:o,allowsDifferentPressOrigin:u,linkBehavior:c="action"}=e,h=(0,ey.tv)(),p=e=>{if("keyboard"===e.pointerType&&ef(e))t.toggleSelection(i);else{if("none"===t.selectionMode)return;if(t.isLink(i)){if("selection"===c&&r.current){let n=t.getItemProps(i);h.open(r.current,e,n.href,n.routerOptions),t.setSelectedKeys(t.selectedKeys);return}if("override"===c||"none"===c)return}"single"===t.selectionMode?t.isSelected(i)&&!t.disallowEmptySelection?t.toggleSelection(i):t.replaceSelection(i):e&&e.shiftKey?t.extendSelection(i):"toggle"===t.selectionBehavior||e&&(em(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?t.toggleSelection(i):t.replaceSelection(i)}};(0,d.useEffect)(()=>{i===t.focusedKey&&t.isFocused&&!s&&(a?a():document.activeElement!==r.current&&r.current&&(0,eb.e)(r.current))},[r,i,t.focusedKey,t.childFocusStrategy,t.isFocused,s]),l=l||t.isDisabled(i);let f={};s||l?l&&(f.onMouseDown=e=>{e.preventDefault()}):f={tabIndex:i===t.focusedKey?0:-1,onFocus(e){e.target===r.current&&t.setFocusedKey(i)}};let m=t.isLink(i)&&"override"===c,v=t.isLink(i)&&"selection"!==c&&"none"!==c,b=!l&&t.canSelectItem(i)&&!m,y=(o||v)&&!l,x=y&&("replace"===t.selectionBehavior?!b:!b||t.isEmpty),w=y&&b&&"replace"===t.selectionBehavior,S=x||w,P=(0,d.useRef)(null),C=S&&b,I=(0,d.useRef)(!1),z=(0,d.useRef)(!1),E=e=>{if(o&&o(),v&&r.current){let n=t.getItemProps(i);h.open(r.current,e,n.href,n.routerOptions)}},D={};n?(D.onPressStart=e=>{P.current=e.pointerType,I.current=C,"keyboard"===e.pointerType&&(!S||eR())&&p(e)},u?(D.onPressUp=x?void 0:e=>{"keyboard"!==e.pointerType&&b&&p(e)},D.onPress=x?E:void 0):D.onPress=e=>{x||w&&"mouse"!==e.pointerType?("keyboard"!==e.pointerType||eB())&&E(e):"keyboard"!==e.pointerType&&b&&p(e)}):(D.onPressStart=e=>{P.current=e.pointerType,I.current=C,z.current=x,b&&("mouse"===e.pointerType&&!x||"keyboard"===e.pointerType&&(!y||eR()))&&p(e)},D.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&S&&eB()||"mouse"===e.pointerType&&z.current)&&(S?E(e):b&&p(e))}),f["data-key"]=i,D.preventFocusOnPress=s;let{pressProps:T,isPressed:k}=(0,F.r)(D),M=w?e=>{"mouse"===P.current&&(e.stopPropagation(),e.preventDefault(),E(e))}:void 0,{longPressProps:B}=U({isDisabled:!C,onLongPress(e){"touch"===e.pointerType&&(p(e),t.setSelectionBehavior("toggle"))}}),R=t.isLink(i)?e=>{ey.nG.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,g.d)(f,b||x?T:{},C?B:{},{onDoubleClick:M,onDragStartCapture:e=>{"touch"===P.current&&I.current&&e.preventDefault()},onClick:R}),isPressed:k,isSelected:t.isSelected(i),isFocused:t.isFocused&&t.focusedKey===i,isDisabled:l,allowsSelection:b,hasAction:S}}({selectionManager:t.selectionManager,key:h,ref:i,shouldSelectOnPressUp:b,allowsDifferentPressOrigin:b&&y,isVirtualized:w,shouldUseVirtualFocus:x,isDisabled:f,onAction:E||(null==z?void 0:null===(r=z.props)||void 0===r?void 0:r.onAction)?(0,Q.t)(null==z?void 0:null===(n=z.props)||void 0===n?void 0:n.onAction,E):void 0,linkBehavior:null==p?void 0:p.linkBehavior}),{hoverProps:R}=(0,v.X)({isDisabled:f||!y,onHoverStart(){(0,_.E)()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(h))}}),j=(0,Z.z)(null==z?void 0:z.props);delete j.id;let A=(0,ey.eY)(null==z?void 0:z.props);return{optionProps:{...I,...(0,g.d)(j,D,R,A),id:function(e,t){let i=ed.get(e);if(!i)throw Error("Unknown list");return`${i.id}-option-${"string"==typeof t?t.replace(/\s*/g,""):""+t}`}(t,h)},labelProps:{id:P},descriptionProps:{id:C},isFocused:k,isFocusVisible:k&&(0,_.E)(),isSelected:m,isDisabled:f,isPressed:T,allowsSelection:B,hasAction:M}}({key:K,isDisabled:W,"aria-label":a["aria-label"],isVirtualized:P},b,A),ea=er,el=(0,d.useMemo)(()=>eE({...l,isDisabled:W,disableAnimation:j,hasTitleTextChild:"string"==typeof V,hasDescriptionTextChild:"string"==typeof y}),[(0,f.Xx)(l),W,j,V,y]),eo=(0,p.W)(null==z?void 0:z.base,I);B&&(ea=(0,f.Os)(ea));let eu=k&&et||($?X||q:X||et&&!Y),ec=(0,d.useCallback)((e={})=>({"aria-hidden":(0,m.PB)(!0),"data-disabled":(0,m.PB)(W),className:el.selectedIcon({class:null==z?void 0:z.selectedIcon}),...e}),[W,el,z]);return{Component:L,domRef:A,slots:el,classNames:z,isSelectable:H,isSelected:ei,isDisabled:W,rendered:V,description:y,startContent:x,endContent:w,selectedIcon:C,hideSelectedIcon:M,disableAnimation:j,getItemProps:(e={})=>({ref:A,...(0,g.d)({onClick:T},ea,B?{}:(0,g.d)(ee,G),J,(0,u.z)(R,{enabled:N}),e),"data-selectable":(0,m.PB)(H),"data-focus":(0,m.PB)(et),"data-hover":(0,m.PB)(eu),"data-disabled":(0,m.PB)(W),"data-selected":(0,m.PB)(ei),"data-pressed":(0,m.PB)(q),"data-focus-visible":(0,m.PB)(Y),className:el.base({class:(0,p.W)(eo,e.className)})}),getLabelProps:(e={})=>({...(0,g.d)(en,e),"data-label":(0,m.PB)(!0),className:el.title({class:null==z?void 0:z.title})}),getWrapperProps:(e={})=>({...(0,g.d)(e),className:el.wrapper({class:null==z?void 0:z.wrapper})}),getDescriptionProps:(e={})=>({...(0,g.d)(es,e),className:el.description({class:null==z?void 0:z.description})}),getSelectedIconProps:ec}}(e),D=(0,d.useMemo)(()=>{let e=(0,eo.jsx)(eT,{disableAnimation:w,isSelected:l});return"function"==typeof c?c({icon:e,isSelected:l,isDisabled:o}):c||e},[c,l,o,w]);return(0,eo.jsxs)(t,{...P(),children:[b,s?(0,eo.jsxs)("div",{...I(),children:[(0,eo.jsx)("span",{...C(),children:i}),(0,eo.jsx)("span",{...z(),children:s})]}):(0,eo.jsx)("span",{...C(),children:i}),a&&!x&&(0,eo.jsx)("span",{...E(),children:D}),y]})};e_.displayName="NextUI.ListboxItem";var eA=i(7018),eL=(0,n.Gp)(({item:e,state:t,as:i,variant:r,color:n,disableAnimation:s,className:a,classNames:l,hideSelectedIcon:o,showDivider:u=!1,dividerProps:c={},itemClasses:h,title:f,...m},v)=>{let b=(0,d.useMemo)(()=>eD(),[]),y=(0,p.W)(null==l?void 0:l.base,a),x=(0,p.W)(null==l?void 0:l.divider,null==c?void 0:c.className),{itemProps:w,headingProps:S,groupProps:P}=function(e){let{heading:t,"aria-label":i}=e,r=(0,O.Me)();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":i,"aria-labelledby":t?r:void 0}}}({heading:e.rendered,"aria-label":e["aria-label"]});return(0,eo.jsxs)(i||"li",{"data-slot":"base",...(0,g.d)(w,m),className:b.base({class:y}),children:[e.rendered&&(0,eo.jsx)("span",{...S,className:b.heading({class:null==l?void 0:l.heading}),"data-slot":"heading",children:e.rendered}),(0,eo.jsxs)("ul",{...P,className:b.group({class:null==l?void 0:l.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(e=>{let{key:i,props:a}=e,l=(0,eo.jsx)(e_,{classNames:h,color:n,disableAnimation:s,hideSelectedIcon:o,item:e,state:t,variant:r,...a},i);return e.wrapper&&(l=e.wrapper(l)),l}),u&&(0,eo.jsx)(eA.j,{as:"li",className:b.divider({class:x}),...c})]})]},e.key)});function eO(e,t,i){let r,n=i.initialDeps??[];return()=>{var s,a,l,o;let u,d;i.key&&(null==(s=i.debug)?void 0:s.call(i))&&(u=Date.now());let c=e();if(!(c.length!==n.length||c.some((e,t)=>n[t]!==e)))return r;if(n=c,i.key&&(null==(a=i.debug)?void 0:a.call(i))&&(d=Date.now()),r=t(...c),i.key&&(null==(l=i.debug)?void 0:l.call(i))){let e=Math.round((Date.now()-u)*100)/100,t=Math.round((Date.now()-d)*100)/100,r=t/16,n=(e,t)=>{for(e=String(e);e.length1>Math.abs(e-t),eV=(e,t,i)=>{let r;return function(...n){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,n),i)}},eK=e=>e,eW=e=>{let t=Math.max(e.startIndex-e.overscan,0),i=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=i;e++)r.push(e);return r},eH=(e,t)=>{let i=e.scrollElement;if(!i)return;let r=e.targetWindow;if(!r)return;let n=e=>{let{width:i,height:r}=e;t({width:Math.round(i),height:Math.round(r)})};if(n(i.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let s=new r.ResizeObserver(e=>{let t=e[0];if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e){n({width:e.inlineSize,height:e.blockSize});return}}n(i.getBoundingClientRect())});return s.observe(i,{box:"border-box"}),()=>{s.unobserve(i)}},eU={passive:!0},e$="undefined"==typeof window||"onscrollend"in window,eG=(e,t)=>{let i=e.scrollElement;if(!i)return;let r=e.targetWindow;if(!r)return;let n=0,s=e.options.useScrollendEvent&&e$?()=>void 0:eV(r,()=>{t(n,!1)},e.options.isScrollingResetDelay),a=r=>()=>{let{horizontal:a,isRtl:l}=e.options;n=a?i.scrollLeft*(l&&-1||1):i.scrollTop,s(),t(n,r)},l=a(!0),o=a(!1);return o(),i.addEventListener("scroll",l,eU),i.addEventListener("scrollend",o,eU),()=>{i.removeEventListener("scroll",l),i.removeEventListener("scrollend",o)}},eq=(e,t,i)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[i.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[i.options.horizontal?"width":"height"])},eX=(e,{adjustments:t=0,behavior:i},r)=>{var n,s;null==(s=null==(n=r.scrollElement)?void 0:n.scrollTo)||s.call(n,{[r.options.horizontal?"left":"top"]:e+t,behavior:i})};class eJ{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{this._measureElement(e.target,e)})}):null);return{disconnect:()=>{var i;null==(i=t())||i.disconnect(),e=null},observe:e=>{var i;return null==(i=t())?void 0:i.observe(e,{box:"border-box"})},unobserve:e=>{var i;return null==(i=t())?void 0:i.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,i])=>{void 0===i&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:eK,rangeExtractor:eW,onChange:()=>{},measureElement:eq,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var t,i;null==(i=(t=this.options).onChange)||i.call(t,this,e)},this.maybeNotify=eO(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t){this.maybeNotify();return}this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let i=new Map,r=new Map;for(let n=t-1;n>=0;n--){let t=e[n];if(i.has(t.lane))continue;let s=r.get(t.lane);if(null==s||t.end>s.end?r.set(t.lane,t):t.ende.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=eO(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,i,r,n)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:i,getItemKey:r,enabled:n}),{key:!1}),this.getMeasurements=eO(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:i,getItemKey:r,enabled:n},s)=>{if(!n)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let l=this.measurementsCache.slice(0,a);for(let n=a;nthis.options.debug}),this.calculateRange=eO(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,i)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:i}){let r=e.length-1,n=eY(0,r,t=>e[t].start,i),s=n;for(;sthis.options.debug}),this.getIndexes=eO(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(e,t,i,r)=>null===t?[]:e({startIndex:t.startIndex,endIndex:t.endIndex,overscan:i,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,i=e.getAttribute(t);return i?parseInt(i,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let i=this.indexFromElement(e),r=this.measurementsCache[i];if(!r)return;let n=r.key,s=this.elementsCache.get(n);s!==e&&(s&&this.observer.unobserve(s),this.observer.observe(e),this.elementsCache.set(n,e)),e.isConnected&&this.resizeItem(i,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let i=this.measurementsCache[e];if(!i)return;let r=t-(this.itemSizeCache.get(i.key)??i.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(i,r,this):i.start{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}this._measureElement(e,void 0)},this.getVirtualItems=eO(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{let i=[];for(let r=0,n=e.length;rthis.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return eN(t[eY(0,t.length-1,e=>eN(t[e]).start,e)])},this.getOffsetForAlignment=(e,t)=>{let i=this.getSize(),r=this.getScrollOffset();"auto"===t&&(t=e<=r?"start":e>=r+i?"end":"start"),"start"===t||("end"===t?e-=i:"center"===t&&(e-=i/2));let n=this.options.horizontal?"scrollWidth":"scrollHeight";return Math.max(Math.min((this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[n]:this.scrollElement[n]:0)-i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let i=this.measurementsCache[e];if(!i)return;let r=this.getSize(),n=this.getScrollOffset();if("auto"===t){if(i.end>=n+r-this.options.scrollPaddingEnd)t="end";else{if(!(i.start<=n+this.options.scrollPaddingStart))return[n,t];t="start"}}let s="end"===t?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,t),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:i}={})=>{this.cancelScrollToIndex(),"smooth"===i&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:i})},this.scrollToIndex=(e,{align:t="auto",behavior:i}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===i&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let r=this.getOffsetForIndex(e,t);if(!r)return;let[n,s]=r;this._scrollToOffset(n,{adjustments:void 0,behavior:i}),"smooth"!==i&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[t]=eN(this.getOffsetForIndex(e,s));eF(t,this.getScrollOffset())||this.scrollToIndex(e,{align:s,behavior:i})}else this.scrollToIndex(e,{align:s,behavior:i})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t=this.getMeasurements();return Math.max((0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map(e=>e.end)))-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:i})=>{this.options.scrollToFn(e,{behavior:i,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}let eY=(e,t,i,r)=>{for(;e<=t;){let n=(e+t)/2|0,s=i(n);if(sr))return n;t=n-1}}return e>0?e-1:0},eZ="undefined"!=typeof document?d.useLayoutEffect:d.useEffect;var eQ=e=>{let{Component:t,state:i,color:r,variant:n,itemClasses:s,getBaseProps:a,topContent:l,bottomContent:o,hideEmptyContent:u,hideSelectedIcon:c,shouldHighlightOnFocus:h,disableAnimation:p,getEmptyContentProps:f,getListProps:v}=e,{virtualization:b}=e;if(!b||!(0,m.xb)(b)&&!b.maxListboxHeight&&!b.itemHeight)throw Error("You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox.");let{maxListboxHeight:y,itemHeight:x}=b,w=Math.min(y,x*i.collection.size),S=(0,d.useRef)(null),P=function(e){let t=d.useReducer(()=>({}),{})[1],i={...e,onChange:(i,r)=>{var n;r?(0,eg.flushSync)(t):t(),null==(n=e.onChange)||n.call(e,i,r)}},[r]=d.useState(()=>new eJ(i));return r.setOptions(i),d.useEffect(()=>r._didMount(),[]),eZ(()=>r._willUpdate()),r}({observeElementRect:eH,observeElementOffset:eG,scrollToFn:eX,count:i.collection.size,getScrollElement:()=>S.current,estimateSize:()=>x}),C=P.getVirtualItems(),I=({index:e,style:t})=>{var a;let l=[...i.collection][e],o={color:r,item:l,state:i,variant:n,disableAnimation:p,hideSelectedIcon:c,...l.props};if("section"===l.type)return(0,eo.jsx)(eL,{...o,itemClasses:s,style:{...t,...o.style}},l.key);let u=(0,eo.jsx)(e_,{...o,classNames:(0,g.d)(s,null==(a=l.props)?void 0:a.classNames),shouldHighlightOnFocus:h,style:{...t,...o.style}},l.key);return l.wrapper&&(u=l.wrapper(u)),u},z=(0,eo.jsxs)(t,{...v(),children:[!i.collection.size&&!u&&(0,eo.jsx)("li",{children:(0,eo.jsx)("div",{...f()})}),(0,eo.jsx)("div",{ref:S,style:{height:y,overflow:"auto"},children:w>0&&x>0&&(0,eo.jsx)("div",{style:{height:`${P.getTotalSize()}px`,width:"100%",position:"relative"},children:C.map(e=>I({index:e.index,style:{position:"absolute",top:0,left:0,width:"100%",height:`${e.size}px`,transform:`translateY(${e.start}px)`}}))})})]});return(0,eo.jsxs)("div",{...a(),children:[l,z,o]})},e0=(0,n.Gp)(function(e,t){let{isVirtualized:i,...n}=e,s=function(e){var t;let i=(0,r.w)(),{ref:n,as:s,state:a,variant:l,color:c,onAction:h,children:f,onSelectionChange:m,disableAnimation:v=null!=(t=null==i?void 0:i.disableAnimation)&&t,itemClasses:b,className:y,topContent:x,bottomContent:w,emptyContent:S="No items.",hideSelectedIcon:P=!1,hideEmptyContent:C=!1,shouldHighlightOnFocus:I=!1,classNames:z,...E}=e,D=s||"ul",k="string"==typeof D,M=(0,o.gy)(n),R=T({...e,children:f,onSelectionChange:m}),A=a||R,{listBoxProps:L}=function(e,t,i){let r=(0,Z.z)(e,{labelable:!0}),n=e.selectionBehavior||"toggle",s=e.linkBehavior||("replace"===n?"action":"override");"toggle"===n&&"action"===s&&(s="override");let{listProps:a}=function(e){let{selectionManager:t,collection:i,disabledKeys:r,ref:n,keyboardDelegate:s,layoutDelegate:a}=e,l=j({usage:"search",sensitivity:"base"}),o=t.disabledBehavior,u=(0,d.useMemo)(()=>s||new J({collection:i,disabledKeys:r,disabledBehavior:o,ref:n,collator:l,layoutDelegate:a}),[s,a,i,r,n,l,o]),{collectionProps:c}=function(e){let t,{selectionManager:i,keyboardDelegate:r,ref:n,autoFocus:s=!1,shouldFocusWrap:a=!1,disallowEmptySelection:l=!1,disallowSelectAll:o=!1,selectOnFocus:u="replace"===i.selectionBehavior,disallowTypeAhead:c=!1,shouldUseVirtualFocus:h,allowsTabNavigation:p=!1,isVirtualized:f,scrollRef:m=n,linkBehavior:v="action"}=e,{direction:b}=(0,B.j)(),y=(0,ey.tv)(),x=(0,d.useRef)({top:0,left:0});eS(m,"scroll",f?void 0:()=>{var e,t,i,r;x.current={top:null!==(i=null===(e=m.current)||void 0===e?void 0:e.scrollTop)&&void 0!==i?i:0,left:null!==(r=null===(t=m.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==r?r:0}});let w=(0,d.useRef)(s);(0,d.useEffect)(()=>{if(w.current){var e,t,a,l;let o=null;"first"===s&&(o=null!==(a=null===(e=r.getFirstKey)||void 0===e?void 0:e.call(r))&&void 0!==a?a:null),"last"===s&&(o=null!==(l=null===(t=r.getLastKey)||void 0===t?void 0:t.call(r))&&void 0!==l?l:null);let u=i.selectedKeys;if(u.size){for(let e of u)if(i.canSelectItem(e)){o=e;break}}i.setFocused(!0),i.setFocusedKey(o),null==o&&!h&&n.current&&(0,eb.e)(n.current)}},[]);let S=(0,d.useRef)(i.focusedKey);(0,d.useEffect)(()=>{if(i.isFocused&&null!=i.focusedKey&&(i.focusedKey!==S.current||w.current)&&m.current&&n.current){let e=(0,_.Jz)(),t=n.current.querySelector(`[data-key="${CSS.escape(i.focusedKey.toString())}"]`);if(!t)return;("keyboard"===e||w.current)&&(eP(m.current,t),"virtual"!==e&&eI(t,{containingElement:n.current}))}!h&&i.isFocused&&null==i.focusedKey&&null!=S.current&&n.current&&(0,eb.e)(n.current),S.current=i.focusedKey,w.current=!1}),eS(n,"react-aria-focus-scope-restore",e=>{e.preventDefault(),i.setFocused(!0)});let P={onKeyDown:e=>{var t,s,d,c,h,f,g,x,w,S,P,C,I;if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!(null===(t=n.current)||void 0===t?void 0:t.contains(e.target)))return;let z=(t,r)=>{if(null!=t){if(i.isLink(t)&&"selection"===v&&u&&!ef(e)){var n;(0,eg.flushSync)(()=>{i.setFocusedKey(t,r)});let s=null===(n=m.current)||void 0===n?void 0:n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`),a=i.getItemProps(t);s&&y.open(s,e,a.href,a.routerOptions);return}i.setFocusedKey(t,r),i.isLink(t)&&"override"===v||(e.shiftKey&&"multiple"===i.selectionMode?i.extendSelection(t):u&&!ef(e)&&i.replaceSelection(t))}};switch(e.key){case"ArrowDown":if(r.getKeyBelow){let t=null!=i.focusedKey?null===(s=r.getKeyBelow)||void 0===s?void 0:s.call(r,i.focusedKey):null===(d=r.getFirstKey)||void 0===d?void 0:d.call(r);null==t&&a&&(t=null===(c=r.getFirstKey)||void 0===c?void 0:c.call(r,i.focusedKey)),null!=t&&(e.preventDefault(),z(t))}break;case"ArrowUp":if(r.getKeyAbove){let t=null!=i.focusedKey?null===(h=r.getKeyAbove)||void 0===h?void 0:h.call(r,i.focusedKey):null===(f=r.getLastKey)||void 0===f?void 0:f.call(r);null==t&&a&&(t=null===(g=r.getLastKey)||void 0===g?void 0:g.call(r,i.focusedKey)),null!=t&&(e.preventDefault(),z(t))}break;case"ArrowLeft":if(r.getKeyLeftOf){let t=null!=i.focusedKey?null===(x=r.getKeyLeftOf)||void 0===x?void 0:x.call(r,i.focusedKey):null;null==t&&a&&(t="rtl"===b?null===(w=r.getFirstKey)||void 0===w?void 0:w.call(r,i.focusedKey):null===(S=r.getLastKey)||void 0===S?void 0:S.call(r,i.focusedKey)),null!=t&&(e.preventDefault(),z(t,"rtl"===b?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){let t=null!=i.focusedKey?null===(P=r.getKeyRightOf)||void 0===P?void 0:P.call(r,i.focusedKey):null;null==t&&a&&(t="rtl"===b?null===(C=r.getLastKey)||void 0===C?void 0:C.call(r,i.focusedKey):null===(I=r.getFirstKey)||void 0===I?void 0:I.call(r,i.focusedKey)),null!=t&&(e.preventDefault(),z(t,"rtl"===b?"last":"first"))}break;case"Home":if(r.getFirstKey){e.preventDefault();let t=r.getFirstKey(i.focusedKey,em(e));i.setFocusedKey(t),null!=t&&(em(e)&&e.shiftKey&&"multiple"===i.selectionMode?i.extendSelection(t):u&&i.replaceSelection(t))}break;case"End":if(r.getLastKey){e.preventDefault();let t=r.getLastKey(i.focusedKey,em(e));i.setFocusedKey(t),null!=t&&(em(e)&&e.shiftKey&&"multiple"===i.selectionMode?i.extendSelection(t):u&&i.replaceSelection(t))}break;case"PageDown":if(r.getKeyPageBelow&&null!=i.focusedKey){let t=r.getKeyPageBelow(i.focusedKey);null!=t&&(e.preventDefault(),z(t))}break;case"PageUp":if(r.getKeyPageAbove&&null!=i.focusedKey){let t=r.getKeyPageAbove(i.focusedKey);null!=t&&(e.preventDefault(),z(t))}break;case"a":em(e)&&"multiple"===i.selectionMode&&!0!==o&&(e.preventDefault(),i.selectAll());break;case"Escape":l||0===i.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),i.clearSelection());break;case"Tab":if(!p){if(e.shiftKey)n.current.focus();else{let e,t,i=(0,ev.QL)(n.current,{tabbable:!0});do(t=i.lastChild())&&(e=t);while(t);e&&!e.contains(document.activeElement)&&(0,ex.A)(e)}}}},onFocus:e=>{if(i.isFocused){e.currentTarget.contains(e.target)||i.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(i.setFocused(!0),null==i.focusedKey){var t,s,a,l;let n=e=>{null!=e&&(i.setFocusedKey(e),u&&i.replaceSelection(e))},o=e.relatedTarget;o&&e.currentTarget.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?n(null!==(a=i.lastSelectedKey)&&void 0!==a?a:null===(t=r.getLastKey)||void 0===t?void 0:t.call(r)):n(null!==(l=i.firstSelectedKey)&&void 0!==l?l:null===(s=r.getFirstKey)||void 0===s?void 0:s.call(r))}else!f&&m.current&&(m.current.scrollTop=x.current.top,m.current.scrollLeft=x.current.left);if(null!=i.focusedKey&&m.current){let e=m.current.querySelector(`[data-key="${CSS.escape(i.focusedKey.toString())}"]`);e&&(e.contains(document.activeElement)||(0,ex.A)(e),"keyboard"===(0,_.Jz)()&&eI(e,{containingElement:n.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||i.setFocused(!1)},onMouseDown(e){m.current===e.target&&e.preventDefault()}},{typeSelectProps:C}=Y({keyboardDelegate:r,selectionManager:i});return c||(P=(0,g.d)(C,P)),h||(t=null==i.focusedKey?0:-1),{collectionProps:{...P,tabIndex:t}}}({...e,ref:n,selectionManager:t,keyboardDelegate:u});return{listProps:c}}({...e,ref:i,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:s}),{focusWithinProps:l}=(0,ec.L)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),o=(0,O.Me)(e.id);ed.set(t,{id:o,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:s});let{labelProps:u,fieldProps:c}=(0,eh.N)({...e,id:o,labelElementType:"span"});return{labelProps:u,listBoxProps:(0,g.d)(r,l,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...(0,g.d)(c,a)})}}({...e,onAction:h},A,M),N=(0,d.useMemo)(()=>ez({className:y}),[y]),F=(0,p.W)(null==z?void 0:z.base,y);return{Component:D,state:A,variant:l,color:c,slots:N,classNames:z,topContent:x,bottomContent:w,emptyContent:S,hideEmptyContent:C,shouldHighlightOnFocus:I,hideSelectedIcon:P,disableAnimation:v,className:y,itemClasses:b,getBaseProps:(e={})=>({ref:M,"data-slot":"base",className:N.base({class:F}),...(0,u.z)(E,{enabled:k}),...e}),getListProps:(e={})=>({"data-slot":"list",className:N.list({class:null==z?void 0:z.list}),...L,...e}),getEmptyContentProps:(e={})=>({"data-slot":"empty-content",children:S,className:N.emptyContent({class:null==z?void 0:z.emptyContent}),...e})}}({...n,ref:t}),{Component:a,state:l,color:c,variant:h,itemClasses:f,getBaseProps:m,topContent:v,bottomContent:b,hideEmptyContent:y,hideSelectedIcon:x,shouldHighlightOnFocus:w,disableAnimation:S,getEmptyContentProps:P,getListProps:C}=s;if(i)return(0,eo.jsx)(eQ,{...e,...s});let I=(0,eo.jsxs)(a,{...C(),children:[!l.collection.size&&!y&&(0,eo.jsx)("li",{children:(0,eo.jsx)("div",{...P()})}),[...l.collection].map(e=>{var t;let i={color:c,item:e,state:l,variant:h,disableAnimation:S,hideSelectedIcon:x,...e.props};if("section"===e.type)return(0,eo.jsx)(eL,{...i,itemClasses:f},e.key);let r=(0,eo.jsx)(e_,{...i,classNames:(0,g.d)(f,null==(t=e.props)?void 0:t.classNames),shouldHighlightOnFocus:w},e.key);return e.wrapper&&(r=e.wrapper(r)),r})]});return(0,eo.jsxs)("div",{...m(),children:[v,I,b]})}),e1=i(1699),e4=i(8390),e3=i(6594),e2=new WeakMap,e5=[],e7=i(9440),e6=i(3677),e9=i(5520),e8=i(3960),te=i(1233),tt=i(5997),ti=i(3264),tr=i(2414),tn=i(6737),ts=i(3538),ta=()=>i.e(954).then(i.bind(i,2965)).then(e=>e.default),tl=(0,n.Gp)(({children:e,motionProps:t,placement:i,disableAnimation:r,style:n={},transformOrigin:s={},...a},l)=>{let o=n;return o=void 0!==s.originX||void 0!==s.originY?{...o,transformOrigin:s}:{...o,...(0,e3.VS)("center"===i?"top":i)},r?(0,eo.jsx)("div",{...a,ref:l,children:e}):(0,eo.jsx)(ti.X,{features:ta,children:(0,eo.jsx)(tr.m.div,{ref:l,animate:"enter",exit:"exit",initial:"initial",style:o,variants:tn.y7.scaleSpringOpacity,...(0,g.d)(a,t),children:e})})});tl.displayName="NextUI.FreeSoloPopoverWrapper";var to=(0,n.Gp)(({children:e,transformOrigin:t,disableDialogFocus:i=!1,...s},a)=>{let{Component:l,state:u,placement:c,backdrop:v,portalContainer:b,disableAnimation:y,motionProps:x,isNonModal:w,getPopoverProps:S,getBackdropProps:P,getDialogProps:C,getContentProps:I}=function(e){var t,i,s;let a=(0,r.w)(),[l,u]=(0,n.oe)(e,e9.v.variantKeys),{as:c,ref:v,children:b,state:y,triggerRef:x,scrollRef:w,defaultOpen:S,onOpenChange:P,isOpen:C,isNonModal:I=!0,shouldFlip:z=!0,containerPadding:E=12,shouldBlockScroll:D=!1,isDismissable:T=!0,shouldCloseOnBlur:M,portalContainer:B,updatePositionDeps:R,dialogProps:j,placement:_="top",triggerType:A="dialog",showArrow:L=!1,offset:O=7,crossOffset:N=0,boundaryElement:F,isKeyboardDismissDisabled:V,shouldCloseOnInteractOutside:K,shouldCloseOnScroll:W,motionProps:H,className:U,classNames:$,onClose:q,...X}=l,J=(0,o.gy)(v),Y=(0,d.useRef)(null),Z=(0,d.useRef)(!1),Q=x||Y,ei=null!=(i=null!=(t=e.disableAnimation)?t:null==a?void 0:a.disableAnimation)&&i,er=(0,k.d)({isOpen:C,defaultOpen:S,onOpenChange:e=>{null==P||P(e),e||null==q||q()}}),en=y||er,{popoverProps:es,underlayProps:ea,placement:el}=function(e,t){let{triggerRef:i,popoverRef:r,showArrow:n,offset:s=7,crossOffset:a=0,scrollRef:l,shouldFlip:o,boundaryElement:u,isDismissable:c=!0,shouldCloseOnBlur:h=!0,shouldCloseOnScroll:p=!0,placement:f="top",containerPadding:m,shouldCloseOnInteractOutside:v,isNonModal:b,isKeyboardDismissDisabled:y,updatePositionDeps:x=[],...w}=e,S=null==b||b,{overlayProps:P,underlayProps:C}=(0,e1.I)({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:h,isDismissable:c,isKeyboardDismissDisabled:y,shouldCloseOnInteractOutside:v||(e=>et(e,i,t))},r),{overlayProps:I,arrowProps:z,placement:E,updatePosition:D}=(0,e4.t)({...w,shouldFlip:o,crossOffset:a,targetRef:i,overlayRef:r,isOpen:t.isOpen,scrollRef:l,boundaryElement:u,containerPadding:m,placement:(0,e3.Yx)(f),offset:n?s+3:s,onClose:S&&p?t.close:()=>{}});return(0,ee.G)(()=>{x.length&&D()},x),(0,d.useEffect)(()=>{if(t.isOpen&&!S&&r.current)return function(e,t=document.body){let i=new Set(e),r=new Set,n=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))i.add(t);let t=e=>{if(i.has(e)||e.parentElement&&r.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of i)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),a=t(e);if(a===NodeFilter.FILTER_ACCEPT&&s(e),a!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;null!=e;)s(e),e=n.nextNode()}},s=e=>{var t;let i=null!=(t=e2.get(e))?t:0;("true"!==e.getAttribute("aria-hidden")||0!==i)&&(0===i&&e.setAttribute("aria-hidden","true"),r.add(e),e2.set(e,i+1))};e5.length&&e5[e5.length-1].disconnect(),n(t);let a=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...i,...r].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(i.delete(e),r.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?i.add(e):e instanceof Element&&n(e)}});a.observe(t,{childList:!0,subtree:!0});let l={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return e5.push(l),()=>{for(let e of(a.disconnect(),r)){let t=e2.get(e);null!=t&&(1===t?(e.removeAttribute("aria-hidden"),e2.delete(e)):e2.set(e,t-1))}l===e5[e5.length-1]?(e5.pop(),e5.length&&e5[e5.length-1].observe()):e5.splice(e5.indexOf(l),1)}}([r.current])},[S,t.isOpen,r]),{popoverProps:(0,g.d)(P,I),arrowProps:z,underlayProps:C,placement:E}}({triggerRef:Q,isNonModal:I,popoverRef:J,placement:_,offset:O,scrollRef:w,isDismissable:T,shouldCloseOnBlur:M,boundaryElement:F,crossOffset:N,shouldFlip:z,containerPadding:E,updatePositionDeps:R,isKeyboardDismissDisabled:V,shouldCloseOnScroll:W,shouldCloseOnInteractOutside:K},en),{triggerProps:eo}=G({type:A},en,Q),{isFocusVisible:eu,isFocused:ed,focusProps:ec}=(0,h.F)(),eh=(0,d.useMemo)(()=>(0,e9.v)({...u}),[(0,f.Xx)(u)]),ep=(0,p.W)(null==$?void 0:$.base,U);(0,e7.t)({isDisabled:!(D&&en.isOpen)});let ef=(0,d.useCallback)((e={})=>({"data-slot":"content","data-open":(0,m.PB)(en.isOpen),"data-arrow":(0,m.PB)(L),"data-placement":(0,e3.sK)(el||"top",_),className:eh.content({class:(0,p.W)(null==$?void 0:$.content,e.className)})}),[eh,en.isOpen,L,el,_,$]),em=(0,d.useMemo)(()=>(0,e3.Yv)(el||"top",_)&&el||_,[el,_]),eg=(0,d.useCallback)(t=>{var i;let r;return"touch"===t.pointerType&&((null==e?void 0:e.backdrop)==="blur"||(null==e?void 0:e.backdrop)==="opaque")?r=setTimeout(()=>{Z.current=!0},100):Z.current=!0,null==(i=eo.onPress)||i.call(eo,t),()=>{clearTimeout(r)}},[null==eo?void 0:eo.onPress]),ev=(0,d.useCallback)((e={},t=null)=>{let{isDisabled:i,...r}=e;return{"data-slot":"trigger",...(0,g.d)({"aria-haspopup":"dialog"},eo,r),onPress:eg,isDisabled:i,className:eh.trigger({class:(0,p.W)(null==$?void 0:$.trigger,e.className),isTriggerDisabled:i}),ref:(0,e8.l)(t,Q)}},[en,eo,eg,Q]),eb=(0,d.useCallback)((e={})=>({"data-slot":"backdrop",className:eh.backdrop({class:null==$?void 0:$.backdrop}),onClick:e=>{if(!Z.current){e.preventDefault();return}en.close(),Z.current=!1},...ea,...e}),[eh,en.isOpen,$,ea]);return(0,d.useEffect)(()=>{if(en.isOpen&&(null==J?void 0:J.current))return(0,e6.R)([null==J?void 0:J.current])},[en.isOpen,J]),{state:en,Component:c||"div",children:b,classNames:$,showArrow:L,triggerRef:Q,placement:em,isNonModal:I,popoverRef:J,portalContainer:B,isOpen:en.isOpen,onClose:en.close,disableAnimation:ei,shouldBlockScroll:D,backdrop:null!=(s=e.backdrop)?s:"transparent",motionProps:H,getBackdropProps:eb,getPopoverProps:(e={})=>({ref:J,...(0,g.d)(es,X,e),style:(0,g.d)(es.style,X.style,e.style)}),getTriggerProps:ev,getDialogProps:(e={})=>({"data-slot":"base","data-open":(0,m.PB)(en.isOpen),"data-focus":(0,m.PB)(ed),"data-arrow":(0,m.PB)(L),"data-focus-visible":(0,m.PB)(eu),"data-placement":(0,e3.sK)(el||"top",_),...(0,g.d)(ec,j,e),className:eh.base({class:(0,p.W)(ep)}),style:{outline:"none"}}),getContentProps:ef}}({...s,ref:a}),z=d.useRef(null),{dialogProps:E,titleProps:D}=(0,ts.R)({},z),T=C({...!i&&{ref:z},...E}),M=d.useMemo(()=>"transparent"===v?null:y?(0,eo.jsx)("div",{...P()}):(0,eo.jsx)(ti.X,{features:ta,children:(0,eo.jsx)(tr.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:tn.y7.fade,...P()})}),[v,y,P]);return(0,eo.jsxs)(te.aV,{portalContainer:b,children:[!w&&M,(0,eo.jsx)(l,{...S(),children:(0,eo.jsxs)(tl,{disableAnimation:y,motionProps:x,placement:c,tabIndex:-1,transformOrigin:t,...T,children:[!w&&(0,eo.jsx)(tt.U,{onDismiss:u.close}),(0,eo.jsx)("div",{...I(),children:"function"==typeof e?e(D):e}),(0,eo.jsx)(tt.U,{onDismiss:u.close})]})})]})});to.displayName="NextUI.FreeSoloPopover";var tu=({strokeWidth:e=1.5,...t})=>(0,eo.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e,viewBox:"0 0 24 24",width:"1em",...t,children:(0,eo.jsx)("path",{d:"m6 9 6 6 6-6"})}),td=i(704),tc=(0,s.tv)({base:[],variants:{orientation:{vertical:["overflow-y-auto","data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],horizontal:["overflow-x-auto","data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}}),th=(0,n.Gp)((e,t)=>{let{Component:i,children:r,getBaseProps:s}=function(e){var t;let[i,r]=(0,n.oe)(e,tc.variantKeys),{ref:s,as:a,children:l,className:u,style:c,size:h=40,offset:p=0,visibility:m="auto",isEnabled:g=!0,onVisibilityChange:v,...b}=i,y=(0,o.gy)(s);!function(e={}){let{domRef:t,isEnabled:i=!0,overflowCheck:r="vertical",visibility:n="auto",offset:s=0,onVisibilityChange:a,updateDeps:l=[]}=e,o=(0,d.useRef)(n);(0,d.useEffect)(()=>{let e=null==t?void 0:t.current;if(!e||!i)return;let l=(t,i,r,s,l)=>{if("auto"===n){let t=`${s}${(0,f.kC)(l)}Scroll`;i&&r?(e.dataset[t]="true",e.removeAttribute(`data-${s}-scroll`),e.removeAttribute(`data-${l}-scroll`)):(e.dataset[`${s}Scroll`]=i.toString(),e.dataset[`${l}Scroll`]=r.toString(),e.removeAttribute(`data-${s}-${l}-scroll`))}else{let e=i&&r?"both":i?s:r?l:"none";e!==o.current&&(null==a||a(e),o.current=e)}},u=()=>{for(let{type:t,prefix:i,suffix:n}of[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}])if(r===t||"both"===r){let r="vertical"===t?e.scrollTop>s:e.scrollLeft>s,a="vertical"===t?e.scrollTop+e.clientHeight+s{["top","bottom","top-bottom","left","right","left-right"].forEach(t=>{e.removeAttribute(`data-${t}-scroll`)})};return u(),e.addEventListener("scroll",u),"auto"!==n&&(d(),"both"===n?(e.dataset.topBottomScroll=String("vertical"===r),e.dataset.leftRightScroll=String("horizontal"===r)):(e.dataset.topBottomScroll="false",e.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(t=>{e.dataset[`${t}Scroll`]=String(n===t)}))),()=>{e.removeEventListener("scroll",u),d()}},[...l,i,n,r,a,t])}({domRef:y,offset:p,visibility:m,isEnabled:g,onVisibilityChange:v,updateDeps:[l],overflowCheck:null!=(t=e.orientation)?t:"vertical"});let x=(0,d.useMemo)(()=>tc({...r,className:u}),[(0,f.Xx)(r),u]);return{Component:a||"div",styles:x,domRef:y,children:l,getBaseProps:(t={})=>{var i;return{ref:y,className:x,"data-orientation":null!=(i=e.orientation)?i:"vertical",style:{"--scroll-shadow-size":`${h}px`,...c,...t.style},...b,...t}}}}({...e,ref:t});return(0,eo.jsx)(i,{...s(),children:r})});th.displayName="NextUI.ScrollShadow";var tp=i(4111),tf=(0,n.Gp)(function(e,t){let{Component:i,state:s,label:a,hasHelper:b,isLoading:y,triggerRef:x,selectorIcon:w=(0,eo.jsx)(tu,{}),description:S,errorMessage:P,isInvalid:C,startContent:I,endContent:z,placeholder:E,renderValue:D,shouldLabelBeOutside:B,disableAnimation:R,getBaseProps:F,getLabelProps:V,getTriggerProps:K,getValueProps:W,getListboxProps:H,getPopoverProps:$,getSpinnerProps:q,getMainWrapperProps:X,getInnerWrapperProps:es,getHiddenSelectProps:el,getHelperWrapperProps:ed,getListboxWrapperProps:ec,getDescriptionProps:eh,getErrorMessageProps:ep,getSelectorIconProps:ef}=function(e){var t,i,s,a,b,y;let x=(0,r.w)(),{validationBehavior:w}=(0,ei.jn)(er.q)||{},[S,P]=(0,n.oe)(e,l.variantKeys),C=null!=(i=null!=(t=e.disableAnimation)?t:null==x?void 0:x.disableAnimation)&&i,{ref:I,as:z,label:E,name:D,isLoading:B,selectorIcon:R,isOpen:F,defaultOpen:V,onOpenChange:K,startContent:W,endContent:H,description:$,renderValue:q,onSelectionChange:X,placeholder:es,isVirtualized:ea,itemHeight:el=32,maxListboxHeight:eo=256,children:eu,disallowEmptySelection:ed=!1,selectionMode:ec="single",spinnerRef:eh,scrollRef:ep,popoverProps:ef={},scrollShadowProps:em={},listboxProps:eg={},spinnerProps:ev={},validationState:eb,onChange:ey,onClose:ex,className:ew,classNames:eS,validationBehavior:eP=null!=(s=null!=w?w:null==x?void 0:x.validationBehavior)?s:"native",hideEmptyContent:eC=!1,...eI}=S,ez=(0,o.gy)(ep),eE={popoverProps:(0,g.d)({placement:"bottom",triggerScaleOnOpen:!1,offset:5,disableAnimation:C},ef),scrollShadowProps:(0,g.d)({ref:ez,isEnabled:null==(a=e.showScrollIndicators)||a,hideScrollBar:!0,offset:15},em),listboxProps:(0,g.d)({disableAnimation:C},eg)},eD=z||"button",eT="string"==typeof eD,ek=(0,o.gy)(I),eM=(0,d.useRef)(null),eB=(0,d.useRef)(null),eR=(0,d.useRef)(null),ej=function({validate:e,validationBehavior:t,...i}){let[r,n]=(0,d.useState)(!1),[s,a]=(0,d.useState)(null),l=function(e){let t=(0,k.d)(e),[i,r]=(0,d.useState)(null),[n,s]=(0,d.useState)([]),a=()=>{s([]),t.close()};return{focusStrategy:i,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){a()},expandedKeysStack:n,openSubmenu:(e,t)=>{s(i=>t>i.length?i:[...i.slice(0,t),e])},closeSubmenu:(e,t)=>{s(i=>i[t]===e?i.slice(0,t):i)}}}(i),o=function(e){let{collection:t,disabledKeys:i,selectionManager:r,selectionManager:{setSelectedKeys:n,selectedKeys:s,selectionMode:a}}=T(e),l=(0,d.useMemo)(()=>e.isLoading||0===s.size?[]:Array.from(s).filter(Boolean).filter(e=>!t.getItem(e)),[s,t]),o=0!==s.size?Array.from(s).map(e=>t.getItem(e)).filter(Boolean):null;return l.length&&console.warn(`Select: Keys "${l.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:i,selectionManager:r,selectionMode:a,selectedKeys:s,setSelectedKeys:n.bind(r),selectedItems:o}}({...i,onSelectionChange:e=>{null!=i.onSelectionChange&&("all"===e?i.onSelectionChange(new Set(o.collection.getKeys())):i.onSelectionChange(e)),"single"===i.selectionMode&&l.close()}}),u=(0,M.Q3)({...i,validationBehavior:t,validate:t=>{if(!e)return;let r=Array.from(t);return e("single"===i.selectionMode?r[0]:r)},value:o.selectedKeys}),c=0===o.collection.size&&i.hideEmptyContent;return{...u,...o,...l,focusStrategy:s,close(){l.close()},open(e=null){c||(a(e),l.open())},toggle(e=null){c||(a(e),l.toggle(),u.commitValidation())},isFocused:r,setFocused:n}}({...S,isOpen:F,selectionMode:ec,disallowEmptySelection:ed,validationBehavior:eP,children:eu,isRequired:e.isRequired,isDisabled:e.isDisabled,isInvalid:e.isInvalid,defaultOpen:V,hideEmptyContent:eC,onOpenChange:e=>{null==K||K(e),e||null==ex||ex()},onSelectionChange:e=>{null==X||X(e),ey&&"function"==typeof ey&&ey({target:{...ek.current&&{...ek.current,name:ek.current.name},value:Array.from(e).join(",")}})}});ej={...ej,...e.isDisabled&&{disabledKeys:new Set([...ej.collection.getKeys()])}},(0,ee.G)(()=>{var e;(null==(e=ek.current)?void 0:e.value)&&ej.setSelectedKeys(new Set([...ej.selectedKeys,ek.current.value]))},[ek.current]);let{labelProps:e_,triggerProps:eA,valueProps:eL,menuProps:eO,descriptionProps:eN,errorMessageProps:eF,isInvalid:eV,validationErrors:eK,validationDetails:eW}=function(e,t,i){let{disallowEmptySelection:r,isDisabled:n}=e,s=j({usage:"search",sensitivity:"base"}),a=(0,d.useMemo)(()=>new J(t.collection,t.disabledKeys,null,s),[t.collection,t.disabledKeys,s]),{menuTriggerProps:l,menuProps:o}=function(e,t,i){var r;let{type:n="menu",isDisabled:s,trigger:a="press"}=e,l=(0,O.Me)(),{triggerProps:o,overlayProps:u}=G({type:n},t,i),{longPressProps:d}=U({isDisabled:s||"longPress"!==a,accessibilityDescription:(0,N.q)((r=L)&&r.__esModule?r.default:r,"@react-aria/menu").format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}});return delete o.onPress,{menuTriggerProps:{...o,..."press"===a?{onPressStart(e){"touch"===e.pointerType||"keyboard"===e.pointerType||s||t.open("virtual"===e.pointerType?"first":null)},onPress(e){"touch"!==e.pointerType||s||t.toggle()}}:d,id:l,onKeyDown:e=>{if(!s&&("longPress"!==a||e.altKey)&&i&&i.current)switch(e.key){case"Enter":case" ":if("longPress"===a)return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("last");break;default:"continuePropagation"in e&&e.continuePropagation()}}},menuProps:{...u,"aria-labelledby":l,autoFocus:t.focusStrategy||!0,onClose:t.close}}}({isDisabled:n,type:"listbox"},t,i),{typeSelectProps:u}=Y({keyboardDelegate:a,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKeys([e])}}),{isInvalid:c,validationErrors:h,validationDetails:p}=t.displayValidation,{labelProps:f,fieldProps:m,descriptionProps:v,errorMessageProps:b}=(0,A.U)({...e,labelElementType:"span",isInvalid:c,errorMessage:e.errorMessage||h});u.onKeyDown=u.onKeyDownCapture,delete u.onKeyDownCapture;let y=(0,Z.z)(e,{labelable:!0}),x=(0,g.d)(u,l,m),w=(0,O.Me)();return{labelProps:{...f,onClick:()=>{var t;e.isDisabled||(null==(t=i.current)||t.focus(),(0,_._w)("keyboard"))}},triggerProps:(0,g.d)(y,{...x,onKeyDown:(0,Q.t)(x.onKeyDown,e=>{if("single"===t.selectionMode)switch(e.key){case"ArrowLeft":{e.preventDefault();let i=t.selectedKeys.size>0?a.getKeyAbove(t.selectedKeys.values().next().value):a.getFirstKey();i&&t.setSelectedKeys([i]);break}case"ArrowRight":{e.preventDefault();let i=t.selectedKeys.size>0?a.getKeyBelow(t.selectedKeys.values().next().value):a.getFirstKey();i&&t.setSelectedKeys([i])}}},e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[w,void 0!==y["aria-label"]?void 0!==y["aria-labelledby"]?y["aria-labelledby"]:x.id:x["aria-labelledby"]].join(" "),onFocus(i){t.isFocused||(e.onFocus&&e.onFocus(i),t.setFocused(!0))},onBlur(i){t.isOpen||(e.onBlur&&e.onBlur(i),t.setFocused(!1))}}),valueProps:{id:w},menuProps:{...o,disallowEmptySelection:r,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:i=>{i.currentTarget.contains(i.relatedTarget)||(e.onBlur&&e.onBlur(i),t.setFocused(!1))},onFocus:null==o?void 0:o.onFocus,"aria-labelledby":[m["aria-labelledby"],x["aria-label"]&&!m["aria-labelledby"]?x.id:null].filter(Boolean).join(" ")},descriptionProps:v,errorMessageProps:b,isInvalid:c,validationErrors:h,validationDetails:p}}({...S,disallowEmptySelection:ed,isDisabled:e.isDisabled},ej,eM),eH=e.isInvalid||"invalid"===eb||eV,{isPressed:eU,buttonProps:e$}=(0,c.j)(eA,eM),{focusProps:eG,isFocused:eq,isFocusVisible:eX}=(0,h.F)(),{isHovered:eJ,hoverProps:eY}=(0,v.X)({isDisabled:e.isDisabled}),eZ=(0,d.useMemo)(()=>{var t;return e.labelPlacement&&"inside"!==e.labelPlacement||E?null!=(t=e.labelPlacement)?t:"inside":"outside"},[e.labelPlacement,E]),eQ=!!es,e0="outside-left"===eZ||"outside"===eZ&&(!(eQ||$)||!!e.isMultiline),e1="inside"===eZ,e4="outside-left"===eZ,e3=ej.isOpen||eQ||!!(null==(b=ej.selectedItems)?void 0:b.length)||!!W||!!H||!!e.isMultiline,e2=!!(null==(y=ej.selectedItems)?void 0:y.length),e5=!!E,e7=(0,p.W)(null==eS?void 0:eS.base,ew),e6=(0,d.useMemo)(()=>l({...P,isInvalid:eH,labelPlacement:eZ,disableAnimation:C,className:ew}),[(0,f.Xx)(P),eH,eZ,C,ew]);(0,d.useEffect)(()=>{if(ej.isOpen&&eR.current&&eB.current){let e=eB.current.querySelector("[aria-selected=true] [data-label=true]"),t=ez.current;if(e&&t&&e.parentElement){let i=(null==t?void 0:t.getBoundingClientRect()).height;t.scrollTop=e.parentElement.offsetTop-i/2+e.parentElement.clientHeight/2}}},[ej.isOpen,C]);let e9="function"==typeof S.errorMessage?S.errorMessage({isInvalid:eH,validationErrors:eK,validationDetails:eW}):S.errorMessage||(null==eK?void 0:eK.join(" ")),e8=!!$||!!e9;(0,d.useEffect)(()=>{if(ej.isOpen&&eR.current&&eM.current){let e=eM.current.getBoundingClientRect();eR.current.style.width=e.width+"px"}},[ej.isOpen]);let te=(0,d.useCallback)((e={})=>({"data-slot":"base","data-filled":(0,m.PB)(e3),"data-has-value":(0,m.PB)(e2),"data-has-label":(0,m.PB)(e5),"data-has-helper":(0,m.PB)(e8),"data-invalid":(0,m.PB)(eH),className:e6.base({class:(0,p.W)(e7,e.className)}),...e}),[e6,e8,e2,e5,e3,e7]),tt=(0,d.useCallback)((t={})=>({ref:eM,"data-slot":"trigger","data-open":(0,m.PB)(ej.isOpen),"data-disabled":(0,m.PB)(null==e?void 0:e.isDisabled),"data-focus":(0,m.PB)(eq),"data-pressed":(0,m.PB)(eU),"data-focus-visible":(0,m.PB)(eX),"data-hover":(0,m.PB)(eJ),className:e6.trigger({class:null==eS?void 0:eS.trigger}),...(0,g.d)(e$,eG,eY,(0,u.z)(eI,{enabled:eT}),(0,u.z)(t))}),[e6,eM,ej.isOpen,null==eS?void 0:eS.trigger,null==e?void 0:e.isDisabled,eq,eU,eX,eJ,e$,eG,eY,eI,eT]),ti=(0,d.useCallback)((t={})=>({state:ej,triggerRef:eM,selectRef:ek,selectionMode:ec,label:null==e?void 0:e.label,name:null==e?void 0:e.name,isRequired:null==e?void 0:e.isRequired,autoComplete:null==e?void 0:e.autoComplete,isDisabled:null==e?void 0:e.isDisabled,onChange:ey,...t}),[ej,ec,null==e?void 0:e.label,null==e?void 0:e.autoComplete,null==e?void 0:e.name,null==e?void 0:e.isDisabled,eM]),tr=(0,d.useCallback)((e={})=>({"data-slot":"label",className:e6.label({class:(0,p.W)(null==eS?void 0:eS.label,e.className)}),...e_,...e}),[e6,null==eS?void 0:eS.label,e_]),tn=(0,d.useCallback)((e={})=>({"data-slot":"value",className:e6.value({class:(0,p.W)(null==eS?void 0:eS.value,e.className)}),...eL,...e}),[e6,null==eS?void 0:eS.value,eL]),ts=(0,d.useCallback)((e={})=>({"data-slot":"listboxWrapper",className:e6.listboxWrapper({class:(0,p.W)(null==eS?void 0:eS.listboxWrapper,null==e?void 0:e.className)}),style:{maxHeight:null!=eo?eo:256,...e.style},...(0,g.d)(eE.scrollShadowProps,e)}),[e6.listboxWrapper,null==eS?void 0:eS.listboxWrapper,eE.scrollShadowProps,eo]),ta=(0,d.useCallback)((e={})=>{var t,i;let r=(0,g.d)(eE.popoverProps,e);return{state:ej,triggerRef:eM,ref:eR,"data-slot":"popover",scrollRef:eB,triggerType:"listbox",classNames:{content:e6.popoverContent({class:(0,p.W)(null==eS?void 0:eS.popoverContent,e.className)})},...r,offset:ej.selectedItems&&ej.selectedItems.length>0?1e-8*ej.selectedItems.length+((null==(t=eE.popoverProps)?void 0:t.offset)||0):null==(i=eE.popoverProps)?void 0:i.offset,shouldCloseOnInteractOutside:(null==r?void 0:r.shouldCloseOnInteractOutside)?r.shouldCloseOnInteractOutside:e=>et(e,ek,ej)}},[e6,null==eS?void 0:eS.popoverContent,eE.popoverProps,eM,ej,ej.selectedItems]),tl=(0,d.useCallback)(()=>({"data-slot":"selectorIcon","aria-hidden":(0,m.PB)(!0),"data-open":(0,m.PB)(ej.isOpen),className:e6.selectorIcon({class:null==eS?void 0:eS.selectorIcon})}),[e6,null==eS?void 0:eS.selectorIcon,ej.isOpen]),to=(0,d.useCallback)((e={})=>({...e,"data-slot":"innerWrapper",className:e6.innerWrapper({class:(0,p.W)(null==eS?void 0:eS.innerWrapper,null==e?void 0:e.className)})}),[e6,null==eS?void 0:eS.innerWrapper]),tu=(0,d.useCallback)((e={})=>({...e,"data-slot":"helperWrapper",className:e6.helperWrapper({class:(0,p.W)(null==eS?void 0:eS.helperWrapper,null==e?void 0:e.className)})}),[e6,null==eS?void 0:eS.helperWrapper]),td=(0,d.useCallback)((e={})=>({...e,...eN,"data-slot":"description",className:e6.description({class:(0,p.W)(null==eS?void 0:eS.description,null==e?void 0:e.className)})}),[e6,null==eS?void 0:eS.description]),tc=(0,d.useCallback)((e={})=>({...e,"data-slot":"mainWrapper",className:e6.mainWrapper({class:(0,p.W)(null==eS?void 0:eS.mainWrapper,null==e?void 0:e.className)})}),[e6,null==eS?void 0:eS.mainWrapper]),th=(0,d.useCallback)((e={})=>({...e,...eF,"data-slot":"error-message",className:e6.errorMessage({class:(0,p.W)(null==eS?void 0:eS.errorMessage,null==e?void 0:e.className)})}),[e6,eF,null==eS?void 0:eS.errorMessage]),tp=(0,d.useCallback)((e={})=>({"aria-hidden":(0,m.PB)(!0),"data-slot":"spinner",color:"current",size:"sm",...ev,...e,ref:eh,className:e6.spinner({class:(0,p.W)(null==eS?void 0:eS.spinner,null==e?void 0:e.className)})}),[e6,eh,ev,null==eS?void 0:eS.spinner]);return en.set(ej,{isDisabled:null==e?void 0:e.isDisabled,isRequired:null==e?void 0:e.isRequired,name:null==e?void 0:e.name,isInvalid:eH,validationBehavior:eP}),{Component:eD,domRef:ek,state:ej,label:E,name:D,triggerRef:eM,isLoading:B,placeholder:es,startContent:W,endContent:H,description:$,selectorIcon:R,hasHelper:e8,labelPlacement:eZ,hasPlaceholder:eQ,renderValue:q,selectionMode:ec,disableAnimation:C,isOutsideLeft:e4,shouldLabelBeOutside:e0,shouldLabelBeInside:e1,isInvalid:eH,errorMessage:e9,getBaseProps:te,getTriggerProps:tt,getLabelProps:tr,getValueProps:tn,getListboxProps:(e={})=>{let t=null!=ea?ea:ej.collection.size>50;return{state:ej,ref:eB,isVirtualized:t,virtualization:t?{maxListboxHeight:eo,itemHeight:el}:void 0,"data-slot":"listbox",className:e6.listbox({class:(0,p.W)(null==eS?void 0:eS.listbox,null==e?void 0:e.className)}),...(0,g.d)(eE.listboxProps,e,eO)}},getPopoverProps:ta,getSpinnerProps:tp,getMainWrapperProps:tc,getListboxWrapperProps:ts,getHiddenSelectProps:ti,getInnerWrapperProps:to,getHelperWrapperProps:tu,getDescriptionProps:td,getErrorMessageProps:th,getSelectorIconProps:tl}}({...e,ref:t}),em=a?(0,eo.jsx)("label",{...V(),children:a}):null,eg=(0,d.cloneElement)(w,ef()),ev=(0,d.useMemo)(()=>{let e=C&&P,t=e||S;return b&&t?(0,eo.jsx)("div",{...ed(),children:e?(0,eo.jsx)("div",{...ep(),children:P}):(0,eo.jsx)("div",{...eh(),children:S})}):null},[b,C,P,S,ed,ep,eh]),eb=(0,d.useMemo)(()=>{var e;return(null==(e=s.selectedItems)?void 0:e.length)?D&&"function"==typeof D?D([...s.selectedItems].map(e=>({key:e.key,data:e.value,type:e.type,props:e.props,textValue:e.textValue,rendered:e.rendered,"aria-label":e["aria-label"]}))):s.selectedItems.map(e=>e.textValue).join(", "):E},[s.selectedItems,D,E]),ey=(0,d.useMemo)(()=>y?(0,eo.jsx)(td.c,{...q()}):eg,[y,eg,q]),ex=(0,d.useMemo)(()=>s.isOpen?(0,eo.jsx)(to,{...$(),children:(0,eo.jsx)(th,{...ec(),children:(0,eo.jsx)(e0,{...H()})})}):null,[s.isOpen,$,s,x,ec,H]);return(0,eo.jsxs)("div",{...F(),children:[(0,eo.jsx)(eu,{...el()}),B?em:null,(0,eo.jsxs)("div",{...X(),children:[(0,eo.jsxs)(i,{...K(),children:[B?null:em,(0,eo.jsxs)("div",{...es(),children:[I,(0,eo.jsx)("span",{...W(),children:eb}),z&&s.selectedItems&&(0,eo.jsx)(ea.T,{elementType:"span",children:","}),z]}),ey]}),ev]}),R?ex:(0,eo.jsx)(tp.M,{children:ex})]})})},1955:function(e,t,i){"use strict";i.d(t,{f:function(){return n}});var r=i(217),n=e=>(0,r.jsx)("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:(0,r.jsx)("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})})},197:function(e,t,i){"use strict";i.d(t,{x:function(){return r}});var r=(...e)=>{let t=" ";for(let i of e)if("string"==typeof i&&i.length>0){t=i;break}return t}},9332:function(e,t,i){"use strict";i.d(t,{O:function(){return a},k:function(){return s}});var r=i(3427),n=i(3123),s=(0,r.tv)({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","border-solid","border-medium","box-border","border-default","rounded-full","group-data-[hover-unselected=true]:bg-default-100",...n.ID],hiddenInput:n.PZ,labelWrapper:"flex flex-col ml-1",control:["z-10","w-2","h-2","opacity-0","scale-0","origin-center","rounded-full","group-data-[selected=true]:opacity-100","group-data-[selected=true]:scale-100"],label:"relative text-foreground select-none",description:"relative text-foreground-400"},variants:{color:{default:{control:"bg-default-500 text-default-foreground",wrapper:"group-data-[selected=true]:border-default-500"},primary:{control:"bg-primary text-primary-foreground",wrapper:"group-data-[selected=true]:border-primary"},secondary:{control:"bg-secondary text-secondary-foreground",wrapper:"group-data-[selected=true]:border-secondary"},success:{control:"bg-success text-success-foreground",wrapper:"group-data-[selected=true]:border-success"},warning:{control:"bg-warning text-warning-foreground",wrapper:"group-data-[selected=true]:border-warning"},danger:{control:"bg-danger text-danger-foreground",wrapper:"group-data-[selected=true]:border-danger"}},size:{sm:{wrapper:"w-4 h-4",control:"w-1.5 h-1.5",labelWrapper:"ml-1",label:"text-small",description:"text-tiny"},md:{wrapper:"w-5 h-5",control:"w-2 h-2",labelWrapper:"ms-2",label:"text-medium",description:"text-small"},lg:{wrapper:"w-6 h-6",control:"w-2.5 h-2.5",labelWrapper:"ms-2",label:"text-large",description:"text-medium"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{control:"bg-danger text-danger-foreground",wrapper:"border-danger group-data-[selected=true]:border-danger",label:"text-danger",description:"text-danger-300"}},disableAnimation:{true:{},false:{wrapper:["group-data-[pressed=true]:scale-95","transition-transform-colors","motion-reduce:transition-none"],control:"transition-transform-opacity motion-reduce:transition-none",label:"transition-colors motion-reduce:transition-none",description:"transition-colors motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,isInvalid:!1}}),a=(0,r.tv)({slots:{base:"relative flex flex-col gap-2",label:"relative text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}})},2889:function(e,t,i){"use strict";i.d(t,{W:function(){return s}});var r=i(9589),n=i(2110);function s(e,t=[]){let i=(0,r.useRef)(e);return(0,n.G)(()=>{i.current=e}),(0,r.useCallback)((...e)=>{var t;return null==(t=i.current)?void 0:t.call(i,...e)},t)}},4957:function(e,t,i){"use strict";i.d(t,{q:function(){return l}});var r=i(6367),n=i(125),s=i(2889),a=i(9589);function l(e={}){let{id:t,defaultOpen:i,isOpen:l,onClose:o,onOpen:u,onChange:d=()=>{}}=e,c=(0,s.W)(u),h=(0,s.W)(o),[p,f]=(0,n.z)(l,i||!1,d),m=(0,a.useId)(),g=t||m,v=void 0!==l,b=(0,a.useCallback)(()=>{v||f(!1),null==h||h()},[v,h]),y=(0,a.useCallback)(()=>{v||f(!0),null==c||c()},[v,c]),x=(0,a.useCallback)(()=>{(p?b:y)()},[p,y,b]);return{isOpen:!!p,onOpen:y,onClose:b,onOpenChange:x,isControlled:v,getButtonProps:(e={})=>({...e,"aria-expanded":p,"aria-controls":g,onClick:(0,r.t)(e.onClick,x)}),getDisclosureProps:(e={})=>({...e,hidden:!p,id:g})}}},3538:function(e,t,i){"use strict";i.d(t,{R:function(){return o}});var r=i(6176),n=i(341),s=i(6814),a=i(9589),l=i(1233);function o(e,t){let{role:i="dialog"}=e,o=(0,r.mp)();o=e["aria-label"]?void 0:o;let u=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){(0,s.e)(t.current);let e=setTimeout(()=>{document.activeElement===t.current&&(u.current=!0,t.current&&(t.current.blur(),(0,s.e)(t.current)),u.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),(0,l.Bq)(),{dialogProps:{...(0,n.z)(e,{labelable:!0}),role:i,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o,onBlur:e=>{u.current&&e.stopPropagation()}},titleProps:{id:o}}}},3361:function(e,t,i){"use strict";i.d(t,{Q:function(){return l}});var r=i(7654),n=i(9589),s=i(1841),a=i(2013);function l(e,t,i){let{validationBehavior:l,focus:o}=e;(0,s.b)(()=>{if("native"===l&&(null==i?void 0:i.current)){var e;let r,n=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";i.current.setCustomValidity(n),i.current.hasAttribute("title")||(i.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=i.current).validity.valid,validationDetails:{badInput:(r=e.validity).badInput,customError:r.customError,patternMismatch:r.patternMismatch,rangeOverflow:r.rangeOverflow,rangeUnderflow:r.rangeUnderflow,stepMismatch:r.stepMismatch,tooLong:r.tooLong,tooShort:r.tooShort,typeMismatch:r.typeMismatch,valueMissing:r.valueMissing,valid:r.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let u=(0,a.i)(()=>{t.resetValidation()}),d=(0,a.i)(e=>{var n,s;t.displayValidation.isInvalid||t.commitValidation();let a=null==i?void 0:null===(n=i.current)||void 0===n?void 0:n.form;!e.defaultPrevented&&i&&a&&function(e){for(let t=0;t{t.commitValidation()});(0,n.useEffect)(()=>{let e=null==i?void 0:i.current;if(!e)return;let t=e.form;return e.addEventListener("invalid",d),e.addEventListener("change",c),null==t||t.addEventListener("reset",u),()=>{e.removeEventListener("invalid",d),e.removeEventListener("change",c),null==t||t.removeEventListener("reset",u)}},[i,d,c,u,l])}},5805:function(e,t,i){"use strict";let r;i.d(t,{q:function(){return p}});var n=i(2314);let s=Symbol.for("react-aria.i18n.locale"),a=Symbol.for("react-aria.i18n.strings");class l{getStringForLocale(e,t){let i=this.getStringsForLocale(t)[e];if(!i)throw Error(`Could not find intl message ${e} in ${t} locale`);return i}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,i="en-US"){if(t[e])return t[e];let r=Intl.Locale?new Intl.Locale(e).language:e.split("-")[0];if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[i]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[s];if(void 0===r){let e=window[a];if(!e)return null;for(let i in r={},e)r[i]=new l({[t]:e[i]},t)}let i=null==r?void 0:r[e];if(!i)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return i}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}}let o=new Map,u=new Map;class d{format(e,t){let i=this.strings.getStringForLocale(e,this.locale);return"function"==typeof i?i(t,this):i}plural(e,t,i="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let n=this.locale+":"+i,s=o.get(n);return s||(s=new Intl.PluralRules(this.locale,{type:i}),o.set(n,s)),"function"==typeof(r=t[s.select(e)]||t.other)?r():r}number(e){let t=u.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),u.set(this.locale,t)),t.format(e)}select(e,t){let i=e[t]||e.other;return"function"==typeof i?i():i}constructor(e,t){this.locale=e,this.strings=t}}var c=i(9589);let h=new WeakMap;function p(e,t){let i,{locale:r}=(0,n.j)(),s=t&&l.getGlobalDictionaryForPackage(t)||((i=h.get(e))||(i=new l(e),h.set(e,i)),i);return(0,c.useMemo)(()=>new d(r,s),[r,s])}},8948:function(e,t,i){"use strict";i.d(t,{U:function(){return a}});var r=i(8057),n=i(6176),s=i(2014);function a(e){let{description:t,errorMessage:i,isInvalid:a,validationState:l}=e,{labelProps:o,fieldProps:u}=(0,r.N)(e),d=(0,n.mp)([!!t,!!i,a,l]),c=(0,n.mp)([!!t,!!i,a,l]);return{labelProps:o,fieldProps:u=(0,s.d)(u,{"aria-describedby":[d,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:d},errorMessageProps:{id:c}}}},8057:function(e,t,i){"use strict";i.d(t,{N:function(){return s}});var r=i(6176),n=i(1156);function s(e){let{id:t,label:i,"aria-labelledby":s,"aria-label":a,labelElementType:l="label"}=e;t=(0,r.Me)(t);let o=(0,r.Me)(),u={};return i?(s=s?`${o} ${s}`:o,u={id:o,htmlFor:"label"===l?t:void 0}):s||a||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:u,fieldProps:(0,n.b)({id:t,"aria-label":a,"aria-labelledby":s})}}},5997:function(e,t,i){"use strict";i.d(t,{U:function(){return o}});var r={};r={"ar-AE":{dismiss:`\u{62A}\u{62C}\u{627}\u{647}\u{644}`},"bg-BG":{dismiss:`\u{41E}\u{442}\u{445}\u{432}\u{44A}\u{440}\u{43B}\u{44F}\u{43D}\u{435}`},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:`Schlie\xdfen`},"el-GR":{dismiss:`\u{391}\u{3C0}\u{3CC}\u{3C1}\u{3C1}\u{3B9}\u{3C8}\u{3B7}`},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:`L\xf5peta`},"fi-FI":{dismiss:`Hylk\xe4\xe4`},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:`\u{5D4}\u{5EA}\u{5E2}\u{5DC}\u{5DD}`},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:`Elutas\xedt\xe1s`},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:`\u{9589}\u{3058}\u{308B}`},"ko-KR":{dismiss:`\u{BB34}\u{C2DC}`},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:`Ner\u{101}d\u{12B}t`},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:`\u{41F}\u{440}\u{43E}\u{43F}\u{443}\u{441}\u{442}\u{438}\u{442}\u{44C}`},"sk-SK":{dismiss:`Zru\u{161}i\u{165}`},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:`\u{421}\u{43A}\u{430}\u{441}\u{443}\u{432}\u{430}\u{442}\u{438}`},"zh-CN":{dismiss:`\u{53D6}\u{6D88}`},"zh-TW":{dismiss:`\u{95DC}\u{9589}`}};var n=i(9589),s=i(1156),a=i(5805),l=i(8228);function o(e){var t;let{onDismiss:i,...o}=e,u=(0,a.q)((t=r)&&t.__esModule?t.default:t,"@react-aria/overlays"),d=(0,s.b)(o,u.format("dismiss"));return n.createElement(l.T,null,n.createElement("button",{...d,tabIndex:-1,onClick:()=>{i&&i()},style:{width:1,height:1}}))}},1233:function(e,t,i){"use strict";i.d(t,{aV:function(){return h},Bq:function(){return p}});var r=i(9589);let n=(0,r.createContext)({});var s=i(9096);function a({children:e}){let t=(0,r.useMemo)(()=>({register:()=>{}}),[]);return r.createElement(s.O.Provider,{value:t},e)}var l=i(7599),o=i(9297),u=i(6717),d=i(1841);let c=r.createContext(null);function h(e){var t;let i=(0,u.Av)(),{portalContainer:s=i?null:document.body,isExiting:d}=e,[h,p]=(0,r.useState)(!1),f=(0,r.useMemo)(()=>({contain:h,setContain:p}),[h,p]),{getContainer:m}=null!==(t=(0,r.useContext)(n))&&void 0!==t?t:{};if(!e.portalContainer&&m&&(s=m()),!s)return null;let g=e.children;return e.disableFocusManagement||(g=r.createElement(l.MT,{restoreFocus:!0,contain:h&&!d},g)),g=r.createElement(c.Provider,{value:f},r.createElement(a,null,g)),o.createPortal(g,s)}function p(){let e=(0,r.useContext)(c),t=null==e?void 0:e.setContain;(0,d.b)(()=>{null==t||t(!0)},[t])}},3677:function(e,t,i){"use strict";i.d(t,{R:function(){return s}});let r=new WeakMap,n=[];function s(e,t=document.body){let i=new Set(e),s=new Set,a=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))i.add(t);let t=e=>{if(i.has(e)||e.parentElement&&s.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of i)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),n=t(e);if(n===NodeFilter.FILTER_ACCEPT&&l(e),n!==NodeFilter.FILTER_REJECT){let e=r.nextNode();for(;null!=e;)l(e),e=r.nextNode()}},l=e=>{var t;let i=null!==(t=r.get(e))&&void 0!==t?t:0;("true"!==e.getAttribute("aria-hidden")||0!==i)&&(0===i&&e.setAttribute("aria-hidden","true"),s.add(e),r.set(e,i+1))};n.length&&n[n.length-1].disconnect(),a(t);let o=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...i,...s].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(i.delete(e),s.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?i.add(e):e instanceof Element&&a(e)}});o.observe(t,{childList:!0,subtree:!0});let u={observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return n.push(u),()=>{for(let e of(o.disconnect(),s)){let t=r.get(e);null!=t&&(1===t?(e.removeAttribute("aria-hidden"),r.delete(e)):r.set(e,t-1))}u===n[n.length-1]?(n.pop(),n.length&&n[n.length-1].observe()):n.splice(n.indexOf(u),1)}}},9440:function(e,t,i){"use strict";let r;i.d(t,{t:function(){return h}});var n=i(1841),s=i(7894),a=i(6367),l=i(9075);function o(e,t){let i=e;for((0,l.a)(i,t)&&(i=i.parentElement);i&&!(0,l.a)(i,t);)i=i.parentElement;return i||document.scrollingElement||document.documentElement}let u="undefined"!=typeof document&&window.visualViewport,d=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),c=0;function h(e={}){let{isDisabled:t}=e;(0,n.b)(()=>{if(!t){let e,t,i,n,l;return 1==++c&&(r=(0,s.gn)()?(i=null,n=()=>{if(i)return;let e=window.pageXOffset,t=window.pageYOffset;i=(0,a.t)(f(window,"scroll",()=>{window.scrollTo(0,0)}),p(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),p(document.documentElement,"overflow","hidden"),p(document.body,"marginTop",`-${t}px`),()=>{window.scrollTo(e,t)}),window.scrollTo(0,0)},l=(0,a.t)(f(document,"touchstart",i=>{((e=o(i.target,!0))!==document.documentElement||e!==document.body)&&e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=p(e,"overscrollBehavior","contain"))},{passive:!1,capture:!0}),f(document,"touchmove",t=>{if(!e||e===document.documentElement||e===document.body){t.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()},{passive:!1,capture:!0}),f(document,"touchend",e=>{let i=e.target;g(i)&&i!==document.activeElement&&(e.preventDefault(),n(),i.style.transform="translateY(-2000px)",i.focus(),requestAnimationFrame(()=>{i.style.transform=""})),t&&t()},{passive:!1,capture:!0}),f(document,"focus",e=>{let t=e.target;g(t)&&(n(),t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",u&&(u.height{m(t)}):u.addEventListener("resize",()=>m(t),{once:!0}))}))},!0)),()=>{null==t||t(),null==i||i(),l()}):(0,a.t)(p(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),p(document.documentElement,"overflow","hidden"))),()=>{0==--c&&r()}}},[t])}function p(e,t,i){let r=e.style[t];return e.style[t]=i,()=>{e.style[t]=r}}function f(e,t,i,r){return e.addEventListener(t,i,r),()=>{e.removeEventListener(t,i,r)}}function m(e){let t=document.scrollingElement||document.documentElement,i=e;for(;i&&i!==t;){let e=o(i);if(e!==document.documentElement&&e!==document.body&&e!==i){let t=e.getBoundingClientRect().top,r=i.getBoundingClientRect().top;r>t+i.clientHeight&&(e.scrollTop+=r-t)}i=e.parentElement}}function g(e){return e instanceof HTMLInputElement&&!d.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}},7877:function(e,t,i){"use strict";i.d(t,{H:function(){return r}});let r=new WeakMap},9075:function(e,t,i){"use strict";function r(e,t){if(!e)return!1;let i=window.getComputedStyle(e),r=/(auto|scroll)/.test(i.overflow+i.overflowX+i.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}i.d(t,{a:function(){return r}})},3960:function(e,t,i){"use strict";function r(...e){return 1===e.length&&e[0]?e[0]:t=>{for(let i of e)"function"==typeof i?i(t):null!=i&&(i.current=t)}}i.d(t,{l:function(){return r}})},507:function(e,t,i){"use strict";i.d(t,{y:function(){return s}});var r=i(2013),n=i(9589);function s(e,t,i){let s=(0,n.useRef)(t),a=(0,r.i)(()=>{i&&i(s.current)});(0,n.useEffect)(()=>{var t;let i=null==e?void 0:null===(t=e.current)||void 0===t?void 0:t.form;return null==i||i.addEventListener("reset",a),()=>{null==i||i.removeEventListener("reset",a)}},[e,a])}},1156:function(e,t,i){"use strict";i.d(t,{b:function(){return n}});var r=i(6176);function n(e,t){let{id:i,"aria-label":n,"aria-labelledby":s}=e;return i=(0,r.Me)(i),s&&n?s=[...new Set([i,...s.trim().split(/\s+/)])].join(" "):s&&(s=s.trim().split(/\s+/).join(" ")),n||s||!t||(n=t),{id:i,"aria-label":n,"aria-labelledby":s}}},8228:function(e,t,i){"use strict";i.d(t,{S:function(){return l},T:function(){return o}});var r=i(2014),n=i(9589),s=i(4915);let a={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function l(e={}){let{style:t,isFocusable:i}=e,[r,l]=(0,n.useState)(!1),{focusWithinProps:o}=(0,s.L)({isDisabled:!i,onFocusWithinChange:e=>l(e)}),u=(0,n.useMemo)(()=>r?t:t?{...a,...t}:a,[r]);return{visuallyHiddenProps:{...o,style:u}}}function o(e){let{children:t,elementType:i="div",isFocusable:s,style:a,...o}=e,{visuallyHiddenProps:u}=l(e);return n.createElement(i,(0,r.d)(o,u),t)}},9661:function(e,t,i){"use strict";i.d(t,{PS:function(){return a},Q3:function(){return u},r7:function(){return l},tL:function(){return o}});var r=i(9589);let n={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},s={...n,customError:!0,valid:!1},a={isInvalid:!1,validationDetails:n,validationErrors:[]},l=(0,r.createContext)({}),o="__formValidationState"+Date.now();function u(e){if(e[o]){let{realtimeValidation:t,displayValidation:i,updateValidation:r,resetValidation:n,commitValidation:s}=e[o];return{realtimeValidation:t,displayValidation:i,updateValidation:r,resetValidation:n,commitValidation:s}}return function(e){let{isInvalid:t,validationState:i,name:n,value:o,builtinValidation:u,validate:p,validationBehavior:f="aria"}=e;i&&(t||(t="invalid"===i));let m=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:s}:null,g=(0,r.useMemo)(()=>p&&null!=o?c(function(e,t){if("function"==typeof e){let i=e(t);if(i&&"boolean"!=typeof i)return d(i)}return[]}(p,o)):null,[p,o]);(null==u?void 0:u.validationDetails.valid)&&(u=void 0);let v=(0,r.useContext)(l),b=(0,r.useMemo)(()=>n?Array.isArray(n)?n.flatMap(e=>d(v[e])):d(v[n]):[],[v,n]),[y,x]=(0,r.useState)(v),[w,S]=(0,r.useState)(!1);v!==y&&(x(v),S(!1));let P=(0,r.useMemo)(()=>c(w?[]:b),[w,b]),C=(0,r.useRef)(a),[I,z]=(0,r.useState)(a),E=(0,r.useRef)(a),[D,T]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!D)return;T(!1);let e=g||u||C.current;h(e,E.current)||(E.current=e,z(e))}),{realtimeValidation:m||P||g||u||a,displayValidation:"native"===f?m||P||I:m||P||g||u||I,updateValidation(e){"aria"!==f||h(I,e)?C.current=e:z(e)},resetValidation(){h(a,E.current)||(E.current=a,z(a)),"native"===f&&T(!1),S(!0)},commitValidation(){"native"===f&&T(!0),S(!0)}}}(e)}function d(e){return e?Array.isArray(e)?e:[e]:[]}function c(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:s}:null}function h(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,i)=>e===t.validationErrors[i])&&Object.entries(e.validationDetails).every(([e,i])=>t.validationDetails[e]===i)}},7960:function(e,t,i){"use strict";let r;i.d(t,{oL:function(){return eC}});var n,s,a,l,o=i(9589);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=n?r:n)),r}),C={exports:{}};!function(e,t){var i="__lodash_hash_undefined__",r="[object Arguments]",n="[object Array]",s="[object Boolean]",a="[object Date]",l="[object Error]",o="[object Function]",u="[object Map]",c="[object Number]",h="[object Object]",p="[object Promise]",f="[object RegExp]",m="[object Set]",g="[object String]",v="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",x=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[r]=S[n]=S[b]=S[s]=S[y]=S[a]=S[l]=S[o]=S[u]=S[c]=S[h]=S[f]=S[m]=S[g]=S[v]=!1;var P="object"==typeof d&&d&&d.Object===Object&&d,C="object"==typeof self&&self&&self.Object===Object&&self,I=P||C||Function("return this")(),z=t&&!t.nodeType&&t,E=z&&e&&!e.nodeType&&e,D=E&&E.exports===z,T=D&&P.process,k=function(){try{return T&&T.binding&&T.binding("util")}catch(e){}}(),M=k&&k.isTypedArray;function B(e){var t=-1,i=Array(e.size);return e.forEach(function(e,r){i[++t]=[r,e]}),i}function R(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}var j,_,A,L=Array.prototype,O=Function.prototype,N=Object.prototype,F=I["__core-js_shared__"],V=O.toString,K=N.hasOwnProperty,W=(j=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"",H=N.toString,U=RegExp("^"+V.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=D?I.Buffer:void 0,G=I.Symbol,q=I.Uint8Array,X=N.propertyIsEnumerable,J=L.splice,Y=G?G.toStringTag:void 0,Z=Object.getOwnPropertySymbols,Q=$?$.isBuffer:void 0,ee=(_=Object.keys,A=Object,function(e){return _(A(e))}),et=eI(I,"DataView"),ei=eI(I,"Map"),er=eI(I,"Promise"),en=eI(I,"Set"),es=eI(I,"WeakMap"),ea=eI(Object,"create"),el=eD(et),eo=eD(ei),eu=eD(er),ed=eD(en),ec=eD(es),eh=G?G.prototype:void 0,ep=eh?eh.valueOf:void 0;function ef(e){var t=-1,i=null==e?0:e.length;for(this.clear();++tl))return!1;var u=s.get(e);if(u&&s.get(t))return u==t;var d=-1,c=!0,h=2&i?new ev:void 0;for(s.set(e,t),s.set(t,e);++d-1&&d%1==0&&d-1},em.prototype.set=function(e,t){var i=this.__data__,r=ey(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this},eg.prototype.clear=function(){this.size=0,this.__data__={hash:new ef,map:new(ei||em),string:new ef}},eg.prototype.delete=function(e){var t=eC(this,e).delete(e);return this.size-=t?1:0,t},eg.prototype.get=function(e){return eC(this,e).get(e)},eg.prototype.has=function(e){return eC(this,e).has(e)},eg.prototype.set=function(e,t){var i=eC(this,e),r=i.size;return i.set(e,t),this.size+=i.size==r?0:1,this},ev.prototype.add=ev.prototype.push=function(e){return this.__data__.set(e,i),this},ev.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.clear=function(){this.__data__=new em,this.size=0},eb.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},eb.prototype.get=function(e){return this.__data__.get(e)},eb.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.set=function(e,t){var i=this.__data__;if(i instanceof em){var r=i.__data__;if(!ei||r.length<199)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new eg(r)}return i.set(e,t),this.size=i.size,this};var ez=Z?function(e){return null==e?[]:function(e,t){for(var i=-1,r=null==e?0:e.length,n=0,s=[];++i-1&&e%1==0&&e<=9007199254740991}function e_(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eA(e){return null!=e&&"object"==typeof e}var eL=M?function(e){return M(e)}:function(e){return eA(e)&&ej(e.length)&&!!S[ex(e)]};e.exports=function(e,t){return function e(t,i,o,d,p){return t===i||(null!=t&&null!=i&&(eA(t)||eA(i))?function(e,t,i,o,d,p){var v=eM(e),x=eM(t),w=v?n:eE(e),S=x?n:eE(t),P=(w=w==r?h:w)==h,C=(S=S==r?h:S)==h,I=w==S;if(I&&eB(e)){if(!eB(t))return!1;v=!0,P=!1}if(I&&!P)return p||(p=new eb),v||eL(e)?eS(e,t,i,o,d,p):function(e,t,i,r,n,o,d){switch(i){case y:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!o(new q(e),new q(t)));case s:case a:case c:return eT(+e,+t);case l:return e.name==t.name&&e.message==t.message;case f:case g:return e==t+"";case u:var h=B;case m:var p=1&r;if(h||(h=R),e.size!=t.size&&!p)break;var v=d.get(e);if(v)return v==t;r|=2,d.set(e,t);var x=eS(h(e),h(t),r,n,o,d);return d.delete(e),x;case"[object Symbol]":if(ep)return ep.call(e)==ep.call(t)}return!1}(e,t,w,i,o,d,p);if(!(1&i)){var z=P&&K.call(e,"__wrapped__"),E=C&&K.call(t,"__wrapped__");if(z||E){var D=z?e.value():e,T=E?t.value():t;return p||(p=new eb),d(D,T,i,o,p)}}return!!I&&(p||(p=new eb),function(e,t,i,r,n,s){var a=1&i,l=eP(e),o=l.length;if(o!=eP(t).length&&!a)return!1;for(var u=o;u--;){var d=l[u];if(!(a?d in t:K.call(t,d)))return!1}var c=s.get(e);if(c&&s.get(t))return c==t;var h=!0;s.set(e,t),s.set(t,e);for(var p=a;++u=0,T=(D.indexOf("Macintosh")>=0||D.indexOf("iPad")>=0||D.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0);let M=T,B=k,R="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect;class j{constructor(){this._size=void 0}getSize(){return this._size}setSize(e){this._size=e}}function _(e,t){let i=e.length,r=i-t.length;return r>=0&&e.slice(r,i)===t}var A={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,i="~";function r(){}function n(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function s(e,t,r,s,a){if("function"!=typeof r)throw TypeError("The listener must be a function");var l=new n(r,s||e,a),o=i?i+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],l]:e._events[o].push(l):(e._events[o]=l,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(i=!1)),l.prototype.eventNames=function(){var e,r,n=[];if(0===this._eventsCount)return n;for(r in e=this._events)t.call(e,r)&&n.push(i?r.slice(1):r);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},l.prototype.listeners=function(e){var t=i?i+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,s=r.length,a=Array(s);n-1&&(e.splice(i,1),e.unshift(t))}function N(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function F(e,t,i=1){let r=Math.max(0,Math.ceil((t-e)/i)),n=Array(r),s=-1;for(;++s=t||i<0||c&&e-u>=s}function m(){var e,i=Q();if(f(i))return g(i);l=setTimeout(m,(e=t-(i-o),c?Z(e,s-(i-u)):e))}function g(e){return l=void 0,h&&r?p(e):(r=n=void 0,a)}function v(){var e,i=Q(),s=f(i);if(r=arguments,n=this,o=i,s){if(void 0===l)return u=e=o,l=setTimeout(m,t),d?p(e):a;if(c)return l=setTimeout(m,t),p(o)}return void 0===l&&(l=setTimeout(m,t)),a}return t=et(t)||0,ee(i)&&(d=!!i.leading,s=(c="maxWait"in i)?Y(et(i.maxWait)||0,t):s,h="trailing"in i?!!i.trailing:h),v.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=o=n=l=void 0},v.flush=function(){return void 0===l?a:g(Q())},v}),er="sash-module_vertical__pB-rs",en="sash-module_horizontal__kFbiw",es="sash-module_hover__80W6I",ea="sash-module_active__bJspD";let el=((n={}).Vertical="VERTICAL",n.Horizontal="HORIZONTAL",n),eo=((s={}).Disabled="DISABLED",s.Minimum="MINIMUM",s.Maximum="MAXIMUM",s.Enabled="ENABLED",s),eu=M?20:8,ed=new L;class ec extends L{get state(){return this._state}set state(e){this._state!==e&&(this.el.classList.toggle("sash-module_disabled__Hm-wx",e===eo.Disabled),this.el.classList.toggle("sash-disabled",e===eo.Disabled),this.el.classList.toggle("sash-module_minimum__-UKxp",e===eo.Minimum),this.el.classList.toggle("sash-minimum",e===eo.Minimum),this.el.classList.toggle("sash-module_maximum__TCWxD",e===eo.Maximum),this.el.classList.toggle("sash-maximum",e===eo.Maximum),this._state=e,this.emit("enablementChange",e))}constructor(e,t,i){var r;super(),this.el=void 0,this.layoutProvider=void 0,this.orientation=void 0,this.size=void 0,this.hoverDelay=300,this.hoverDelayer=ei(e=>e.classList.add("sash-hover",es),this.hoverDelay),this._state=eo.Enabled,this.onPointerStart=e=>{let t=e.pageX,i=e.pageY;this.el.classList.add("sash-active",ea),this.emit("start",{startX:t,currentX:t,startY:i,currentY:i}),this.el.setPointerCapture(e.pointerId);let r=e=>{e.preventDefault();let r={startX:t,currentX:e.pageX,startY:i,currentY:e.pageY};this.emit("change",r)},n=e=>{e.preventDefault(),this.el.classList.remove("sash-active",ea),this.hoverDelayer.cancel(),this.emit("end"),this.el.releasePointerCapture(e.pointerId),window.removeEventListener("pointermove",r),window.removeEventListener("pointerup",n)};window.addEventListener("pointermove",r),window.addEventListener("pointerup",n)},this.onPointerDoublePress=()=>{this.emit("reset")},this.onMouseEnter=()=>{this.el.classList.contains(ea)?(this.hoverDelayer.cancel(),this.el.classList.add("sash-hover",es)):this.hoverDelayer(this.el)},this.onMouseLeave=()=>{this.hoverDelayer.cancel(),this.el.classList.remove("sash-hover",es)},this.el=document.createElement("div"),this.el.classList.add("sash","sash-module_sash__K-9lB"),this.el.dataset.testid="sash",e.append(this.el),B&&this.el.classList.add("sash-mac","sash-module_mac__Jf6OJ"),this.el.addEventListener("pointerdown",this.onPointerStart),this.el.addEventListener("dblclick",this.onPointerDoublePress),this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("mouseleave",this.onMouseLeave),"number"==typeof i.size?(this.size=i.size,i.orientation===el.Vertical?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=eu,ed.on("onDidChangeGlobalSize",e=>{this.size=e,this.layout()})),this.layoutProvider=t,this.orientation=null!=(r=i.orientation)?r:el.Vertical,this.orientation===el.Horizontal?(this.el.classList.add("sash-horizontal",en),this.el.classList.remove("sash-vertical",er)):(this.el.classList.remove("sash-horizontal",en),this.el.classList.add("sash-vertical",er)),this.layout()}layout(){if(this.orientation===el.Vertical){let e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{let e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}dispose(){this.el.removeEventListener("pointerdown",this.onPointerStart),this.el.removeEventListener("dblclick",this.onPointerDoublePress),this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("mouseleave",()=>this.onMouseLeave),this.el.remove()}}(l=r||(r={})).Distribute={type:"distribute"},l.Split=function(e){return{type:"split",index:e}},l.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}};let eh=((a={}).Normal="NORMAL",a.Low="LOW",a.High="HIGH",a);class ep{constructor(e,t,i){this.container=void 0,this.view=void 0,this._size=void 0,this._cachedVisibleSize=void 0,this.container=e,this.view=t,this.container.classList.add("split-view-view",E),this.container.dataset.testid="split-view-view","number"==typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("split-view-view-visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get priority(){return this.view.priority}get snap(){return!!this.view.snap}get cachedVisibleSize(){return this._cachedVisibleSize}get visible(){return void 0===this._cachedVisibleSize}setVisible(e,t){e!==this.visible&&(e?(this.size=P(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),this.container.classList.toggle("split-view-view-visible",e),this.view.setVisible&&this.view.setVisible(e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e){this.layoutContainer(e),this.view.layout(this.size,e)}}class ef extends ep{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}class em extends ep{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class eg extends L{get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,t={},i,r,n){var s,a;if(super(),this.onDidChange=void 0,this.onDidDragStart=void 0,this.onDidDragEnd=void 0,this.orientation=void 0,this.sashContainer=void 0,this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.sashDragState=void 0,this.proportionalLayout=void 0,this.getSashOrthogonalSize=void 0,this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onSashEnd=e=>{for(let t of(this.emit("sashchange",e),this.saveProportions(),this.viewItems))t.enabled=!0},this.orientation=null!=(s=t.orientation)?s:el.Vertical,this.proportionalLayout=null==(a=t.proportionalLayout)||a,this.getSashOrthogonalSize=t.getSashOrthogonalSize,i&&(this.onDidChange=i),r&&(this.onDidDragStart=r),n&&(this.onDidDragEnd=n),this.sashContainer=document.createElement("div"),this.sashContainer.classList.add("sash-container","allotment-module_sashContainer__fzwJF"),e.prepend(this.sashContainer),t.descriptor){for(let[e,i]of(this.size=t.descriptor.size,t.descriptor.views.entries())){let t=i.size,r=i.container,n=i.view;this.addView(r,n,t,e,!0)}this.contentSize=this.viewItems.reduce((e,t)=>e+t.size,0),this.saveProportions()}}addView(e,t,i,r=this.viewItems.length,n){let s;s="number"==typeof i?i:"split"===i.type?this.getViewSize(i.index)/2:"invisible"===i.type?{cachedVisibleSize:i.cachedVisibleSize}:t.minimumSize;let a=this.orientation===el.Vertical?new em(e,t,s):new ef(e,t,s);if(this.viewItems.splice(r,0,a),this.viewItems.length>1){let e=this.orientation===el.Vertical?new ec(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{orientation:el.Horizontal}):new ec(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{orientation:el.Vertical}),t=this.orientation===el.Vertical?t=>({sash:e,start:t.startY,current:t.currentY}):t=>({sash:e,start:t.startX,current:t.currentX});e.on("start",e=>{var i;this.emit("sashDragStart"),this.onSashStart(t(e));let r=this.viewItems.map(e=>e.size);null==(i=this.onDidDragStart)||i.call(this,r)}),e.on("change",e=>this.onSashChange(t(e))),e.on("end",()=>{var t;this.emit("sashDragEnd"),this.onSashEnd(this.sashItems.findIndex(t=>t.sash===e));let i=this.viewItems.map(e=>e.size);null==(t=this.onDidDragEnd)||t.call(this,i)}),e.on("reset",()=>{let t=this.sashItems.findIndex(t=>t.sash===e),i=F(t,-1,-1),r=F(t+1,this.viewItems.length),n=this.findFirstSnapIndex(i),s=this.findFirstSnapIndex(r);("number"!=typeof n||this.viewItems[n].visible)&&("number"!=typeof s||this.viewItems[s].visible)&&this.emit("sashreset",t)}),this.sashItems.splice(r-1,0,{sash:e})}n||this.relayout(),n||"number"==typeof i||"distribute"!==i.type||this.distributeViewSizes()}removeView(e,t){if(e<0||e>=this.viewItems.length)throw Error("Index out of bounds");let i=this.viewItems.splice(e,1)[0].view;return this.viewItems.length>=1&&this.sashItems.splice(Math.max(e-1,0),1)[0].sash.dispose(),this.relayout(),t&&"distribute"===t.type&&this.distributeViewSizes(),i}moveView(e,t,i){let n=this.getViewCachedVisibleSize(t),s=void 0===n?this.getViewSize(t):r.Invisible(n),a=this.removeView(t);this.addView(e,a,s,i)}getViewCachedVisibleSize(e){if(e<0||e>=this.viewItems.length)throw Error("Index out of bounds");return this.viewItems[e].cachedVisibleSize}layout(e=this.size){let t=Math.max(this.size,this.contentSize);if(this.size=e,this.proportions)for(let t=0;tthis.viewItems[e].priority===eh.Low),n=i.filter(e=>this.viewItems[e].priority===eh.High);this.resize(this.viewItems.length-1,e-t,void 0,r,n)}this.distributeEmptySpace(),this.layoutViews()}resizeView(e,t){if(e<0||e>=this.viewItems.length)return;let i=F(0,this.viewItems.length).filter(t=>t!==e),r=[...i.filter(e=>this.viewItems[e].priority===eh.Low),e],n=i.filter(e=>this.viewItems[e].priority===eh.High),s=this.viewItems[e];t=P(t=Math.round(t),s.minimumSize,Math.min(s.maximumSize,this.size)),s.size=t,this.relayout(r,n)}resizeViews(e){for(let t=0;te+t.size,0),this.saveProportions(),this.layout(this.size)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}isViewVisible(e){if(e<0||e>=this.viewItems.length)throw Error("Index out of bounds");return this.viewItems[e].visible}setViewVisible(e,t){if(e<0||e>=this.viewItems.length)throw Error("Index out of bounds");this.viewItems[e].setVisible(t),this.distributeEmptySpace(e),this.layoutViews(),this.saveProportions()}distributeViewSizes(){let e=[],t=0;for(let i of this.viewItems)i.maximumSize-i.minimumSize>0&&(e.push(i),t+=i.size);let i=Math.floor(t/e.length);for(let t of e)t.size=P(i,t.minimumSize,t.maximumSize);let r=F(0,this.viewItems.length),n=r.filter(e=>this.viewItems[e].priority===eh.Low),s=r.filter(e=>this.viewItems[e].priority===eh.High);this.relayout(n,s)}dispose(){this.sashItems.forEach(e=>e.sash.dispose()),this.sashItems=[],this.sashContainer.remove()}relayout(e,t){let i=this.viewItems.reduce((e,t)=>e+t.size,0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}onSashStart({sash:e,start:t}){let i=this.sashItems.findIndex(t=>t.sash===e);(e=>{let t=this.viewItems.map(e=>e.size),r,n,s=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,l=F(i,-1,-1),o=F(i+1,this.viewItems.length),u=l.reduce((e,i)=>e+(this.viewItems[i].minimumSize-t[i]),0),d=l.reduce((e,i)=>e+(this.viewItems[i].viewMaximumSize-t[i]),0),c=0===o.length?Number.POSITIVE_INFINITY:o.reduce((e,i)=>e+(t[i]-this.viewItems[i].minimumSize),0);s=Math.max(u,0===o.length?Number.NEGATIVE_INFINITY:o.reduce((e,i)=>e+(t[i]-this.viewItems[i].viewMaximumSize),0)),a=Math.min(c,d);let h=this.findFirstSnapIndex(l),p=this.findFirstSnapIndex(o);if("number"==typeof h){let e=this.viewItems[h],t=Math.floor(e.viewMinimumSize/2);r={index:h,limitDelta:e.visible?s-t:s+t,size:e.size}}if("number"==typeof p){let e=this.viewItems[p],t=Math.floor(e.viewMinimumSize/2);n={index:p,limitDelta:e.visible?a+t:a-t,size:e.size}}this.sashDragState={start:e,current:e,index:i,sizes:t,minDelta:s,maxDelta:a,snapBefore:r,snapAfter:n}})(t)}onSashChange({current:e}){let{index:t,start:i,sizes:r,minDelta:n,maxDelta:s,snapBefore:a,snapAfter:l}=this.sashDragState;this.sashDragState.current=e,this.resize(t,e-i,r,void 0,void 0,n,s,a,l),this.distributeEmptySpace(),this.layoutViews()}getSashPosition(e){let t=0;for(let i=0;ie.size),r,n,s=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,l,o){if(e<0||e>=this.viewItems.length)return 0;let u=F(e,-1,-1),d=F(e+1,this.viewItems.length);if(n)for(let e of n)O(u,e),O(d,e);if(r)for(let e of r)N(u,e),N(d,e);let c=u.map(e=>this.viewItems[e]),h=u.map(e=>i[e]),p=d.map(e=>this.viewItems[e]),f=d.map(e=>i[e]),m=u.reduce((e,t)=>e+(this.viewItems[t].minimumSize-i[t]),0),g=u.reduce((e,t)=>e+(this.viewItems[t].maximumSize-i[t]),0),v=0===d.length?Number.POSITIVE_INFINITY:d.reduce((e,t)=>e+(i[t]-this.viewItems[t].minimumSize),0),b=Math.max(m,0===d.length?Number.NEGATIVE_INFINITY:d.reduce((e,t)=>e+(i[t]-this.viewItems[t].maximumSize),0),s),y=Math.min(v,g,a),x=!1;if(l){let e=this.viewItems[l.index],i=t>=l.limitDelta;x=i!==e.visible,e.setVisible(i,l.size)}if(!x&&o){let e=this.viewItems[o.index],i=te+t.size,0),i=this.size-t,r=F(this.viewItems.length-1,-1,-1);"number"==typeof e&&N(r,e);for(let e=0;0!==i&&ee+t.size,0);let t=0;for(let e of this.viewItems)e.layout(t),t+=e.size;null!=(e=this.onDidChange)&&e.call(this,this.viewItems.map(e=>e.size)),this.sashItems.forEach(e=>e.sash.layout()),this.updateSashEnablement()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(e=>e.size/this.contentSize))}updateSashEnablement(){let e=!1,t=this.viewItems.map(t=>e=t.size-t.minimumSize>0||e);e=!1;let i=this.viewItems.map(t=>e=t.maximumSize-t.size>0||e),r=[...this.viewItems].reverse();e=!1;let n=r.map(t=>e=t.size-t.minimumSize>0||e).reverse();e=!1;let s=r.map(t=>e=t.maximumSize-t.size>0||e).reverse(),a=0;for(let e=0;e0||this.startSnappingEnabled)?r.state=eo.Minimum:d&&t[e]&&(a0)return;if(!e.visible&&e.snap)return t}}}class ev{constructor(e){this.size=void 0,this.size=e}getPreferredSize(){return this.size}}class eb{constructor(e,t){this.proportion=void 0,this.layoutService=void 0,this.proportion=e,this.layoutService=t}getPreferredSize(){return this.proportion*this.layoutService.getSize()}}class ey{getPreferredSize(){}}class ex{get preferredSize(){return this.layoutStrategy.getPreferredSize()}set preferredSize(e){if("number"==typeof e)this.layoutStrategy=new ev(e);else if("string"==typeof e){let t=e.trim();if(_(t,"%")){let e=Number(t.slice(0,-1))/100;this.layoutStrategy=new eb(e,this.layoutService)}else if(_(t,"px")){let e=Number(t.slice(0,-2))/100;this.layoutStrategy=new ev(e)}else if("number"==typeof Number.parseFloat(t)){let e=Number.parseFloat(t);this.layoutStrategy=new ev(e)}else this.layoutStrategy=new ey}else this.layoutStrategy=new ey}constructor(e,t){var i;if(this.minimumSize=0,this.maximumSize=Number.POSITIVE_INFINITY,this.element=void 0,this.priority=void 0,this.snap=void 0,this.layoutService=void 0,this.layoutStrategy=void 0,this.layoutService=e,this.element=t.element,this.minimumSize="number"==typeof t.minimumSize?t.minimumSize:30,this.maximumSize="number"==typeof t.maximumSize?t.maximumSize:Number.POSITIVE_INFINITY,"number"==typeof t.preferredSize)this.layoutStrategy=new ev(t.preferredSize);else if("string"==typeof t.preferredSize){let e=t.preferredSize.trim();if(_(e,"%")){let t=Number(e.slice(0,-1))/100;this.layoutStrategy=new eb(t,this.layoutService)}else if(_(e,"px")){let t=Number(e.slice(0,-2));this.layoutStrategy=new ev(t)}else if("number"==typeof Number.parseFloat(e)){let t=Number.parseFloat(e);this.layoutStrategy=new ev(t)}else this.layoutStrategy=new ey}else this.layoutStrategy=new ey;this.priority=null!=(i=t.priority)?i:eh.Normal,this.snap="boolean"==typeof t.snap&&t.snap}layout(e){}}function ew(e){return void 0!==e.minSize||void 0!==e.maxSize||void 0!==e.preferredSize||void 0!==e.priority||void 0!==e.visible}let eS=(0,o.forwardRef)(({className:e,children:t},i)=>o.createElement("div",{ref:i,className:p("split-view-view",E,e)},t));eS.displayName="Allotment.Pane";let eP=(0,o.forwardRef)(({children:e,className:t,id:i,maxSize:n=1/0,minSize:s=30,proportionalLayout:a=!0,separator:l=!0,sizes:d,defaultSizes:c=d,snap:h=!1,vertical:f=!1,onChange:m,onReset:g,onVisibleChange:v,onDragStart:b,onDragEnd:y},x)=>{var w,S,C,E,D,T,k,B,_,A,L,O,N,F,V,K,W;let H=(0,o.useRef)(null),U=(0,o.useRef)([]),$=(0,o.useRef)(new Map),G=(0,o.useRef)(null),q=(0,o.useRef)(new Map),X=(0,o.useRef)(new j),J=(0,o.useRef)([]),[Y,Z]=(0,o.useState)(!1),Q=(0,o.useMemo)(()=>o.Children.toArray(e).filter(o.isValidElement),[e]),ee=(0,o.useCallback)(e=>{var t,i;let r=null==(t=J.current)?void 0:t[e];return"number"==typeof(null==r?void 0:r.preferredSize)&&(null!=(i=G.current)&&i.resizeView(e,Math.round(r.preferredSize)),!0)},[]);return(0,o.useImperativeHandle)(x,()=>({reset:()=>{if(g)g();else{var e;null==(e=G.current)||e.distributeViewSizes();for(let e=0;e{var t;null==(t=G.current)||t.resizeViews(e)}})),R(()=>{let e=!0;c&&q.current.size!==c.length&&(e=!1,console.warn(`Expected ${c.length} children based on defaultSizes but found ${q.current.size}`)),e&&c&&(U.current=Q.map(e=>e.key));let t=u({orientation:f?el.Vertical:el.Horizontal,proportionalLayout:a},e&&c&&{descriptor:{size:c.reduce((e,t)=>e+t,0),views:c.map((e,t)=>{var i,r,a,l;let o=$.current.get(U.current[t]),d=new ex(X.current,u({element:document.createElement("div"),minimumSize:null!=(i=null==o?void 0:o.minSize)?i:s,maximumSize:null!=(r=null==o?void 0:o.maxSize)?r:n,priority:null!=(a=null==o?void 0:o.priority)?a:eh.Normal},(null==o?void 0:o.preferredSize)&&{preferredSize:null==o?void 0:o.preferredSize},{snap:null!=(l=null==o?void 0:o.snap)?l:h}));return J.current.push(d),{container:[...q.current.values()][t],size:e,view:d}})}});G.current=new eg(H.current,t,m,b,y),G.current.on("sashDragStart",()=>{var e;null==(e=H.current)||e.classList.add("split-view-sash-dragging")}),G.current.on("sashDragEnd",()=>{var e;null==(e=H.current)||e.classList.remove("split-view-sash-dragging")}),G.current.on("sashchange",e=>{if(v&&G.current){let e=Q.map(e=>e.key);for(let t=0;t{if(g)g();else{var t;if(ee(e)||ee(e+1))return;null==(t=G.current)||t.distributeViewSizes()}});let i=G.current;return()=>{i.dispose()}},[]),R(()=>{if(Y){var e,t,i,a,l,o,d,c,p,f,m;let g=Q.map(e=>e.key),v=[...U.current],b=g.filter(e=>!U.current.includes(e)),y=g.filter(e=>U.current.includes(e)),x=U.current.map(e=>!g.includes(e));for(let t=x.length-1;t>=0;t--)x[t]&&(null!=(e=G.current)&&e.removeView(t),v.splice(t,1),J.current.splice(t,1));for(let e of b){let d=$.current.get(e),c=new ex(X.current,u({element:document.createElement("div"),minimumSize:null!=(t=null==d?void 0:d.minSize)?t:s,maximumSize:null!=(i=null==d?void 0:d.maxSize)?i:n,priority:null!=(a=null==d?void 0:d.priority)?a:eh.Normal},(null==d?void 0:d.preferredSize)&&{preferredSize:null==d?void 0:d.preferredSize},{snap:null!=(l=null==d?void 0:d.snap)?l:h}));null!=(o=G.current)&&o.addView(q.current.get(e),c,r.Distribute,g.findIndex(t=>t===e)),v.splice(g.findIndex(t=>t===e),0,e),J.current.splice(g.findIndex(t=>t===e),0,c)}for(;!I(g,v);)for(let[e,t]of g.entries()){let i=v.findIndex(e=>e===t);if(i!==e){null==(d=G.current)||d.moveView(q.current.get(t),i,e);let r=v[i];v.splice(i,1),v.splice(e,0,r);break}}for(let e of b){let t=g.findIndex(t=>t===e),i=J.current[t].preferredSize;void 0!==i&&(null==(c=G.current)||c.resizeView(t,i))}for(let e of[...b,...y]){let t=$.current.get(e),i=g.findIndex(t=>t===e);t&&ew(t)&&void 0!==t.visible&&(null==(p=G.current)?void 0:p.isViewVisible(i))!==t.visible&&(null==(f=G.current)||f.setViewVisible(i,t.visible))}for(let e of y){let t=$.current.get(e),i=g.findIndex(t=>t===e);if(t&&ew(t)){void 0!==t.preferredSize&&J.current[i].preferredSize!==t.preferredSize&&(J.current[i].preferredSize=t.preferredSize);let e=!1;void 0!==t.minSize&&J.current[i].minimumSize!==t.minSize&&(J.current[i].minimumSize=t.minSize,e=!0),void 0!==t.maxSize&&J.current[i].maximumSize!==t.maxSize&&(J.current[i].maximumSize=t.maxSize,e=!0),e&&(null==(m=G.current)||m.layout())}}(b.length>0||x.length>0)&&(U.current=g)}},[Q,Y,n,s,h]),(0,o.useEffect)(()=>{G.current&&(G.current.onDidChange=m)},[m]),(0,o.useEffect)(()=>{G.current&&(G.current.onDidDragStart=b)},[b]),(0,o.useEffect)(()=>{G.current&&(G.current.onDidDragEnd=y)},[y]),S=(w={ref:H,onResize:({width:e,height:t})=>{var i;e&&t&&(null!=(i=G.current)&&i.layout(f?t:e),X.current.setSize(f?t:e),Z(!0))}}).onResize,(C=(0,o.useRef)(void 0)).current=S,E=w.round||Math.round,D=(0,o.useRef)(),k=(T=(0,o.useState)({width:void 0,height:void 0}))[0],B=T[1],_=(0,o.useRef)(!1),(0,o.useEffect)(function(){return _.current=!1,function(){_.current=!0}},[]),K=(0,o.useRef)({width:void 0,height:void 0}),A=(0,o.useCallback)(function(e){return D.current&&D.current.box===w.box&&D.current.round===E||(D.current={box:w.box,round:E,instance:new ResizeObserver(function(e){var t=e[0],i="border-box"===w.box?"borderBoxSize":"device-pixel-content-box"===w.box?"devicePixelContentBoxSize":"contentBoxSize",r=z(t,i,"inlineSize"),n=z(t,i,"blockSize"),s=r?E(r):void 0,a=n?E(n):void 0;if(K.current.width!==s||K.current.height!==a){var l={width:s,height:a};K.current.width=s,K.current.height=a,C.current?C.current(l):_.current||B(l)}})}),D.current.instance.observe(e,{box:w.box}),function(){D.current&&D.current.instance.unobserve(e)}},[w.box,E]),L=w.ref,O=(0,o.useRef)(null),(N=(0,o.useRef)(null)).current=L,F=(0,o.useRef)(null),(0,o.useEffect)(function(){V()}),V=(0,o.useCallback)(function(){var e=F.current,t=N.current,i=e||(t?t instanceof Element?t:t.current:null);O.current&&O.current.element===i&&O.current.subscriber===A||(O.current&&O.current.cleanup&&O.current.cleanup(),O.current={element:i,subscriber:A,cleanup:i?A(i):void 0})},[A]),(0,o.useEffect)(function(){return function(){O.current&&O.current.cleanup&&(O.current.cleanup(),O.current=null)}},[]),W=(0,o.useCallback)(function(e){F.current=e,V()},[V]),(0,o.useMemo)(function(){return{ref:W,width:k.width,height:k.height}},[W,k.width,k.height]),(0,o.useEffect)(()=>{M&&function(e){let t=P(20,4,20),i=P(20,1,8);document.documentElement.style.setProperty("--sash-size",t+"px"),document.documentElement.style.setProperty("--sash-hover-size",i+"px"),eu=t,ed.emit("onDidChangeGlobalSize",t)}(20)},[]),o.createElement("div",{ref:H,className:p("split-view",f?"split-view-vertical":"split-view-horizontal",{"split-view-separator-border":l},"allotment-module_splitView__L-yRc",f?"allotment-module_vertical__WSwwa":"allotment-module_horizontal__7doS8",{"allotment-module_separatorBorder__x-rDS":l},t),id:i},o.createElement("div",{className:p("split-view-container","allotment-module_splitViewContainer__rQnVa")},o.Children.toArray(e).map(e=>{if(!o.isValidElement(e))return null;let t=e.key;return"Allotment.Pane"===e.type.displayName?($.current.set(t,e.props),o.cloneElement(e,{key:t,ref:i=>{let r=e.ref;r&&(r.current=i),i?q.current.set(t,i):q.current.delete(t)}})):o.createElement(eS,{key:t,ref:e=>{e?q.current.set(t,e):q.current.delete(t)}},e)})))});eP.displayName="Allotment";var eC=Object.assign(eP,{Pane:eS})},8577:function(e,t,i){"use strict";i.d(t,{E:function(){return tb}});var r=i(9170),n=i(1073),s=i(400),a=i(8263),l=i(1257),o=i(9835),u=i(9337),d=i(559),c=i(2623);function h(e,t,i,r){return(0,c.E)(e,t,(0,u.s)(i),r)}var p=i(8814);let f=(e,t)=>Math.abs(e-t);var m=i(1282);class g{constructor(e,t,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=y(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(e=i.offset,t={x:0,y:0},Math.sqrt(f(e.x,t.x)**2+f(e.y,t.y)**2)>=3);if(!r&&!n)return;let{point:s}=i,{timestamp:a}=m.frameData;this.history.push({...s,timestamp:a});let{onStart:l,onMove:o}=this.handlers;r||(l&&l(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=v(t,this.transformPagePoint),m.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=y("pointercancel"===e.type?this.lastMoveEventInfo:v(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,s),r&&r(e,s)},!(0,o.DJ)(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=i,this.contextWindow=r||window;let s=v((0,u.Q)(e),this.transformPagePoint),{point:a}=s,{timestamp:l}=m.frameData;this.history=[{...a,timestamp:l}];let{onSessionStart:d}=t;d&&d(e,y(s,this.history)),this.removeListeners=(0,p.z)(h(this.contextWindow,"pointermove",this.handlePointerMove),h(this.contextWindow,"pointerup",this.handlePointerUp),h(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,m.Pn)(this.updatePoint)}}function v(e,t){return t?{point:t(e.point)}:e}function b(e,t){return{x:e.x-t.x,y:e.y-t.y}}function y({point:e},t){return{point:e,delta:b(e,x(t)),offset:b(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,r=null,n=x(e);for(;i>=0&&(r=e[i],!(n.timestamp-r.timestamp>(0,d.w)(.1)));)i--;if(!r)return{x:0,y:0};let s=(0,d.X)(n.timestamp-r.timestamp);if(0===s)return{x:0,y:0};let a={x:(n.x-r.x)/s,y:(n.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function x(e){return e[e.length-1]}var w=i(790),S=i(3828),P=i(519);function C(e){return e.max-e.min}function I(e,t,i,r=.5){e.origin=r,e.originPoint=(0,P.t)(t.min,t.max,e.origin),e.scale=C(i)/C(t),e.translate=(0,P.t)(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function z(e,t,i,r){I(e.x,t.x,i.x,r?r.originX:void 0),I(e.y,t.y,i.y,r?r.originY:void 0)}function E(e,t,i){e.min=i.min+t.min,e.max=e.min+C(t)}function D(e,t,i){e.min=t.min-i.min,e.max=e.min+C(t)}function T(e,t,i){D(e.x,t.x,i.x),D(e.y,t.y,i.y)}var k=i(1118);function M(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function B(e,t){let i=t.min-e.min,r=t.max-e.max;return t.max-t.mine?e.ownerDocument.defaultView:null;var K=i(743);let W=new WeakMap;class H{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,_.dO)(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new g(e,{onSessionStart:e=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor((0,u.Q)(e).point)},onStart:(e,t)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,o.KV)(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),A(e=>{let t=this.getAxisMotionValue(e).get()||0;if(N.aQ.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[e];if(r){let e=C(r);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),n&&m.Wi.postRender(()=>n(e,t)),(0,K.K)(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),s&&s(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>A(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:V(this.visualElement)})}stop(e,t){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:n}=this.getProps();n&&m.Wi.postRender(()=>n(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,i){let{drag:r}=this.getProps();if(!i||!U(e,r,this.currentDirection))return;let n=this.getAxisMotionValue(e),s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:i},r){return void 0!==t&&ei&&(e=r?(0,P.t)(i,e,r.max):Math.min(e,i)),e}(s,this.constraints[e],this.elastic[e])),n.set(s)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,n=this.constraints;t&&(0,w.I)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=function(e,{top:t,left:i,bottom:r,right:n}){return{x:M(e.x,i,n),y:M(e.y,t,r)}}(r.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:R(e,"left","right"),y:R(e,"top","bottom")}}(i),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&A(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let i={};return void 0!==t.min&&(i.min=t.min-e.min),void 0!==t.max&&(i.max=t.max-e.min),i}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!(0,w.I)(t))return!1;let r=t.current;(0,l.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let s=(0,L.z)(r,n.root,this.visualElement.getTransformPagePoint()),a={x:B((e=n.layout.layoutBox).x,s.x),y:B(e.y,s.y)};if(i){let e=i((0,O.z2)(a));this.hasMutatedConstraints=!!e,e&&(a=(0,O.i8)(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{};return Promise.all(A(a=>{if(!U(a,t,this.currentDirection))return;let o=l&&l[a]||{};s&&(o={min:0,max:0});let u={type:"inertia",velocity:i?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...o};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return(0,K.K)(this.visualElement,e),i.start((0,F.v)(e,i,0,t,this.visualElement,!1))}stopAnimation(){A(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){A(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){A(t=>{let{drag:i}=this.getProps();if(!U(t,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(t);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[t];n.set(e[t]-(0,P.t)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!(0,w.I)(t)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};A(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let i=t.get();r[e]=function(e,t){let i=.5,r=C(e),n=C(t);return n>r?i=(0,S.Y)(t.min,t.max-r,e.min):r>n&&(i=(0,S.Y)(e.min,e.max-n,t.min)),(0,k.u)(0,1,i)}({min:i,max:i},this.constraints[e])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),A(t=>{if(!U(t,e,null))return;let i=this.getAxisMotionValue(t),{min:n,max:s}=this.constraints[t];i.set((0,P.t)(n,s,r[t]))})}addListeners(){if(!this.visualElement.current)return;W.set(this.visualElement,this);let e=h(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:i=!0}=this.getProps();t&&i&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();(0,w.I)(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",t);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),m.Wi.read(t);let n=(0,c.E)(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(A(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{n(),e(),r(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:a}}}function U(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}class $ extends s.L{constructor(e){super(e),this.removeGroupControls=a.Z,this.removeListeners=a.Z,this.controls=new H(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||a.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let G=e=>(t,i)=>{e&&m.Wi.postRender(()=>e(t,i))};class q extends s.L{constructor(){super(...arguments),this.removePointerDownListener=a.Z}onPointerDown(e){this.session=new g(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:V(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:G(e),onStart:G(t),onMove:i,onEnd:(e,t)=>{delete this.session,r&&m.Wi.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=h(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var X=i(217),J=i(9589),Y=i(6526),Z=i(6502),Q=i(6458);let ee={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function et(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let ei={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!N.px.test(e))return e;e=parseFloat(e)}let i=et(e,t.target.x),r=et(e,t.target.y);return`${i}% ${r}%`}};var er=i(4538),en=i(8866),es=i(817);class ea extends J.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=e;(0,en.B)(eo),n&&(t.group&&t.group.add(n),i&&i.register&&r&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),ee.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:r,isPresent:n}=this.props,s=i.projection;return s&&(s.isPresent=n,r||e.layoutDependency!==t||void 0===t?s.willUpdate():this.safeToRemove(),e.isPresent===n||(n?s.promote():s.relegate()||m.Wi.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),es.g.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function el(e){let[t,i]=function(){let e=(0,J.useContext)(Y.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:i,register:r}=e,n=(0,J.useId)();(0,J.useEffect)(()=>r(n),[]);let s=(0,J.useCallback)(()=>i&&i(n),[n,i]);return!t&&i?[!1,s]:[!0]}(),r=(0,J.useContext)(Z.p);return(0,X.jsx)(ea,{...e,layoutGroup:r,switchLayoutGroup:(0,J.useContext)(Q.g),isPresent:t,safeToRemove:i})}let eo={borderRadius:{...ei,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ei,borderTopRightRadius:ei,borderBottomLeftRadius:ei,borderBottomRightRadius:ei,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let r=er.P.parse(e);if(r.length>5)return e;let n=er.P.createTransformer(e),s="number"!=typeof r[0]?1:0,a=i.x.scale*t.x,l=i.y.scale*t.y;r[0+s]/=a,r[1+s]/=l;let o=(0,P.t)(a,l,.5);return"number"==typeof r[2+s]&&(r[2+s]/=o),"number"==typeof r[3+s]&&(r[3+s]/=o),n(r)}}};var eu=i(3157),ed=i(6987);let ec=["TopLeft","TopRight","BottomLeft","BottomRight"],eh=ec.length,ep=e=>"string"==typeof e?parseFloat(e):e,ef=e=>"number"==typeof e||N.px.test(e);function em(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let eg=eb(0,.5,ed.Bn),ev=eb(.5,.95,a.Z);function eb(e,t,i){return r=>rt?1:i((0,S.Y)(e,t,r))}function ey(e,t){e.min=t.min,e.max=t.max}function ex(e,t){ey(e.x,t.x),ey(e.y,t.y)}function ew(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var eS=i(4056);function eP(e,t,i,r,n){return e-=t,e=(0,eS.q2)(e,1/i,r),void 0!==n&&(e=(0,eS.q2)(e,1/n,r)),e}function eC(e,t,[i,r,n],s,a){!function(e,t=0,i=1,r=.5,n,s=e,a=e){if(N.aQ.test(t)&&(t=parseFloat(t),t=(0,P.t)(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let l=(0,P.t)(s.min,s.max,r);e===s&&(l-=t),e.min=eP(e.min,t,i,l,n),e.max=eP(e.max,t,i,l,n)}(e,t[i],t[r],t[n],t.scale,s,a)}let eI=["x","scaleX","originX"],ez=["y","scaleY","originY"];function eE(e,t,i,r){eC(e.x,t,eI,i?i.x:void 0,r?r.x:void 0),eC(e.y,t,ez,i?i.y:void 0,r?r.y:void 0)}var eD=i(692);function eT(e){return 0===e.translate&&1===e.scale}function ek(e){return eT(e.x)&&eT(e.y)}function eM(e,t){return e.min===t.min&&e.max===t.max}function eB(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function eR(e,t){return eB(e.x,t.x)&&eB(e.y,t.y)}function ej(e){return C(e.x)/C(e.y)}function e_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var eA=i(8222);class eL{constructor(){this.members=[]}add(e){(0,eA.y4)(this.members,e),e.scheduleRender()}remove(e){if((0,eA.cl)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let i=this.members.findIndex(t=>e===t);if(0===i)return!1;for(let e=i;e>=0;e--){let i=this.members[e];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var eO=i(7160);let eN=(e,t)=>e.depth-t.depth;class eF{constructor(){this.children=[],this.isDirty=!1}add(e){(0,eA.y4)(this.children,e),this.isDirty=!0}remove(e){(0,eA.cl)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(eN),this.isDirty=!1,this.children.forEach(e)}}var eV=i(4718),eK=i(9805),eW=i(8923),eH=i(9596),eU=i(2557);let e$={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},eG="undefined"!=typeof window&&void 0!==window.MotionDebug,eq=["","X","Y","Z"],eX={visibility:"hidden"},eJ=0;function eY(e,t,i,r){let{latestValues:n}=t;n[e]&&(i[e]=n[e],t.setStaticValue(e,0),r&&(r[e]=0))}function eZ({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(e={},i=null==t?void 0:t()){this.id=eJ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,eG&&(e$.totalNodes=e$.resolvedTargetDeltas=e$.recalculatedProjection=0),this.nodes.forEach(e1),this.nodes.forEach(e9),this.nodes.forEach(e8),this.nodes.forEach(e4),eG&&window.MotionDebug.record(e$)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(e,t){let i=eK.X.now(),r=({timestamp:t})=>{let n=t-i;n>=250&&((0,m.Pn)(r),e(n-250))};return m.Wi.read(r,!0),()=>(0,m.Pn)(r)}(r,0),ee.hasAnimatedSinceResize&&(ee.hasAnimatedSinceResize=!1,this.nodes.forEach(e6))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||s.getDefaultTransition()||ts,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=s.getProps(),o=!this.targetLayout||!eR(this.targetLayout,r)||i,u=!t&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(o||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...(0,eD.e)(n,"layout"),onPlay:a,onComplete:l};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||e6(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,m.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(te),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let r=(0,eU.s)(i);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",m.Wi,!(e||i))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&e(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e{let r=t/1e3;if(ti(a.x,e.x,r),ti(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,p,f;T(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,tr(p.x,f.x,l.x,r),tr(p.y,f.y,l.y,r),i&&(u=this.relativeTarget,h=i,eM(u.x,h.x)&&eM(u.y,h.y))&&(this.isProjectionDirty=!1),i||(i=(0,_.dO)()),ex(i,this.relativeTarget)}o&&(this.animationValues=s,function(e,t,i,r,n,s){n?(e.opacity=(0,P.t)(0,void 0!==i.opacity?i.opacity:1,eg(r)),e.opacityExit=(0,P.t)(void 0!==t.opacity?t.opacity:1,0,ev(r))):s&&(e.opacity=(0,P.t)(void 0!==t.opacity?t.opacity:1,void 0!==i.opacity?i.opacity:1,r));for(let n=0;n{ee.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,i){let r=(0,eH.i)(0)?0:(0,eW.BX)(0);return r.start((0,F.v)("",r,1e3,i)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:r,latestValues:n}=e;if(t&&i&&r){if(this!==e&&this.layout&&r&&tu(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||(0,_.dO)();let t=C(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let r=C(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+r}ex(t,i),(0,eS.D2)(t,n),z(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new eL),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let r={};i.z&&eY("z",e,r,this.animationValues);for(let t=0;t{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(e2),this.root.sharedNodes.clear()}}}function eQ(e){e.updateLayout()}function e0(e){var t;let i=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:r}=e.layout,{animationType:n}=e.options,s=i.source!==e.layout.source;"size"===n?A(e=>{let r=s?i.measuredBox[e]:i.layoutBox[e],n=C(r);r.min=t[e].min,r.max=r.min+n}):tu(n,i.layoutBox,t)&&A(r=>{let n=s?i.measuredBox[r]:i.layoutBox[r],a=C(t[r]);n.max=n.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=(0,_.wc)();z(a,t,i.layoutBox);let l=(0,_.wc)();s?z(l,e.applyTransform(r,!0),i.measuredBox):z(l,t,i.layoutBox);let o=!ek(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let a=(0,_.dO)();T(a,i.layoutBox,n.layoutBox);let l=(0,_.dO)();T(l,t,s.layoutBox),eR(a,l)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:l,layoutDelta:a,hasLayoutChanged:o,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function e1(e){eG&&e$.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function e4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function e3(e){e.clearSnapshot()}function e2(e){e.clearMeasurements()}function e5(e){e.isLayoutDirty=!1}function e7(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function e6(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function e9(e){e.resolveTargetDelta()}function e8(e){e.calcProjection()}function te(e){e.resetSkewAndRotation()}function tt(e){e.removeLeadSnapshot()}function ti(e,t,i){e.translate=(0,P.t)(t.translate,0,i),e.scale=(0,P.t)(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function tr(e,t,i,r){e.min=(0,P.t)(t.min,i.min,r),e.max=(0,P.t)(t.max,i.max,r)}function tn(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ts={duration:.45,ease:[.4,0,.1,1]},ta=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tl=ta("applewebkit/")&&!ta("chrome/")?Math.round:a.Z;function to(e){e.min=tl(e.min),e.max=tl(e.max)}function tu(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(ej(t)-ej(i)))}function td(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}let tc=eZ({attachResizeListener:(e,t)=>(0,c.E)(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),th={current:void 0},tp=eZ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!th.current){let e=new tc({});e.mount(window),e.setOptions({layoutScroll:!0}),th.current=e}return th.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});var tf=i(5985),tm=i(1530),tg=i(5315);let tv=(0,tm.x)({...n.s,...tf.E,pan:{Feature:q},drag:{Feature:$,ProjectionNode:tp,MeasureLayout:el},layout:{ProjectionNode:tp,MeasureLayout:el}},tg.b),tb=(0,r.c)(tv)},5469:function(e,t,i){"use strict";i.d(t,{OO:function(){return tO}});var r,n=i(217),s=i(9589),a=i(9297);function l(e,t){return i=>e(t(i))}function o(e,t){return t(e)}function u(...e){return e}function d(e){e()}function c(e){return void 0!==e}function h(){}function p(e){e(2)}function f(e){return e(4)}function m(e,t){return e(1,e=>t(0,e))}function g(e,t){let i=e(1,e=>{i(),t(e)});return i}function v(){let e=[];return(t,i)=>{switch(t){case 2:e.splice(0,e.length);return;case 1:return e.push(i),()=>{let t=e.indexOf(i);t>-1&&e.splice(t,1)};case 0:e.slice().forEach(e=>{e(i)});return;default:throw Error(`unrecognized action ${t}`)}}}function b(e){let t=e,i=v();return(e,r)=>{switch(e){case 1:r(t);break;case 0:t=r;break;case 4:return t}return i(e,r)}}function y(e){var t;return m(e,t=v()),t}function x(e,t){var i;return m(e,i=b(t)),i}function w(e,...t){let i=function(...e){return t=>e.reduceRight(o,t)}(...t);return(t,r)=>{switch(t){case 1:return e(1,i(r));case 2:p(e);return}}}function S(e,t){return e===t}function P(e=S){let t;return i=>r=>{e(t,r)||(t=r,i(r))}}function C(e){return t=>i=>{e(i)&&t(i)}}function I(e){return t=>l(t,e)}function z(e){return t=>()=>t(e)}function E(e,t){return i=>r=>i(t=e(t,r))}function D(e){return t=>i=>{e>0?e--:t(i)}}function T(e){let t,i=null;return r=>n=>{i=n,t||(t=setTimeout(()=>{t=void 0,r(i)},e))}}function k(e){let t,i;return r=>n=>{t=n,i&&clearTimeout(i),i=setTimeout(()=>{r(t)},e)}}function M(...e){let t=Array(e.length),i=0,r=null,n=Math.pow(2,e.length)-1;return e.forEach((e,s)=>{let a=Math.pow(2,s);e(1,e=>{let l=i;i|=a,t[s]=e,l!==n&&i===n&&r&&(r(),r=null)})}),e=>s=>{let a=()=>e([s].concat(t));i===n?a():r=a}}function B(...e){return function(t,i){switch(t){case 1:return function(...e){return()=>{e.map(d)}}(...e.map(e=>e(1,i)));case 2:return;default:throw Error(`unrecognized action ${t}`)}}}function R(e,t=S){return w(e,P(t))}function j(...e){let t=v(),i=Array(e.length),r=0,n=Math.pow(2,e.length)-1;return e.forEach((e,s)=>{let a=Math.pow(2,s);e(1,e=>{i[s]=e,(r|=a)===n&&t(0,i)})}),function(e,s){switch(e){case 1:return r===n&&s(i),t(1,s);case 2:return p(t);default:throw Error(`unrecognized action ${e}`)}}}function _(e,t=[],{singleton:i}={singleton:!0}){return{id:A(),constructor:e,dependencies:t,singleton:i}}let A=()=>Symbol(),L="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function O(e,t,i){let r=Object.keys(t.required||{}),a=Object.keys(t.optional||{}),l=Object.keys(t.methods||{}),o=Object.keys(t.events||{}),u=s.createContext({});function d(e,i){for(let n of(e.propsReady&&(0,e.propsReady)(0,!1),r))(0,e[t.required[n]])(0,i[n]);for(let r of a)r in i&&(0,e[t.optional[r]])(0,i[r]);e.propsReady&&(0,e.propsReady)(0,!0)}return{Component:s.forwardRef((c,f)=>{var m;let{children:g,...v}=c,[b]=s.useState(()=>{var t;return d(t=function(e){let t=new Map,i=({id:e,constructor:r,dependencies:n,singleton:s})=>{if(s&&t.has(e))return t.get(e);let a=r(n.map(e=>i(e)));return s&&t.set(e,a),a};return i(e)}(e),v),t}),[y]=s.useState(()=>{var e;return e=b,o.reduce((i,r)=>(i[r]=function(e){let t,i;let r=()=>t&&t();return function(n,s){switch(n){case 1:if(!s)return r(),h;if(i===s)return;return r(),i=s,t=e(1,s);case 2:r(),i=null;return;default:throw Error(`unrecognized action ${n}`)}}}(e[t.events[r]]),i),{})});return L(()=>{for(let e of o)e in v&&(0,y[e])(1,v[e]);return()=>{Object.values(y).map(p)}},[v,y,b]),L(()=>{d(b,v)}),s.useImperativeHandle(f,(m=l.reduce((e,i)=>(e[i]=e=>{(0,b[t.methods[i]])(0,e)},e),{}),()=>m)),(0,n.jsx)(u.Provider,{value:b,children:i?(0,n.jsx)(i,{...function(e,t){let i={},r={},n=0,s=e.length;for(;n{var t;return s.useCallback((t=s.useContext(u)[e],e=>{t(0,e)}),[e])},useEmitterValue:s.version.startsWith("18")?e=>{let t=s.useContext(u)[e],i=s.useCallback(e=>t(1,e),[t]);return s.useSyncExternalStore(i,()=>f(t),()=>f(t))}:e=>{let t=s.useContext(u)[e],[i,r]=s.useState(()=>f(t));return L(()=>t(1,e=>{e!==i&&r(()=>e)}),[t,i]),i},useEmitter:(e,t)=>{let i=s.useContext(u)[e];L(()=>i(1,t),[t,i])}}}let N="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;var F=((r=F||{})[r.DEBUG=0]="DEBUG",r[r.INFO=1]="INFO",r[r.WARN=2]="WARN",r[r.ERROR=3]="ERROR",r);let V={0:"debug",1:"log",2:"warn",3:"error"},K=()=>"undefined"==typeof globalThis?window:globalThis,W=_(()=>{let e=b(3);return{log:b((t,i,r=1)=>{var n;r>=(null!=(n=K().VIRTUOSO_LOG_LEVEL)?n:f(e))&&console[V[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,i)}),logLevel:e}},[],{singleton:!0});function H(e,t,i){let r=s.useRef(null),n=e=>{};if("undefined"!=typeof ResizeObserver){let a=s.useMemo(()=>new ResizeObserver(t=>{let r=()=>{let i=t[0].target;null!==i.offsetParent&&e(i)};i?r():requestAnimationFrame(r)}),[e]);n=e=>{e&&t?(a.observe(e),r.current=e):(r.current&&a.unobserve(r.current),r.current=null)}}return{ref:r,callbackRef:n}}function U(e,t,i){return H(e,t,i).callbackRef}function $(e,t,i,r,n,a,l,o,u){return H(s.useCallback(i=>{let s=function(e,t,i,r){let n=e.length;if(0===n)return null;let s=[];for(let a=0;aMath.abs(e-t)}function J(e,t,i,r=h,n,l){let o=s.useRef(null),u=s.useRef(null),d=s.useRef(null),c=s.useCallback(i=>{let r=i.target,n=r===window||r===document,s=l?n?window.pageXOffset||document.documentElement.scrollLeft:r.scrollLeft:n?window.pageYOffset||document.documentElement.scrollTop:r.scrollTop,o=l?n?document.documentElement.scrollWidth:r.scrollWidth:n?document.documentElement.scrollHeight:r.scrollHeight,c=l?n?window.innerWidth:r.offsetWidth:n?window.innerHeight:r.offsetHeight,h=()=>{e({scrollTop:Math.max(s,0),scrollHeight:o,viewportHeight:c})};i.suppressFlushSync?h():a.flushSync(h),null!==u.current&&(s===u.current||s<=0||s===o-c)&&(u.current=null,t(!0),d.current&&(clearTimeout(d.current),d.current=null))},[e,t]);return s.useEffect(()=>{let e=n||o.current;return r(n||o.current),c({target:e,suppressFlushSync:!0}),e.addEventListener("scroll",c,{passive:!0}),()=>{r(null),e.removeEventListener("scroll",c)}},[o,c,i,r,n]),{scrollerRef:o,scrollByCallback:function(e){l&&(e={left:e.top,behavior:e.behavior}),o.current.scrollBy(e)},scrollToCallback:function(i){let r,n,s;let a=o.current;if(!a||(l?"offsetWidth"in a&&0===a.offsetWidth:"offsetHeight"in a&&0===a.offsetHeight))return;let c="smooth"===i.behavior;a===window?(n=Math.max(q(document.documentElement,l?"width":"height"),l?document.documentElement.scrollWidth:document.documentElement.scrollHeight),r=l?window.innerWidth:window.innerHeight,s=l?document.documentElement.scrollLeft:document.documentElement.scrollTop):(n=a[l?"scrollWidth":"scrollHeight"],r=q(a,l?"width":"height"),s=a[l?"scrollLeft":"scrollTop"]);let h=n-r;if(i.top=Math.ceil(Math.max(Math.min(h,i.top),0)),X(r,n)||i.top===s){e({scrollTop:s,scrollHeight:n,viewportHeight:r}),c&&t(!0);return}c?(u.current=i.top,d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{d.current=null,u.current=null,t(!0)},1e3)):u.current=null,l&&(i={left:i.top,behavior:i.behavior}),a.scrollTo(i)}}}let Y=_(()=>{let e=v(),t=v(),i=b(0),r=v(),n=b(0),s=v(),a=v(),l=b(0),o=b(0),u=b(0),d=b(0),c=v(),h=v(),p=b(!1),f=b(!1),g=b(!1);return m(w(e,I(({scrollTop:e})=>e)),t),m(w(e,I(({scrollHeight:e})=>e)),a),m(t,n),{scrollContainerState:e,scrollTop:t,viewportHeight:s,headerHeight:l,fixedHeaderHeight:o,fixedFooterHeight:u,footerHeight:d,scrollHeight:a,smoothScrollTargetReached:r,horizontalDirection:f,skipAnimationFrameInResizeObserver:g,scrollTo:c,scrollBy:h,statefulScrollTop:n,deviation:i,scrollingInProgress:p}},[],{singleton:!0}),Z={lvl:0};function Q(e,t,i,r=Z,n=Z){return{k:e,v:t,lvl:i,l:r,r:n}}function ee(e){return e===Z}function et(e,t){return ee(e)?void 0:t===e.k?e.v:te.r.lvl}function el(e){let{l:t,r:i,lvl:r}=e;if(i.lvl>=r-1&&t.lvl>=r-1)return e;if(r>i.lvl+1){if(ea(t))return ec(es(e,{lvl:r-1}));if(!ee(t)&&!ee(t.r))return es(t.r,{l:es(t,{r:t.r.l}),r:es(e,{l:t.r.r,lvl:r-1}),lvl:r});throw Error("Unexpected empty nodes")}if(ea(e))return ed(es(e,{lvl:r-1}));if(ee(i)||ee(i.l))throw Error("Unexpected empty nodes");{let t=i.l,n=ea(t)?i.lvl-1:i.lvl;return es(t,{l:es(e,{r:t.l,lvl:r-1}),r:ed(es(i,{l:t.r,lvl:n})),lvl:t.lvl+1})}}function eo(e,t,i){if(ee(e))return[];let r=ei(e,t)[0];return eu(function e(t,i,r){if(ee(t))return[];let{k:n,v:s,l:a,r:l}=t,o=[];return n>i&&(o=o.concat(e(a,i,r))),n>=i&&n<=r&&o.push({k:n,v:s}),n<=r&&(o=o.concat(e(l,i,r))),o}(e,r,i),({k:e,v:t})=>({index:e,value:t}))}function eu(e,t){let i=e.length;if(0===i)return[];let{index:r,value:n}=t(e[0]),s=[];for(let a=1;a({recalcInProgress:b(!1)}),[],{singleton:!0});function ef(e,t){let i=0,r=0;for(;i0&&r("received item sizes",t,F.DEBUG);let s=e.sizeTree,a=s,l=0;if(i.length>0&&ee(s)&&2===t.length){let e=t[0].size,r=t[1].size;a=i.reduce((t,i)=>er(er(t,i,e),i+1,r),a)}else[a,l]=function(e,t){let i=ee(e)?0:1/0;for(let r of t){let{size:t,startIndex:n,endIndex:s}=r;if(i=Math.min(i,n),ee(e)){e=er(e,0,t);continue}let a=eo(e,n-1,s+1);if(a.some(function(e){let{size:t,startIndex:i,endIndex:r}=e;return e=>e.start===i&&(e.end===r||e.end===1/0)&&e.value===t}(r)))continue;let l=!1,o=!1;for(let{start:i,end:r,value:n}of a)l?(s>=i||t===n)&&(e=function e(t,i){if(ee(t))return Z;let{k:r,l:n,r:s}=t;if(i===r){if(ee(n))return s;if(ee(s))return n;{let[e,i]=function e(t){return ee(t.r)?[t.k,t.v]:e(t.r)}(n);return el(es(t,{k:e,v:i,l:function e(t){return ee(t.r)?t.l:el(es(t,{r:e(t.r)}))}(n)}))}}return is&&s>=i&&n!==t&&(e=er(e,s+1,n));o&&(e=er(e,n,t))}return[e,i]}(a,t);if(a===s)return e;let{offsetTree:o,lastIndex:u,lastSize:d,lastOffset:c}=eb(e.offsetTree,l,a,n);return{sizeTree:a,offsetTree:o,lastIndex:u,lastOffset:c,lastSize:d,groupOffsetTree:i.reduce((e,t)=>er(e,t,ex(t,o,n)),Z),groupIndices:i}}function ex(e,t,i){if(0===t.length)return 0;let{offset:r,index:n,size:s}=t[eh(t,e,em)],a=e-n,l=s*a+(a-1)*i+r;return l>0?l+i:l}function ew(e,t,i){if(void 0!==e.groupIndex)return t.groupIndices[e.groupIndex]+1;{let r=eS("LAST"===e.index?i:e.index,t);return Math.max(0,r,Math.min(i,r))}}function eS(e,t){if(!eP(t))return e;let i=0;for(;t.groupIndices[i]<=e+i;)i++;return e+i}function eP(e){return!ee(e.groupOffsetTree)}let eC={offsetHeight:"height",offsetWidth:"width"},eI=_(([{log:e},{recalcInProgress:t}])=>{let i=v(),r=v(),n=x(r,0),s=v(),a=v(),l=b(0),o=b([]),u=b(void 0),d=b(void 0),c=b((e,t)=>q(e,eC[t])),h=b(void 0),p=b(0),g={offsetTree:[],sizeTree:Z,groupOffsetTree:Z,lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},S=x(w(i,M(o,e,p),E(ey,g),P()),g),z=x(w(o,P(),E((e,t)=>({prev:e.current,current:t}),{prev:[],current:[]}),I(({prev:e})=>e)),[]);m(w(o,C(e=>e.length>0),M(S,p),I(([e,t,i])=>{let r=e.reduce((e,r,n)=>er(e,r,ex(r,t.offsetTree,i)||n),Z);return{...t,groupIndices:e,groupOffsetTree:r}})),S),m(w(r,M(S),C(([e,{lastIndex:t}])=>e[{startIndex:e,endIndex:t,size:i}])),i),m(u,d);let D=x(w(u,I(e=>void 0===e)),!0);m(w(d,C(e=>void 0!==e&&ee(f(S).sizeTree)),I(e=>[{startIndex:0,endIndex:0,size:e}])),i);let T=y(w(i,M(S),E(({sizes:e},[t,i])=>({changed:i!==e,sizes:i}),{changed:!1,sizes:g}),I(e=>e.changed)));w(l,E((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),I(e=>e.diff))(1,e=>{let{groupIndices:i}=f(S);if(e>0)t(0,!0),s(0,e+ef(e,i));else if(e<0){let t=f(z);t.length>0&&(e-=ef(-e,t)),a(0,e)}}),w(l,M(e))(1,([e,t])=>{e<0&&t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:l},F.ERROR)});let k=y(s);m(w(s,M(S),I(([e,t])=>{let i=t.groupIndices.length>0,r=[],n=t.lastSize;if(i){let i=et(t.sizeTree,0),s=0,a=0;for(;s{let n=t.ranges;return 0!==t.prevSize&&(n=[...t.ranges,{startIndex:t.prevIndex,endIndex:i+e-1,size:t.prevSize}]),{ranges:n,prevIndex:i+e,prevSize:r}},{ranges:r,prevIndex:e,prevSize:0}).ranges}return en(t.sizeTree).reduce((t,{k:i,v:r})=>({ranges:[...t.ranges,{startIndex:t.prevIndex,endIndex:i+e-1,size:t.prevSize}],prevIndex:i+e,prevSize:r}),{ranges:[],prevIndex:0,prevSize:n}).ranges})),i);let B=y(w(a,M(S,p),I(([e,{offsetTree:t},i])=>ex(-e,t,i))));return m(w(a,M(S,p),I(([e,t,i])=>{if(t.groupIndices.length>0){if(ee(t.sizeTree))return t;let r=Z,n=f(z),s=0,a=0,l=0;for(;s<-e;){l=n[a];let e=n[a+1]-l-1;a++,s+=e+1}return r=en(t.sizeTree).reduce((t,{k:i,v:r})=>er(t,Math.max(0,i+e),r),r),s!==-e&&(r=er(r,0,et(t.sizeTree,l)),r=er(r,1,ei(t.sizeTree,-e+1)[1])),{...t,sizeTree:r,...eb(t.offsetTree,0,r,i)}}{let r=en(t.sizeTree).reduce((t,{k:i,v:r})=>er(t,Math.max(0,i+e),r),Z);return{...t,sizeTree:r,...eb(t.offsetTree,0,r,i)}}})),S),{data:h,totalCount:r,sizeRanges:i,groupIndices:o,defaultItemSize:d,fixedItemSize:u,unshiftWith:s,shiftWith:a,shiftWithOffset:B,beforeUnshiftWith:k,firstItemIndex:l,gap:p,sizes:S,listRefresh:T,statefulTotalCount:n,trackItemSizes:D,itemSize:c}},u(W,ep),{singleton:!0}),ez="undefined"!=typeof document&&"scrollBehavior"in document.documentElement.style;function eE(e){let t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&ez||(t.behavior="auto"),t.offset||(t.offset=0),t}let eD=_(([{sizes:e,totalCount:t,listRefresh:i,gap:r},{scrollingInProgress:n,viewportHeight:s,scrollTo:a,smoothScrollTargetReached:l,headerHeight:o,footerHeight:u,fixedHeaderHeight:d,fixedFooterHeight:c},{log:h}])=>{let p=v(),f=v(),y=b(0),x=null,S=null,P=null;function C(){x&&(x(),x=null),P&&(P(),P=null),S&&(clearTimeout(S),S=null),n(0,!1)}return m(w(p,M(e,s,t,y,o,u,h),M(r,d,c),I(([[e,t,r,s,a,o,u,d],c,h,m])=>{let v=eE(e),{align:b,behavior:y,offset:I}=v,z=s-1,E=ew(v,t,z),D=ex(E,t.offsetTree,c)+o;"end"===b?(D+=h+ei(t.sizeTree,E)[1]-r+m,E===z&&(D+=u)):"center"===b?D+=(h+ei(t.sizeTree,E)[1]-r+m)/2:D-=a,I&&(D+=I);let T=t=>{C(),t?(d("retrying to scroll to",{location:e},F.DEBUG),p(0,e)):(f(0,!0),d("list did not change, scroll successful",{},F.DEBUG))};if(C(),"smooth"===y){let e=!1;P=i(1,t=>{e=e||t}),x=g(l,()=>{T(e)})}else x=g(w(i,e=>{let t=setTimeout(()=>{e(!1)},150);return i=>{i&&(e(!0),clearTimeout(t))}}),T);return S=setTimeout(()=>{C()},1200),n(0,!0),d("scrolling from index to",{index:E,top:D,behavior:y},F.DEBUG),{top:D,behavior:y}})),a),{scrollToIndex:p,scrollTargetReached:f,topListHeight:y}},u(eI,Y,W),{singleton:!0}),eT="down",ek={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},eM=_(([{scrollContainerState:e,scrollTop:t,viewportHeight:i,headerHeight:r,footerHeight:n,scrollBy:s}])=>{let a=b(!1),l=b(!0),o=v(),u=v(),d=b(4),c=b(0),h=x(w(B(w(R(t),D(1),z(!0)),w(R(t),D(1),z(!1),k(100))),P()),!1),p=x(w(B(w(s,z(!0)),w(s,z(!1),k(200))),P()),!1);m(w(j(R(t),R(c)),I(([e,t])=>e<=t),P()),l),m(w(l,T(50)),u);let g=y(w(j(e,R(i),R(r),R(n),R(d)),E((e,[{scrollTop:t,scrollHeight:i},r,n,s,a])=>{let l={viewportHeight:r,scrollTop:t,scrollHeight:i};if(t+r-i>-a){let i,r;return t>e.state.scrollTop?(i="SCROLLED_DOWN",r=e.state.scrollTop-t):(i="SIZE_DECREASED",r=e.state.scrollTop-t||e.scrollTopDelta),{atBottom:!0,state:l,atBottomBecause:i,scrollTopDelta:r}}return{atBottom:!1,notAtBottomBecause:l.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":re&&e.atBottom===t.atBottom))),S=x(w(e,E((e,{scrollTop:t,scrollHeight:i,viewportHeight:r})=>{if(X(e.scrollHeight,i))return{scrollTop:t,scrollHeight:i,jump:0,changed:!1};{let n=i-(t+r)<1;return e.scrollTop!==t&&n?{scrollHeight:i,scrollTop:t,jump:e.scrollTop-t,changed:!0}:{scrollHeight:i,scrollTop:t,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),C(e=>e.changed),I(e=>e.jump)),0);m(w(g,I(e=>e.atBottom)),a),m(w(a,T(50)),o);let _=b(eT);m(w(e,I(({scrollTop:e})=>e),P(),E((e,t)=>f(p)?{direction:e.direction,prevScrollTop:t}:{direction:te.direction)),_),m(w(e,T(50),z("none")),_);let A=b(0);return m(w(h,C(e=>!e),z(0)),A),m(w(t,T(100),M(h),C(([e,t])=>!!t),E(([e,t],[i])=>[t,i],[0,0]),I(([e,t])=>t-e)),A),{isScrolling:h,isAtTop:l,isAtBottom:a,atBottomState:g,atTopStateChange:u,atBottomStateChange:o,scrollDirection:_,atBottomThreshold:d,atTopThreshold:c,scrollVelocity:A,lastJumpDueToItemResize:S}},u(Y)),eB=_(([{log:e}])=>{let t=b(!1),i=y(w(t,C(e=>e),P()));return t(1,t=>{t&&f(e)("props updated",{},F.DEBUG)}),{propsReady:t,didMount:i}},u(W),{singleton:!0});function eR(e,t){0==e?t():requestAnimationFrame(()=>eR(e-1,t))}function ej(e,t){return"number"==typeof e?e:"LAST"===e.index?t-1:e.index}let e_=_(([{sizes:e,listRefresh:t,defaultItemSize:i},{scrollTop:r},{scrollToIndex:n,scrollTargetReached:s},{didMount:a}])=>{let l=b(!0),o=b(0),u=b(!0);return m(w(a,M(o),C(([e,t])=>!!t),z(!1)),l),m(w(a,M(o),C(([e,t])=>!!t),z(!1)),u),w(j(t,a),M(l,e,i,u),C(([[,e],t,{sizeTree:i},r,n])=>e&&(!ee(i)||c(r))&&!t&&!n),M(o))(1,([,e])=>{g(s,()=>{u(0,!0)}),eR(4,()=>{g(r,()=>{l(0,!0)}),n(0,e)})}),{scrolledToInitialItem:l,initialTopMostItemIndex:o,initialItemFinalLocationReached:u}},u(eI,Y,eD,eB),{singleton:!0});function eA(e){return!!e&&("smooth"===e?"smooth":"auto")}let eL=(e,t)=>"function"==typeof e?eA(e(t)):t&&eA(e),eO=_(([{totalCount:e,listRefresh:t},{isAtBottom:i,atBottomState:r},{scrollToIndex:n},{scrolledToInitialItem:s},{propsReady:a,didMount:l},{log:o},{scrollingInProgress:u}])=>{let d=b(!1),c=v(),h=null;function p(e){n(0,{index:"LAST",align:"end",behavior:e})}function m(e){setTimeout(g(r,t=>{!e||t.atBottom||"SIZE_INCREASED"!==t.notAtBottomBecause||h||(f(o)("scrolling to bottom due to increased size",{},F.DEBUG),p("auto"))}),100)}return w(j(w(R(e),D(1)),l),M(R(d),i,s,u),I(([[e,t],i,r,n,s])=>{let a=t&&n,l="auto";return a&&(l=eL(i,r||s),a=a&&!!l),{totalCount:e,shouldFollow:a,followOutputBehavior:l}}),C(({shouldFollow:e})=>e))(1,({totalCount:e,followOutputBehavior:i})=>{h&&(h(),h=null),h=g(t,()=>{f(o)("following output to ",{totalCount:e},F.DEBUG),p(i),h=null})}),w(j(R(d),e,a),C(([e,,t])=>e&&t),E(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),C(({refreshed:e})=>e),M(d,e))(1,([,e])=>{f(s)&&m(!1!==e)}),c(1,()=>{m(!1!==f(d))}),j(R(d),r)(1,([e,t])=>{e&&!t.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===t.notAtBottomBecause&&p("auto")}),{followOutput:d,autoscrollToBottom:c}},u(eI,eM,eD,e_,eB,W,Y));function eN(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{totalCount:0,groupIndices:[]})}let eF=_(([{totalCount:e,groupIndices:t,sizes:i},{scrollTop:r,headerHeight:n}])=>{let s=v(),a=v(),l=y(w(s,I(eN)));return m(w(l,I(e=>e.totalCount)),e),m(w(l,I(e=>e.groupIndices)),t),m(w(j(r,i,n),C(([e,t])=>eP(t)),I(([e,t,i])=>ei(t.groupOffsetTree,Math.max(e-i,0),"v")[0]),P(),I(e=>[e])),a),{groupCounts:s,topItemsIndexes:a}},u(eI,Y));function eV(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function eK(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}let eW="bottom",eH="none";function eU(e,t,i){return"number"==typeof e?"up"===i&&"top"===t||i===eT&&t===eW?e:0:"up"===i?"top"===t?e.main:e.reverse:t===eW?e.main:e.reverse}function e$(e,t){return"number"==typeof e?e:e[t]||0}let eG=_(([{scrollTop:e,viewportHeight:t,deviation:i,headerHeight:r,fixedHeaderHeight:n}])=>{let s=v(),a=b(0),l=b(0),o=b(0),u=x(w(j(R(e),R(t),R(r),R(s,eV),R(o),R(a),R(n),R(i),R(l)),I(([e,t,i,[r,n],s,a,l,o,u])=>{let d=e-o,c=Math.max(i-d,0),h=eH,p=e$(u,"top"),f=e$(u,eW);return(r-=o,r+=i+l,n+=i+l,r>e+(a+l)-p&&(h="up"),(n-=o)null!=e),P(eV)),[0,0]);return{listBoundary:s,overscan:o,topListHeight:a,increaseViewportBy:l,visibleRange:u}},u(Y),{singleton:!0}),eq={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function eX(e,t,i){let r;if(0===e.length)return[];if(!eP(t))return e.map(e=>({...e,index:e.index+i,originalIndex:e.index}));let n=e[0].index,s=e[e.length-1].index,a=[],l=eo(t.groupOffsetTree,n,s),o=0;for(let n of e){let e;(!r||r.end0){u=e[0].offset;let t=e[e.length-1];d=t.offset+t.size}let c=i-o,h=u,p=l+c*a+(c-1)*r-d;return{items:eX(e,n,s),topItems:eX(t,n,s),topListHeight:t.reduce((e,t)=>t.size+e,0),offsetTop:u,offsetBottom:p,top:h,bottom:d,totalCount:i,firstItemIndex:s}}function eY(e,t,i,r,n,s){let a=0;if(i.groupIndices.length>0)for(let t of i.groupIndices){if(t-a>=e)break;a++}let l=e+a,o=ej(t,l);return eJ(Array.from({length:l}).map((e,t)=>({index:t+o,size:0,offset:0,data:s[t+o]})),[],l,n,i,r)}let eZ=_(([{sizes:e,totalCount:t,data:i,firstItemIndex:r,gap:n},s,{visibleRange:a,listBoundary:l,topListHeight:o},{scrolledToInitialItem:u,initialTopMostItemIndex:d},{topListHeight:h},p,{didMount:g},{recalcInProgress:S}])=>{let z=b([]),E=b(0),D=v();m(s.topItemsIndexes,z);let k=x(w(j(g,S,R(a,eV),R(t),R(e),R(d),u,R(z),R(r),R(n),i),C(([e,t,,i,,,,,,,r])=>{let n=r&&r.length!==i;return e&&!t&&!n}),I(([,,[e,t],i,r,n,s,a,l,o,u])=>{var d;let{sizeTree:c,offsetTree:h}=r,p=f(E);if(0===i)return{...eq,totalCount:i};if(0===e&&0===t)return 0===p?{...eq,totalCount:i}:eY(p,n,r,l,o,u||[]);if(ee(c))return p>0?null:eJ(function(e,t,i){if(eP(t)){let r=eS(e,t);return[{index:ei(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:i&&i[0]}]}return[{index:e,size:0,offset:0,data:i&&i[0]}]}(ej(n,i),r,u),[],i,o,r,l);let m=[];if(a.length>0){let e=a[0],t=a[a.length-1],i=0;for(let r of eo(c,e,t)){let n=r.value,s=Math.max(r.start,e),a=Math.min(r.end,t);for(let e=s;e<=a;e++)m.push({index:e,size:n,offset:i,data:u&&u[e]}),i+=n}}if(!s)return eJ([],m,i,o,r,l);let g=a.length>0?a[a.length-1]+1:0,v=function(e,t,i,r=0){return r>0&&(t=Math.max(t,e[eh(e,r,em)].offset)),eu(function(e,t,i,r){let n=eh(e,t,r),s=eh(e,i,r,n);return e.slice(n,s+1)}(e,t,i,eg),ev)}(h,e,t,g);if(0===v.length)return null;let b=i-1;return eJ(((i=>{for(let r of v){let n=r.value,s=n.offset,a=r.start,l=n.size;if(n.offset=t);e++)i.push({index:e,size:l,offset:s,data:u&&u[e]}),s+=l+o}})(d=[]),d),m,i,o,r,l)}),C(e=>null!==e),P()),eq);m(w(i,C(c),I(e=>null==e?void 0:e.length)),t),m(w(k,I(e=>e.topListHeight)),h),m(h,o),m(w(k,I(e=>[e.top,e.bottom])),l),m(w(k,I(e=>e.items)),D);let B=y(w(k,C(({items:e})=>e.length>0),M(t,i),C(([{items:e},t])=>e[e.length-1].originalIndex===t-1),I(([,e,t])=>[e-1,t]),P(eV),I(([e])=>e))),_=y(w(k,T(200),C(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),I(({items:e})=>e[0].index),P())),A=y(w(k,C(({items:e})=>e.length>0),I(({items:e})=>{let t=0,i=e.length-1;for(;"group"===e[t].type&&tt;)i--;return{startIndex:e[t].index,endIndex:e[i].index}}),P(eK)));return{listState:k,topItemsIndexes:z,endReached:B,startReached:_,rangeChanged:A,itemsRendered:D,initialItemCount:E,...p}},u(eI,eF,eG,e_,eD,eM,eB,ep),{singleton:!0}),eQ=_(([{sizes:e,firstItemIndex:t,data:i,gap:r},{initialTopMostItemIndex:n},{initialItemCount:s,listState:a},{didMount:l}])=>(m(w(l,M(s),C(([,e])=>0!==e),M(n,e,t,r,i),I(([[,e],t,i,r,n,s=[]])=>eY(e,t,i,r,n,s))),a),{}),u(eI,e_,eZ,eB),{singleton:!0}),e0=_(([{scrollVelocity:e}])=>{let t=b(!1),i=v(),r=b(!1);return m(w(e,M(r,t,i),C(([e,t])=>!!t),I(([e,t,i,r])=>{let{exit:n,enter:s}=t;if(i){if(n(e,r))return!1}else if(s(e,r))return!0;return i}),P()),t),w(j(t,e,i),M(r))(1,([[e,t,i],r])=>e&&r&&r.change&&r.change(t,i)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:i}},u(eM),{singleton:!0}),e1=_(([{topItemsIndexes:e}])=>{let t=b(0);return m(w(t,C(e=>e>=0),I(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},u(eZ)),e4=_(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:i,fixedFooterHeight:r},{listState:n}])=>{let s=v(),a=x(w(j(e,r,t,i,n),I(([e,t,i,r,n])=>e+t+i+r+n.offsetBottom+n.bottom)),0);return m(R(a),s),{totalListHeight:a,totalListHeightChanged:s}},u(Y,eZ),{singleton:!0});function e3(e){let t,i=!1;return()=>(i||(i=!0,t=e()),t)}let e2=e3(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),e5=_(([{scrollBy:e,scrollTop:t,deviation:i,scrollingInProgress:r},{isScrolling:n,isAtBottom:s,scrollDirection:a,lastJumpDueToItemResize:l},{listState:o},{beforeUnshiftWith:u,shiftWithOffset:d,sizes:c,gap:h},{log:p},{recalcInProgress:f}])=>{let g=y(w(o,M(l),E(([,e,t,i],[{items:r,totalCount:n,bottom:s,offsetBottom:a},l])=>{let o=s+a,u=0;return t===n&&e.length>0&&r.length>0&&!(0===r[0].originalIndex&&0===e[0].originalIndex)&&0!=(u=o-i)&&(u+=l),[u,r,n,o]},[0,[],0,0]),C(([e])=>0!==e),M(t,a,r,s,p,f),C(([,e,t,i,,,r])=>!r&&!i&&0!==e&&"up"===t),I(([[e],,,,,t])=>(t("Upward scrolling compensation",{amount:e},F.DEBUG),e))));function v(t){t>0?(e(0,{top:-t,behavior:"auto"}),i(0,0)):(i(0,0),e(0,{top:-t,behavior:"auto"}))}return w(g,M(i,n))(1,([e,t,r])=>{r&&e2()?i(0,t-e):v(-e)}),w(j(x(n,!1),i,f),C(([e,t,i])=>!e&&!i&&0!==t),I(([e,t])=>t),T(1))(1,v),m(w(d,I(e=>({top:-e}))),e),w(u,M(c,h),I(([e,{lastSize:t,groupIndices:i,sizeTree:r},n])=>{if(0===i.length)return e*(t+n);{let s=0,a=et(r,0),l=0,o=0;for(;le&&(s-=a,r=e-l+1),l+=r,s+=r*(t+n),o++}return s}}))(1,t=>{i(0,t),requestAnimationFrame(()=>{e(0,{top:t}),requestAnimationFrame(()=>{i(0,0),f(0,!1)})})}),{deviation:i}},u(Y,eM,eZ,eI,W,ep)),e7=_(([{didMount:e},{scrollTo:t},{listState:i}])=>{let r=b(0);return w(e,M(r),C(([,e])=>0!==e),I(([,e])=>({top:e})))(1,e=>{g(w(i,D(1),C(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{t(0,e)})})}),{initialScrollTop:r}},u(eB,Y,eZ),{singleton:!0}),e6=_(([{viewportHeight:e},{totalListHeight:t}])=>{let i=b(!1),r=x(w(j(i,e,t),C(([e])=>e),I(([,e,t])=>Math.max(0,e-t)),T(0),P()),0);return{alignToBottom:i,paddingTopAddition:r}},u(Y,e4),{singleton:!0}),e9=_(([{scrollTo:e,scrollContainerState:t}])=>{let i=v(),r=v(),n=v(),s=b(!1),a=b(void 0);return m(w(j(i,r),I(([{viewportHeight:e,scrollTop:t,scrollHeight:i},{offsetTop:r}])=>({scrollTop:Math.max(0,t-r),scrollHeight:i,viewportHeight:e}))),t),m(w(e,M(r),I(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),n),{useWindowScroll:s,customScrollParent:a,windowScrollContainerState:i,windowViewportRect:r,windowScrollTo:n}},u(Y)),e8=({itemTop:e,itemBottom:t,viewportTop:i,viewportBottom:r,locationParams:{behavior:n,align:s,...a}})=>er?{...a,behavior:n,align:null!=s?s:"end"}:null,te=_(([{sizes:e,totalCount:t,gap:i},{scrollTop:r,viewportHeight:n,headerHeight:s,fixedHeaderHeight:a,fixedFooterHeight:l,scrollingInProgress:o},{scrollToIndex:u}])=>{let d=v();return m(w(d,M(e,n,t,s,a,l,r),M(i),I(([[e,t,i,r,n,s,a,l],u])=>{let{done:d,behavior:c,align:h,calculateViewLocation:p=e8,...m}=e,v=ew(e,t,r-1),b=ex(v,t.offsetTree,u)+n+s,y=b+ei(t.sizeTree,v)[1],x=p({itemTop:b,itemBottom:y,viewportTop:l+s,viewportBottom:l+i-a,locationParams:{behavior:c,align:h,...m}});return x?d&&g(w(o,C(e=>!1===e),D(f(o)?1:2)),d):d&&d(),x}),C(e=>null!==e)),u),{scrollIntoView:d}},u(eI,Y,eD,eZ,W),{singleton:!0}),tt=_(([{sizes:e,sizeRanges:t},{scrollTop:i,headerHeight:r},{initialTopMostItemIndex:n},{didMount:s},{useWindowScroll:a,windowScrollContainerState:l,windowViewportRect:o}])=>{let u=v(),d=b(void 0),h=b(null),p=b(null);return m(l,h),m(o,p),w(u,M(e,i,a,h,p,r))(1,([e,t,i,r,n,s,a])=>{let l=en(t.sizeTree).map(({k:e,v:t},i,r)=>{let n=r[i+1];return{startIndex:e,endIndex:n?n.k-1:1/0,size:t}});r&&null!==n&&null!==s&&(i=n.scrollTop-s.offsetTop),e({ranges:l,scrollTop:i-=a})}),m(w(d,C(c),I(ti)),n),m(w(s,M(d),C(([,e])=>void 0!==e),P(),I(([,e])=>e.ranges)),t),{getState:u,restoreStateFrom:d}},u(eI,Y,e_,eB,e9));function ti(e){return{offset:e.scrollTop,index:0,align:"start"}}let tr=_(([e,t,i,r,n,s,a,l,o,u])=>({...e,...t,...i,...r,...n,...s,...a,...l,...o,...u}),u(eG,eQ,eB,e0,e4,e7,e6,e9,te,W)),tn=_(([{totalCount:e,sizeRanges:t,fixedItemSize:i,defaultItemSize:r,trackItemSizes:n,itemSize:s,data:a,firstItemIndex:l,groupIndices:o,statefulTotalCount:u,gap:d,sizes:c},{initialTopMostItemIndex:h,scrolledToInitialItem:p,initialItemFinalLocationReached:f},g,v,b,{listState:y,topItemsIndexes:x,...S},{scrollToIndex:P},C,{topItemCount:z},{groupCounts:E},D])=>(m(S.rangeChanged,D.scrollSeekRangeChanged),m(w(D.windowViewportRect,I(e=>e.visibleHeight)),g.viewportHeight),{totalCount:e,data:a,firstItemIndex:l,sizeRanges:t,initialTopMostItemIndex:h,scrolledToInitialItem:p,initialItemFinalLocationReached:f,topItemsIndexes:x,topItemCount:z,groupCounts:E,fixedItemHeight:i,defaultItemHeight:r,gap:d,...b,statefulTotalCount:u,listState:y,scrollToIndex:P,trackItemSizes:n,itemSize:s,groupIndices:o,...S,...D,...g,sizes:c,...v}),u(eI,e_,Y,tt,eO,eZ,eD,e5,e1,eF,tr)),ts="-webkit-sticky",ta="sticky",tl=e3(()=>{if("undefined"==typeof document)return ta;let e=document.createElement("div");return e.style.position=ts,e.style.position===ts?ts:ta});function to(e,t,i){let r=s.useRef(null),n=s.useCallback(i=>{let n,s;if(null===i||!i.offsetParent)return;let a=i.getBoundingClientRect(),l=a.width;if(t){let e=t.getBoundingClientRect(),i=a.top-e.top;n=e.height-Math.max(0,i),s=i+t.scrollTop}else n=window.innerHeight-Math.max(0,a.top),s=a.top+window.pageYOffset;r.current={offsetTop:s,visibleHeight:n,visibleWidth:l},e(r.current)},[e,t]),{callbackRef:a,ref:l}=H(n,!0,i),o=s.useCallback(()=>{n(l.current)},[n,l]);return s.useEffect(()=>{if(!t)return window.addEventListener("scroll",o),window.addEventListener("resize",o),()=>{window.removeEventListener("scroll",o),window.removeEventListener("resize",o)};{t.addEventListener("scroll",o);let e=new ResizeObserver(()=>{requestAnimationFrame(o)});return e.observe(t),()=>{t.removeEventListener("scroll",o),e.unobserve(t)}}},[o,t]),a}let tu=s.createContext(void 0),td=s.createContext(void 0);function tc(e){return e}let th=_(()=>{let e=b(e=>`Item ${e}`),t=b(null),i=b(e=>`Group ${e}`),r=b({}),n=b(tc),s=b("div"),a=b(h),l=(e,t=null)=>x(w(r,I(t=>t[e]),P()),t);return{context:t,itemContent:e,groupContent:i,components:r,computeItemKey:n,HeaderFooterTag:s,scrollerRef:a,FooterComponent:l("Footer"),HeaderComponent:l("Header"),TopItemListComponent:l("TopItemList"),ListComponent:l("List","div"),ItemComponent:l("Item","div"),GroupComponent:l("Group","div"),ScrollerComponent:l("Scroller","div"),EmptyPlaceholder:l("EmptyPlaceholder"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder")}}),tp=_(([e,t])=>({...e,...t}),u(tn,th)),tf=({height:e})=>(0,n.jsx)("div",{style:{height:e}}),tm={position:tl(),zIndex:1,overflowAnchor:"none"},tg={overflowAnchor:"none"},tv={...tg,display:"inline-block",height:"100%"},tb=s.memo(function({showTopList:e=!1}){let t=tj("listState"),i=tR("sizeRanges"),r=tj("useWindowScroll"),a=tj("customScrollParent"),l=tR("windowScrollContainerState"),o=tR("scrollContainerState"),u=tj("itemContent"),d=tj("context"),c=tj("groupContent"),p=tj("trackItemSizes"),f=tj("itemSize"),m=tj("log"),g=tR("gap"),v=tj("horizontalDirection"),{callbackRef:b}=$(i,f,p,e?h:a||r?l:o,m,g,a,v,tj("skipAnimationFrameInResizeObserver")),[y,x]=s.useState(0);t_("deviation",e=>{y!==e&&x(e)});let w=tj("EmptyPlaceholder"),S=tj("ScrollSeekPlaceholder")||tf,P=tj("ListComponent"),C=tj("ItemComponent"),I=tj("GroupComponent"),z=tj("computeItemKey"),E=tj("isSeeking"),D=tj("groupIndices").length>0,T=tj("alignToBottom"),k=tj("initialItemFinalLocationReached"),M=e?{}:{boxSizing:"border-box",...v?{whiteSpace:"nowrap",display:"inline-block",height:"100%",paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,marginLeft:0!==y?y:T?"auto":0}:{marginTop:0!==y?y:T?"auto":0,paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},...k?{}:{visibility:"hidden"}};return!e&&0===t.totalCount&&w?(0,n.jsx)(w,{...tP(w,d)}):(0,n.jsx)(P,{...tP(P,d),ref:b,style:M,"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",children:(e?t.topItems:t.items).map(e=>{let i=e.originalIndex,r=z(i+t.firstItemIndex,e.data,d);return E?(0,s.createElement)(S,{...tP(S,d),key:r,index:e.index,height:e.size,type:e.type||"item",..."group"===e.type?{}:{groupIndex:e.groupIndex}}):"group"===e.type?(0,s.createElement)(I,{...tP(I,d),key:r,"data-index":i,"data-known-size":e.size,"data-item-index":e.index,style:tm},c(e.index,d)):(0,s.createElement)(C,{...tP(C,d),...tC(C,e.data),key:r,"data-index":i,"data-known-size":e.size,"data-item-index":e.index,"data-item-group-index":e.groupIndex,style:v?tv:tg},D?u(e.index,e.groupIndex,e.data,d):u(e.index,e.data,d))})})}),ty={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},tx={outline:"none",overflowX:"auto",position:"relative"},tw=e=>({width:"100%",height:"100%",position:"absolute",top:0,...e?{display:"flex",flexDirection:"column"}:{}}),tS={width:"100%",position:tl(),top:0,zIndex:1};function tP(e,t){if("string"!=typeof e)return{context:t}}function tC(e,t){return{item:"string"==typeof e?void 0:t}}let tI=s.memo(function(){let e=tj("HeaderComponent"),t=tR("headerHeight"),i=tj("HeaderFooterTag"),r=U(s.useMemo(()=>e=>t(q(e,"height")),[t]),!0,tj("skipAnimationFrameInResizeObserver")),a=tj("context");return e?(0,n.jsx)(i,{ref:r,children:(0,n.jsx)(e,{...tP(e,a)})}):null}),tz=s.memo(function(){let e=tj("FooterComponent"),t=tR("footerHeight"),i=tj("HeaderFooterTag"),r=U(s.useMemo(()=>e=>t(q(e,"height")),[t]),!0,tj("skipAnimationFrameInResizeObserver")),a=tj("context");return e?(0,n.jsx)(i,{ref:r,children:(0,n.jsx)(e,{...tP(e,a)})}):null});function tE({usePublisher:e,useEmitter:t,useEmitterValue:i}){return s.memo(function({style:r,children:s,...a}){let l=e("scrollContainerState"),o=i("ScrollerComponent"),u=e("smoothScrollTargetReached"),d=i("scrollerRef"),c=i("context"),h=i("horizontalDirection")||!1,{scrollerRef:p,scrollByCallback:f,scrollToCallback:m}=J(l,u,o,d,void 0,h);return t("scrollTo",m),t("scrollBy",f),(0,n.jsx)(o,{ref:p,style:{...h?tx:ty,...r},"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...a,...tP(o,c),children:s})})}function tD({usePublisher:e,useEmitter:t,useEmitterValue:i}){return s.memo(function({style:r,children:s,...a}){let l=e("windowScrollContainerState"),o=i("ScrollerComponent"),u=e("smoothScrollTargetReached"),d=i("totalListHeight"),c=i("deviation"),p=i("customScrollParent"),f=i("context"),{scrollerRef:m,scrollByCallback:g,scrollToCallback:v}=J(l,u,o,h,p);return N(()=>(m.current=p||window,()=>{m.current=null}),[m,p]),t("windowScrollTo",v),t("scrollBy",g),(0,n.jsx)(o,{style:{position:"relative",...r,...0!==d?{height:d+c}:{}},"data-virtuoso-scroller":!0,...a,...tP(o,f),children:s})})}let tT=({children:e})=>{let t=s.useContext(tu),i=tR("viewportHeight"),r=tR("fixedItemHeight"),a=tj("alignToBottom"),o=tj("horizontalDirection"),u=U(s.useMemo(()=>l(i,e=>q(e,o?"width":"height")),[i,o]),!0,tj("skipAnimationFrameInResizeObserver"));return s.useEffect(()=>{t&&(i(t.viewportHeight),r(t.itemHeight))},[t,i,r]),(0,n.jsx)("div",{style:tw(a),ref:u,"data-viewport-type":"element",children:e})},tk=({children:e})=>{let t=s.useContext(tu),i=tR("windowViewportRect"),r=tR("fixedItemHeight"),a=to(i,tj("customScrollParent"),tj("skipAnimationFrameInResizeObserver")),l=tj("alignToBottom");return s.useEffect(()=>{t&&(r(t.itemHeight),i({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,i,r]),(0,n.jsx)("div",{ref:a,style:tw(l),"data-viewport-type":"window",children:e})},tM=({children:e})=>{let t=tj("TopItemListComponent")||"div",i=tj("headerHeight"),r={...tS,marginTop:`${i}px`},s=tj("context");return(0,n.jsx)(t,{style:r,...tP(t,s),children:e})},{Component:tB,usePublisher:tR,useEmitterValue:tj,useEmitter:t_}=O(tp,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},s.memo(function(e){let t=tj("useWindowScroll"),i=tj("topItemsIndexes").length>0,r=tj("customScrollParent"),s=r||t?tL:tA,a=r||t?tk:tT;return(0,n.jsxs)(s,{...e,children:[i&&(0,n.jsx)(tM,{children:(0,n.jsx)(tb,{showTopList:!0})}),(0,n.jsxs)(a,{children:[(0,n.jsx)(tI,{}),(0,n.jsx)(tb,{}),(0,n.jsx)(tz,{})]})]})})),tA=tE({usePublisher:tR,useEmitterValue:tj,useEmitter:t_}),tL=tD({usePublisher:tR,useEmitterValue:tj,useEmitter:t_}),tO=tB,tN={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},tF={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:tV,ceil:tK,floor:tW,min:tH,max:tU}=Math;function t$(e,t,i){return Array.from({length:t-e+1}).map((t,r)=>{let n=null===i?null:i[r+e];return{index:r+e,data:n}})}function tG(e,t){return e&&e.column===t.column&&e.row===t.row}function tq(e,t){return e&&e.width===t.width&&e.height===t.height}let tX=_(([{overscan:e,visibleRange:t,listBoundary:i,increaseViewportBy:r},{scrollTop:n,viewportHeight:s,scrollBy:a,scrollTo:l,smoothScrollTargetReached:o,scrollContainerState:u,footerHeight:d,headerHeight:c},h,p,{propsReady:f,didMount:S},{windowViewportRect:E,useWindowScroll:k,customScrollParent:B,windowScrollContainerState:_,windowScrollTo:A},L])=>{let O=b(0),N=b(0),F=b(tN),V=b({height:0,width:0}),K=b({height:0,width:0}),W=v(),H=v(),U=b(0),$=b(null),G=b({row:0,column:0}),q=v(),X=v(),J=b(!1),Y=b(0),Z=b(!0),Q=b(!1),ee=b(!1);w(S,M(Y),C(([e,t])=>!!t))(1,()=>{Z(0,!1)}),w(j(S,Z,K,V,Y,Q),C(([e,t,i,r,,n])=>e&&!t&&0!==i.height&&0!==r.height&&!n))(1,([,,,,e])=>{Q(0,!0),eR(1,()=>{W(0,e)}),g(w(n),()=>{i(0,[0,0]),Z(0,!0)})}),m(w(X,C(e=>null!=e&&e.scrollTop>0),z(0)),N),w(S,M(X),C(([,e])=>null!=e))(1,([,e])=>{e&&(V(0,e.viewport),K(0,null==e?void 0:e.item),G(0,e.gap),e.scrollTop>0&&(J(0,!0),g(w(n,D(1)),e=>{J(0,!1)}),l(0,{top:e.scrollTop})))}),m(w(V,I(({height:e})=>e)),s),m(w(j(R(V,tq),R(K,tq),R(G,(e,t)=>e&&e.column===t.column&&e.row===t.row),R(n)),I(([e,t,i,r])=>({viewport:e,item:t,gap:i,scrollTop:r}))),q),m(w(j(R(O),t,R(G,tG),R(K,tq),R(V,tq),R($),R(N),R(J),R(Z),R(Y)),C(([,,,,,,,e])=>!e),I(([e,[t,i],r,n,s,a,l,,o,u])=>{let d,c;let{row:h,column:p}=r,{height:f,width:m}=n,{width:g}=s;if(0===l&&(0===e||0===g))return tN;if(0===m){var v;let t=ej(u,e);return v=t$(t,t+Math.max(l-1,0),a),{...tF,items:v}}let b=tZ(g,m,p);o?0===t&&0===i&&l>0?(d=0,c=l-1):(d=b*tW((t+h)/(f+h)),c=tH(e-1,tU(c=b*tK((i+h)/(f+h))-1,b-1)),d=tH(c,tU(0,d))):(d=0,c=-1);let y=t$(d,c,a),{top:x,bottom:w}=tJ(s,r,n,y),S=tK(e/b);return{items:y,offsetTop:x,offsetBottom:S*f+(S-1)*h-w,top:x,bottom:w,itemHeight:f,itemWidth:m}})),F),m(w($,C(e=>null!==e),I(e=>e.length)),O),m(w(j(V,K,F,G),C(([e,t,{items:i}])=>i.length>0&&0!==t.height&&0!==e.height),I(([e,t,{items:i},r])=>{let{top:n,bottom:s}=tJ(e,r,t,i);return[n,s]}),P(eV)),i);let et=b(!1);m(w(n,M(et),I(([e,t])=>t||0!==e)),et);let ei=y(w(j(F,O),C(([{items:e}])=>e.length>0),M(et),C(([[e,t],i])=>{let r=e.items[e.items.length-1].index===t-1;return i?r:e.bottom>0&&e.itemHeight>0&&0===e.offsetBottom&&e.items.length===t&&r}),I(([[,e]])=>e-1),P())),er=y(w(R(F),C(({items:e})=>e.length>0&&0===e[0].index),z(0),P())),en=y(w(R(F),M(J),C(([{items:e},t])=>e.length>0&&!t),I(([{items:e}])=>({startIndex:e[0].index,endIndex:e[e.length-1].index})),P(eK),T(0)));m(en,p.scrollSeekRangeChanged),m(w(W,M(V,K,O,G),I(([e,t,i,r,n])=>{let s=eE(e),{align:a,behavior:l,offset:o}=s,u=s.index;"LAST"===u&&(u=r-1);let d=tY(t,n,i,u=tU(0,u,tH(r-1,u)));return"end"===a?d=tV(d-t.height+i.height):"center"===a&&(d=tV(d-t.height/2+i.height/2)),o&&(d+=o),{top:d,behavior:l}})),l);let es=x(w(F,I(e=>e.offsetBottom+e.bottom)),0);return m(w(E,I(e=>({width:e.visibleWidth,height:e.visibleHeight}))),V),{data:$,totalCount:O,viewportDimensions:V,itemDimensions:K,scrollTop:n,scrollHeight:H,overscan:e,increaseViewportBy:r,scrollBy:a,scrollTo:l,scrollToIndex:W,smoothScrollTargetReached:o,windowViewportRect:E,windowScrollTo:A,useWindowScroll:k,customScrollParent:B,windowScrollContainerState:_,deviation:U,scrollContainerState:u,footerHeight:d,headerHeight:c,initialItemCount:N,gap:G,restoreStateFrom:X,...p,initialTopMostItemIndex:Y,horizontalDirection:ee,gridState:F,totalListHeight:es,...h,startReached:er,endReached:ei,rangeChanged:en,stateChanged:q,propsReady:f,stateRestoreInProgress:J,...L}},u(eG,Y,eM,e0,eB,e9,W));function tJ(e,t,i,r){let{height:n}=i;return void 0===n||0===r.length?{top:0,bottom:0}:{top:tY(e,t,i,r[0].index),bottom:tY(e,t,i,r[r.length-1].index)+n}}function tY(e,t,i,r){let n=tW(r/tZ(e.width,i.width,t.column)),s=n*i.height+tU(0,n-1)*t.row;return s>0?s+t.row:s}function tZ(e,t,i){return tU(1,tW((e+i)/(tW(t)+i)))}let tQ=_(()=>{let e=b(e=>`Item ${e}`),t=b({}),i=b(null),r=b("virtuoso-grid-item"),n=b("virtuoso-grid-list"),s=b(tc),a=b("div"),l=b(h),o=(e,i=null)=>x(w(t,I(t=>t[e]),P()),i),u=b(!1),d=b(!1);return m(R(d),u),{readyStateChanged:u,reportReadyState:d,context:i,itemContent:e,components:t,computeItemKey:s,itemClassName:r,listClassName:n,headerFooterTag:a,scrollerRef:l,FooterComponent:o("Footer"),HeaderComponent:o("Header"),ListComponent:o("List","div"),ItemComponent:o("Item","div"),ScrollerComponent:o("Scroller","div"),ScrollSeekPlaceholder:o("ScrollSeekPlaceholder","div")}}),t0=_(([e,t])=>({...e,...t}),u(tX,tQ)),t1=s.memo(function(){let e=t9("gridState"),t=t9("listClassName"),i=t9("itemClassName"),r=t9("itemContent"),a=t9("computeItemKey"),l=t9("isSeeking"),o=t6("scrollHeight"),u=t9("ItemComponent"),d=t9("ListComponent"),c=t9("ScrollSeekPlaceholder"),h=t9("context"),p=t6("itemDimensions"),f=t6("gap"),m=t9("log"),g=t9("stateRestoreInProgress"),v=t6("reportReadyState"),b=U(s.useMemo(()=>e=>{o(e.parentElement.parentElement.scrollHeight);let t=e.firstChild;if(t){let{width:e,height:i}=t.getBoundingClientRect();p({width:e,height:i})}f({row:ii("row-gap",getComputedStyle(e).rowGap,m),column:ii("column-gap",getComputedStyle(e).columnGap,m)})},[o,p,f,m]),!0,!1);return(N(()=>{e.itemHeight>0&&e.itemWidth>0&&v(!0)},[e]),g)?null:(0,n.jsx)(d,{ref:b,className:t,...tP(d,h),style:{paddingTop:e.offsetTop,paddingBottom:e.offsetBottom},"data-testid":"virtuoso-item-list",children:e.items.map(t=>{let o=a(t.index,t.data,h);return l?(0,n.jsx)(c,{...tP(c,h),index:t.index,height:e.itemHeight,width:e.itemWidth},o):(0,s.createElement)(u,{...tP(u,h),className:i,"data-index":t.index,key:o},r(t.index,t.data,h))})})}),t4=s.memo(function(){let e=t9("HeaderComponent"),t=t6("headerHeight"),i=t9("headerFooterTag"),r=U(s.useMemo(()=>e=>t(q(e,"height")),[t]),!0,!1),a=t9("context");return e?(0,n.jsx)(i,{ref:r,children:(0,n.jsx)(e,{...tP(e,a)})}):null}),t3=s.memo(function(){let e=t9("FooterComponent"),t=t6("footerHeight"),i=t9("headerFooterTag"),r=U(s.useMemo(()=>e=>t(q(e,"height")),[t]),!0,!1),a=t9("context");return e?(0,n.jsx)(i,{ref:r,children:(0,n.jsx)(e,{...tP(e,a)})}):null}),t2=({children:e})=>{let t=s.useContext(td),i=t6("itemDimensions"),r=t6("viewportDimensions"),a=U(s.useMemo(()=>e=>{r(e.getBoundingClientRect())},[r]),!0,!1);return s.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),i({height:t.itemHeight,width:t.itemWidth}))},[t,r,i]),(0,n.jsx)("div",{style:tw(!1),ref:a,children:e})},t5=({children:e})=>{let t=s.useContext(td),i=t6("windowViewportRect"),r=t6("itemDimensions"),a=to(i,t9("customScrollParent"),!1);return s.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),i({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,i,r]),(0,n.jsx)("div",{ref:a,style:tw(!1),children:e})},{Component:t7,usePublisher:t6,useEmitterValue:t9,useEmitter:t8}=O(t0,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},s.memo(function({...e}){let t=t9("useWindowScroll"),i=t9("customScrollParent"),r=i||t?it:ie,s=i||t?t5:t2;return(0,n.jsx)(r,{...e,children:(0,n.jsxs)(s,{children:[(0,n.jsx)(t4,{}),(0,n.jsx)(t1,{}),(0,n.jsx)(t3,{})]})})})),ie=tE({usePublisher:t6,useEmitterValue:t9,useEmitter:t8}),it=tD({usePublisher:t6,useEmitterValue:t9,useEmitter:t8});function ii(e,t,i){return("normal"===t||(null==t?void 0:t.endsWith("px"))||i(`${e} was not resolved to pixel value correctly`,t,F.WARN),"normal"===t)?0:parseInt(null!=t?t:"0",10)}let ir=_(()=>{let e=b(e=>(0,n.jsxs)("td",{children:["Item $",e]})),t=b(null),i=b(null),r=b(null),s=b({}),a=b(tc),l=b(h),o=(e,t=null)=>x(w(s,I(t=>t[e]),P()),t);return{context:t,itemContent:e,fixedHeaderContent:i,fixedFooterContent:r,components:s,computeItemKey:a,scrollerRef:l,TableComponent:o("Table","table"),TableHeadComponent:o("TableHead","thead"),TableFooterComponent:o("TableFoot","tfoot"),TableBodyComponent:o("TableBody","tbody"),TableRowComponent:o("TableRow","tr"),ScrollerComponent:o("Scroller","div"),EmptyPlaceholder:o("EmptyPlaceholder"),ScrollSeekPlaceholder:o("ScrollSeekPlaceholder"),FillerRow:o("FillerRow")}}),is=_(([e,t])=>({...e,...t}),u(tn,ir)),ia=({height:e})=>(0,n.jsx)("tr",{children:(0,n.jsx)("td",{style:{height:e}})}),il=({height:e})=>(0,n.jsx)("tr",{children:(0,n.jsx)("td",{style:{height:e,padding:0,border:0}})}),io={overflowAnchor:"none"},iu=s.memo(function({showTopList:e=!1}){let t=ig("listState"),i=ig("computeItemKey"),r=ig("firstItemIndex"),a=ig("isSeeking"),l=ig("ScrollSeekPlaceholder")||ia,o=ig("context"),u=ig("TableRowComponent"),d=ig("fixedHeaderHeight"),c=ig("itemContent"),h=(e?t.topItems:[]).reduce((e,t,i)=>(0===i?e.push(t.size):e.push(e[i-1]+t.size),e),[]),p=(e?t.topItems:t.items).map(t=>{let n=t.originalIndex,p=i(n+r,t.data,o),f=e?0===n?0:h[n-1]:0;return a?(0,s.createElement)(l,{...tP(l,o),key:p,index:t.index,height:t.size,type:t.type||"item"}):(0,s.createElement)(u,{...tP(u,o),...tC(u,t.data),key:p,"data-index":n,"data-known-size":t.size,"data-item-index":t.index,style:e?{overflowAnchor:"none",position:"sticky",zIndex:2,top:d+f}:io},c(t.index,t.data,o))});return(0,n.jsx)(n.Fragment,{children:p})}),id=s.memo(function(){let e=ig("listState"),t=ig("topItemsIndexes").length>0,i=im("sizeRanges"),r=ig("useWindowScroll"),a=ig("customScrollParent"),l=im("windowScrollContainerState"),o=im("scrollContainerState"),u=ig("trackItemSizes"),{callbackRef:d,ref:c}=$(i,ig("itemSize"),u,a||r?l:o,ig("log"),void 0,a,!1,ig("skipAnimationFrameInResizeObserver")),[h,p]=s.useState(0);iv("deviation",e=>{h!==e&&(c.current.style.marginTop=`${e}px`,p(e))});let f=ig("EmptyPlaceholder"),m=ig("FillerRow")||il,g=ig("TableBodyComponent"),v=ig("paddingTopAddition"),b=ig("statefulTotalCount"),y=ig("context");if(0===b&&f)return(0,n.jsx)(f,{...tP(f,y)});let x=(t?e.topItems:[]).reduce((e,t)=>e+t.size,0),w=e.offsetTop+v+h-x,S=e.offsetBottom,P=w>0?(0,n.jsx)(m,{height:w,context:y},"padding-top"):null,C=S>0?(0,n.jsx)(m,{height:S,context:y},"padding-bottom"):null;return(0,n.jsxs)(g,{ref:d,"data-testid":"virtuoso-item-list",...tP(g,y),children:[P,t&&(0,n.jsx)(iu,{showTopList:!0}),(0,n.jsx)(iu,{}),C]})}),ic=({children:e})=>{let t=s.useContext(tu),i=im("viewportHeight"),r=im("fixedItemHeight"),a=U(s.useMemo(()=>l(i,e=>q(e,"height")),[i]),!0,ig("skipAnimationFrameInResizeObserver"));return s.useEffect(()=>{t&&(i(t.viewportHeight),r(t.itemHeight))},[t,i,r]),(0,n.jsx)("div",{style:tw(!1),ref:a,"data-viewport-type":"element",children:e})},ih=({children:e})=>{let t=s.useContext(tu),i=im("windowViewportRect"),r=im("fixedItemHeight"),a=to(i,ig("customScrollParent"),ig("skipAnimationFrameInResizeObserver"));return s.useEffect(()=>{t&&(r(t.itemHeight),i({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,i,r]),(0,n.jsx)("div",{ref:a,style:tw(!1),"data-viewport-type":"window",children:e})},{Component:ip,usePublisher:im,useEmitterValue:ig,useEmitter:iv}=O(is,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},s.memo(function(e){let t=ig("useWindowScroll"),i=ig("customScrollParent"),r=im("fixedHeaderHeight"),a=im("fixedFooterHeight"),o=ig("fixedHeaderContent"),u=ig("fixedFooterContent"),d=ig("context"),c=U(s.useMemo(()=>l(r,e=>q(e,"height")),[r]),!0,ig("skipAnimationFrameInResizeObserver")),h=U(s.useMemo(()=>l(a,e=>q(e,"height")),[a]),!0,ig("skipAnimationFrameInResizeObserver")),p=i||t?iy:ib,f=i||t?ih:ic,m=ig("TableComponent"),g=ig("TableHeadComponent"),v=ig("TableFooterComponent"),b=o?(0,n.jsx)(g,{style:{zIndex:2,position:"sticky",top:0},ref:c,...tP(g,d),children:o()},"TableHead"):null,y=u?(0,n.jsx)(v,{style:{zIndex:1,position:"sticky",bottom:0},ref:h,...tP(v,d),children:u()},"TableFoot"):null;return(0,n.jsx)(p,{...e,children:(0,n.jsx)(f,{children:(0,n.jsxs)(m,{style:{borderSpacing:0,overflowAnchor:"none"},...tP(m,d),children:[b,(0,n.jsx)(id,{},"TableBody"),y]})})})})),ib=tE({usePublisher:im,useEmitterValue:ig,useEmitter:iv}),iy=tD({usePublisher:im,useEmitterValue:ig,useEmitter:iv})}}]); \ No newline at end of file + color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==i?void 0:i.key)}return null==(o=null==i?void 0:i.onChange)||o.call(i,r),r}}function eN(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}eL.displayName="NextUI.ListboxSection";let eF=(e,t)=>1>Math.abs(e-t),eV=(e,t,i)=>{let r;return function(...n){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,n),i)}},eK=e=>e,eW=e=>{let t=Math.max(e.startIndex-e.overscan,0),i=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=i;e++)r.push(e);return r},eH=(e,t)=>{let i=e.scrollElement;if(!i)return;let r=e.targetWindow;if(!r)return;let n=e=>{let{width:i,height:r}=e;t({width:Math.round(i),height:Math.round(r)})};if(n(i.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let s=new r.ResizeObserver(e=>{let t=e[0];if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e){n({width:e.inlineSize,height:e.blockSize});return}}n(i.getBoundingClientRect())});return s.observe(i,{box:"border-box"}),()=>{s.unobserve(i)}},eU={passive:!0},e$="undefined"==typeof window||"onscrollend"in window,eG=(e,t)=>{let i=e.scrollElement;if(!i)return;let r=e.targetWindow;if(!r)return;let n=0,s=e.options.useScrollendEvent&&e$?()=>void 0:eV(r,()=>{t(n,!1)},e.options.isScrollingResetDelay),a=r=>()=>{let{horizontal:a,isRtl:l}=e.options;n=a?i.scrollLeft*(l&&-1||1):i.scrollTop,s(),t(n,r)},l=a(!0),o=a(!1);return o(),i.addEventListener("scroll",l,eU),i.addEventListener("scrollend",o,eU),()=>{i.removeEventListener("scroll",l),i.removeEventListener("scrollend",o)}},eq=(e,t,i)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[i.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[i.options.horizontal?"width":"height"])},eX=(e,{adjustments:t=0,behavior:i},r)=>{var n,s;null==(s=null==(n=r.scrollElement)?void 0:n.scrollTo)||s.call(n,{[r.options.horizontal?"left":"top"]:e+t,behavior:i})};class eJ{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{this._measureElement(e.target,e)})}):null);return{disconnect:()=>{var i;null==(i=t())||i.disconnect(),e=null},observe:e=>{var i;return null==(i=t())?void 0:i.observe(e,{box:"border-box"})},unobserve:e=>{var i;return null==(i=t())?void 0:i.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,i])=>{void 0===i&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:eK,rangeExtractor:eW,onChange:()=>{},measureElement:eq,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var t,i;null==(i=(t=this.options).onChange)||i.call(t,this,e)},this.maybeNotify=eO(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t){this.maybeNotify();return}this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let i=new Map,r=new Map;for(let n=t-1;n>=0;n--){let t=e[n];if(i.has(t.lane))continue;let s=r.get(t.lane);if(null==s||t.end>s.end?r.set(t.lane,t):t.ende.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=eO(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,i,r,n)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:i,getItemKey:r,enabled:n}),{key:!1}),this.getMeasurements=eO(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:i,getItemKey:r,enabled:n},s)=>{if(!n)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let l=this.measurementsCache.slice(0,a);for(let n=a;nthis.options.debug}),this.calculateRange=eO(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,i)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:i}){let r=e.length-1,n=eY(0,r,t=>e[t].start,i),s=n;for(;sthis.options.debug}),this.getIndexes=eO(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(e,t,i,r)=>null===t?[]:e({startIndex:t.startIndex,endIndex:t.endIndex,overscan:i,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,i=e.getAttribute(t);return i?parseInt(i,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let i=this.indexFromElement(e),r=this.measurementsCache[i];if(!r)return;let n=r.key,s=this.elementsCache.get(n);s!==e&&(s&&this.observer.unobserve(s),this.observer.observe(e),this.elementsCache.set(n,e)),e.isConnected&&this.resizeItem(i,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let i=this.measurementsCache[e];if(!i)return;let r=t-(this.itemSizeCache.get(i.key)??i.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(i,r,this):i.start{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}this._measureElement(e,void 0)},this.getVirtualItems=eO(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{let i=[];for(let r=0,n=e.length;rthis.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return eN(t[eY(0,t.length-1,e=>eN(t[e]).start,e)])},this.getOffsetForAlignment=(e,t)=>{let i=this.getSize(),r=this.getScrollOffset();"auto"===t&&(t=e<=r?"start":e>=r+i?"end":"start"),"start"===t||("end"===t?e-=i:"center"===t&&(e-=i/2));let n=this.options.horizontal?"scrollWidth":"scrollHeight";return Math.max(Math.min((this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[n]:this.scrollElement[n]:0)-i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let i=this.measurementsCache[e];if(!i)return;let r=this.getSize(),n=this.getScrollOffset();if("auto"===t){if(i.end>=n+r-this.options.scrollPaddingEnd)t="end";else{if(!(i.start<=n+this.options.scrollPaddingStart))return[n,t];t="start"}}let s="end"===t?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,t),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:i}={})=>{this.cancelScrollToIndex(),"smooth"===i&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:i})},this.scrollToIndex=(e,{align:t="auto",behavior:i}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===i&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let r=this.getOffsetForIndex(e,t);if(!r)return;let[n,s]=r;this._scrollToOffset(n,{adjustments:void 0,behavior:i}),"smooth"!==i&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[t]=eN(this.getOffsetForIndex(e,s));eF(t,this.getScrollOffset())||this.scrollToIndex(e,{align:s,behavior:i})}else this.scrollToIndex(e,{align:s,behavior:i})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t=this.getMeasurements();return Math.max((0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map(e=>e.end)))-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:i})=>{this.options.scrollToFn(e,{behavior:i,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}let eY=(e,t,i,r)=>{for(;e<=t;){let n=(e+t)/2|0,s=i(n);if(sr))return n;t=n-1}}return e>0?e-1:0},eZ="undefined"!=typeof document?d.useLayoutEffect:d.useEffect;var eQ=e=>{let{Component:t,state:i,color:r,variant:n,itemClasses:s,getBaseProps:a,topContent:l,bottomContent:o,hideEmptyContent:u,hideSelectedIcon:c,shouldHighlightOnFocus:h,disableAnimation:p,getEmptyContentProps:f,getListProps:v}=e,{virtualization:b}=e;if(!b||!(0,m.xb)(b)&&!b.maxListboxHeight&&!b.itemHeight)throw Error("You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox.");let{maxListboxHeight:y,itemHeight:x}=b,w=Math.min(y,x*i.collection.size),S=(0,d.useRef)(null),P=function(e){let t=d.useReducer(()=>({}),{})[1],i={...e,onChange:(i,r)=>{var n;r?(0,eg.flushSync)(t):t(),null==(n=e.onChange)||n.call(e,i,r)}},[r]=d.useState(()=>new eJ(i));return r.setOptions(i),d.useEffect(()=>r._didMount(),[]),eZ(()=>r._willUpdate()),r}({observeElementRect:eH,observeElementOffset:eG,scrollToFn:eX,count:i.collection.size,getScrollElement:()=>S.current,estimateSize:()=>x}),C=P.getVirtualItems(),I=({index:e,style:t})=>{var a;let l=[...i.collection][e],o={color:r,item:l,state:i,variant:n,disableAnimation:p,hideSelectedIcon:c,...l.props};if("section"===l.type)return(0,eo.jsx)(eL,{...o,itemClasses:s,style:{...t,...o.style}},l.key);let u=(0,eo.jsx)(e_,{...o,classNames:(0,g.d)(s,null==(a=l.props)?void 0:a.classNames),shouldHighlightOnFocus:h,style:{...t,...o.style}},l.key);return l.wrapper&&(u=l.wrapper(u)),u},z=(0,eo.jsxs)(t,{...v(),children:[!i.collection.size&&!u&&(0,eo.jsx)("li",{children:(0,eo.jsx)("div",{...f()})}),(0,eo.jsx)("div",{ref:S,style:{height:y,overflow:"auto"},children:w>0&&x>0&&(0,eo.jsx)("div",{style:{height:`${P.getTotalSize()}px`,width:"100%",position:"relative"},children:C.map(e=>I({index:e.index,style:{position:"absolute",top:0,left:0,width:"100%",height:`${e.size}px`,transform:`translateY(${e.start}px)`}}))})})]});return(0,eo.jsxs)("div",{...a(),children:[l,z,o]})},e0=(0,n.Gp)(function(e,t){let{isVirtualized:i,...n}=e,s=function(e){var t;let i=(0,r.w)(),{ref:n,as:s,state:a,variant:l,color:c,onAction:h,children:f,onSelectionChange:m,disableAnimation:v=null!=(t=null==i?void 0:i.disableAnimation)&&t,itemClasses:b,className:y,topContent:x,bottomContent:w,emptyContent:S="No items.",hideSelectedIcon:P=!1,hideEmptyContent:C=!1,shouldHighlightOnFocus:I=!1,classNames:z,...E}=e,D=s||"ul",k="string"==typeof D,M=(0,o.gy)(n),R=T({...e,children:f,onSelectionChange:m}),A=a||R,{listBoxProps:L}=function(e,t,i){let r=(0,Z.z)(e,{labelable:!0}),n=e.selectionBehavior||"toggle",s=e.linkBehavior||("replace"===n?"action":"override");"toggle"===n&&"action"===s&&(s="override");let{listProps:a}=function(e){let{selectionManager:t,collection:i,disabledKeys:r,ref:n,keyboardDelegate:s,layoutDelegate:a}=e,l=j({usage:"search",sensitivity:"base"}),o=t.disabledBehavior,u=(0,d.useMemo)(()=>s||new J({collection:i,disabledKeys:r,disabledBehavior:o,ref:n,collator:l,layoutDelegate:a}),[s,a,i,r,n,l,o]),{collectionProps:c}=function(e){let t,{selectionManager:i,keyboardDelegate:r,ref:n,autoFocus:s=!1,shouldFocusWrap:a=!1,disallowEmptySelection:l=!1,disallowSelectAll:o=!1,selectOnFocus:u="replace"===i.selectionBehavior,disallowTypeAhead:c=!1,shouldUseVirtualFocus:h,allowsTabNavigation:p=!1,isVirtualized:f,scrollRef:m=n,linkBehavior:v="action"}=e,{direction:b}=(0,B.j)(),y=(0,ey.tv)(),x=(0,d.useRef)({top:0,left:0});eS(m,"scroll",f?void 0:()=>{var e,t,i,r;x.current={top:null!==(i=null===(e=m.current)||void 0===e?void 0:e.scrollTop)&&void 0!==i?i:0,left:null!==(r=null===(t=m.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==r?r:0}});let w=(0,d.useRef)(s);(0,d.useEffect)(()=>{if(w.current){var e,t,a,l;let o=null;"first"===s&&(o=null!==(a=null===(e=r.getFirstKey)||void 0===e?void 0:e.call(r))&&void 0!==a?a:null),"last"===s&&(o=null!==(l=null===(t=r.getLastKey)||void 0===t?void 0:t.call(r))&&void 0!==l?l:null);let u=i.selectedKeys;if(u.size){for(let e of u)if(i.canSelectItem(e)){o=e;break}}i.setFocused(!0),i.setFocusedKey(o),null==o&&!h&&n.current&&(0,eb.e)(n.current)}},[]);let S=(0,d.useRef)(i.focusedKey);(0,d.useEffect)(()=>{if(i.isFocused&&null!=i.focusedKey&&(i.focusedKey!==S.current||w.current)&&m.current&&n.current){let e=(0,_.Jz)(),t=n.current.querySelector(`[data-key="${CSS.escape(i.focusedKey.toString())}"]`);if(!t)return;("keyboard"===e||w.current)&&(eP(m.current,t),"virtual"!==e&&eI(t,{containingElement:n.current}))}!h&&i.isFocused&&null==i.focusedKey&&null!=S.current&&n.current&&(0,eb.e)(n.current),S.current=i.focusedKey,w.current=!1}),eS(n,"react-aria-focus-scope-restore",e=>{e.preventDefault(),i.setFocused(!0)});let P={onKeyDown:e=>{var t,s,d,c,h,f,g,x,w,S,P,C,I;if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!(null===(t=n.current)||void 0===t?void 0:t.contains(e.target)))return;let z=(t,r)=>{if(null!=t){if(i.isLink(t)&&"selection"===v&&u&&!ef(e)){var n;(0,eg.flushSync)(()=>{i.setFocusedKey(t,r)});let s=null===(n=m.current)||void 0===n?void 0:n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`),a=i.getItemProps(t);s&&y.open(s,e,a.href,a.routerOptions);return}i.setFocusedKey(t,r),i.isLink(t)&&"override"===v||(e.shiftKey&&"multiple"===i.selectionMode?i.extendSelection(t):u&&!ef(e)&&i.replaceSelection(t))}};switch(e.key){case"ArrowDown":if(r.getKeyBelow){let t=null!=i.focusedKey?null===(s=r.getKeyBelow)||void 0===s?void 0:s.call(r,i.focusedKey):null===(d=r.getFirstKey)||void 0===d?void 0:d.call(r);null==t&&a&&(t=null===(c=r.getFirstKey)||void 0===c?void 0:c.call(r,i.focusedKey)),null!=t&&(e.preventDefault(),z(t))}break;case"ArrowUp":if(r.getKeyAbove){let t=null!=i.focusedKey?null===(h=r.getKeyAbove)||void 0===h?void 0:h.call(r,i.focusedKey):null===(f=r.getLastKey)||void 0===f?void 0:f.call(r);null==t&&a&&(t=null===(g=r.getLastKey)||void 0===g?void 0:g.call(r,i.focusedKey)),null!=t&&(e.preventDefault(),z(t))}break;case"ArrowLeft":if(r.getKeyLeftOf){let t=null!=i.focusedKey?null===(x=r.getKeyLeftOf)||void 0===x?void 0:x.call(r,i.focusedKey):null;null==t&&a&&(t="rtl"===b?null===(w=r.getFirstKey)||void 0===w?void 0:w.call(r,i.focusedKey):null===(S=r.getLastKey)||void 0===S?void 0:S.call(r,i.focusedKey)),null!=t&&(e.preventDefault(),z(t,"rtl"===b?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){let t=null!=i.focusedKey?null===(P=r.getKeyRightOf)||void 0===P?void 0:P.call(r,i.focusedKey):null;null==t&&a&&(t="rtl"===b?null===(C=r.getLastKey)||void 0===C?void 0:C.call(r,i.focusedKey):null===(I=r.getFirstKey)||void 0===I?void 0:I.call(r,i.focusedKey)),null!=t&&(e.preventDefault(),z(t,"rtl"===b?"last":"first"))}break;case"Home":if(r.getFirstKey){e.preventDefault();let t=r.getFirstKey(i.focusedKey,em(e));i.setFocusedKey(t),null!=t&&(em(e)&&e.shiftKey&&"multiple"===i.selectionMode?i.extendSelection(t):u&&i.replaceSelection(t))}break;case"End":if(r.getLastKey){e.preventDefault();let t=r.getLastKey(i.focusedKey,em(e));i.setFocusedKey(t),null!=t&&(em(e)&&e.shiftKey&&"multiple"===i.selectionMode?i.extendSelection(t):u&&i.replaceSelection(t))}break;case"PageDown":if(r.getKeyPageBelow&&null!=i.focusedKey){let t=r.getKeyPageBelow(i.focusedKey);null!=t&&(e.preventDefault(),z(t))}break;case"PageUp":if(r.getKeyPageAbove&&null!=i.focusedKey){let t=r.getKeyPageAbove(i.focusedKey);null!=t&&(e.preventDefault(),z(t))}break;case"a":em(e)&&"multiple"===i.selectionMode&&!0!==o&&(e.preventDefault(),i.selectAll());break;case"Escape":l||0===i.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),i.clearSelection());break;case"Tab":if(!p){if(e.shiftKey)n.current.focus();else{let e,t,i=(0,ev.QL)(n.current,{tabbable:!0});do(t=i.lastChild())&&(e=t);while(t);e&&!e.contains(document.activeElement)&&(0,ex.A)(e)}}}},onFocus:e=>{if(i.isFocused){e.currentTarget.contains(e.target)||i.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(i.setFocused(!0),null==i.focusedKey){var t,s,a,l;let n=e=>{null!=e&&(i.setFocusedKey(e),u&&i.replaceSelection(e))},o=e.relatedTarget;o&&e.currentTarget.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?n(null!==(a=i.lastSelectedKey)&&void 0!==a?a:null===(t=r.getLastKey)||void 0===t?void 0:t.call(r)):n(null!==(l=i.firstSelectedKey)&&void 0!==l?l:null===(s=r.getFirstKey)||void 0===s?void 0:s.call(r))}else!f&&m.current&&(m.current.scrollTop=x.current.top,m.current.scrollLeft=x.current.left);if(null!=i.focusedKey&&m.current){let e=m.current.querySelector(`[data-key="${CSS.escape(i.focusedKey.toString())}"]`);e&&(e.contains(document.activeElement)||(0,ex.A)(e),"keyboard"===(0,_.Jz)()&&eI(e,{containingElement:n.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||i.setFocused(!1)},onMouseDown(e){m.current===e.target&&e.preventDefault()}},{typeSelectProps:C}=Y({keyboardDelegate:r,selectionManager:i});return c||(P=(0,g.d)(C,P)),h||(t=null==i.focusedKey?0:-1),{collectionProps:{...P,tabIndex:t}}}({...e,ref:n,selectionManager:t,keyboardDelegate:u});return{listProps:c}}({...e,ref:i,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:s}),{focusWithinProps:l}=(0,ec.L)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),o=(0,O.Me)(e.id);ed.set(t,{id:o,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:s});let{labelProps:u,fieldProps:c}=(0,eh.N)({...e,id:o,labelElementType:"span"});return{labelProps:u,listBoxProps:(0,g.d)(r,l,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...(0,g.d)(c,a)})}}({...e,onAction:h},A,M),N=(0,d.useMemo)(()=>ez({className:y}),[y]),F=(0,p.W)(null==z?void 0:z.base,y);return{Component:D,state:A,variant:l,color:c,slots:N,classNames:z,topContent:x,bottomContent:w,emptyContent:S,hideEmptyContent:C,shouldHighlightOnFocus:I,hideSelectedIcon:P,disableAnimation:v,className:y,itemClasses:b,getBaseProps:(e={})=>({ref:M,"data-slot":"base",className:N.base({class:F}),...(0,u.z)(E,{enabled:k}),...e}),getListProps:(e={})=>({"data-slot":"list",className:N.list({class:null==z?void 0:z.list}),...L,...e}),getEmptyContentProps:(e={})=>({"data-slot":"empty-content",children:S,className:N.emptyContent({class:null==z?void 0:z.emptyContent}),...e})}}({...n,ref:t}),{Component:a,state:l,color:c,variant:h,itemClasses:f,getBaseProps:m,topContent:v,bottomContent:b,hideEmptyContent:y,hideSelectedIcon:x,shouldHighlightOnFocus:w,disableAnimation:S,getEmptyContentProps:P,getListProps:C}=s;if(i)return(0,eo.jsx)(eQ,{...e,...s});let I=(0,eo.jsxs)(a,{...C(),children:[!l.collection.size&&!y&&(0,eo.jsx)("li",{children:(0,eo.jsx)("div",{...P()})}),[...l.collection].map(e=>{var t;let i={color:c,item:e,state:l,variant:h,disableAnimation:S,hideSelectedIcon:x,...e.props};if("section"===e.type)return(0,eo.jsx)(eL,{...i,itemClasses:f},e.key);let r=(0,eo.jsx)(e_,{...i,classNames:(0,g.d)(f,null==(t=e.props)?void 0:t.classNames),shouldHighlightOnFocus:w},e.key);return e.wrapper&&(r=e.wrapper(r)),r})]});return(0,eo.jsxs)("div",{...m(),children:[v,I,b]})}),e1=i(1699),e4=i(8390),e3=i(6594),e2=new WeakMap,e5=[],e7=i(9440),e6=i(3677),e9=i(5520),e8=i(3960),te=i(1233),tt=i(5997),ti=i(3264),tr=i(2414),tn=i(6737),ts=i(3538),ta=()=>i.e(954).then(i.bind(i,2965)).then(e=>e.default),tl=(0,n.Gp)(({children:e,motionProps:t,placement:i,disableAnimation:r,style:n={},transformOrigin:s={},...a},l)=>{let o=n;return o=void 0!==s.originX||void 0!==s.originY?{...o,transformOrigin:s}:{...o,...(0,e3.VS)("center"===i?"top":i)},r?(0,eo.jsx)("div",{...a,ref:l,children:e}):(0,eo.jsx)(ti.X,{features:ta,children:(0,eo.jsx)(tr.m.div,{ref:l,animate:"enter",exit:"exit",initial:"initial",style:o,variants:tn.y7.scaleSpringOpacity,...(0,g.d)(a,t),children:e})})});tl.displayName="NextUI.FreeSoloPopoverWrapper";var to=(0,n.Gp)(({children:e,transformOrigin:t,disableDialogFocus:i=!1,...s},a)=>{let{Component:l,state:u,placement:c,backdrop:v,portalContainer:b,disableAnimation:y,motionProps:x,isNonModal:w,getPopoverProps:S,getBackdropProps:P,getDialogProps:C,getContentProps:I}=function(e){var t,i,s;let a=(0,r.w)(),[l,u]=(0,n.oe)(e,e9.v.variantKeys),{as:c,ref:v,children:b,state:y,triggerRef:x,scrollRef:w,defaultOpen:S,onOpenChange:P,isOpen:C,isNonModal:I=!0,shouldFlip:z=!0,containerPadding:E=12,shouldBlockScroll:D=!1,isDismissable:T=!0,shouldCloseOnBlur:M,portalContainer:B,updatePositionDeps:R,dialogProps:j,placement:_="top",triggerType:A="dialog",showArrow:L=!1,offset:O=7,crossOffset:N=0,boundaryElement:F,isKeyboardDismissDisabled:V,shouldCloseOnInteractOutside:K,shouldCloseOnScroll:W,motionProps:H,className:U,classNames:$,onClose:q,...X}=l,J=(0,o.gy)(v),Y=(0,d.useRef)(null),Z=(0,d.useRef)(!1),Q=x||Y,ei=null!=(i=null!=(t=e.disableAnimation)?t:null==a?void 0:a.disableAnimation)&&i,er=(0,k.d)({isOpen:C,defaultOpen:S,onOpenChange:e=>{null==P||P(e),e||null==q||q()}}),en=y||er,{popoverProps:es,underlayProps:ea,placement:el}=function(e,t){let{triggerRef:i,popoverRef:r,showArrow:n,offset:s=7,crossOffset:a=0,scrollRef:l,shouldFlip:o,boundaryElement:u,isDismissable:c=!0,shouldCloseOnBlur:h=!0,shouldCloseOnScroll:p=!0,placement:f="top",containerPadding:m,shouldCloseOnInteractOutside:v,isNonModal:b,isKeyboardDismissDisabled:y,updatePositionDeps:x=[],...w}=e,S=null==b||b,{overlayProps:P,underlayProps:C}=(0,e1.I)({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:h,isDismissable:c,isKeyboardDismissDisabled:y,shouldCloseOnInteractOutside:v||(e=>et(e,i,t))},r),{overlayProps:I,arrowProps:z,placement:E,updatePosition:D}=(0,e4.t)({...w,shouldFlip:o,crossOffset:a,targetRef:i,overlayRef:r,isOpen:t.isOpen,scrollRef:l,boundaryElement:u,containerPadding:m,placement:(0,e3.Yx)(f),offset:n?s+3:s,onClose:S&&p?t.close:()=>{}});return(0,ee.G)(()=>{x.length&&D()},x),(0,d.useEffect)(()=>{if(t.isOpen&&!S&&r.current)return function(e,t=document.body){let i=new Set(e),r=new Set,n=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))i.add(t);let t=e=>{if(i.has(e)||e.parentElement&&r.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of i)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),a=t(e);if(a===NodeFilter.FILTER_ACCEPT&&s(e),a!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;null!=e;)s(e),e=n.nextNode()}},s=e=>{var t;let i=null!=(t=e2.get(e))?t:0;("true"!==e.getAttribute("aria-hidden")||0!==i)&&(0===i&&e.setAttribute("aria-hidden","true"),r.add(e),e2.set(e,i+1))};e5.length&&e5[e5.length-1].disconnect(),n(t);let a=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...i,...r].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(i.delete(e),r.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?i.add(e):e instanceof Element&&n(e)}});a.observe(t,{childList:!0,subtree:!0});let l={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return e5.push(l),()=>{for(let e of(a.disconnect(),r)){let t=e2.get(e);null!=t&&(1===t?(e.removeAttribute("aria-hidden"),e2.delete(e)):e2.set(e,t-1))}l===e5[e5.length-1]?(e5.pop(),e5.length&&e5[e5.length-1].observe()):e5.splice(e5.indexOf(l),1)}}([r.current])},[S,t.isOpen,r]),{popoverProps:(0,g.d)(P,I),arrowProps:z,underlayProps:C,placement:E}}({triggerRef:Q,isNonModal:I,popoverRef:J,placement:_,offset:O,scrollRef:w,isDismissable:T,shouldCloseOnBlur:M,boundaryElement:F,crossOffset:N,shouldFlip:z,containerPadding:E,updatePositionDeps:R,isKeyboardDismissDisabled:V,shouldCloseOnScroll:W,shouldCloseOnInteractOutside:K},en),{triggerProps:eo}=G({type:A},en,Q),{isFocusVisible:eu,isFocused:ed,focusProps:ec}=(0,h.F)(),eh=(0,d.useMemo)(()=>(0,e9.v)({...u}),[(0,f.Xx)(u)]),ep=(0,p.W)(null==$?void 0:$.base,U);(0,e7.t)({isDisabled:!(D&&en.isOpen)});let ef=(0,d.useCallback)((e={})=>({"data-slot":"content","data-open":(0,m.PB)(en.isOpen),"data-arrow":(0,m.PB)(L),"data-placement":(0,e3.sK)(el||"top",_),className:eh.content({class:(0,p.W)(null==$?void 0:$.content,e.className)})}),[eh,en.isOpen,L,el,_,$]),em=(0,d.useMemo)(()=>(0,e3.Yv)(el||"top",_)&&el||_,[el,_]),eg=(0,d.useCallback)(t=>{var i;let r;return"touch"===t.pointerType&&((null==e?void 0:e.backdrop)==="blur"||(null==e?void 0:e.backdrop)==="opaque")?r=setTimeout(()=>{Z.current=!0},100):Z.current=!0,null==(i=eo.onPress)||i.call(eo,t),()=>{clearTimeout(r)}},[null==eo?void 0:eo.onPress]),ev=(0,d.useCallback)((e={},t=null)=>{let{isDisabled:i,...r}=e;return{"data-slot":"trigger",...(0,g.d)({"aria-haspopup":"dialog"},eo,r),onPress:eg,isDisabled:i,className:eh.trigger({class:(0,p.W)(null==$?void 0:$.trigger,e.className),isTriggerDisabled:i}),ref:(0,e8.l)(t,Q)}},[en,eo,eg,Q]),eb=(0,d.useCallback)((e={})=>({"data-slot":"backdrop",className:eh.backdrop({class:null==$?void 0:$.backdrop}),onClick:e=>{if(!Z.current){e.preventDefault();return}en.close(),Z.current=!1},...ea,...e}),[eh,en.isOpen,$,ea]);return(0,d.useEffect)(()=>{if(en.isOpen&&(null==J?void 0:J.current))return(0,e6.R)([null==J?void 0:J.current])},[en.isOpen,J]),{state:en,Component:c||"div",children:b,classNames:$,showArrow:L,triggerRef:Q,placement:em,isNonModal:I,popoverRef:J,portalContainer:B,isOpen:en.isOpen,onClose:en.close,disableAnimation:ei,shouldBlockScroll:D,backdrop:null!=(s=e.backdrop)?s:"transparent",motionProps:H,getBackdropProps:eb,getPopoverProps:(e={})=>({ref:J,...(0,g.d)(es,X,e),style:(0,g.d)(es.style,X.style,e.style)}),getTriggerProps:ev,getDialogProps:(e={})=>({"data-slot":"base","data-open":(0,m.PB)(en.isOpen),"data-focus":(0,m.PB)(ed),"data-arrow":(0,m.PB)(L),"data-focus-visible":(0,m.PB)(eu),"data-placement":(0,e3.sK)(el||"top",_),...(0,g.d)(ec,j,e),className:eh.base({class:(0,p.W)(ep)}),style:{outline:"none"}}),getContentProps:ef}}({...s,ref:a}),z=d.useRef(null),{dialogProps:E,titleProps:D}=(0,ts.R)({},z),T=C({...!i&&{ref:z},...E}),M=d.useMemo(()=>"transparent"===v?null:y?(0,eo.jsx)("div",{...P()}):(0,eo.jsx)(ti.X,{features:ta,children:(0,eo.jsx)(tr.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:tn.y7.fade,...P()})}),[v,y,P]);return(0,eo.jsxs)(te.aV,{portalContainer:b,children:[!w&&M,(0,eo.jsx)(l,{...S(),children:(0,eo.jsxs)(tl,{disableAnimation:y,motionProps:x,placement:c,tabIndex:-1,transformOrigin:t,...T,children:[!w&&(0,eo.jsx)(tt.U,{onDismiss:u.close}),(0,eo.jsx)("div",{...I(),children:"function"==typeof e?e(D):e}),(0,eo.jsx)(tt.U,{onDismiss:u.close})]})})]})});to.displayName="NextUI.FreeSoloPopover";var tu=({strokeWidth:e=1.5,...t})=>(0,eo.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e,viewBox:"0 0 24 24",width:"1em",...t,children:(0,eo.jsx)("path",{d:"m6 9 6 6 6-6"})}),td=i(704),tc=(0,s.tv)({base:[],variants:{orientation:{vertical:["overflow-y-auto","data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],horizontal:["overflow-x-auto","data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}}),th=(0,n.Gp)((e,t)=>{let{Component:i,children:r,getBaseProps:s}=function(e){var t;let[i,r]=(0,n.oe)(e,tc.variantKeys),{ref:s,as:a,children:l,className:u,style:c,size:h=40,offset:p=0,visibility:m="auto",isEnabled:g=!0,onVisibilityChange:v,...b}=i,y=(0,o.gy)(s);!function(e={}){let{domRef:t,isEnabled:i=!0,overflowCheck:r="vertical",visibility:n="auto",offset:s=0,onVisibilityChange:a,updateDeps:l=[]}=e,o=(0,d.useRef)(n);(0,d.useEffect)(()=>{let e=null==t?void 0:t.current;if(!e||!i)return;let l=(t,i,r,s,l)=>{if("auto"===n){let t=`${s}${(0,f.kC)(l)}Scroll`;i&&r?(e.dataset[t]="true",e.removeAttribute(`data-${s}-scroll`),e.removeAttribute(`data-${l}-scroll`)):(e.dataset[`${s}Scroll`]=i.toString(),e.dataset[`${l}Scroll`]=r.toString(),e.removeAttribute(`data-${s}-${l}-scroll`))}else{let e=i&&r?"both":i?s:r?l:"none";e!==o.current&&(null==a||a(e),o.current=e)}},u=()=>{for(let{type:t,prefix:i,suffix:n}of[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}])if(r===t||"both"===r){let r="vertical"===t?e.scrollTop>s:e.scrollLeft>s,a="vertical"===t?e.scrollTop+e.clientHeight+s{["top","bottom","top-bottom","left","right","left-right"].forEach(t=>{e.removeAttribute(`data-${t}-scroll`)})};return u(),e.addEventListener("scroll",u),"auto"!==n&&(d(),"both"===n?(e.dataset.topBottomScroll=String("vertical"===r),e.dataset.leftRightScroll=String("horizontal"===r)):(e.dataset.topBottomScroll="false",e.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(t=>{e.dataset[`${t}Scroll`]=String(n===t)}))),()=>{e.removeEventListener("scroll",u),d()}},[...l,i,n,r,a,t])}({domRef:y,offset:p,visibility:m,isEnabled:g,onVisibilityChange:v,updateDeps:[l],overflowCheck:null!=(t=e.orientation)?t:"vertical"});let x=(0,d.useMemo)(()=>tc({...r,className:u}),[(0,f.Xx)(r),u]);return{Component:a||"div",styles:x,domRef:y,children:l,getBaseProps:(t={})=>{var i;return{ref:y,className:x,"data-orientation":null!=(i=e.orientation)?i:"vertical",style:{"--scroll-shadow-size":`${h}px`,...c,...t.style},...b,...t}}}}({...e,ref:t});return(0,eo.jsx)(i,{...s(),children:r})});th.displayName="NextUI.ScrollShadow";var tp=i(4111),tf=(0,n.Gp)(function(e,t){let{Component:i,state:s,label:a,hasHelper:b,isLoading:y,triggerRef:x,selectorIcon:w=(0,eo.jsx)(tu,{}),description:S,errorMessage:P,isInvalid:C,startContent:I,endContent:z,placeholder:E,renderValue:D,shouldLabelBeOutside:B,disableAnimation:R,getBaseProps:F,getLabelProps:V,getTriggerProps:K,getValueProps:W,getListboxProps:H,getPopoverProps:$,getSpinnerProps:q,getMainWrapperProps:X,getInnerWrapperProps:es,getHiddenSelectProps:el,getHelperWrapperProps:ed,getListboxWrapperProps:ec,getDescriptionProps:eh,getErrorMessageProps:ep,getSelectorIconProps:ef}=function(e){var t,i,s,a,b,y;let x=(0,r.w)(),{validationBehavior:w}=(0,ei.jn)(er.q)||{},[S,P]=(0,n.oe)(e,l.variantKeys),C=null!=(i=null!=(t=e.disableAnimation)?t:null==x?void 0:x.disableAnimation)&&i,{ref:I,as:z,label:E,name:D,isLoading:B,selectorIcon:R,isOpen:F,defaultOpen:V,onOpenChange:K,startContent:W,endContent:H,description:$,renderValue:q,onSelectionChange:X,placeholder:es,isVirtualized:ea,itemHeight:el=32,maxListboxHeight:eo=256,children:eu,disallowEmptySelection:ed=!1,selectionMode:ec="single",spinnerRef:eh,scrollRef:ep,popoverProps:ef={},scrollShadowProps:em={},listboxProps:eg={},spinnerProps:ev={},validationState:eb,onChange:ey,onClose:ex,className:ew,classNames:eS,validationBehavior:eP=null!=(s=null!=w?w:null==x?void 0:x.validationBehavior)?s:"native",hideEmptyContent:eC=!1,...eI}=S,ez=(0,o.gy)(ep),eE={popoverProps:(0,g.d)({placement:"bottom",triggerScaleOnOpen:!1,offset:5,disableAnimation:C},ef),scrollShadowProps:(0,g.d)({ref:ez,isEnabled:null==(a=e.showScrollIndicators)||a,hideScrollBar:!0,offset:15},em),listboxProps:(0,g.d)({disableAnimation:C},eg)},eD=z||"button",eT="string"==typeof eD,ek=(0,o.gy)(I),eM=(0,d.useRef)(null),eB=(0,d.useRef)(null),eR=(0,d.useRef)(null),ej=function({validate:e,validationBehavior:t,...i}){let[r,n]=(0,d.useState)(!1),[s,a]=(0,d.useState)(null),l=function(e){let t=(0,k.d)(e),[i,r]=(0,d.useState)(null),[n,s]=(0,d.useState)([]),a=()=>{s([]),t.close()};return{focusStrategy:i,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){a()},expandedKeysStack:n,openSubmenu:(e,t)=>{s(i=>t>i.length?i:[...i.slice(0,t),e])},closeSubmenu:(e,t)=>{s(i=>i[t]===e?i.slice(0,t):i)}}}(i),o=function(e){let{collection:t,disabledKeys:i,selectionManager:r,selectionManager:{setSelectedKeys:n,selectedKeys:s,selectionMode:a}}=T(e),l=(0,d.useMemo)(()=>e.isLoading||0===s.size?[]:Array.from(s).filter(Boolean).filter(e=>!t.getItem(e)),[s,t]),o=0!==s.size?Array.from(s).map(e=>t.getItem(e)).filter(Boolean):null;return l.length&&console.warn(`Select: Keys "${l.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:i,selectionManager:r,selectionMode:a,selectedKeys:s,setSelectedKeys:n.bind(r),selectedItems:o}}({...i,onSelectionChange:e=>{null!=i.onSelectionChange&&("all"===e?i.onSelectionChange(new Set(o.collection.getKeys())):i.onSelectionChange(e)),"single"===i.selectionMode&&l.close()}}),u=(0,M.Q3)({...i,validationBehavior:t,validate:t=>{if(!e)return;let r=Array.from(t);return e("single"===i.selectionMode?r[0]:r)},value:o.selectedKeys}),c=0===o.collection.size&&i.hideEmptyContent;return{...u,...o,...l,focusStrategy:s,close(){l.close()},open(e=null){c||(a(e),l.open())},toggle(e=null){c||(a(e),l.toggle(),u.commitValidation())},isFocused:r,setFocused:n}}({...S,isOpen:F,selectionMode:ec,disallowEmptySelection:ed,validationBehavior:eP,children:eu,isRequired:e.isRequired,isDisabled:e.isDisabled,isInvalid:e.isInvalid,defaultOpen:V,hideEmptyContent:eC,onOpenChange:e=>{null==K||K(e),e||null==ex||ex()},onSelectionChange:e=>{null==X||X(e),ey&&"function"==typeof ey&&ey({target:{...ek.current&&{...ek.current,name:ek.current.name},value:Array.from(e).join(",")}})}});ej={...ej,...e.isDisabled&&{disabledKeys:new Set([...ej.collection.getKeys()])}},(0,ee.G)(()=>{var e;(null==(e=ek.current)?void 0:e.value)&&ej.setSelectedKeys(new Set([...ej.selectedKeys,ek.current.value]))},[ek.current]);let{labelProps:e_,triggerProps:eA,valueProps:eL,menuProps:eO,descriptionProps:eN,errorMessageProps:eF,isInvalid:eV,validationErrors:eK,validationDetails:eW}=function(e,t,i){let{disallowEmptySelection:r,isDisabled:n}=e,s=j({usage:"search",sensitivity:"base"}),a=(0,d.useMemo)(()=>new J(t.collection,t.disabledKeys,null,s),[t.collection,t.disabledKeys,s]),{menuTriggerProps:l,menuProps:o}=function(e,t,i){var r;let{type:n="menu",isDisabled:s,trigger:a="press"}=e,l=(0,O.Me)(),{triggerProps:o,overlayProps:u}=G({type:n},t,i),{longPressProps:d}=U({isDisabled:s||"longPress"!==a,accessibilityDescription:(0,N.q)((r=L)&&r.__esModule?r.default:r,"@react-aria/menu").format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}});return delete o.onPress,{menuTriggerProps:{...o,..."press"===a?{onPressStart(e){"touch"===e.pointerType||"keyboard"===e.pointerType||s||t.open("virtual"===e.pointerType?"first":null)},onPress(e){"touch"!==e.pointerType||s||t.toggle()}}:d,id:l,onKeyDown:e=>{if(!s&&("longPress"!==a||e.altKey)&&i&&i.current)switch(e.key){case"Enter":case" ":if("longPress"===a)return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("last");break;default:"continuePropagation"in e&&e.continuePropagation()}}},menuProps:{...u,"aria-labelledby":l,autoFocus:t.focusStrategy||!0,onClose:t.close}}}({isDisabled:n,type:"listbox"},t,i),{typeSelectProps:u}=Y({keyboardDelegate:a,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKeys([e])}}),{isInvalid:c,validationErrors:h,validationDetails:p}=t.displayValidation,{labelProps:f,fieldProps:m,descriptionProps:v,errorMessageProps:b}=(0,A.U)({...e,labelElementType:"span",isInvalid:c,errorMessage:e.errorMessage||h});u.onKeyDown=u.onKeyDownCapture,delete u.onKeyDownCapture;let y=(0,Z.z)(e,{labelable:!0}),x=(0,g.d)(u,l,m),w=(0,O.Me)();return{labelProps:{...f,onClick:()=>{var t;e.isDisabled||(null==(t=i.current)||t.focus(),(0,_._w)("keyboard"))}},triggerProps:(0,g.d)(y,{...x,onKeyDown:(0,Q.t)(x.onKeyDown,e=>{if("single"===t.selectionMode)switch(e.key){case"ArrowLeft":{e.preventDefault();let i=t.selectedKeys.size>0?a.getKeyAbove(t.selectedKeys.values().next().value):a.getFirstKey();i&&t.setSelectedKeys([i]);break}case"ArrowRight":{e.preventDefault();let i=t.selectedKeys.size>0?a.getKeyBelow(t.selectedKeys.values().next().value):a.getFirstKey();i&&t.setSelectedKeys([i])}}},e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[w,void 0!==y["aria-label"]?void 0!==y["aria-labelledby"]?y["aria-labelledby"]:x.id:x["aria-labelledby"]].join(" "),onFocus(i){t.isFocused||(e.onFocus&&e.onFocus(i),t.setFocused(!0))},onBlur(i){t.isOpen||(e.onBlur&&e.onBlur(i),t.setFocused(!1))}}),valueProps:{id:w},menuProps:{...o,disallowEmptySelection:r,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:i=>{i.currentTarget.contains(i.relatedTarget)||(e.onBlur&&e.onBlur(i),t.setFocused(!1))},onFocus:null==o?void 0:o.onFocus,"aria-labelledby":[m["aria-labelledby"],x["aria-label"]&&!m["aria-labelledby"]?x.id:null].filter(Boolean).join(" ")},descriptionProps:v,errorMessageProps:b,isInvalid:c,validationErrors:h,validationDetails:p}}({...S,disallowEmptySelection:ed,isDisabled:e.isDisabled},ej,eM),eH=e.isInvalid||"invalid"===eb||eV,{isPressed:eU,buttonProps:e$}=(0,c.j)(eA,eM),{focusProps:eG,isFocused:eq,isFocusVisible:eX}=(0,h.F)(),{isHovered:eJ,hoverProps:eY}=(0,v.X)({isDisabled:e.isDisabled}),eZ=(0,d.useMemo)(()=>{var t;return e.labelPlacement&&"inside"!==e.labelPlacement||E?null!=(t=e.labelPlacement)?t:"inside":"outside"},[e.labelPlacement,E]),eQ=!!es,e0="outside-left"===eZ||"outside"===eZ&&(!(eQ||$)||!!e.isMultiline),e1="inside"===eZ,e4="outside-left"===eZ,e3=ej.isOpen||eQ||!!(null==(b=ej.selectedItems)?void 0:b.length)||!!W||!!H||!!e.isMultiline,e2=!!(null==(y=ej.selectedItems)?void 0:y.length),e5=!!E,e7=(0,p.W)(null==eS?void 0:eS.base,ew),e6=(0,d.useMemo)(()=>l({...P,isInvalid:eH,labelPlacement:eZ,disableAnimation:C,className:ew}),[(0,f.Xx)(P),eH,eZ,C,ew]);(0,d.useEffect)(()=>{if(ej.isOpen&&eR.current&&eB.current){let e=eB.current.querySelector("[aria-selected=true] [data-label=true]"),t=ez.current;if(e&&t&&e.parentElement){let i=(null==t?void 0:t.getBoundingClientRect()).height;t.scrollTop=e.parentElement.offsetTop-i/2+e.parentElement.clientHeight/2}}},[ej.isOpen,C]);let e9="function"==typeof S.errorMessage?S.errorMessage({isInvalid:eH,validationErrors:eK,validationDetails:eW}):S.errorMessage||(null==eK?void 0:eK.join(" ")),e8=!!$||!!e9;(0,d.useEffect)(()=>{if(ej.isOpen&&eR.current&&eM.current){let e=eM.current.getBoundingClientRect();eR.current.style.width=e.width+"px"}},[ej.isOpen]);let te=(0,d.useCallback)((e={})=>({"data-slot":"base","data-filled":(0,m.PB)(e3),"data-has-value":(0,m.PB)(e2),"data-has-label":(0,m.PB)(e5),"data-has-helper":(0,m.PB)(e8),"data-invalid":(0,m.PB)(eH),className:e6.base({class:(0,p.W)(e7,e.className)}),...e}),[e6,e8,e2,e5,e3,e7]),tt=(0,d.useCallback)((t={})=>({ref:eM,"data-slot":"trigger","data-open":(0,m.PB)(ej.isOpen),"data-disabled":(0,m.PB)(null==e?void 0:e.isDisabled),"data-focus":(0,m.PB)(eq),"data-pressed":(0,m.PB)(eU),"data-focus-visible":(0,m.PB)(eX),"data-hover":(0,m.PB)(eJ),className:e6.trigger({class:null==eS?void 0:eS.trigger}),...(0,g.d)(e$,eG,eY,(0,u.z)(eI,{enabled:eT}),(0,u.z)(t))}),[e6,eM,ej.isOpen,null==eS?void 0:eS.trigger,null==e?void 0:e.isDisabled,eq,eU,eX,eJ,e$,eG,eY,eI,eT]),ti=(0,d.useCallback)((t={})=>({state:ej,triggerRef:eM,selectRef:ek,selectionMode:ec,label:null==e?void 0:e.label,name:null==e?void 0:e.name,isRequired:null==e?void 0:e.isRequired,autoComplete:null==e?void 0:e.autoComplete,isDisabled:null==e?void 0:e.isDisabled,onChange:ey,...t}),[ej,ec,null==e?void 0:e.label,null==e?void 0:e.autoComplete,null==e?void 0:e.name,null==e?void 0:e.isDisabled,eM]),tr=(0,d.useCallback)((e={})=>({"data-slot":"label",className:e6.label({class:(0,p.W)(null==eS?void 0:eS.label,e.className)}),...e_,...e}),[e6,null==eS?void 0:eS.label,e_]),tn=(0,d.useCallback)((e={})=>({"data-slot":"value",className:e6.value({class:(0,p.W)(null==eS?void 0:eS.value,e.className)}),...eL,...e}),[e6,null==eS?void 0:eS.value,eL]),ts=(0,d.useCallback)((e={})=>({"data-slot":"listboxWrapper",className:e6.listboxWrapper({class:(0,p.W)(null==eS?void 0:eS.listboxWrapper,null==e?void 0:e.className)}),style:{maxHeight:null!=eo?eo:256,...e.style},...(0,g.d)(eE.scrollShadowProps,e)}),[e6.listboxWrapper,null==eS?void 0:eS.listboxWrapper,eE.scrollShadowProps,eo]),ta=(0,d.useCallback)((e={})=>{var t,i;let r=(0,g.d)(eE.popoverProps,e);return{state:ej,triggerRef:eM,ref:eR,"data-slot":"popover",scrollRef:eB,triggerType:"listbox",classNames:{content:e6.popoverContent({class:(0,p.W)(null==eS?void 0:eS.popoverContent,e.className)})},...r,offset:ej.selectedItems&&ej.selectedItems.length>0?1e-8*ej.selectedItems.length+((null==(t=eE.popoverProps)?void 0:t.offset)||0):null==(i=eE.popoverProps)?void 0:i.offset,shouldCloseOnInteractOutside:(null==r?void 0:r.shouldCloseOnInteractOutside)?r.shouldCloseOnInteractOutside:e=>et(e,ek,ej)}},[e6,null==eS?void 0:eS.popoverContent,eE.popoverProps,eM,ej,ej.selectedItems]),tl=(0,d.useCallback)(()=>({"data-slot":"selectorIcon","aria-hidden":(0,m.PB)(!0),"data-open":(0,m.PB)(ej.isOpen),className:e6.selectorIcon({class:null==eS?void 0:eS.selectorIcon})}),[e6,null==eS?void 0:eS.selectorIcon,ej.isOpen]),to=(0,d.useCallback)((e={})=>({...e,"data-slot":"innerWrapper",className:e6.innerWrapper({class:(0,p.W)(null==eS?void 0:eS.innerWrapper,null==e?void 0:e.className)})}),[e6,null==eS?void 0:eS.innerWrapper]),tu=(0,d.useCallback)((e={})=>({...e,"data-slot":"helperWrapper",className:e6.helperWrapper({class:(0,p.W)(null==eS?void 0:eS.helperWrapper,null==e?void 0:e.className)})}),[e6,null==eS?void 0:eS.helperWrapper]),td=(0,d.useCallback)((e={})=>({...e,...eN,"data-slot":"description",className:e6.description({class:(0,p.W)(null==eS?void 0:eS.description,null==e?void 0:e.className)})}),[e6,null==eS?void 0:eS.description]),tc=(0,d.useCallback)((e={})=>({...e,"data-slot":"mainWrapper",className:e6.mainWrapper({class:(0,p.W)(null==eS?void 0:eS.mainWrapper,null==e?void 0:e.className)})}),[e6,null==eS?void 0:eS.mainWrapper]),th=(0,d.useCallback)((e={})=>({...e,...eF,"data-slot":"error-message",className:e6.errorMessage({class:(0,p.W)(null==eS?void 0:eS.errorMessage,null==e?void 0:e.className)})}),[e6,eF,null==eS?void 0:eS.errorMessage]),tp=(0,d.useCallback)((e={})=>({"aria-hidden":(0,m.PB)(!0),"data-slot":"spinner",color:"current",size:"sm",...ev,...e,ref:eh,className:e6.spinner({class:(0,p.W)(null==eS?void 0:eS.spinner,null==e?void 0:e.className)})}),[e6,eh,ev,null==eS?void 0:eS.spinner]);return en.set(ej,{isDisabled:null==e?void 0:e.isDisabled,isRequired:null==e?void 0:e.isRequired,name:null==e?void 0:e.name,isInvalid:eH,validationBehavior:eP}),{Component:eD,domRef:ek,state:ej,label:E,name:D,triggerRef:eM,isLoading:B,placeholder:es,startContent:W,endContent:H,description:$,selectorIcon:R,hasHelper:e8,labelPlacement:eZ,hasPlaceholder:eQ,renderValue:q,selectionMode:ec,disableAnimation:C,isOutsideLeft:e4,shouldLabelBeOutside:e0,shouldLabelBeInside:e1,isInvalid:eH,errorMessage:e9,getBaseProps:te,getTriggerProps:tt,getLabelProps:tr,getValueProps:tn,getListboxProps:(e={})=>{let t=null!=ea?ea:ej.collection.size>50;return{state:ej,ref:eB,isVirtualized:t,virtualization:t?{maxListboxHeight:eo,itemHeight:el}:void 0,"data-slot":"listbox",className:e6.listbox({class:(0,p.W)(null==eS?void 0:eS.listbox,null==e?void 0:e.className)}),...(0,g.d)(eE.listboxProps,e,eO)}},getPopoverProps:ta,getSpinnerProps:tp,getMainWrapperProps:tc,getListboxWrapperProps:ts,getHiddenSelectProps:ti,getInnerWrapperProps:to,getHelperWrapperProps:tu,getDescriptionProps:td,getErrorMessageProps:th,getSelectorIconProps:tl}}({...e,ref:t}),em=a?(0,eo.jsx)("label",{...V(),children:a}):null,eg=(0,d.cloneElement)(w,ef()),ev=(0,d.useMemo)(()=>{let e=C&&P,t=e||S;return b&&t?(0,eo.jsx)("div",{...ed(),children:e?(0,eo.jsx)("div",{...ep(),children:P}):(0,eo.jsx)("div",{...eh(),children:S})}):null},[b,C,P,S,ed,ep,eh]),eb=(0,d.useMemo)(()=>{var e;return(null==(e=s.selectedItems)?void 0:e.length)?D&&"function"==typeof D?D([...s.selectedItems].map(e=>({key:e.key,data:e.value,type:e.type,props:e.props,textValue:e.textValue,rendered:e.rendered,"aria-label":e["aria-label"]}))):s.selectedItems.map(e=>e.textValue).join(", "):E},[s.selectedItems,D,E]),ey=(0,d.useMemo)(()=>y?(0,eo.jsx)(td.c,{...q()}):eg,[y,eg,q]),ex=(0,d.useMemo)(()=>s.isOpen?(0,eo.jsx)(to,{...$(),children:(0,eo.jsx)(th,{...ec(),children:(0,eo.jsx)(e0,{...H()})})}):null,[s.isOpen,$,s,x,ec,H]);return(0,eo.jsxs)("div",{...F(),children:[(0,eo.jsx)(eu,{...el()}),B?em:null,(0,eo.jsxs)("div",{...X(),children:[(0,eo.jsxs)(i,{...K(),children:[B?null:em,(0,eo.jsxs)("div",{...es(),children:[I,(0,eo.jsx)("span",{...W(),children:eb}),z&&s.selectedItems&&(0,eo.jsx)(ea.T,{elementType:"span",children:","}),z]}),ey]}),ev]}),R?ex:(0,eo.jsx)(tp.M,{children:ex})]})})},1955:function(e,t,i){"use strict";i.d(t,{f:function(){return n}});var r=i(217),n=e=>(0,r.jsx)("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:(0,r.jsx)("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})})},197:function(e,t,i){"use strict";i.d(t,{x:function(){return r}});var r=(...e)=>{let t=" ";for(let i of e)if("string"==typeof i&&i.length>0){t=i;break}return t}},9332:function(e,t,i){"use strict";i.d(t,{O:function(){return a},k:function(){return s}});var r=i(3427),n=i(3123),s=(0,r.tv)({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","border-solid","border-medium","box-border","border-default","rounded-full","group-data-[hover-unselected=true]:bg-default-100",...n.ID],hiddenInput:n.PZ,labelWrapper:"flex flex-col ml-1",control:["z-10","w-2","h-2","opacity-0","scale-0","origin-center","rounded-full","group-data-[selected=true]:opacity-100","group-data-[selected=true]:scale-100"],label:"relative text-foreground select-none",description:"relative text-foreground-400"},variants:{color:{default:{control:"bg-default-500 text-default-foreground",wrapper:"group-data-[selected=true]:border-default-500"},primary:{control:"bg-primary text-primary-foreground",wrapper:"group-data-[selected=true]:border-primary"},secondary:{control:"bg-secondary text-secondary-foreground",wrapper:"group-data-[selected=true]:border-secondary"},success:{control:"bg-success text-success-foreground",wrapper:"group-data-[selected=true]:border-success"},warning:{control:"bg-warning text-warning-foreground",wrapper:"group-data-[selected=true]:border-warning"},danger:{control:"bg-danger text-danger-foreground",wrapper:"group-data-[selected=true]:border-danger"}},size:{sm:{wrapper:"w-4 h-4",control:"w-1.5 h-1.5",labelWrapper:"ml-1",label:"text-small",description:"text-tiny"},md:{wrapper:"w-5 h-5",control:"w-2 h-2",labelWrapper:"ms-2",label:"text-medium",description:"text-small"},lg:{wrapper:"w-6 h-6",control:"w-2.5 h-2.5",labelWrapper:"ms-2",label:"text-large",description:"text-medium"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{control:"bg-danger text-danger-foreground",wrapper:"border-danger group-data-[selected=true]:border-danger",label:"text-danger",description:"text-danger-300"}},disableAnimation:{true:{},false:{wrapper:["group-data-[pressed=true]:scale-95","transition-transform-colors","motion-reduce:transition-none"],control:"transition-transform-opacity motion-reduce:transition-none",label:"transition-colors motion-reduce:transition-none",description:"transition-colors motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,isInvalid:!1}}),a=(0,r.tv)({slots:{base:"relative flex flex-col gap-2",label:"relative text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}})},2889:function(e,t,i){"use strict";i.d(t,{W:function(){return s}});var r=i(9589),n=i(2110);function s(e,t=[]){let i=(0,r.useRef)(e);return(0,n.G)(()=>{i.current=e}),(0,r.useCallback)((...e)=>{var t;return null==(t=i.current)?void 0:t.call(i,...e)},t)}},4957:function(e,t,i){"use strict";i.d(t,{q:function(){return l}});var r=i(6367),n=i(125),s=i(2889),a=i(9589);function l(e={}){let{id:t,defaultOpen:i,isOpen:l,onClose:o,onOpen:u,onChange:d=()=>{}}=e,c=(0,s.W)(u),h=(0,s.W)(o),[p,f]=(0,n.z)(l,i||!1,d),m=(0,a.useId)(),g=t||m,v=void 0!==l,b=(0,a.useCallback)(()=>{v||f(!1),null==h||h()},[v,h]),y=(0,a.useCallback)(()=>{v||f(!0),null==c||c()},[v,c]),x=(0,a.useCallback)(()=>{(p?b:y)()},[p,y,b]);return{isOpen:!!p,onOpen:y,onClose:b,onOpenChange:x,isControlled:v,getButtonProps:(e={})=>({...e,"aria-expanded":p,"aria-controls":g,onClick:(0,r.t)(e.onClick,x)}),getDisclosureProps:(e={})=>({...e,hidden:!p,id:g})}}},3538:function(e,t,i){"use strict";i.d(t,{R:function(){return o}});var r=i(6176),n=i(341),s=i(6814),a=i(9589),l=i(1233);function o(e,t){let{role:i="dialog"}=e,o=(0,r.mp)();o=e["aria-label"]?void 0:o;let u=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){(0,s.e)(t.current);let e=setTimeout(()=>{document.activeElement===t.current&&(u.current=!0,t.current&&(t.current.blur(),(0,s.e)(t.current)),u.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),(0,l.Bq)(),{dialogProps:{...(0,n.z)(e,{labelable:!0}),role:i,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o,onBlur:e=>{u.current&&e.stopPropagation()}},titleProps:{id:o}}}},3361:function(e,t,i){"use strict";i.d(t,{Q:function(){return l}});var r=i(7654),n=i(9589),s=i(1841),a=i(2013);function l(e,t,i){let{validationBehavior:l,focus:o}=e;(0,s.b)(()=>{if("native"===l&&(null==i?void 0:i.current)){var e;let r,n=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";i.current.setCustomValidity(n),i.current.hasAttribute("title")||(i.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=i.current).validity.valid,validationDetails:{badInput:(r=e.validity).badInput,customError:r.customError,patternMismatch:r.patternMismatch,rangeOverflow:r.rangeOverflow,rangeUnderflow:r.rangeUnderflow,stepMismatch:r.stepMismatch,tooLong:r.tooLong,tooShort:r.tooShort,typeMismatch:r.typeMismatch,valueMissing:r.valueMissing,valid:r.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let u=(0,a.i)(()=>{t.resetValidation()}),d=(0,a.i)(e=>{var n,s;t.displayValidation.isInvalid||t.commitValidation();let a=null==i?void 0:null===(n=i.current)||void 0===n?void 0:n.form;!e.defaultPrevented&&i&&a&&function(e){for(let t=0;t{t.commitValidation()});(0,n.useEffect)(()=>{let e=null==i?void 0:i.current;if(!e)return;let t=e.form;return e.addEventListener("invalid",d),e.addEventListener("change",c),null==t||t.addEventListener("reset",u),()=>{e.removeEventListener("invalid",d),e.removeEventListener("change",c),null==t||t.removeEventListener("reset",u)}},[i,d,c,u,l])}},5805:function(e,t,i){"use strict";let r;i.d(t,{q:function(){return p}});var n=i(2314);let s=Symbol.for("react-aria.i18n.locale"),a=Symbol.for("react-aria.i18n.strings");class l{getStringForLocale(e,t){let i=this.getStringsForLocale(t)[e];if(!i)throw Error(`Could not find intl message ${e} in ${t} locale`);return i}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,i="en-US"){if(t[e])return t[e];let r=Intl.Locale?new Intl.Locale(e).language:e.split("-")[0];if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[i]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[s];if(void 0===r){let e=window[a];if(!e)return null;for(let i in r={},e)r[i]=new l({[t]:e[i]},t)}let i=null==r?void 0:r[e];if(!i)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return i}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}}let o=new Map,u=new Map;class d{format(e,t){let i=this.strings.getStringForLocale(e,this.locale);return"function"==typeof i?i(t,this):i}plural(e,t,i="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let n=this.locale+":"+i,s=o.get(n);return s||(s=new Intl.PluralRules(this.locale,{type:i}),o.set(n,s)),"function"==typeof(r=t[s.select(e)]||t.other)?r():r}number(e){let t=u.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),u.set(this.locale,t)),t.format(e)}select(e,t){let i=e[t]||e.other;return"function"==typeof i?i():i}constructor(e,t){this.locale=e,this.strings=t}}var c=i(9589);let h=new WeakMap;function p(e,t){let i,{locale:r}=(0,n.j)(),s=t&&l.getGlobalDictionaryForPackage(t)||((i=h.get(e))||(i=new l(e),h.set(e,i)),i);return(0,c.useMemo)(()=>new d(r,s),[r,s])}},8948:function(e,t,i){"use strict";i.d(t,{U:function(){return a}});var r=i(8057),n=i(6176),s=i(2014);function a(e){let{description:t,errorMessage:i,isInvalid:a,validationState:l}=e,{labelProps:o,fieldProps:u}=(0,r.N)(e),d=(0,n.mp)([!!t,!!i,a,l]),c=(0,n.mp)([!!t,!!i,a,l]);return{labelProps:o,fieldProps:u=(0,s.d)(u,{"aria-describedby":[d,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:d},errorMessageProps:{id:c}}}},8057:function(e,t,i){"use strict";i.d(t,{N:function(){return s}});var r=i(6176),n=i(1156);function s(e){let{id:t,label:i,"aria-labelledby":s,"aria-label":a,labelElementType:l="label"}=e;t=(0,r.Me)(t);let o=(0,r.Me)(),u={};return i?(s=s?`${o} ${s}`:o,u={id:o,htmlFor:"label"===l?t:void 0}):s||a||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:u,fieldProps:(0,n.b)({id:t,"aria-label":a,"aria-labelledby":s})}}},5997:function(e,t,i){"use strict";i.d(t,{U:function(){return o}});var r={};r={"ar-AE":{dismiss:`\u{62A}\u{62C}\u{627}\u{647}\u{644}`},"bg-BG":{dismiss:`\u{41E}\u{442}\u{445}\u{432}\u{44A}\u{440}\u{43B}\u{44F}\u{43D}\u{435}`},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:`Schlie\xdfen`},"el-GR":{dismiss:`\u{391}\u{3C0}\u{3CC}\u{3C1}\u{3C1}\u{3B9}\u{3C8}\u{3B7}`},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:`L\xf5peta`},"fi-FI":{dismiss:`Hylk\xe4\xe4`},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:`\u{5D4}\u{5EA}\u{5E2}\u{5DC}\u{5DD}`},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:`Elutas\xedt\xe1s`},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:`\u{9589}\u{3058}\u{308B}`},"ko-KR":{dismiss:`\u{BB34}\u{C2DC}`},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:`Ner\u{101}d\u{12B}t`},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:`\u{41F}\u{440}\u{43E}\u{43F}\u{443}\u{441}\u{442}\u{438}\u{442}\u{44C}`},"sk-SK":{dismiss:`Zru\u{161}i\u{165}`},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:`\u{421}\u{43A}\u{430}\u{441}\u{443}\u{432}\u{430}\u{442}\u{438}`},"zh-CN":{dismiss:`\u{53D6}\u{6D88}`},"zh-TW":{dismiss:`\u{95DC}\u{9589}`}};var n=i(9589),s=i(1156),a=i(5805),l=i(8228);function o(e){var t;let{onDismiss:i,...o}=e,u=(0,a.q)((t=r)&&t.__esModule?t.default:t,"@react-aria/overlays"),d=(0,s.b)(o,u.format("dismiss"));return n.createElement(l.T,null,n.createElement("button",{...d,tabIndex:-1,onClick:()=>{i&&i()},style:{width:1,height:1}}))}},1233:function(e,t,i){"use strict";i.d(t,{aV:function(){return h},Bq:function(){return p}});var r=i(9589);let n=(0,r.createContext)({});var s=i(9096);function a({children:e}){let t=(0,r.useMemo)(()=>({register:()=>{}}),[]);return r.createElement(s.O.Provider,{value:t},e)}var l=i(7599),o=i(9297),u=i(6717),d=i(1841);let c=r.createContext(null);function h(e){var t;let i=(0,u.Av)(),{portalContainer:s=i?null:document.body,isExiting:d}=e,[h,p]=(0,r.useState)(!1),f=(0,r.useMemo)(()=>({contain:h,setContain:p}),[h,p]),{getContainer:m}=null!==(t=(0,r.useContext)(n))&&void 0!==t?t:{};if(!e.portalContainer&&m&&(s=m()),!s)return null;let g=e.children;return e.disableFocusManagement||(g=r.createElement(l.MT,{restoreFocus:!0,contain:h&&!d},g)),g=r.createElement(c.Provider,{value:f},r.createElement(a,null,g)),o.createPortal(g,s)}function p(){let e=(0,r.useContext)(c),t=null==e?void 0:e.setContain;(0,d.b)(()=>{null==t||t(!0)},[t])}},3677:function(e,t,i){"use strict";i.d(t,{R:function(){return s}});let r=new WeakMap,n=[];function s(e,t=document.body){let i=new Set(e),s=new Set,a=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))i.add(t);let t=e=>{if(i.has(e)||e.parentElement&&s.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of i)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),n=t(e);if(n===NodeFilter.FILTER_ACCEPT&&l(e),n!==NodeFilter.FILTER_REJECT){let e=r.nextNode();for(;null!=e;)l(e),e=r.nextNode()}},l=e=>{var t;let i=null!==(t=r.get(e))&&void 0!==t?t:0;("true"!==e.getAttribute("aria-hidden")||0!==i)&&(0===i&&e.setAttribute("aria-hidden","true"),s.add(e),r.set(e,i+1))};n.length&&n[n.length-1].disconnect(),a(t);let o=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...i,...s].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(i.delete(e),s.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?i.add(e):e instanceof Element&&a(e)}});o.observe(t,{childList:!0,subtree:!0});let u={observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return n.push(u),()=>{for(let e of(o.disconnect(),s)){let t=r.get(e);null!=t&&(1===t?(e.removeAttribute("aria-hidden"),r.delete(e)):r.set(e,t-1))}u===n[n.length-1]?(n.pop(),n.length&&n[n.length-1].observe()):n.splice(n.indexOf(u),1)}}},9440:function(e,t,i){"use strict";let r;i.d(t,{t:function(){return h}});var n=i(1841),s=i(7894),a=i(6367),l=i(9075);function o(e,t){let i=e;for((0,l.a)(i,t)&&(i=i.parentElement);i&&!(0,l.a)(i,t);)i=i.parentElement;return i||document.scrollingElement||document.documentElement}let u="undefined"!=typeof document&&window.visualViewport,d=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),c=0;function h(e={}){let{isDisabled:t}=e;(0,n.b)(()=>{if(!t){let e,t,i,n,l;return 1==++c&&(r=(0,s.gn)()?(i=null,n=()=>{if(i)return;let e=window.pageXOffset,t=window.pageYOffset;i=(0,a.t)(f(window,"scroll",()=>{window.scrollTo(0,0)}),p(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),p(document.documentElement,"overflow","hidden"),p(document.body,"marginTop",`-${t}px`),()=>{window.scrollTo(e,t)}),window.scrollTo(0,0)},l=(0,a.t)(f(document,"touchstart",i=>{((e=o(i.target,!0))!==document.documentElement||e!==document.body)&&e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=p(e,"overscrollBehavior","contain"))},{passive:!1,capture:!0}),f(document,"touchmove",t=>{if(!e||e===document.documentElement||e===document.body){t.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()},{passive:!1,capture:!0}),f(document,"touchend",e=>{let i=e.target;g(i)&&i!==document.activeElement&&(e.preventDefault(),n(),i.style.transform="translateY(-2000px)",i.focus(),requestAnimationFrame(()=>{i.style.transform=""})),t&&t()},{passive:!1,capture:!0}),f(document,"focus",e=>{let t=e.target;g(t)&&(n(),t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",u&&(u.height{m(t)}):u.addEventListener("resize",()=>m(t),{once:!0}))}))},!0)),()=>{null==t||t(),null==i||i(),l()}):(0,a.t)(p(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),p(document.documentElement,"overflow","hidden"))),()=>{0==--c&&r()}}},[t])}function p(e,t,i){let r=e.style[t];return e.style[t]=i,()=>{e.style[t]=r}}function f(e,t,i,r){return e.addEventListener(t,i,r),()=>{e.removeEventListener(t,i,r)}}function m(e){let t=document.scrollingElement||document.documentElement,i=e;for(;i&&i!==t;){let e=o(i);if(e!==document.documentElement&&e!==document.body&&e!==i){let t=e.getBoundingClientRect().top,r=i.getBoundingClientRect().top;r>t+i.clientHeight&&(e.scrollTop+=r-t)}i=e.parentElement}}function g(e){return e instanceof HTMLInputElement&&!d.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}},7877:function(e,t,i){"use strict";i.d(t,{H:function(){return r}});let r=new WeakMap},9075:function(e,t,i){"use strict";function r(e,t){if(!e)return!1;let i=window.getComputedStyle(e),r=/(auto|scroll)/.test(i.overflow+i.overflowX+i.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}i.d(t,{a:function(){return r}})},3960:function(e,t,i){"use strict";function r(...e){return 1===e.length&&e[0]?e[0]:t=>{for(let i of e)"function"==typeof i?i(t):null!=i&&(i.current=t)}}i.d(t,{l:function(){return r}})},507:function(e,t,i){"use strict";i.d(t,{y:function(){return s}});var r=i(2013),n=i(9589);function s(e,t,i){let s=(0,n.useRef)(t),a=(0,r.i)(()=>{i&&i(s.current)});(0,n.useEffect)(()=>{var t;let i=null==e?void 0:null===(t=e.current)||void 0===t?void 0:t.form;return null==i||i.addEventListener("reset",a),()=>{null==i||i.removeEventListener("reset",a)}},[e,a])}},1156:function(e,t,i){"use strict";i.d(t,{b:function(){return n}});var r=i(6176);function n(e,t){let{id:i,"aria-label":n,"aria-labelledby":s}=e;return i=(0,r.Me)(i),s&&n?s=[...new Set([i,...s.trim().split(/\s+/)])].join(" "):s&&(s=s.trim().split(/\s+/).join(" ")),n||s||!t||(n=t),{id:i,"aria-label":n,"aria-labelledby":s}}},8228:function(e,t,i){"use strict";i.d(t,{S:function(){return l},T:function(){return o}});var r=i(2014),n=i(9589),s=i(4915);let a={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function l(e={}){let{style:t,isFocusable:i}=e,[r,l]=(0,n.useState)(!1),{focusWithinProps:o}=(0,s.L)({isDisabled:!i,onFocusWithinChange:e=>l(e)}),u=(0,n.useMemo)(()=>r?t:t?{...a,...t}:a,[r]);return{visuallyHiddenProps:{...o,style:u}}}function o(e){let{children:t,elementType:i="div",isFocusable:s,style:a,...o}=e,{visuallyHiddenProps:u}=l(e);return n.createElement(i,(0,r.d)(o,u),t)}},9661:function(e,t,i){"use strict";i.d(t,{PS:function(){return a},Q3:function(){return u},r7:function(){return l},tL:function(){return o}});var r=i(9589);let n={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},s={...n,customError:!0,valid:!1},a={isInvalid:!1,validationDetails:n,validationErrors:[]},l=(0,r.createContext)({}),o="__formValidationState"+Date.now();function u(e){if(e[o]){let{realtimeValidation:t,displayValidation:i,updateValidation:r,resetValidation:n,commitValidation:s}=e[o];return{realtimeValidation:t,displayValidation:i,updateValidation:r,resetValidation:n,commitValidation:s}}return function(e){let{isInvalid:t,validationState:i,name:n,value:o,builtinValidation:u,validate:p,validationBehavior:f="aria"}=e;i&&(t||(t="invalid"===i));let m=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:s}:null,g=(0,r.useMemo)(()=>p&&null!=o?c(function(e,t){if("function"==typeof e){let i=e(t);if(i&&"boolean"!=typeof i)return d(i)}return[]}(p,o)):null,[p,o]);(null==u?void 0:u.validationDetails.valid)&&(u=void 0);let v=(0,r.useContext)(l),b=(0,r.useMemo)(()=>n?Array.isArray(n)?n.flatMap(e=>d(v[e])):d(v[n]):[],[v,n]),[y,x]=(0,r.useState)(v),[w,S]=(0,r.useState)(!1);v!==y&&(x(v),S(!1));let P=(0,r.useMemo)(()=>c(w?[]:b),[w,b]),C=(0,r.useRef)(a),[I,z]=(0,r.useState)(a),E=(0,r.useRef)(a),[D,T]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!D)return;T(!1);let e=g||u||C.current;h(e,E.current)||(E.current=e,z(e))}),{realtimeValidation:m||P||g||u||a,displayValidation:"native"===f?m||P||I:m||P||g||u||I,updateValidation(e){"aria"!==f||h(I,e)?C.current=e:z(e)},resetValidation(){h(a,E.current)||(E.current=a,z(a)),"native"===f&&T(!1),S(!0)},commitValidation(){"native"===f&&T(!0),S(!0)}}}(e)}function d(e){return e?Array.isArray(e)?e:[e]:[]}function c(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:s}:null}function h(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,i)=>e===t.validationErrors[i])&&Object.entries(e.validationDetails).every(([e,i])=>t.validationDetails[e]===i)}},7960:function(e,t,i){"use strict";let r;i.d(t,{oL:function(){return eC}});var n,s,a,l,o=i(9589);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=n?r:n)),r}),C={exports:{}};!function(e,t){var i="__lodash_hash_undefined__",r="[object Arguments]",n="[object Array]",s="[object Boolean]",a="[object Date]",l="[object Error]",o="[object Function]",u="[object Map]",c="[object Number]",h="[object Object]",p="[object Promise]",f="[object RegExp]",m="[object Set]",g="[object String]",v="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",x=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[r]=S[n]=S[b]=S[s]=S[y]=S[a]=S[l]=S[o]=S[u]=S[c]=S[h]=S[f]=S[m]=S[g]=S[v]=!1;var P="object"==typeof d&&d&&d.Object===Object&&d,C="object"==typeof self&&self&&self.Object===Object&&self,I=P||C||Function("return this")(),z=t&&!t.nodeType&&t,E=z&&e&&!e.nodeType&&e,D=E&&E.exports===z,T=D&&P.process,k=function(){try{return T&&T.binding&&T.binding("util")}catch(e){}}(),M=k&&k.isTypedArray;function B(e){var t=-1,i=Array(e.size);return e.forEach(function(e,r){i[++t]=[r,e]}),i}function R(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}var j,_,A,L=Array.prototype,O=Function.prototype,N=Object.prototype,F=I["__core-js_shared__"],V=O.toString,K=N.hasOwnProperty,W=(j=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"",H=N.toString,U=RegExp("^"+V.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=D?I.Buffer:void 0,G=I.Symbol,q=I.Uint8Array,X=N.propertyIsEnumerable,J=L.splice,Y=G?G.toStringTag:void 0,Z=Object.getOwnPropertySymbols,Q=$?$.isBuffer:void 0,ee=(_=Object.keys,A=Object,function(e){return _(A(e))}),et=eI(I,"DataView"),ei=eI(I,"Map"),er=eI(I,"Promise"),en=eI(I,"Set"),es=eI(I,"WeakMap"),ea=eI(Object,"create"),el=eD(et),eo=eD(ei),eu=eD(er),ed=eD(en),ec=eD(es),eh=G?G.prototype:void 0,ep=eh?eh.valueOf:void 0;function ef(e){var t=-1,i=null==e?0:e.length;for(this.clear();++tl))return!1;var u=s.get(e);if(u&&s.get(t))return u==t;var d=-1,c=!0,h=2&i?new ev:void 0;for(s.set(e,t),s.set(t,e);++d-1&&d%1==0&&d-1},em.prototype.set=function(e,t){var i=this.__data__,r=ey(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this},eg.prototype.clear=function(){this.size=0,this.__data__={hash:new ef,map:new(ei||em),string:new ef}},eg.prototype.delete=function(e){var t=eC(this,e).delete(e);return this.size-=t?1:0,t},eg.prototype.get=function(e){return eC(this,e).get(e)},eg.prototype.has=function(e){return eC(this,e).has(e)},eg.prototype.set=function(e,t){var i=eC(this,e),r=i.size;return i.set(e,t),this.size+=i.size==r?0:1,this},ev.prototype.add=ev.prototype.push=function(e){return this.__data__.set(e,i),this},ev.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.clear=function(){this.__data__=new em,this.size=0},eb.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},eb.prototype.get=function(e){return this.__data__.get(e)},eb.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.set=function(e,t){var i=this.__data__;if(i instanceof em){var r=i.__data__;if(!ei||r.length<199)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new eg(r)}return i.set(e,t),this.size=i.size,this};var ez=Z?function(e){return null==e?[]:function(e,t){for(var i=-1,r=null==e?0:e.length,n=0,s=[];++i-1&&e%1==0&&e<=9007199254740991}function e_(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eA(e){return null!=e&&"object"==typeof e}var eL=M?function(e){return M(e)}:function(e){return eA(e)&&ej(e.length)&&!!S[ex(e)]};e.exports=function(e,t){return function e(t,i,o,d,p){return t===i||(null!=t&&null!=i&&(eA(t)||eA(i))?function(e,t,i,o,d,p){var v=eM(e),x=eM(t),w=v?n:eE(e),S=x?n:eE(t),P=(w=w==r?h:w)==h,C=(S=S==r?h:S)==h,I=w==S;if(I&&eB(e)){if(!eB(t))return!1;v=!0,P=!1}if(I&&!P)return p||(p=new eb),v||eL(e)?eS(e,t,i,o,d,p):function(e,t,i,r,n,o,d){switch(i){case y:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!o(new q(e),new q(t)));case s:case a:case c:return eT(+e,+t);case l:return e.name==t.name&&e.message==t.message;case f:case g:return e==t+"";case u:var h=B;case m:var p=1&r;if(h||(h=R),e.size!=t.size&&!p)break;var v=d.get(e);if(v)return v==t;r|=2,d.set(e,t);var x=eS(h(e),h(t),r,n,o,d);return d.delete(e),x;case"[object Symbol]":if(ep)return ep.call(e)==ep.call(t)}return!1}(e,t,w,i,o,d,p);if(!(1&i)){var z=P&&K.call(e,"__wrapped__"),E=C&&K.call(t,"__wrapped__");if(z||E){var D=z?e.value():e,T=E?t.value():t;return p||(p=new eb),d(D,T,i,o,p)}}return!!I&&(p||(p=new eb),function(e,t,i,r,n,s){var a=1&i,l=eP(e),o=l.length;if(o!=eP(t).length&&!a)return!1;for(var u=o;u--;){var d=l[u];if(!(a?d in t:K.call(t,d)))return!1}var c=s.get(e);if(c&&s.get(t))return c==t;var h=!0;s.set(e,t),s.set(t,e);for(var p=a;++u=0,T=(D.indexOf("Macintosh")>=0||D.indexOf("iPad")>=0||D.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0);let M=T,B=k,R="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect;class j{constructor(){this._size=void 0}getSize(){return this._size}setSize(e){this._size=e}}function _(e,t){let i=e.length,r=i-t.length;return r>=0&&e.slice(r,i)===t}var A={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,i="~";function r(){}function n(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function s(e,t,r,s,a){if("function"!=typeof r)throw TypeError("The listener must be a function");var l=new n(r,s||e,a),o=i?i+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],l]:e._events[o].push(l):(e._events[o]=l,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(i=!1)),l.prototype.eventNames=function(){var e,r,n=[];if(0===this._eventsCount)return n;for(r in e=this._events)t.call(e,r)&&n.push(i?r.slice(1):r);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},l.prototype.listeners=function(e){var t=i?i+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,s=r.length,a=Array(s);n-1&&(e.splice(i,1),e.unshift(t))}function N(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function F(e,t,i=1){let r=Math.max(0,Math.ceil((t-e)/i)),n=Array(r),s=-1;for(;++s=t||i<0||c&&e-u>=s}function m(){var e,i=Q();if(f(i))return g(i);l=setTimeout(m,(e=t-(i-o),c?Z(e,s-(i-u)):e))}function g(e){return l=void 0,h&&r?p(e):(r=n=void 0,a)}function v(){var e,i=Q(),s=f(i);if(r=arguments,n=this,o=i,s){if(void 0===l)return u=e=o,l=setTimeout(m,t),d?p(e):a;if(c)return l=setTimeout(m,t),p(o)}return void 0===l&&(l=setTimeout(m,t)),a}return t=et(t)||0,ee(i)&&(d=!!i.leading,s=(c="maxWait"in i)?Y(et(i.maxWait)||0,t):s,h="trailing"in i?!!i.trailing:h),v.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=o=n=l=void 0},v.flush=function(){return void 0===l?a:g(Q())},v}),er="sash-module_vertical__pB-rs",en="sash-module_horizontal__kFbiw",es="sash-module_hover__80W6I",ea="sash-module_active__bJspD";let el=((n={}).Vertical="VERTICAL",n.Horizontal="HORIZONTAL",n),eo=((s={}).Disabled="DISABLED",s.Minimum="MINIMUM",s.Maximum="MAXIMUM",s.Enabled="ENABLED",s),eu=M?20:8,ed=new L;class ec extends L{get state(){return this._state}set state(e){this._state!==e&&(this.el.classList.toggle("sash-module_disabled__Hm-wx",e===eo.Disabled),this.el.classList.toggle("sash-disabled",e===eo.Disabled),this.el.classList.toggle("sash-module_minimum__-UKxp",e===eo.Minimum),this.el.classList.toggle("sash-minimum",e===eo.Minimum),this.el.classList.toggle("sash-module_maximum__TCWxD",e===eo.Maximum),this.el.classList.toggle("sash-maximum",e===eo.Maximum),this._state=e,this.emit("enablementChange",e))}constructor(e,t,i){var r;super(),this.el=void 0,this.layoutProvider=void 0,this.orientation=void 0,this.size=void 0,this.hoverDelay=300,this.hoverDelayer=ei(e=>e.classList.add("sash-hover",es),this.hoverDelay),this._state=eo.Enabled,this.onPointerStart=e=>{let t=e.pageX,i=e.pageY;this.el.classList.add("sash-active",ea),this.emit("start",{startX:t,currentX:t,startY:i,currentY:i}),this.el.setPointerCapture(e.pointerId);let r=e=>{e.preventDefault();let r={startX:t,currentX:e.pageX,startY:i,currentY:e.pageY};this.emit("change",r)},n=e=>{e.preventDefault(),this.el.classList.remove("sash-active",ea),this.hoverDelayer.cancel(),this.emit("end"),this.el.releasePointerCapture(e.pointerId),window.removeEventListener("pointermove",r),window.removeEventListener("pointerup",n)};window.addEventListener("pointermove",r),window.addEventListener("pointerup",n)},this.onPointerDoublePress=()=>{this.emit("reset")},this.onMouseEnter=()=>{this.el.classList.contains(ea)?(this.hoverDelayer.cancel(),this.el.classList.add("sash-hover",es)):this.hoverDelayer(this.el)},this.onMouseLeave=()=>{this.hoverDelayer.cancel(),this.el.classList.remove("sash-hover",es)},this.el=document.createElement("div"),this.el.classList.add("sash","sash-module_sash__K-9lB"),this.el.dataset.testid="sash",e.append(this.el),B&&this.el.classList.add("sash-mac","sash-module_mac__Jf6OJ"),this.el.addEventListener("pointerdown",this.onPointerStart),this.el.addEventListener("dblclick",this.onPointerDoublePress),this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("mouseleave",this.onMouseLeave),"number"==typeof i.size?(this.size=i.size,i.orientation===el.Vertical?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=eu,ed.on("onDidChangeGlobalSize",e=>{this.size=e,this.layout()})),this.layoutProvider=t,this.orientation=null!=(r=i.orientation)?r:el.Vertical,this.orientation===el.Horizontal?(this.el.classList.add("sash-horizontal",en),this.el.classList.remove("sash-vertical",er)):(this.el.classList.remove("sash-horizontal",en),this.el.classList.add("sash-vertical",er)),this.layout()}layout(){if(this.orientation===el.Vertical){let e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{let e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}dispose(){this.el.removeEventListener("pointerdown",this.onPointerStart),this.el.removeEventListener("dblclick",this.onPointerDoublePress),this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("mouseleave",()=>this.onMouseLeave),this.el.remove()}}(l=r||(r={})).Distribute={type:"distribute"},l.Split=function(e){return{type:"split",index:e}},l.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}};let eh=((a={}).Normal="NORMAL",a.Low="LOW",a.High="HIGH",a);class ep{constructor(e,t,i){this.container=void 0,this.view=void 0,this._size=void 0,this._cachedVisibleSize=void 0,this.container=e,this.view=t,this.container.classList.add("split-view-view",E),this.container.dataset.testid="split-view-view","number"==typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("split-view-view-visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get priority(){return this.view.priority}get snap(){return!!this.view.snap}get cachedVisibleSize(){return this._cachedVisibleSize}get visible(){return void 0===this._cachedVisibleSize}setVisible(e,t){e!==this.visible&&(e?(this.size=P(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),this.container.classList.toggle("split-view-view-visible",e),this.view.setVisible&&this.view.setVisible(e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e){this.layoutContainer(e),this.view.layout(this.size,e)}}class ef extends ep{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}class em extends ep{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class eg extends L{get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,t={},i,r,n){var s,a;if(super(),this.onDidChange=void 0,this.onDidDragStart=void 0,this.onDidDragEnd=void 0,this.orientation=void 0,this.sashContainer=void 0,this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.sashDragState=void 0,this.proportionalLayout=void 0,this.getSashOrthogonalSize=void 0,this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onSashEnd=e=>{for(let t of(this.emit("sashchange",e),this.saveProportions(),this.viewItems))t.enabled=!0},this.orientation=null!=(s=t.orientation)?s:el.Vertical,this.proportionalLayout=null==(a=t.proportionalLayout)||a,this.getSashOrthogonalSize=t.getSashOrthogonalSize,i&&(this.onDidChange=i),r&&(this.onDidDragStart=r),n&&(this.onDidDragEnd=n),this.sashContainer=document.createElement("div"),this.sashContainer.classList.add("sash-container","allotment-module_sashContainer__fzwJF"),e.prepend(this.sashContainer),t.descriptor){for(let[e,i]of(this.size=t.descriptor.size,t.descriptor.views.entries())){let t=i.size,r=i.container,n=i.view;this.addView(r,n,t,e,!0)}this.contentSize=this.viewItems.reduce((e,t)=>e+t.size,0),this.saveProportions()}}addView(e,t,i,r=this.viewItems.length,n){let s;s="number"==typeof i?i:"split"===i.type?this.getViewSize(i.index)/2:"invisible"===i.type?{cachedVisibleSize:i.cachedVisibleSize}:t.minimumSize;let a=this.orientation===el.Vertical?new em(e,t,s):new ef(e,t,s);if(this.viewItems.splice(r,0,a),this.viewItems.length>1){let e=this.orientation===el.Vertical?new ec(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{orientation:el.Horizontal}):new ec(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{orientation:el.Vertical}),t=this.orientation===el.Vertical?t=>({sash:e,start:t.startY,current:t.currentY}):t=>({sash:e,start:t.startX,current:t.currentX});e.on("start",e=>{var i;this.emit("sashDragStart"),this.onSashStart(t(e));let r=this.viewItems.map(e=>e.size);null==(i=this.onDidDragStart)||i.call(this,r)}),e.on("change",e=>this.onSashChange(t(e))),e.on("end",()=>{var t;this.emit("sashDragEnd"),this.onSashEnd(this.sashItems.findIndex(t=>t.sash===e));let i=this.viewItems.map(e=>e.size);null==(t=this.onDidDragEnd)||t.call(this,i)}),e.on("reset",()=>{let t=this.sashItems.findIndex(t=>t.sash===e),i=F(t,-1,-1),r=F(t+1,this.viewItems.length),n=this.findFirstSnapIndex(i),s=this.findFirstSnapIndex(r);("number"!=typeof n||this.viewItems[n].visible)&&("number"!=typeof s||this.viewItems[s].visible)&&this.emit("sashreset",t)}),this.sashItems.splice(r-1,0,{sash:e})}n||this.relayout(),n||"number"==typeof i||"distribute"!==i.type||this.distributeViewSizes()}removeView(e,t){if(e<0||e>=this.viewItems.length)throw Error("Index out of bounds");let i=this.viewItems.splice(e,1)[0].view;return this.viewItems.length>=1&&this.sashItems.splice(Math.max(e-1,0),1)[0].sash.dispose(),this.relayout(),t&&"distribute"===t.type&&this.distributeViewSizes(),i}moveView(e,t,i){let n=this.getViewCachedVisibleSize(t),s=void 0===n?this.getViewSize(t):r.Invisible(n),a=this.removeView(t);this.addView(e,a,s,i)}getViewCachedVisibleSize(e){if(e<0||e>=this.viewItems.length)throw Error("Index out of bounds");return this.viewItems[e].cachedVisibleSize}layout(e=this.size){let t=Math.max(this.size,this.contentSize);if(this.size=e,this.proportions)for(let t=0;tthis.viewItems[e].priority===eh.Low),n=i.filter(e=>this.viewItems[e].priority===eh.High);this.resize(this.viewItems.length-1,e-t,void 0,r,n)}this.distributeEmptySpace(),this.layoutViews()}resizeView(e,t){if(e<0||e>=this.viewItems.length)return;let i=F(0,this.viewItems.length).filter(t=>t!==e),r=[...i.filter(e=>this.viewItems[e].priority===eh.Low),e],n=i.filter(e=>this.viewItems[e].priority===eh.High),s=this.viewItems[e];t=P(t=Math.round(t),s.minimumSize,Math.min(s.maximumSize,this.size)),s.size=t,this.relayout(r,n)}resizeViews(e){for(let t=0;te+t.size,0),this.saveProportions(),this.layout(this.size)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}isViewVisible(e){if(e<0||e>=this.viewItems.length)throw Error("Index out of bounds");return this.viewItems[e].visible}setViewVisible(e,t){if(e<0||e>=this.viewItems.length)throw Error("Index out of bounds");this.viewItems[e].setVisible(t),this.distributeEmptySpace(e),this.layoutViews(),this.saveProportions()}distributeViewSizes(){let e=[],t=0;for(let i of this.viewItems)i.maximumSize-i.minimumSize>0&&(e.push(i),t+=i.size);let i=Math.floor(t/e.length);for(let t of e)t.size=P(i,t.minimumSize,t.maximumSize);let r=F(0,this.viewItems.length),n=r.filter(e=>this.viewItems[e].priority===eh.Low),s=r.filter(e=>this.viewItems[e].priority===eh.High);this.relayout(n,s)}dispose(){this.sashItems.forEach(e=>e.sash.dispose()),this.sashItems=[],this.sashContainer.remove()}relayout(e,t){let i=this.viewItems.reduce((e,t)=>e+t.size,0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}onSashStart({sash:e,start:t}){let i=this.sashItems.findIndex(t=>t.sash===e);(e=>{let t=this.viewItems.map(e=>e.size),r,n,s=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,l=F(i,-1,-1),o=F(i+1,this.viewItems.length),u=l.reduce((e,i)=>e+(this.viewItems[i].minimumSize-t[i]),0),d=l.reduce((e,i)=>e+(this.viewItems[i].viewMaximumSize-t[i]),0),c=0===o.length?Number.POSITIVE_INFINITY:o.reduce((e,i)=>e+(t[i]-this.viewItems[i].minimumSize),0);s=Math.max(u,0===o.length?Number.NEGATIVE_INFINITY:o.reduce((e,i)=>e+(t[i]-this.viewItems[i].viewMaximumSize),0)),a=Math.min(c,d);let h=this.findFirstSnapIndex(l),p=this.findFirstSnapIndex(o);if("number"==typeof h){let e=this.viewItems[h],t=Math.floor(e.viewMinimumSize/2);r={index:h,limitDelta:e.visible?s-t:s+t,size:e.size}}if("number"==typeof p){let e=this.viewItems[p],t=Math.floor(e.viewMinimumSize/2);n={index:p,limitDelta:e.visible?a+t:a-t,size:e.size}}this.sashDragState={start:e,current:e,index:i,sizes:t,minDelta:s,maxDelta:a,snapBefore:r,snapAfter:n}})(t)}onSashChange({current:e}){let{index:t,start:i,sizes:r,minDelta:n,maxDelta:s,snapBefore:a,snapAfter:l}=this.sashDragState;this.sashDragState.current=e,this.resize(t,e-i,r,void 0,void 0,n,s,a,l),this.distributeEmptySpace(),this.layoutViews()}getSashPosition(e){let t=0;for(let i=0;ie.size),r,n,s=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,l,o){if(e<0||e>=this.viewItems.length)return 0;let u=F(e,-1,-1),d=F(e+1,this.viewItems.length);if(n)for(let e of n)O(u,e),O(d,e);if(r)for(let e of r)N(u,e),N(d,e);let c=u.map(e=>this.viewItems[e]),h=u.map(e=>i[e]),p=d.map(e=>this.viewItems[e]),f=d.map(e=>i[e]),m=u.reduce((e,t)=>e+(this.viewItems[t].minimumSize-i[t]),0),g=u.reduce((e,t)=>e+(this.viewItems[t].maximumSize-i[t]),0),v=0===d.length?Number.POSITIVE_INFINITY:d.reduce((e,t)=>e+(i[t]-this.viewItems[t].minimumSize),0),b=Math.max(m,0===d.length?Number.NEGATIVE_INFINITY:d.reduce((e,t)=>e+(i[t]-this.viewItems[t].maximumSize),0),s),y=Math.min(v,g,a),x=!1;if(l){let e=this.viewItems[l.index],i=t>=l.limitDelta;x=i!==e.visible,e.setVisible(i,l.size)}if(!x&&o){let e=this.viewItems[o.index],i=te+t.size,0),i=this.size-t,r=F(this.viewItems.length-1,-1,-1);"number"==typeof e&&N(r,e);for(let e=0;0!==i&&ee+t.size,0);let t=0;for(let e of this.viewItems)e.layout(t),t+=e.size;null!=(e=this.onDidChange)&&e.call(this,this.viewItems.map(e=>e.size)),this.sashItems.forEach(e=>e.sash.layout()),this.updateSashEnablement()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(e=>e.size/this.contentSize))}updateSashEnablement(){let e=!1,t=this.viewItems.map(t=>e=t.size-t.minimumSize>0||e);e=!1;let i=this.viewItems.map(t=>e=t.maximumSize-t.size>0||e),r=[...this.viewItems].reverse();e=!1;let n=r.map(t=>e=t.size-t.minimumSize>0||e).reverse();e=!1;let s=r.map(t=>e=t.maximumSize-t.size>0||e).reverse(),a=0;for(let e=0;e0||this.startSnappingEnabled)?r.state=eo.Minimum:d&&t[e]&&(a0)return;if(!e.visible&&e.snap)return t}}}class ev{constructor(e){this.size=void 0,this.size=e}getPreferredSize(){return this.size}}class eb{constructor(e,t){this.proportion=void 0,this.layoutService=void 0,this.proportion=e,this.layoutService=t}getPreferredSize(){return this.proportion*this.layoutService.getSize()}}class ey{getPreferredSize(){}}class ex{get preferredSize(){return this.layoutStrategy.getPreferredSize()}set preferredSize(e){if("number"==typeof e)this.layoutStrategy=new ev(e);else if("string"==typeof e){let t=e.trim();if(_(t,"%")){let e=Number(t.slice(0,-1))/100;this.layoutStrategy=new eb(e,this.layoutService)}else if(_(t,"px")){let e=Number(t.slice(0,-2))/100;this.layoutStrategy=new ev(e)}else if("number"==typeof Number.parseFloat(t)){let e=Number.parseFloat(t);this.layoutStrategy=new ev(e)}else this.layoutStrategy=new ey}else this.layoutStrategy=new ey}constructor(e,t){var i;if(this.minimumSize=0,this.maximumSize=Number.POSITIVE_INFINITY,this.element=void 0,this.priority=void 0,this.snap=void 0,this.layoutService=void 0,this.layoutStrategy=void 0,this.layoutService=e,this.element=t.element,this.minimumSize="number"==typeof t.minimumSize?t.minimumSize:30,this.maximumSize="number"==typeof t.maximumSize?t.maximumSize:Number.POSITIVE_INFINITY,"number"==typeof t.preferredSize)this.layoutStrategy=new ev(t.preferredSize);else if("string"==typeof t.preferredSize){let e=t.preferredSize.trim();if(_(e,"%")){let t=Number(e.slice(0,-1))/100;this.layoutStrategy=new eb(t,this.layoutService)}else if(_(e,"px")){let t=Number(e.slice(0,-2));this.layoutStrategy=new ev(t)}else if("number"==typeof Number.parseFloat(e)){let t=Number.parseFloat(e);this.layoutStrategy=new ev(t)}else this.layoutStrategy=new ey}else this.layoutStrategy=new ey;this.priority=null!=(i=t.priority)?i:eh.Normal,this.snap="boolean"==typeof t.snap&&t.snap}layout(e){}}function ew(e){return void 0!==e.minSize||void 0!==e.maxSize||void 0!==e.preferredSize||void 0!==e.priority||void 0!==e.visible}let eS=(0,o.forwardRef)(({className:e,children:t},i)=>o.createElement("div",{ref:i,className:p("split-view-view",E,e)},t));eS.displayName="Allotment.Pane";let eP=(0,o.forwardRef)(({children:e,className:t,id:i,maxSize:n=1/0,minSize:s=30,proportionalLayout:a=!0,separator:l=!0,sizes:d,defaultSizes:c=d,snap:h=!1,vertical:f=!1,onChange:m,onReset:g,onVisibleChange:v,onDragStart:b,onDragEnd:y},x)=>{var w,S,C,E,D,T,k,B,_,A,L,O,N,F,V,K,W;let H=(0,o.useRef)(null),U=(0,o.useRef)([]),$=(0,o.useRef)(new Map),G=(0,o.useRef)(null),q=(0,o.useRef)(new Map),X=(0,o.useRef)(new j),J=(0,o.useRef)([]),[Y,Z]=(0,o.useState)(!1),Q=(0,o.useMemo)(()=>o.Children.toArray(e).filter(o.isValidElement),[e]),ee=(0,o.useCallback)(e=>{var t,i;let r=null==(t=J.current)?void 0:t[e];return"number"==typeof(null==r?void 0:r.preferredSize)&&(null!=(i=G.current)&&i.resizeView(e,Math.round(r.preferredSize)),!0)},[]);return(0,o.useImperativeHandle)(x,()=>({reset:()=>{if(g)g();else{var e;null==(e=G.current)||e.distributeViewSizes();for(let e=0;e{var t;null==(t=G.current)||t.resizeViews(e)}})),R(()=>{let e=!0;c&&q.current.size!==c.length&&(e=!1,console.warn(`Expected ${c.length} children based on defaultSizes but found ${q.current.size}`)),e&&c&&(U.current=Q.map(e=>e.key));let t=u({orientation:f?el.Vertical:el.Horizontal,proportionalLayout:a},e&&c&&{descriptor:{size:c.reduce((e,t)=>e+t,0),views:c.map((e,t)=>{var i,r,a,l;let o=$.current.get(U.current[t]),d=new ex(X.current,u({element:document.createElement("div"),minimumSize:null!=(i=null==o?void 0:o.minSize)?i:s,maximumSize:null!=(r=null==o?void 0:o.maxSize)?r:n,priority:null!=(a=null==o?void 0:o.priority)?a:eh.Normal},(null==o?void 0:o.preferredSize)&&{preferredSize:null==o?void 0:o.preferredSize},{snap:null!=(l=null==o?void 0:o.snap)?l:h}));return J.current.push(d),{container:[...q.current.values()][t],size:e,view:d}})}});G.current=new eg(H.current,t,m,b,y),G.current.on("sashDragStart",()=>{var e;null==(e=H.current)||e.classList.add("split-view-sash-dragging")}),G.current.on("sashDragEnd",()=>{var e;null==(e=H.current)||e.classList.remove("split-view-sash-dragging")}),G.current.on("sashchange",e=>{if(v&&G.current){let e=Q.map(e=>e.key);for(let t=0;t{if(g)g();else{var t;if(ee(e)||ee(e+1))return;null==(t=G.current)||t.distributeViewSizes()}});let i=G.current;return()=>{i.dispose()}},[]),R(()=>{if(Y){var e,t,i,a,l,o,d,c,p,f,m;let g=Q.map(e=>e.key),v=[...U.current],b=g.filter(e=>!U.current.includes(e)),y=g.filter(e=>U.current.includes(e)),x=U.current.map(e=>!g.includes(e));for(let t=x.length-1;t>=0;t--)x[t]&&(null!=(e=G.current)&&e.removeView(t),v.splice(t,1),J.current.splice(t,1));for(let e of b){let d=$.current.get(e),c=new ex(X.current,u({element:document.createElement("div"),minimumSize:null!=(t=null==d?void 0:d.minSize)?t:s,maximumSize:null!=(i=null==d?void 0:d.maxSize)?i:n,priority:null!=(a=null==d?void 0:d.priority)?a:eh.Normal},(null==d?void 0:d.preferredSize)&&{preferredSize:null==d?void 0:d.preferredSize},{snap:null!=(l=null==d?void 0:d.snap)?l:h}));null!=(o=G.current)&&o.addView(q.current.get(e),c,r.Distribute,g.findIndex(t=>t===e)),v.splice(g.findIndex(t=>t===e),0,e),J.current.splice(g.findIndex(t=>t===e),0,c)}for(;!I(g,v);)for(let[e,t]of g.entries()){let i=v.findIndex(e=>e===t);if(i!==e){null==(d=G.current)||d.moveView(q.current.get(t),i,e);let r=v[i];v.splice(i,1),v.splice(e,0,r);break}}for(let e of b){let t=g.findIndex(t=>t===e),i=J.current[t].preferredSize;void 0!==i&&(null==(c=G.current)||c.resizeView(t,i))}for(let e of[...b,...y]){let t=$.current.get(e),i=g.findIndex(t=>t===e);t&&ew(t)&&void 0!==t.visible&&(null==(p=G.current)?void 0:p.isViewVisible(i))!==t.visible&&(null==(f=G.current)||f.setViewVisible(i,t.visible))}for(let e of y){let t=$.current.get(e),i=g.findIndex(t=>t===e);if(t&&ew(t)){void 0!==t.preferredSize&&J.current[i].preferredSize!==t.preferredSize&&(J.current[i].preferredSize=t.preferredSize);let e=!1;void 0!==t.minSize&&J.current[i].minimumSize!==t.minSize&&(J.current[i].minimumSize=t.minSize,e=!0),void 0!==t.maxSize&&J.current[i].maximumSize!==t.maxSize&&(J.current[i].maximumSize=t.maxSize,e=!0),e&&(null==(m=G.current)||m.layout())}}(b.length>0||x.length>0)&&(U.current=g)}},[Q,Y,n,s,h]),(0,o.useEffect)(()=>{G.current&&(G.current.onDidChange=m)},[m]),(0,o.useEffect)(()=>{G.current&&(G.current.onDidDragStart=b)},[b]),(0,o.useEffect)(()=>{G.current&&(G.current.onDidDragEnd=y)},[y]),S=(w={ref:H,onResize:({width:e,height:t})=>{var i;e&&t&&(null!=(i=G.current)&&i.layout(f?t:e),X.current.setSize(f?t:e),Z(!0))}}).onResize,(C=(0,o.useRef)(void 0)).current=S,E=w.round||Math.round,D=(0,o.useRef)(),k=(T=(0,o.useState)({width:void 0,height:void 0}))[0],B=T[1],_=(0,o.useRef)(!1),(0,o.useEffect)(function(){return _.current=!1,function(){_.current=!0}},[]),K=(0,o.useRef)({width:void 0,height:void 0}),A=(0,o.useCallback)(function(e){return D.current&&D.current.box===w.box&&D.current.round===E||(D.current={box:w.box,round:E,instance:new ResizeObserver(function(e){var t=e[0],i="border-box"===w.box?"borderBoxSize":"device-pixel-content-box"===w.box?"devicePixelContentBoxSize":"contentBoxSize",r=z(t,i,"inlineSize"),n=z(t,i,"blockSize"),s=r?E(r):void 0,a=n?E(n):void 0;if(K.current.width!==s||K.current.height!==a){var l={width:s,height:a};K.current.width=s,K.current.height=a,C.current?C.current(l):_.current||B(l)}})}),D.current.instance.observe(e,{box:w.box}),function(){D.current&&D.current.instance.unobserve(e)}},[w.box,E]),L=w.ref,O=(0,o.useRef)(null),(N=(0,o.useRef)(null)).current=L,F=(0,o.useRef)(null),(0,o.useEffect)(function(){V()}),V=(0,o.useCallback)(function(){var e=F.current,t=N.current,i=e||(t?t instanceof Element?t:t.current:null);O.current&&O.current.element===i&&O.current.subscriber===A||(O.current&&O.current.cleanup&&O.current.cleanup(),O.current={element:i,subscriber:A,cleanup:i?A(i):void 0})},[A]),(0,o.useEffect)(function(){return function(){O.current&&O.current.cleanup&&(O.current.cleanup(),O.current=null)}},[]),W=(0,o.useCallback)(function(e){F.current=e,V()},[V]),(0,o.useMemo)(function(){return{ref:W,width:k.width,height:k.height}},[W,k.width,k.height]),(0,o.useEffect)(()=>{M&&function(e){let t=P(20,4,20),i=P(20,1,8);document.documentElement.style.setProperty("--sash-size",t+"px"),document.documentElement.style.setProperty("--sash-hover-size",i+"px"),eu=t,ed.emit("onDidChangeGlobalSize",t)}(20)},[]),o.createElement("div",{ref:H,className:p("split-view",f?"split-view-vertical":"split-view-horizontal",{"split-view-separator-border":l},"allotment-module_splitView__L-yRc",f?"allotment-module_vertical__WSwwa":"allotment-module_horizontal__7doS8",{"allotment-module_separatorBorder__x-rDS":l},t),id:i},o.createElement("div",{className:p("split-view-container","allotment-module_splitViewContainer__rQnVa")},o.Children.toArray(e).map(e=>{if(!o.isValidElement(e))return null;let t=e.key;return"Allotment.Pane"===e.type.displayName?($.current.set(t,e.props),o.cloneElement(e,{key:t,ref:i=>{let r=e.ref;r&&(r.current=i),i?q.current.set(t,i):q.current.delete(t)}})):o.createElement(eS,{key:t,ref:e=>{e?q.current.set(t,e):q.current.delete(t)}},e)})))});eP.displayName="Allotment";var eC=Object.assign(eP,{Pane:eS})},8577:function(e,t,i){"use strict";i.d(t,{E:function(){return tb}});var r=i(9170),n=i(1073),s=i(400),a=i(8263),l=i(1257),o=i(9835),u=i(9337),d=i(559),c=i(2623);function h(e,t,i,r){return(0,c.E)(e,t,(0,u.s)(i),r)}var p=i(8814);let f=(e,t)=>Math.abs(e-t);var m=i(1282);class g{constructor(e,t,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=y(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(e=i.offset,t={x:0,y:0},Math.sqrt(f(e.x,t.x)**2+f(e.y,t.y)**2)>=3);if(!r&&!n)return;let{point:s}=i,{timestamp:a}=m.frameData;this.history.push({...s,timestamp:a});let{onStart:l,onMove:o}=this.handlers;r||(l&&l(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=v(t,this.transformPagePoint),m.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=y("pointercancel"===e.type?this.lastMoveEventInfo:v(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,s),r&&r(e,s)},!(0,o.DJ)(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=i,this.contextWindow=r||window;let s=v((0,u.Q)(e),this.transformPagePoint),{point:a}=s,{timestamp:l}=m.frameData;this.history=[{...a,timestamp:l}];let{onSessionStart:d}=t;d&&d(e,y(s,this.history)),this.removeListeners=(0,p.z)(h(this.contextWindow,"pointermove",this.handlePointerMove),h(this.contextWindow,"pointerup",this.handlePointerUp),h(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,m.Pn)(this.updatePoint)}}function v(e,t){return t?{point:t(e.point)}:e}function b(e,t){return{x:e.x-t.x,y:e.y-t.y}}function y({point:e},t){return{point:e,delta:b(e,x(t)),offset:b(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,r=null,n=x(e);for(;i>=0&&(r=e[i],!(n.timestamp-r.timestamp>(0,d.w)(.1)));)i--;if(!r)return{x:0,y:0};let s=(0,d.X)(n.timestamp-r.timestamp);if(0===s)return{x:0,y:0};let a={x:(n.x-r.x)/s,y:(n.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function x(e){return e[e.length-1]}var w=i(790),S=i(3828),P=i(519);function C(e){return e.max-e.min}function I(e,t,i,r=.5){e.origin=r,e.originPoint=(0,P.t)(t.min,t.max,e.origin),e.scale=C(i)/C(t),e.translate=(0,P.t)(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function z(e,t,i,r){I(e.x,t.x,i.x,r?r.originX:void 0),I(e.y,t.y,i.y,r?r.originY:void 0)}function E(e,t,i){e.min=i.min+t.min,e.max=e.min+C(t)}function D(e,t,i){e.min=t.min-i.min,e.max=e.min+C(t)}function T(e,t,i){D(e.x,t.x,i.x),D(e.y,t.y,i.y)}var k=i(1118);function M(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function B(e,t){let i=t.min-e.min,r=t.max-e.max;return t.max-t.mine?e.ownerDocument.defaultView:null;var K=i(743);let W=new WeakMap;class H{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,_.dO)(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new g(e,{onSessionStart:e=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor((0,u.Q)(e).point)},onStart:(e,t)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,o.KV)(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),A(e=>{let t=this.getAxisMotionValue(e).get()||0;if(N.aQ.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[e];if(r){let e=C(r);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),n&&m.Wi.postRender(()=>n(e,t)),(0,K.K)(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),s&&s(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>A(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:V(this.visualElement)})}stop(e,t){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:n}=this.getProps();n&&m.Wi.postRender(()=>n(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,i){let{drag:r}=this.getProps();if(!i||!U(e,r,this.currentDirection))return;let n=this.getAxisMotionValue(e),s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:i},r){return void 0!==t&&ei&&(e=r?(0,P.t)(i,e,r.max):Math.min(e,i)),e}(s,this.constraints[e],this.elastic[e])),n.set(s)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,n=this.constraints;t&&(0,w.I)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=function(e,{top:t,left:i,bottom:r,right:n}){return{x:M(e.x,i,n),y:M(e.y,t,r)}}(r.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:R(e,"left","right"),y:R(e,"top","bottom")}}(i),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&A(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let i={};return void 0!==t.min&&(i.min=t.min-e.min),void 0!==t.max&&(i.max=t.max-e.min),i}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!(0,w.I)(t))return!1;let r=t.current;(0,l.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let s=(0,L.z)(r,n.root,this.visualElement.getTransformPagePoint()),a={x:B((e=n.layout.layoutBox).x,s.x),y:B(e.y,s.y)};if(i){let e=i((0,O.z2)(a));this.hasMutatedConstraints=!!e,e&&(a=(0,O.i8)(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{};return Promise.all(A(a=>{if(!U(a,t,this.currentDirection))return;let o=l&&l[a]||{};s&&(o={min:0,max:0});let u={type:"inertia",velocity:i?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...o};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return(0,K.K)(this.visualElement,e),i.start((0,F.v)(e,i,0,t,this.visualElement,!1))}stopAnimation(){A(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){A(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){A(t=>{let{drag:i}=this.getProps();if(!U(t,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(t);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[t];n.set(e[t]-(0,P.t)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!(0,w.I)(t)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};A(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let i=t.get();r[e]=function(e,t){let i=.5,r=C(e),n=C(t);return n>r?i=(0,S.Y)(t.min,t.max-r,e.min):r>n&&(i=(0,S.Y)(e.min,e.max-n,t.min)),(0,k.u)(0,1,i)}({min:i,max:i},this.constraints[e])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),A(t=>{if(!U(t,e,null))return;let i=this.getAxisMotionValue(t),{min:n,max:s}=this.constraints[t];i.set((0,P.t)(n,s,r[t]))})}addListeners(){if(!this.visualElement.current)return;W.set(this.visualElement,this);let e=h(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:i=!0}=this.getProps();t&&i&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();(0,w.I)(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",t);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),m.Wi.read(t);let n=(0,c.E)(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(A(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{n(),e(),r(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:a}}}function U(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}class $ extends s.L{constructor(e){super(e),this.removeGroupControls=a.Z,this.removeListeners=a.Z,this.controls=new H(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||a.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let G=e=>(t,i)=>{e&&m.Wi.postRender(()=>e(t,i))};class q extends s.L{constructor(){super(...arguments),this.removePointerDownListener=a.Z}onPointerDown(e){this.session=new g(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:V(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:G(e),onStart:G(t),onMove:i,onEnd:(e,t)=>{delete this.session,r&&m.Wi.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=h(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var X=i(217),J=i(9589),Y=i(6526),Z=i(6502),Q=i(6458);let ee={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function et(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let ei={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!N.px.test(e))return e;e=parseFloat(e)}let i=et(e,t.target.x),r=et(e,t.target.y);return`${i}% ${r}%`}};var er=i(4538),en=i(8866),es=i(817);class ea extends J.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=e;(0,en.B)(eo),n&&(t.group&&t.group.add(n),i&&i.register&&r&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),ee.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:r,isPresent:n}=this.props,s=i.projection;return s&&(s.isPresent=n,r||e.layoutDependency!==t||void 0===t?s.willUpdate():this.safeToRemove(),e.isPresent===n||(n?s.promote():s.relegate()||m.Wi.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),es.g.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function el(e){let[t,i]=function(){let e=(0,J.useContext)(Y.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:i,register:r}=e,n=(0,J.useId)();(0,J.useEffect)(()=>r(n),[]);let s=(0,J.useCallback)(()=>i&&i(n),[n,i]);return!t&&i?[!1,s]:[!0]}(),r=(0,J.useContext)(Z.p);return(0,X.jsx)(ea,{...e,layoutGroup:r,switchLayoutGroup:(0,J.useContext)(Q.g),isPresent:t,safeToRemove:i})}let eo={borderRadius:{...ei,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ei,borderTopRightRadius:ei,borderBottomLeftRadius:ei,borderBottomRightRadius:ei,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let r=er.P.parse(e);if(r.length>5)return e;let n=er.P.createTransformer(e),s="number"!=typeof r[0]?1:0,a=i.x.scale*t.x,l=i.y.scale*t.y;r[0+s]/=a,r[1+s]/=l;let o=(0,P.t)(a,l,.5);return"number"==typeof r[2+s]&&(r[2+s]/=o),"number"==typeof r[3+s]&&(r[3+s]/=o),n(r)}}};var eu=i(3157),ed=i(6987);let ec=["TopLeft","TopRight","BottomLeft","BottomRight"],eh=ec.length,ep=e=>"string"==typeof e?parseFloat(e):e,ef=e=>"number"==typeof e||N.px.test(e);function em(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let eg=eb(0,.5,ed.Bn),ev=eb(.5,.95,a.Z);function eb(e,t,i){return r=>rt?1:i((0,S.Y)(e,t,r))}function ey(e,t){e.min=t.min,e.max=t.max}function ex(e,t){ey(e.x,t.x),ey(e.y,t.y)}function ew(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var eS=i(4056);function eP(e,t,i,r,n){return e-=t,e=(0,eS.q2)(e,1/i,r),void 0!==n&&(e=(0,eS.q2)(e,1/n,r)),e}function eC(e,t,[i,r,n],s,a){!function(e,t=0,i=1,r=.5,n,s=e,a=e){if(N.aQ.test(t)&&(t=parseFloat(t),t=(0,P.t)(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let l=(0,P.t)(s.min,s.max,r);e===s&&(l-=t),e.min=eP(e.min,t,i,l,n),e.max=eP(e.max,t,i,l,n)}(e,t[i],t[r],t[n],t.scale,s,a)}let eI=["x","scaleX","originX"],ez=["y","scaleY","originY"];function eE(e,t,i,r){eC(e.x,t,eI,i?i.x:void 0,r?r.x:void 0),eC(e.y,t,ez,i?i.y:void 0,r?r.y:void 0)}var eD=i(692);function eT(e){return 0===e.translate&&1===e.scale}function ek(e){return eT(e.x)&&eT(e.y)}function eM(e,t){return e.min===t.min&&e.max===t.max}function eB(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function eR(e,t){return eB(e.x,t.x)&&eB(e.y,t.y)}function ej(e){return C(e.x)/C(e.y)}function e_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var eA=i(8222);class eL{constructor(){this.members=[]}add(e){(0,eA.y4)(this.members,e),e.scheduleRender()}remove(e){if((0,eA.cl)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let i=this.members.findIndex(t=>e===t);if(0===i)return!1;for(let e=i;e>=0;e--){let i=this.members[e];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var eO=i(5416);let eN=(e,t)=>e.depth-t.depth;class eF{constructor(){this.children=[],this.isDirty=!1}add(e){(0,eA.y4)(this.children,e),this.isDirty=!0}remove(e){(0,eA.cl)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(eN),this.isDirty=!1,this.children.forEach(e)}}var eV=i(4718),eK=i(9805),eW=i(8923),eH=i(9596),eU=i(2557);let e$={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},eG="undefined"!=typeof window&&void 0!==window.MotionDebug,eq=["","X","Y","Z"],eX={visibility:"hidden"},eJ=0;function eY(e,t,i,r){let{latestValues:n}=t;n[e]&&(i[e]=n[e],t.setStaticValue(e,0),r&&(r[e]=0))}function eZ({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(e={},i=null==t?void 0:t()){this.id=eJ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,eG&&(e$.totalNodes=e$.resolvedTargetDeltas=e$.recalculatedProjection=0),this.nodes.forEach(e1),this.nodes.forEach(e9),this.nodes.forEach(e8),this.nodes.forEach(e4),eG&&window.MotionDebug.record(e$)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(e,t){let i=eK.X.now(),r=({timestamp:t})=>{let n=t-i;n>=250&&((0,m.Pn)(r),e(n-250))};return m.Wi.read(r,!0),()=>(0,m.Pn)(r)}(r,0),ee.hasAnimatedSinceResize&&(ee.hasAnimatedSinceResize=!1,this.nodes.forEach(e6))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||s.getDefaultTransition()||ts,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=s.getProps(),o=!this.targetLayout||!eR(this.targetLayout,r)||i,u=!t&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(o||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...(0,eD.e)(n,"layout"),onPlay:a,onComplete:l};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||e6(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,m.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(te),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let r=(0,eU.s)(i);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",m.Wi,!(e||i))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&e(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e{let r=t/1e3;if(ti(a.x,e.x,r),ti(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,p,f;T(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,tr(p.x,f.x,l.x,r),tr(p.y,f.y,l.y,r),i&&(u=this.relativeTarget,h=i,eM(u.x,h.x)&&eM(u.y,h.y))&&(this.isProjectionDirty=!1),i||(i=(0,_.dO)()),ex(i,this.relativeTarget)}o&&(this.animationValues=s,function(e,t,i,r,n,s){n?(e.opacity=(0,P.t)(0,void 0!==i.opacity?i.opacity:1,eg(r)),e.opacityExit=(0,P.t)(void 0!==t.opacity?t.opacity:1,0,ev(r))):s&&(e.opacity=(0,P.t)(void 0!==t.opacity?t.opacity:1,void 0!==i.opacity?i.opacity:1,r));for(let n=0;n{ee.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,i){let r=(0,eH.i)(0)?0:(0,eW.BX)(0);return r.start((0,F.v)("",r,1e3,i)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:r,latestValues:n}=e;if(t&&i&&r){if(this!==e&&this.layout&&r&&tu(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||(0,_.dO)();let t=C(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let r=C(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+r}ex(t,i),(0,eS.D2)(t,n),z(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new eL),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let r={};i.z&&eY("z",e,r,this.animationValues);for(let t=0;t{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(e2),this.root.sharedNodes.clear()}}}function eQ(e){e.updateLayout()}function e0(e){var t;let i=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:r}=e.layout,{animationType:n}=e.options,s=i.source!==e.layout.source;"size"===n?A(e=>{let r=s?i.measuredBox[e]:i.layoutBox[e],n=C(r);r.min=t[e].min,r.max=r.min+n}):tu(n,i.layoutBox,t)&&A(r=>{let n=s?i.measuredBox[r]:i.layoutBox[r],a=C(t[r]);n.max=n.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=(0,_.wc)();z(a,t,i.layoutBox);let l=(0,_.wc)();s?z(l,e.applyTransform(r,!0),i.measuredBox):z(l,t,i.layoutBox);let o=!ek(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let a=(0,_.dO)();T(a,i.layoutBox,n.layoutBox);let l=(0,_.dO)();T(l,t,s.layoutBox),eR(a,l)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:l,layoutDelta:a,hasLayoutChanged:o,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function e1(e){eG&&e$.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function e4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function e3(e){e.clearSnapshot()}function e2(e){e.clearMeasurements()}function e5(e){e.isLayoutDirty=!1}function e7(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function e6(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function e9(e){e.resolveTargetDelta()}function e8(e){e.calcProjection()}function te(e){e.resetSkewAndRotation()}function tt(e){e.removeLeadSnapshot()}function ti(e,t,i){e.translate=(0,P.t)(t.translate,0,i),e.scale=(0,P.t)(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function tr(e,t,i,r){e.min=(0,P.t)(t.min,i.min,r),e.max=(0,P.t)(t.max,i.max,r)}function tn(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ts={duration:.45,ease:[.4,0,.1,1]},ta=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tl=ta("applewebkit/")&&!ta("chrome/")?Math.round:a.Z;function to(e){e.min=tl(e.min),e.max=tl(e.max)}function tu(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(ej(t)-ej(i)))}function td(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}let tc=eZ({attachResizeListener:(e,t)=>(0,c.E)(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),th={current:void 0},tp=eZ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!th.current){let e=new tc({});e.mount(window),e.setOptions({layoutScroll:!0}),th.current=e}return th.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});var tf=i(5985),tm=i(1530),tg=i(5315);let tv=(0,tm.x)({...n.s,...tf.E,pan:{Feature:q},drag:{Feature:$,ProjectionNode:tp,MeasureLayout:el},layout:{ProjectionNode:tp,MeasureLayout:el}},tg.b),tb=(0,r.c)(tv)},5469:function(e,t,i){"use strict";i.d(t,{OO:function(){return tO}});var r,n=i(217),s=i(9589),a=i(9297);function l(e,t){return i=>e(t(i))}function o(e,t){return t(e)}function u(...e){return e}function d(e){e()}function c(e){return void 0!==e}function h(){}function p(e){e(2)}function f(e){return e(4)}function m(e,t){return e(1,e=>t(0,e))}function g(e,t){let i=e(1,e=>{i(),t(e)});return i}function v(){let e=[];return(t,i)=>{switch(t){case 2:e.splice(0,e.length);return;case 1:return e.push(i),()=>{let t=e.indexOf(i);t>-1&&e.splice(t,1)};case 0:e.slice().forEach(e=>{e(i)});return;default:throw Error(`unrecognized action ${t}`)}}}function b(e){let t=e,i=v();return(e,r)=>{switch(e){case 1:r(t);break;case 0:t=r;break;case 4:return t}return i(e,r)}}function y(e){var t;return m(e,t=v()),t}function x(e,t){var i;return m(e,i=b(t)),i}function w(e,...t){let i=function(...e){return t=>e.reduceRight(o,t)}(...t);return(t,r)=>{switch(t){case 1:return e(1,i(r));case 2:p(e);return}}}function S(e,t){return e===t}function P(e=S){let t;return i=>r=>{e(t,r)||(t=r,i(r))}}function C(e){return t=>i=>{e(i)&&t(i)}}function I(e){return t=>l(t,e)}function z(e){return t=>()=>t(e)}function E(e,t){return i=>r=>i(t=e(t,r))}function D(e){return t=>i=>{e>0?e--:t(i)}}function T(e){let t,i=null;return r=>n=>{i=n,t||(t=setTimeout(()=>{t=void 0,r(i)},e))}}function k(e){let t,i;return r=>n=>{t=n,i&&clearTimeout(i),i=setTimeout(()=>{r(t)},e)}}function M(...e){let t=Array(e.length),i=0,r=null,n=Math.pow(2,e.length)-1;return e.forEach((e,s)=>{let a=Math.pow(2,s);e(1,e=>{let l=i;i|=a,t[s]=e,l!==n&&i===n&&r&&(r(),r=null)})}),e=>s=>{let a=()=>e([s].concat(t));i===n?a():r=a}}function B(...e){return function(t,i){switch(t){case 1:return function(...e){return()=>{e.map(d)}}(...e.map(e=>e(1,i)));case 2:return;default:throw Error(`unrecognized action ${t}`)}}}function R(e,t=S){return w(e,P(t))}function j(...e){let t=v(),i=Array(e.length),r=0,n=Math.pow(2,e.length)-1;return e.forEach((e,s)=>{let a=Math.pow(2,s);e(1,e=>{i[s]=e,(r|=a)===n&&t(0,i)})}),function(e,s){switch(e){case 1:return r===n&&s(i),t(1,s);case 2:return p(t);default:throw Error(`unrecognized action ${e}`)}}}function _(e,t=[],{singleton:i}={singleton:!0}){return{id:A(),constructor:e,dependencies:t,singleton:i}}let A=()=>Symbol(),L="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function O(e,t,i){let r=Object.keys(t.required||{}),a=Object.keys(t.optional||{}),l=Object.keys(t.methods||{}),o=Object.keys(t.events||{}),u=s.createContext({});function d(e,i){for(let n of(e.propsReady&&(0,e.propsReady)(0,!1),r))(0,e[t.required[n]])(0,i[n]);for(let r of a)r in i&&(0,e[t.optional[r]])(0,i[r]);e.propsReady&&(0,e.propsReady)(0,!0)}return{Component:s.forwardRef((c,f)=>{var m;let{children:g,...v}=c,[b]=s.useState(()=>{var t;return d(t=function(e){let t=new Map,i=({id:e,constructor:r,dependencies:n,singleton:s})=>{if(s&&t.has(e))return t.get(e);let a=r(n.map(e=>i(e)));return s&&t.set(e,a),a};return i(e)}(e),v),t}),[y]=s.useState(()=>{var e;return e=b,o.reduce((i,r)=>(i[r]=function(e){let t,i;let r=()=>t&&t();return function(n,s){switch(n){case 1:if(!s)return r(),h;if(i===s)return;return r(),i=s,t=e(1,s);case 2:r(),i=null;return;default:throw Error(`unrecognized action ${n}`)}}}(e[t.events[r]]),i),{})});return L(()=>{for(let e of o)e in v&&(0,y[e])(1,v[e]);return()=>{Object.values(y).map(p)}},[v,y,b]),L(()=>{d(b,v)}),s.useImperativeHandle(f,(m=l.reduce((e,i)=>(e[i]=e=>{(0,b[t.methods[i]])(0,e)},e),{}),()=>m)),(0,n.jsx)(u.Provider,{value:b,children:i?(0,n.jsx)(i,{...function(e,t){let i={},r={},n=0,s=e.length;for(;n{var t;return s.useCallback((t=s.useContext(u)[e],e=>{t(0,e)}),[e])},useEmitterValue:s.version.startsWith("18")?e=>{let t=s.useContext(u)[e],i=s.useCallback(e=>t(1,e),[t]);return s.useSyncExternalStore(i,()=>f(t),()=>f(t))}:e=>{let t=s.useContext(u)[e],[i,r]=s.useState(()=>f(t));return L(()=>t(1,e=>{e!==i&&r(()=>e)}),[t,i]),i},useEmitter:(e,t)=>{let i=s.useContext(u)[e];L(()=>i(1,t),[t,i])}}}let N="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;var F=((r=F||{})[r.DEBUG=0]="DEBUG",r[r.INFO=1]="INFO",r[r.WARN=2]="WARN",r[r.ERROR=3]="ERROR",r);let V={0:"debug",1:"log",2:"warn",3:"error"},K=()=>"undefined"==typeof globalThis?window:globalThis,W=_(()=>{let e=b(3);return{log:b((t,i,r=1)=>{var n;r>=(null!=(n=K().VIRTUOSO_LOG_LEVEL)?n:f(e))&&console[V[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,i)}),logLevel:e}},[],{singleton:!0});function H(e,t,i){let r=s.useRef(null),n=e=>{};if("undefined"!=typeof ResizeObserver){let a=s.useMemo(()=>new ResizeObserver(t=>{let r=()=>{let i=t[0].target;null!==i.offsetParent&&e(i)};i?r():requestAnimationFrame(r)}),[e]);n=e=>{e&&t?(a.observe(e),r.current=e):(r.current&&a.unobserve(r.current),r.current=null)}}return{ref:r,callbackRef:n}}function U(e,t,i){return H(e,t,i).callbackRef}function $(e,t,i,r,n,a,l,o,u){return H(s.useCallback(i=>{let s=function(e,t,i,r){let n=e.length;if(0===n)return null;let s=[];for(let a=0;aMath.abs(e-t)}function J(e,t,i,r=h,n,l){let o=s.useRef(null),u=s.useRef(null),d=s.useRef(null),c=s.useCallback(i=>{let r=i.target,n=r===window||r===document,s=l?n?window.pageXOffset||document.documentElement.scrollLeft:r.scrollLeft:n?window.pageYOffset||document.documentElement.scrollTop:r.scrollTop,o=l?n?document.documentElement.scrollWidth:r.scrollWidth:n?document.documentElement.scrollHeight:r.scrollHeight,c=l?n?window.innerWidth:r.offsetWidth:n?window.innerHeight:r.offsetHeight,h=()=>{e({scrollTop:Math.max(s,0),scrollHeight:o,viewportHeight:c})};i.suppressFlushSync?h():a.flushSync(h),null!==u.current&&(s===u.current||s<=0||s===o-c)&&(u.current=null,t(!0),d.current&&(clearTimeout(d.current),d.current=null))},[e,t]);return s.useEffect(()=>{let e=n||o.current;return r(n||o.current),c({target:e,suppressFlushSync:!0}),e.addEventListener("scroll",c,{passive:!0}),()=>{r(null),e.removeEventListener("scroll",c)}},[o,c,i,r,n]),{scrollerRef:o,scrollByCallback:function(e){l&&(e={left:e.top,behavior:e.behavior}),o.current.scrollBy(e)},scrollToCallback:function(i){let r,n,s;let a=o.current;if(!a||(l?"offsetWidth"in a&&0===a.offsetWidth:"offsetHeight"in a&&0===a.offsetHeight))return;let c="smooth"===i.behavior;a===window?(n=Math.max(q(document.documentElement,l?"width":"height"),l?document.documentElement.scrollWidth:document.documentElement.scrollHeight),r=l?window.innerWidth:window.innerHeight,s=l?document.documentElement.scrollLeft:document.documentElement.scrollTop):(n=a[l?"scrollWidth":"scrollHeight"],r=q(a,l?"width":"height"),s=a[l?"scrollLeft":"scrollTop"]);let h=n-r;if(i.top=Math.ceil(Math.max(Math.min(h,i.top),0)),X(r,n)||i.top===s){e({scrollTop:s,scrollHeight:n,viewportHeight:r}),c&&t(!0);return}c?(u.current=i.top,d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{d.current=null,u.current=null,t(!0)},1e3)):u.current=null,l&&(i={left:i.top,behavior:i.behavior}),a.scrollTo(i)}}}let Y=_(()=>{let e=v(),t=v(),i=b(0),r=v(),n=b(0),s=v(),a=v(),l=b(0),o=b(0),u=b(0),d=b(0),c=v(),h=v(),p=b(!1),f=b(!1),g=b(!1);return m(w(e,I(({scrollTop:e})=>e)),t),m(w(e,I(({scrollHeight:e})=>e)),a),m(t,n),{scrollContainerState:e,scrollTop:t,viewportHeight:s,headerHeight:l,fixedHeaderHeight:o,fixedFooterHeight:u,footerHeight:d,scrollHeight:a,smoothScrollTargetReached:r,horizontalDirection:f,skipAnimationFrameInResizeObserver:g,scrollTo:c,scrollBy:h,statefulScrollTop:n,deviation:i,scrollingInProgress:p}},[],{singleton:!0}),Z={lvl:0};function Q(e,t,i,r=Z,n=Z){return{k:e,v:t,lvl:i,l:r,r:n}}function ee(e){return e===Z}function et(e,t){return ee(e)?void 0:t===e.k?e.v:te.r.lvl}function el(e){let{l:t,r:i,lvl:r}=e;if(i.lvl>=r-1&&t.lvl>=r-1)return e;if(r>i.lvl+1){if(ea(t))return ec(es(e,{lvl:r-1}));if(!ee(t)&&!ee(t.r))return es(t.r,{l:es(t,{r:t.r.l}),r:es(e,{l:t.r.r,lvl:r-1}),lvl:r});throw Error("Unexpected empty nodes")}if(ea(e))return ed(es(e,{lvl:r-1}));if(ee(i)||ee(i.l))throw Error("Unexpected empty nodes");{let t=i.l,n=ea(t)?i.lvl-1:i.lvl;return es(t,{l:es(e,{r:t.l,lvl:r-1}),r:ed(es(i,{l:t.r,lvl:n})),lvl:t.lvl+1})}}function eo(e,t,i){if(ee(e))return[];let r=ei(e,t)[0];return eu(function e(t,i,r){if(ee(t))return[];let{k:n,v:s,l:a,r:l}=t,o=[];return n>i&&(o=o.concat(e(a,i,r))),n>=i&&n<=r&&o.push({k:n,v:s}),n<=r&&(o=o.concat(e(l,i,r))),o}(e,r,i),({k:e,v:t})=>({index:e,value:t}))}function eu(e,t){let i=e.length;if(0===i)return[];let{index:r,value:n}=t(e[0]),s=[];for(let a=1;a({recalcInProgress:b(!1)}),[],{singleton:!0});function ef(e,t){let i=0,r=0;for(;i0&&r("received item sizes",t,F.DEBUG);let s=e.sizeTree,a=s,l=0;if(i.length>0&&ee(s)&&2===t.length){let e=t[0].size,r=t[1].size;a=i.reduce((t,i)=>er(er(t,i,e),i+1,r),a)}else[a,l]=function(e,t){let i=ee(e)?0:1/0;for(let r of t){let{size:t,startIndex:n,endIndex:s}=r;if(i=Math.min(i,n),ee(e)){e=er(e,0,t);continue}let a=eo(e,n-1,s+1);if(a.some(function(e){let{size:t,startIndex:i,endIndex:r}=e;return e=>e.start===i&&(e.end===r||e.end===1/0)&&e.value===t}(r)))continue;let l=!1,o=!1;for(let{start:i,end:r,value:n}of a)l?(s>=i||t===n)&&(e=function e(t,i){if(ee(t))return Z;let{k:r,l:n,r:s}=t;if(i===r){if(ee(n))return s;if(ee(s))return n;{let[e,i]=function e(t){return ee(t.r)?[t.k,t.v]:e(t.r)}(n);return el(es(t,{k:e,v:i,l:function e(t){return ee(t.r)?t.l:el(es(t,{r:e(t.r)}))}(n)}))}}return is&&s>=i&&n!==t&&(e=er(e,s+1,n));o&&(e=er(e,n,t))}return[e,i]}(a,t);if(a===s)return e;let{offsetTree:o,lastIndex:u,lastSize:d,lastOffset:c}=eb(e.offsetTree,l,a,n);return{sizeTree:a,offsetTree:o,lastIndex:u,lastOffset:c,lastSize:d,groupOffsetTree:i.reduce((e,t)=>er(e,t,ex(t,o,n)),Z),groupIndices:i}}function ex(e,t,i){if(0===t.length)return 0;let{offset:r,index:n,size:s}=t[eh(t,e,em)],a=e-n,l=s*a+(a-1)*i+r;return l>0?l+i:l}function ew(e,t,i){if(void 0!==e.groupIndex)return t.groupIndices[e.groupIndex]+1;{let r=eS("LAST"===e.index?i:e.index,t);return Math.max(0,r,Math.min(i,r))}}function eS(e,t){if(!eP(t))return e;let i=0;for(;t.groupIndices[i]<=e+i;)i++;return e+i}function eP(e){return!ee(e.groupOffsetTree)}let eC={offsetHeight:"height",offsetWidth:"width"},eI=_(([{log:e},{recalcInProgress:t}])=>{let i=v(),r=v(),n=x(r,0),s=v(),a=v(),l=b(0),o=b([]),u=b(void 0),d=b(void 0),c=b((e,t)=>q(e,eC[t])),h=b(void 0),p=b(0),g={offsetTree:[],sizeTree:Z,groupOffsetTree:Z,lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},S=x(w(i,M(o,e,p),E(ey,g),P()),g),z=x(w(o,P(),E((e,t)=>({prev:e.current,current:t}),{prev:[],current:[]}),I(({prev:e})=>e)),[]);m(w(o,C(e=>e.length>0),M(S,p),I(([e,t,i])=>{let r=e.reduce((e,r,n)=>er(e,r,ex(r,t.offsetTree,i)||n),Z);return{...t,groupIndices:e,groupOffsetTree:r}})),S),m(w(r,M(S),C(([e,{lastIndex:t}])=>e[{startIndex:e,endIndex:t,size:i}])),i),m(u,d);let D=x(w(u,I(e=>void 0===e)),!0);m(w(d,C(e=>void 0!==e&&ee(f(S).sizeTree)),I(e=>[{startIndex:0,endIndex:0,size:e}])),i);let T=y(w(i,M(S),E(({sizes:e},[t,i])=>({changed:i!==e,sizes:i}),{changed:!1,sizes:g}),I(e=>e.changed)));w(l,E((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),I(e=>e.diff))(1,e=>{let{groupIndices:i}=f(S);if(e>0)t(0,!0),s(0,e+ef(e,i));else if(e<0){let t=f(z);t.length>0&&(e-=ef(-e,t)),a(0,e)}}),w(l,M(e))(1,([e,t])=>{e<0&&t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:l},F.ERROR)});let k=y(s);m(w(s,M(S),I(([e,t])=>{let i=t.groupIndices.length>0,r=[],n=t.lastSize;if(i){let i=et(t.sizeTree,0),s=0,a=0;for(;s{let n=t.ranges;return 0!==t.prevSize&&(n=[...t.ranges,{startIndex:t.prevIndex,endIndex:i+e-1,size:t.prevSize}]),{ranges:n,prevIndex:i+e,prevSize:r}},{ranges:r,prevIndex:e,prevSize:0}).ranges}return en(t.sizeTree).reduce((t,{k:i,v:r})=>({ranges:[...t.ranges,{startIndex:t.prevIndex,endIndex:i+e-1,size:t.prevSize}],prevIndex:i+e,prevSize:r}),{ranges:[],prevIndex:0,prevSize:n}).ranges})),i);let B=y(w(a,M(S,p),I(([e,{offsetTree:t},i])=>ex(-e,t,i))));return m(w(a,M(S,p),I(([e,t,i])=>{if(t.groupIndices.length>0){if(ee(t.sizeTree))return t;let r=Z,n=f(z),s=0,a=0,l=0;for(;s<-e;){l=n[a];let e=n[a+1]-l-1;a++,s+=e+1}return r=en(t.sizeTree).reduce((t,{k:i,v:r})=>er(t,Math.max(0,i+e),r),r),s!==-e&&(r=er(r,0,et(t.sizeTree,l)),r=er(r,1,ei(t.sizeTree,-e+1)[1])),{...t,sizeTree:r,...eb(t.offsetTree,0,r,i)}}{let r=en(t.sizeTree).reduce((t,{k:i,v:r})=>er(t,Math.max(0,i+e),r),Z);return{...t,sizeTree:r,...eb(t.offsetTree,0,r,i)}}})),S),{data:h,totalCount:r,sizeRanges:i,groupIndices:o,defaultItemSize:d,fixedItemSize:u,unshiftWith:s,shiftWith:a,shiftWithOffset:B,beforeUnshiftWith:k,firstItemIndex:l,gap:p,sizes:S,listRefresh:T,statefulTotalCount:n,trackItemSizes:D,itemSize:c}},u(W,ep),{singleton:!0}),ez="undefined"!=typeof document&&"scrollBehavior"in document.documentElement.style;function eE(e){let t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&ez||(t.behavior="auto"),t.offset||(t.offset=0),t}let eD=_(([{sizes:e,totalCount:t,listRefresh:i,gap:r},{scrollingInProgress:n,viewportHeight:s,scrollTo:a,smoothScrollTargetReached:l,headerHeight:o,footerHeight:u,fixedHeaderHeight:d,fixedFooterHeight:c},{log:h}])=>{let p=v(),f=v(),y=b(0),x=null,S=null,P=null;function C(){x&&(x(),x=null),P&&(P(),P=null),S&&(clearTimeout(S),S=null),n(0,!1)}return m(w(p,M(e,s,t,y,o,u,h),M(r,d,c),I(([[e,t,r,s,a,o,u,d],c,h,m])=>{let v=eE(e),{align:b,behavior:y,offset:I}=v,z=s-1,E=ew(v,t,z),D=ex(E,t.offsetTree,c)+o;"end"===b?(D+=h+ei(t.sizeTree,E)[1]-r+m,E===z&&(D+=u)):"center"===b?D+=(h+ei(t.sizeTree,E)[1]-r+m)/2:D-=a,I&&(D+=I);let T=t=>{C(),t?(d("retrying to scroll to",{location:e},F.DEBUG),p(0,e)):(f(0,!0),d("list did not change, scroll successful",{},F.DEBUG))};if(C(),"smooth"===y){let e=!1;P=i(1,t=>{e=e||t}),x=g(l,()=>{T(e)})}else x=g(w(i,e=>{let t=setTimeout(()=>{e(!1)},150);return i=>{i&&(e(!0),clearTimeout(t))}}),T);return S=setTimeout(()=>{C()},1200),n(0,!0),d("scrolling from index to",{index:E,top:D,behavior:y},F.DEBUG),{top:D,behavior:y}})),a),{scrollToIndex:p,scrollTargetReached:f,topListHeight:y}},u(eI,Y,W),{singleton:!0}),eT="down",ek={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},eM=_(([{scrollContainerState:e,scrollTop:t,viewportHeight:i,headerHeight:r,footerHeight:n,scrollBy:s}])=>{let a=b(!1),l=b(!0),o=v(),u=v(),d=b(4),c=b(0),h=x(w(B(w(R(t),D(1),z(!0)),w(R(t),D(1),z(!1),k(100))),P()),!1),p=x(w(B(w(s,z(!0)),w(s,z(!1),k(200))),P()),!1);m(w(j(R(t),R(c)),I(([e,t])=>e<=t),P()),l),m(w(l,T(50)),u);let g=y(w(j(e,R(i),R(r),R(n),R(d)),E((e,[{scrollTop:t,scrollHeight:i},r,n,s,a])=>{let l={viewportHeight:r,scrollTop:t,scrollHeight:i};if(t+r-i>-a){let i,r;return t>e.state.scrollTop?(i="SCROLLED_DOWN",r=e.state.scrollTop-t):(i="SIZE_DECREASED",r=e.state.scrollTop-t||e.scrollTopDelta),{atBottom:!0,state:l,atBottomBecause:i,scrollTopDelta:r}}return{atBottom:!1,notAtBottomBecause:l.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":re&&e.atBottom===t.atBottom))),S=x(w(e,E((e,{scrollTop:t,scrollHeight:i,viewportHeight:r})=>{if(X(e.scrollHeight,i))return{scrollTop:t,scrollHeight:i,jump:0,changed:!1};{let n=i-(t+r)<1;return e.scrollTop!==t&&n?{scrollHeight:i,scrollTop:t,jump:e.scrollTop-t,changed:!0}:{scrollHeight:i,scrollTop:t,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),C(e=>e.changed),I(e=>e.jump)),0);m(w(g,I(e=>e.atBottom)),a),m(w(a,T(50)),o);let _=b(eT);m(w(e,I(({scrollTop:e})=>e),P(),E((e,t)=>f(p)?{direction:e.direction,prevScrollTop:t}:{direction:te.direction)),_),m(w(e,T(50),z("none")),_);let A=b(0);return m(w(h,C(e=>!e),z(0)),A),m(w(t,T(100),M(h),C(([e,t])=>!!t),E(([e,t],[i])=>[t,i],[0,0]),I(([e,t])=>t-e)),A),{isScrolling:h,isAtTop:l,isAtBottom:a,atBottomState:g,atTopStateChange:u,atBottomStateChange:o,scrollDirection:_,atBottomThreshold:d,atTopThreshold:c,scrollVelocity:A,lastJumpDueToItemResize:S}},u(Y)),eB=_(([{log:e}])=>{let t=b(!1),i=y(w(t,C(e=>e),P()));return t(1,t=>{t&&f(e)("props updated",{},F.DEBUG)}),{propsReady:t,didMount:i}},u(W),{singleton:!0});function eR(e,t){0==e?t():requestAnimationFrame(()=>eR(e-1,t))}function ej(e,t){return"number"==typeof e?e:"LAST"===e.index?t-1:e.index}let e_=_(([{sizes:e,listRefresh:t,defaultItemSize:i},{scrollTop:r},{scrollToIndex:n,scrollTargetReached:s},{didMount:a}])=>{let l=b(!0),o=b(0),u=b(!0);return m(w(a,M(o),C(([e,t])=>!!t),z(!1)),l),m(w(a,M(o),C(([e,t])=>!!t),z(!1)),u),w(j(t,a),M(l,e,i,u),C(([[,e],t,{sizeTree:i},r,n])=>e&&(!ee(i)||c(r))&&!t&&!n),M(o))(1,([,e])=>{g(s,()=>{u(0,!0)}),eR(4,()=>{g(r,()=>{l(0,!0)}),n(0,e)})}),{scrolledToInitialItem:l,initialTopMostItemIndex:o,initialItemFinalLocationReached:u}},u(eI,Y,eD,eB),{singleton:!0});function eA(e){return!!e&&("smooth"===e?"smooth":"auto")}let eL=(e,t)=>"function"==typeof e?eA(e(t)):t&&eA(e),eO=_(([{totalCount:e,listRefresh:t},{isAtBottom:i,atBottomState:r},{scrollToIndex:n},{scrolledToInitialItem:s},{propsReady:a,didMount:l},{log:o},{scrollingInProgress:u}])=>{let d=b(!1),c=v(),h=null;function p(e){n(0,{index:"LAST",align:"end",behavior:e})}function m(e){setTimeout(g(r,t=>{!e||t.atBottom||"SIZE_INCREASED"!==t.notAtBottomBecause||h||(f(o)("scrolling to bottom due to increased size",{},F.DEBUG),p("auto"))}),100)}return w(j(w(R(e),D(1)),l),M(R(d),i,s,u),I(([[e,t],i,r,n,s])=>{let a=t&&n,l="auto";return a&&(l=eL(i,r||s),a=a&&!!l),{totalCount:e,shouldFollow:a,followOutputBehavior:l}}),C(({shouldFollow:e})=>e))(1,({totalCount:e,followOutputBehavior:i})=>{h&&(h(),h=null),h=g(t,()=>{f(o)("following output to ",{totalCount:e},F.DEBUG),p(i),h=null})}),w(j(R(d),e,a),C(([e,,t])=>e&&t),E(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),C(({refreshed:e})=>e),M(d,e))(1,([,e])=>{f(s)&&m(!1!==e)}),c(1,()=>{m(!1!==f(d))}),j(R(d),r)(1,([e,t])=>{e&&!t.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===t.notAtBottomBecause&&p("auto")}),{followOutput:d,autoscrollToBottom:c}},u(eI,eM,eD,e_,eB,W,Y));function eN(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{totalCount:0,groupIndices:[]})}let eF=_(([{totalCount:e,groupIndices:t,sizes:i},{scrollTop:r,headerHeight:n}])=>{let s=v(),a=v(),l=y(w(s,I(eN)));return m(w(l,I(e=>e.totalCount)),e),m(w(l,I(e=>e.groupIndices)),t),m(w(j(r,i,n),C(([e,t])=>eP(t)),I(([e,t,i])=>ei(t.groupOffsetTree,Math.max(e-i,0),"v")[0]),P(),I(e=>[e])),a),{groupCounts:s,topItemsIndexes:a}},u(eI,Y));function eV(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function eK(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}let eW="bottom",eH="none";function eU(e,t,i){return"number"==typeof e?"up"===i&&"top"===t||i===eT&&t===eW?e:0:"up"===i?"top"===t?e.main:e.reverse:t===eW?e.main:e.reverse}function e$(e,t){return"number"==typeof e?e:e[t]||0}let eG=_(([{scrollTop:e,viewportHeight:t,deviation:i,headerHeight:r,fixedHeaderHeight:n}])=>{let s=v(),a=b(0),l=b(0),o=b(0),u=x(w(j(R(e),R(t),R(r),R(s,eV),R(o),R(a),R(n),R(i),R(l)),I(([e,t,i,[r,n],s,a,l,o,u])=>{let d=e-o,c=Math.max(i-d,0),h=eH,p=e$(u,"top"),f=e$(u,eW);return(r-=o,r+=i+l,n+=i+l,r>e+(a+l)-p&&(h="up"),(n-=o)null!=e),P(eV)),[0,0]);return{listBoundary:s,overscan:o,topListHeight:a,increaseViewportBy:l,visibleRange:u}},u(Y),{singleton:!0}),eq={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function eX(e,t,i){let r;if(0===e.length)return[];if(!eP(t))return e.map(e=>({...e,index:e.index+i,originalIndex:e.index}));let n=e[0].index,s=e[e.length-1].index,a=[],l=eo(t.groupOffsetTree,n,s),o=0;for(let n of e){let e;(!r||r.end0){u=e[0].offset;let t=e[e.length-1];d=t.offset+t.size}let c=i-o,h=u,p=l+c*a+(c-1)*r-d;return{items:eX(e,n,s),topItems:eX(t,n,s),topListHeight:t.reduce((e,t)=>t.size+e,0),offsetTop:u,offsetBottom:p,top:h,bottom:d,totalCount:i,firstItemIndex:s}}function eY(e,t,i,r,n,s){let a=0;if(i.groupIndices.length>0)for(let t of i.groupIndices){if(t-a>=e)break;a++}let l=e+a,o=ej(t,l);return eJ(Array.from({length:l}).map((e,t)=>({index:t+o,size:0,offset:0,data:s[t+o]})),[],l,n,i,r)}let eZ=_(([{sizes:e,totalCount:t,data:i,firstItemIndex:r,gap:n},s,{visibleRange:a,listBoundary:l,topListHeight:o},{scrolledToInitialItem:u,initialTopMostItemIndex:d},{topListHeight:h},p,{didMount:g},{recalcInProgress:S}])=>{let z=b([]),E=b(0),D=v();m(s.topItemsIndexes,z);let k=x(w(j(g,S,R(a,eV),R(t),R(e),R(d),u,R(z),R(r),R(n),i),C(([e,t,,i,,,,,,,r])=>{let n=r&&r.length!==i;return e&&!t&&!n}),I(([,,[e,t],i,r,n,s,a,l,o,u])=>{var d;let{sizeTree:c,offsetTree:h}=r,p=f(E);if(0===i)return{...eq,totalCount:i};if(0===e&&0===t)return 0===p?{...eq,totalCount:i}:eY(p,n,r,l,o,u||[]);if(ee(c))return p>0?null:eJ(function(e,t,i){if(eP(t)){let r=eS(e,t);return[{index:ei(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:i&&i[0]}]}return[{index:e,size:0,offset:0,data:i&&i[0]}]}(ej(n,i),r,u),[],i,o,r,l);let m=[];if(a.length>0){let e=a[0],t=a[a.length-1],i=0;for(let r of eo(c,e,t)){let n=r.value,s=Math.max(r.start,e),a=Math.min(r.end,t);for(let e=s;e<=a;e++)m.push({index:e,size:n,offset:i,data:u&&u[e]}),i+=n}}if(!s)return eJ([],m,i,o,r,l);let g=a.length>0?a[a.length-1]+1:0,v=function(e,t,i,r=0){return r>0&&(t=Math.max(t,e[eh(e,r,em)].offset)),eu(function(e,t,i,r){let n=eh(e,t,r),s=eh(e,i,r,n);return e.slice(n,s+1)}(e,t,i,eg),ev)}(h,e,t,g);if(0===v.length)return null;let b=i-1;return eJ(((i=>{for(let r of v){let n=r.value,s=n.offset,a=r.start,l=n.size;if(n.offset=t);e++)i.push({index:e,size:l,offset:s,data:u&&u[e]}),s+=l+o}})(d=[]),d),m,i,o,r,l)}),C(e=>null!==e),P()),eq);m(w(i,C(c),I(e=>null==e?void 0:e.length)),t),m(w(k,I(e=>e.topListHeight)),h),m(h,o),m(w(k,I(e=>[e.top,e.bottom])),l),m(w(k,I(e=>e.items)),D);let B=y(w(k,C(({items:e})=>e.length>0),M(t,i),C(([{items:e},t])=>e[e.length-1].originalIndex===t-1),I(([,e,t])=>[e-1,t]),P(eV),I(([e])=>e))),_=y(w(k,T(200),C(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),I(({items:e})=>e[0].index),P())),A=y(w(k,C(({items:e})=>e.length>0),I(({items:e})=>{let t=0,i=e.length-1;for(;"group"===e[t].type&&tt;)i--;return{startIndex:e[t].index,endIndex:e[i].index}}),P(eK)));return{listState:k,topItemsIndexes:z,endReached:B,startReached:_,rangeChanged:A,itemsRendered:D,initialItemCount:E,...p}},u(eI,eF,eG,e_,eD,eM,eB,ep),{singleton:!0}),eQ=_(([{sizes:e,firstItemIndex:t,data:i,gap:r},{initialTopMostItemIndex:n},{initialItemCount:s,listState:a},{didMount:l}])=>(m(w(l,M(s),C(([,e])=>0!==e),M(n,e,t,r,i),I(([[,e],t,i,r,n,s=[]])=>eY(e,t,i,r,n,s))),a),{}),u(eI,e_,eZ,eB),{singleton:!0}),e0=_(([{scrollVelocity:e}])=>{let t=b(!1),i=v(),r=b(!1);return m(w(e,M(r,t,i),C(([e,t])=>!!t),I(([e,t,i,r])=>{let{exit:n,enter:s}=t;if(i){if(n(e,r))return!1}else if(s(e,r))return!0;return i}),P()),t),w(j(t,e,i),M(r))(1,([[e,t,i],r])=>e&&r&&r.change&&r.change(t,i)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:i}},u(eM),{singleton:!0}),e1=_(([{topItemsIndexes:e}])=>{let t=b(0);return m(w(t,C(e=>e>=0),I(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},u(eZ)),e4=_(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:i,fixedFooterHeight:r},{listState:n}])=>{let s=v(),a=x(w(j(e,r,t,i,n),I(([e,t,i,r,n])=>e+t+i+r+n.offsetBottom+n.bottom)),0);return m(R(a),s),{totalListHeight:a,totalListHeightChanged:s}},u(Y,eZ),{singleton:!0});function e3(e){let t,i=!1;return()=>(i||(i=!0,t=e()),t)}let e2=e3(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),e5=_(([{scrollBy:e,scrollTop:t,deviation:i,scrollingInProgress:r},{isScrolling:n,isAtBottom:s,scrollDirection:a,lastJumpDueToItemResize:l},{listState:o},{beforeUnshiftWith:u,shiftWithOffset:d,sizes:c,gap:h},{log:p},{recalcInProgress:f}])=>{let g=y(w(o,M(l),E(([,e,t,i],[{items:r,totalCount:n,bottom:s,offsetBottom:a},l])=>{let o=s+a,u=0;return t===n&&e.length>0&&r.length>0&&!(0===r[0].originalIndex&&0===e[0].originalIndex)&&0!=(u=o-i)&&(u+=l),[u,r,n,o]},[0,[],0,0]),C(([e])=>0!==e),M(t,a,r,s,p,f),C(([,e,t,i,,,r])=>!r&&!i&&0!==e&&"up"===t),I(([[e],,,,,t])=>(t("Upward scrolling compensation",{amount:e},F.DEBUG),e))));function v(t){t>0?(e(0,{top:-t,behavior:"auto"}),i(0,0)):(i(0,0),e(0,{top:-t,behavior:"auto"}))}return w(g,M(i,n))(1,([e,t,r])=>{r&&e2()?i(0,t-e):v(-e)}),w(j(x(n,!1),i,f),C(([e,t,i])=>!e&&!i&&0!==t),I(([e,t])=>t),T(1))(1,v),m(w(d,I(e=>({top:-e}))),e),w(u,M(c,h),I(([e,{lastSize:t,groupIndices:i,sizeTree:r},n])=>{if(0===i.length)return e*(t+n);{let s=0,a=et(r,0),l=0,o=0;for(;le&&(s-=a,r=e-l+1),l+=r,s+=r*(t+n),o++}return s}}))(1,t=>{i(0,t),requestAnimationFrame(()=>{e(0,{top:t}),requestAnimationFrame(()=>{i(0,0),f(0,!1)})})}),{deviation:i}},u(Y,eM,eZ,eI,W,ep)),e7=_(([{didMount:e},{scrollTo:t},{listState:i}])=>{let r=b(0);return w(e,M(r),C(([,e])=>0!==e),I(([,e])=>({top:e})))(1,e=>{g(w(i,D(1),C(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{t(0,e)})})}),{initialScrollTop:r}},u(eB,Y,eZ),{singleton:!0}),e6=_(([{viewportHeight:e},{totalListHeight:t}])=>{let i=b(!1),r=x(w(j(i,e,t),C(([e])=>e),I(([,e,t])=>Math.max(0,e-t)),T(0),P()),0);return{alignToBottom:i,paddingTopAddition:r}},u(Y,e4),{singleton:!0}),e9=_(([{scrollTo:e,scrollContainerState:t}])=>{let i=v(),r=v(),n=v(),s=b(!1),a=b(void 0);return m(w(j(i,r),I(([{viewportHeight:e,scrollTop:t,scrollHeight:i},{offsetTop:r}])=>({scrollTop:Math.max(0,t-r),scrollHeight:i,viewportHeight:e}))),t),m(w(e,M(r),I(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),n),{useWindowScroll:s,customScrollParent:a,windowScrollContainerState:i,windowViewportRect:r,windowScrollTo:n}},u(Y)),e8=({itemTop:e,itemBottom:t,viewportTop:i,viewportBottom:r,locationParams:{behavior:n,align:s,...a}})=>er?{...a,behavior:n,align:null!=s?s:"end"}:null,te=_(([{sizes:e,totalCount:t,gap:i},{scrollTop:r,viewportHeight:n,headerHeight:s,fixedHeaderHeight:a,fixedFooterHeight:l,scrollingInProgress:o},{scrollToIndex:u}])=>{let d=v();return m(w(d,M(e,n,t,s,a,l,r),M(i),I(([[e,t,i,r,n,s,a,l],u])=>{let{done:d,behavior:c,align:h,calculateViewLocation:p=e8,...m}=e,v=ew(e,t,r-1),b=ex(v,t.offsetTree,u)+n+s,y=b+ei(t.sizeTree,v)[1],x=p({itemTop:b,itemBottom:y,viewportTop:l+s,viewportBottom:l+i-a,locationParams:{behavior:c,align:h,...m}});return x?d&&g(w(o,C(e=>!1===e),D(f(o)?1:2)),d):d&&d(),x}),C(e=>null!==e)),u),{scrollIntoView:d}},u(eI,Y,eD,eZ,W),{singleton:!0}),tt=_(([{sizes:e,sizeRanges:t},{scrollTop:i,headerHeight:r},{initialTopMostItemIndex:n},{didMount:s},{useWindowScroll:a,windowScrollContainerState:l,windowViewportRect:o}])=>{let u=v(),d=b(void 0),h=b(null),p=b(null);return m(l,h),m(o,p),w(u,M(e,i,a,h,p,r))(1,([e,t,i,r,n,s,a])=>{let l=en(t.sizeTree).map(({k:e,v:t},i,r)=>{let n=r[i+1];return{startIndex:e,endIndex:n?n.k-1:1/0,size:t}});r&&null!==n&&null!==s&&(i=n.scrollTop-s.offsetTop),e({ranges:l,scrollTop:i-=a})}),m(w(d,C(c),I(ti)),n),m(w(s,M(d),C(([,e])=>void 0!==e),P(),I(([,e])=>e.ranges)),t),{getState:u,restoreStateFrom:d}},u(eI,Y,e_,eB,e9));function ti(e){return{offset:e.scrollTop,index:0,align:"start"}}let tr=_(([e,t,i,r,n,s,a,l,o,u])=>({...e,...t,...i,...r,...n,...s,...a,...l,...o,...u}),u(eG,eQ,eB,e0,e4,e7,e6,e9,te,W)),tn=_(([{totalCount:e,sizeRanges:t,fixedItemSize:i,defaultItemSize:r,trackItemSizes:n,itemSize:s,data:a,firstItemIndex:l,groupIndices:o,statefulTotalCount:u,gap:d,sizes:c},{initialTopMostItemIndex:h,scrolledToInitialItem:p,initialItemFinalLocationReached:f},g,v,b,{listState:y,topItemsIndexes:x,...S},{scrollToIndex:P},C,{topItemCount:z},{groupCounts:E},D])=>(m(S.rangeChanged,D.scrollSeekRangeChanged),m(w(D.windowViewportRect,I(e=>e.visibleHeight)),g.viewportHeight),{totalCount:e,data:a,firstItemIndex:l,sizeRanges:t,initialTopMostItemIndex:h,scrolledToInitialItem:p,initialItemFinalLocationReached:f,topItemsIndexes:x,topItemCount:z,groupCounts:E,fixedItemHeight:i,defaultItemHeight:r,gap:d,...b,statefulTotalCount:u,listState:y,scrollToIndex:P,trackItemSizes:n,itemSize:s,groupIndices:o,...S,...D,...g,sizes:c,...v}),u(eI,e_,Y,tt,eO,eZ,eD,e5,e1,eF,tr)),ts="-webkit-sticky",ta="sticky",tl=e3(()=>{if("undefined"==typeof document)return ta;let e=document.createElement("div");return e.style.position=ts,e.style.position===ts?ts:ta});function to(e,t,i){let r=s.useRef(null),n=s.useCallback(i=>{let n,s;if(null===i||!i.offsetParent)return;let a=i.getBoundingClientRect(),l=a.width;if(t){let e=t.getBoundingClientRect(),i=a.top-e.top;n=e.height-Math.max(0,i),s=i+t.scrollTop}else n=window.innerHeight-Math.max(0,a.top),s=a.top+window.pageYOffset;r.current={offsetTop:s,visibleHeight:n,visibleWidth:l},e(r.current)},[e,t]),{callbackRef:a,ref:l}=H(n,!0,i),o=s.useCallback(()=>{n(l.current)},[n,l]);return s.useEffect(()=>{if(!t)return window.addEventListener("scroll",o),window.addEventListener("resize",o),()=>{window.removeEventListener("scroll",o),window.removeEventListener("resize",o)};{t.addEventListener("scroll",o);let e=new ResizeObserver(()=>{requestAnimationFrame(o)});return e.observe(t),()=>{t.removeEventListener("scroll",o),e.unobserve(t)}}},[o,t]),a}let tu=s.createContext(void 0),td=s.createContext(void 0);function tc(e){return e}let th=_(()=>{let e=b(e=>`Item ${e}`),t=b(null),i=b(e=>`Group ${e}`),r=b({}),n=b(tc),s=b("div"),a=b(h),l=(e,t=null)=>x(w(r,I(t=>t[e]),P()),t);return{context:t,itemContent:e,groupContent:i,components:r,computeItemKey:n,HeaderFooterTag:s,scrollerRef:a,FooterComponent:l("Footer"),HeaderComponent:l("Header"),TopItemListComponent:l("TopItemList"),ListComponent:l("List","div"),ItemComponent:l("Item","div"),GroupComponent:l("Group","div"),ScrollerComponent:l("Scroller","div"),EmptyPlaceholder:l("EmptyPlaceholder"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder")}}),tp=_(([e,t])=>({...e,...t}),u(tn,th)),tf=({height:e})=>(0,n.jsx)("div",{style:{height:e}}),tm={position:tl(),zIndex:1,overflowAnchor:"none"},tg={overflowAnchor:"none"},tv={...tg,display:"inline-block",height:"100%"},tb=s.memo(function({showTopList:e=!1}){let t=tj("listState"),i=tR("sizeRanges"),r=tj("useWindowScroll"),a=tj("customScrollParent"),l=tR("windowScrollContainerState"),o=tR("scrollContainerState"),u=tj("itemContent"),d=tj("context"),c=tj("groupContent"),p=tj("trackItemSizes"),f=tj("itemSize"),m=tj("log"),g=tR("gap"),v=tj("horizontalDirection"),{callbackRef:b}=$(i,f,p,e?h:a||r?l:o,m,g,a,v,tj("skipAnimationFrameInResizeObserver")),[y,x]=s.useState(0);t_("deviation",e=>{y!==e&&x(e)});let w=tj("EmptyPlaceholder"),S=tj("ScrollSeekPlaceholder")||tf,P=tj("ListComponent"),C=tj("ItemComponent"),I=tj("GroupComponent"),z=tj("computeItemKey"),E=tj("isSeeking"),D=tj("groupIndices").length>0,T=tj("alignToBottom"),k=tj("initialItemFinalLocationReached"),M=e?{}:{boxSizing:"border-box",...v?{whiteSpace:"nowrap",display:"inline-block",height:"100%",paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,marginLeft:0!==y?y:T?"auto":0}:{marginTop:0!==y?y:T?"auto":0,paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},...k?{}:{visibility:"hidden"}};return!e&&0===t.totalCount&&w?(0,n.jsx)(w,{...tP(w,d)}):(0,n.jsx)(P,{...tP(P,d),ref:b,style:M,"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",children:(e?t.topItems:t.items).map(e=>{let i=e.originalIndex,r=z(i+t.firstItemIndex,e.data,d);return E?(0,s.createElement)(S,{...tP(S,d),key:r,index:e.index,height:e.size,type:e.type||"item",..."group"===e.type?{}:{groupIndex:e.groupIndex}}):"group"===e.type?(0,s.createElement)(I,{...tP(I,d),key:r,"data-index":i,"data-known-size":e.size,"data-item-index":e.index,style:tm},c(e.index,d)):(0,s.createElement)(C,{...tP(C,d),...tC(C,e.data),key:r,"data-index":i,"data-known-size":e.size,"data-item-index":e.index,"data-item-group-index":e.groupIndex,style:v?tv:tg},D?u(e.index,e.groupIndex,e.data,d):u(e.index,e.data,d))})})}),ty={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},tx={outline:"none",overflowX:"auto",position:"relative"},tw=e=>({width:"100%",height:"100%",position:"absolute",top:0,...e?{display:"flex",flexDirection:"column"}:{}}),tS={width:"100%",position:tl(),top:0,zIndex:1};function tP(e,t){if("string"!=typeof e)return{context:t}}function tC(e,t){return{item:"string"==typeof e?void 0:t}}let tI=s.memo(function(){let e=tj("HeaderComponent"),t=tR("headerHeight"),i=tj("HeaderFooterTag"),r=U(s.useMemo(()=>e=>t(q(e,"height")),[t]),!0,tj("skipAnimationFrameInResizeObserver")),a=tj("context");return e?(0,n.jsx)(i,{ref:r,children:(0,n.jsx)(e,{...tP(e,a)})}):null}),tz=s.memo(function(){let e=tj("FooterComponent"),t=tR("footerHeight"),i=tj("HeaderFooterTag"),r=U(s.useMemo(()=>e=>t(q(e,"height")),[t]),!0,tj("skipAnimationFrameInResizeObserver")),a=tj("context");return e?(0,n.jsx)(i,{ref:r,children:(0,n.jsx)(e,{...tP(e,a)})}):null});function tE({usePublisher:e,useEmitter:t,useEmitterValue:i}){return s.memo(function({style:r,children:s,...a}){let l=e("scrollContainerState"),o=i("ScrollerComponent"),u=e("smoothScrollTargetReached"),d=i("scrollerRef"),c=i("context"),h=i("horizontalDirection")||!1,{scrollerRef:p,scrollByCallback:f,scrollToCallback:m}=J(l,u,o,d,void 0,h);return t("scrollTo",m),t("scrollBy",f),(0,n.jsx)(o,{ref:p,style:{...h?tx:ty,...r},"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...a,...tP(o,c),children:s})})}function tD({usePublisher:e,useEmitter:t,useEmitterValue:i}){return s.memo(function({style:r,children:s,...a}){let l=e("windowScrollContainerState"),o=i("ScrollerComponent"),u=e("smoothScrollTargetReached"),d=i("totalListHeight"),c=i("deviation"),p=i("customScrollParent"),f=i("context"),{scrollerRef:m,scrollByCallback:g,scrollToCallback:v}=J(l,u,o,h,p);return N(()=>(m.current=p||window,()=>{m.current=null}),[m,p]),t("windowScrollTo",v),t("scrollBy",g),(0,n.jsx)(o,{style:{position:"relative",...r,...0!==d?{height:d+c}:{}},"data-virtuoso-scroller":!0,...a,...tP(o,f),children:s})})}let tT=({children:e})=>{let t=s.useContext(tu),i=tR("viewportHeight"),r=tR("fixedItemHeight"),a=tj("alignToBottom"),o=tj("horizontalDirection"),u=U(s.useMemo(()=>l(i,e=>q(e,o?"width":"height")),[i,o]),!0,tj("skipAnimationFrameInResizeObserver"));return s.useEffect(()=>{t&&(i(t.viewportHeight),r(t.itemHeight))},[t,i,r]),(0,n.jsx)("div",{style:tw(a),ref:u,"data-viewport-type":"element",children:e})},tk=({children:e})=>{let t=s.useContext(tu),i=tR("windowViewportRect"),r=tR("fixedItemHeight"),a=to(i,tj("customScrollParent"),tj("skipAnimationFrameInResizeObserver")),l=tj("alignToBottom");return s.useEffect(()=>{t&&(r(t.itemHeight),i({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,i,r]),(0,n.jsx)("div",{ref:a,style:tw(l),"data-viewport-type":"window",children:e})},tM=({children:e})=>{let t=tj("TopItemListComponent")||"div",i=tj("headerHeight"),r={...tS,marginTop:`${i}px`},s=tj("context");return(0,n.jsx)(t,{style:r,...tP(t,s),children:e})},{Component:tB,usePublisher:tR,useEmitterValue:tj,useEmitter:t_}=O(tp,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},s.memo(function(e){let t=tj("useWindowScroll"),i=tj("topItemsIndexes").length>0,r=tj("customScrollParent"),s=r||t?tL:tA,a=r||t?tk:tT;return(0,n.jsxs)(s,{...e,children:[i&&(0,n.jsx)(tM,{children:(0,n.jsx)(tb,{showTopList:!0})}),(0,n.jsxs)(a,{children:[(0,n.jsx)(tI,{}),(0,n.jsx)(tb,{}),(0,n.jsx)(tz,{})]})]})})),tA=tE({usePublisher:tR,useEmitterValue:tj,useEmitter:t_}),tL=tD({usePublisher:tR,useEmitterValue:tj,useEmitter:t_}),tO=tB,tN={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},tF={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:tV,ceil:tK,floor:tW,min:tH,max:tU}=Math;function t$(e,t,i){return Array.from({length:t-e+1}).map((t,r)=>{let n=null===i?null:i[r+e];return{index:r+e,data:n}})}function tG(e,t){return e&&e.column===t.column&&e.row===t.row}function tq(e,t){return e&&e.width===t.width&&e.height===t.height}let tX=_(([{overscan:e,visibleRange:t,listBoundary:i,increaseViewportBy:r},{scrollTop:n,viewportHeight:s,scrollBy:a,scrollTo:l,smoothScrollTargetReached:o,scrollContainerState:u,footerHeight:d,headerHeight:c},h,p,{propsReady:f,didMount:S},{windowViewportRect:E,useWindowScroll:k,customScrollParent:B,windowScrollContainerState:_,windowScrollTo:A},L])=>{let O=b(0),N=b(0),F=b(tN),V=b({height:0,width:0}),K=b({height:0,width:0}),W=v(),H=v(),U=b(0),$=b(null),G=b({row:0,column:0}),q=v(),X=v(),J=b(!1),Y=b(0),Z=b(!0),Q=b(!1),ee=b(!1);w(S,M(Y),C(([e,t])=>!!t))(1,()=>{Z(0,!1)}),w(j(S,Z,K,V,Y,Q),C(([e,t,i,r,,n])=>e&&!t&&0!==i.height&&0!==r.height&&!n))(1,([,,,,e])=>{Q(0,!0),eR(1,()=>{W(0,e)}),g(w(n),()=>{i(0,[0,0]),Z(0,!0)})}),m(w(X,C(e=>null!=e&&e.scrollTop>0),z(0)),N),w(S,M(X),C(([,e])=>null!=e))(1,([,e])=>{e&&(V(0,e.viewport),K(0,null==e?void 0:e.item),G(0,e.gap),e.scrollTop>0&&(J(0,!0),g(w(n,D(1)),e=>{J(0,!1)}),l(0,{top:e.scrollTop})))}),m(w(V,I(({height:e})=>e)),s),m(w(j(R(V,tq),R(K,tq),R(G,(e,t)=>e&&e.column===t.column&&e.row===t.row),R(n)),I(([e,t,i,r])=>({viewport:e,item:t,gap:i,scrollTop:r}))),q),m(w(j(R(O),t,R(G,tG),R(K,tq),R(V,tq),R($),R(N),R(J),R(Z),R(Y)),C(([,,,,,,,e])=>!e),I(([e,[t,i],r,n,s,a,l,,o,u])=>{let d,c;let{row:h,column:p}=r,{height:f,width:m}=n,{width:g}=s;if(0===l&&(0===e||0===g))return tN;if(0===m){var v;let t=ej(u,e);return v=t$(t,t+Math.max(l-1,0),a),{...tF,items:v}}let b=tZ(g,m,p);o?0===t&&0===i&&l>0?(d=0,c=l-1):(d=b*tW((t+h)/(f+h)),c=tH(e-1,tU(c=b*tK((i+h)/(f+h))-1,b-1)),d=tH(c,tU(0,d))):(d=0,c=-1);let y=t$(d,c,a),{top:x,bottom:w}=tJ(s,r,n,y),S=tK(e/b);return{items:y,offsetTop:x,offsetBottom:S*f+(S-1)*h-w,top:x,bottom:w,itemHeight:f,itemWidth:m}})),F),m(w($,C(e=>null!==e),I(e=>e.length)),O),m(w(j(V,K,F,G),C(([e,t,{items:i}])=>i.length>0&&0!==t.height&&0!==e.height),I(([e,t,{items:i},r])=>{let{top:n,bottom:s}=tJ(e,r,t,i);return[n,s]}),P(eV)),i);let et=b(!1);m(w(n,M(et),I(([e,t])=>t||0!==e)),et);let ei=y(w(j(F,O),C(([{items:e}])=>e.length>0),M(et),C(([[e,t],i])=>{let r=e.items[e.items.length-1].index===t-1;return i?r:e.bottom>0&&e.itemHeight>0&&0===e.offsetBottom&&e.items.length===t&&r}),I(([[,e]])=>e-1),P())),er=y(w(R(F),C(({items:e})=>e.length>0&&0===e[0].index),z(0),P())),en=y(w(R(F),M(J),C(([{items:e},t])=>e.length>0&&!t),I(([{items:e}])=>({startIndex:e[0].index,endIndex:e[e.length-1].index})),P(eK),T(0)));m(en,p.scrollSeekRangeChanged),m(w(W,M(V,K,O,G),I(([e,t,i,r,n])=>{let s=eE(e),{align:a,behavior:l,offset:o}=s,u=s.index;"LAST"===u&&(u=r-1);let d=tY(t,n,i,u=tU(0,u,tH(r-1,u)));return"end"===a?d=tV(d-t.height+i.height):"center"===a&&(d=tV(d-t.height/2+i.height/2)),o&&(d+=o),{top:d,behavior:l}})),l);let es=x(w(F,I(e=>e.offsetBottom+e.bottom)),0);return m(w(E,I(e=>({width:e.visibleWidth,height:e.visibleHeight}))),V),{data:$,totalCount:O,viewportDimensions:V,itemDimensions:K,scrollTop:n,scrollHeight:H,overscan:e,increaseViewportBy:r,scrollBy:a,scrollTo:l,scrollToIndex:W,smoothScrollTargetReached:o,windowViewportRect:E,windowScrollTo:A,useWindowScroll:k,customScrollParent:B,windowScrollContainerState:_,deviation:U,scrollContainerState:u,footerHeight:d,headerHeight:c,initialItemCount:N,gap:G,restoreStateFrom:X,...p,initialTopMostItemIndex:Y,horizontalDirection:ee,gridState:F,totalListHeight:es,...h,startReached:er,endReached:ei,rangeChanged:en,stateChanged:q,propsReady:f,stateRestoreInProgress:J,...L}},u(eG,Y,eM,e0,eB,e9,W));function tJ(e,t,i,r){let{height:n}=i;return void 0===n||0===r.length?{top:0,bottom:0}:{top:tY(e,t,i,r[0].index),bottom:tY(e,t,i,r[r.length-1].index)+n}}function tY(e,t,i,r){let n=tW(r/tZ(e.width,i.width,t.column)),s=n*i.height+tU(0,n-1)*t.row;return s>0?s+t.row:s}function tZ(e,t,i){return tU(1,tW((e+i)/(tW(t)+i)))}let tQ=_(()=>{let e=b(e=>`Item ${e}`),t=b({}),i=b(null),r=b("virtuoso-grid-item"),n=b("virtuoso-grid-list"),s=b(tc),a=b("div"),l=b(h),o=(e,i=null)=>x(w(t,I(t=>t[e]),P()),i),u=b(!1),d=b(!1);return m(R(d),u),{readyStateChanged:u,reportReadyState:d,context:i,itemContent:e,components:t,computeItemKey:s,itemClassName:r,listClassName:n,headerFooterTag:a,scrollerRef:l,FooterComponent:o("Footer"),HeaderComponent:o("Header"),ListComponent:o("List","div"),ItemComponent:o("Item","div"),ScrollerComponent:o("Scroller","div"),ScrollSeekPlaceholder:o("ScrollSeekPlaceholder","div")}}),t0=_(([e,t])=>({...e,...t}),u(tX,tQ)),t1=s.memo(function(){let e=t9("gridState"),t=t9("listClassName"),i=t9("itemClassName"),r=t9("itemContent"),a=t9("computeItemKey"),l=t9("isSeeking"),o=t6("scrollHeight"),u=t9("ItemComponent"),d=t9("ListComponent"),c=t9("ScrollSeekPlaceholder"),h=t9("context"),p=t6("itemDimensions"),f=t6("gap"),m=t9("log"),g=t9("stateRestoreInProgress"),v=t6("reportReadyState"),b=U(s.useMemo(()=>e=>{o(e.parentElement.parentElement.scrollHeight);let t=e.firstChild;if(t){let{width:e,height:i}=t.getBoundingClientRect();p({width:e,height:i})}f({row:ii("row-gap",getComputedStyle(e).rowGap,m),column:ii("column-gap",getComputedStyle(e).columnGap,m)})},[o,p,f,m]),!0,!1);return(N(()=>{e.itemHeight>0&&e.itemWidth>0&&v(!0)},[e]),g)?null:(0,n.jsx)(d,{ref:b,className:t,...tP(d,h),style:{paddingTop:e.offsetTop,paddingBottom:e.offsetBottom},"data-testid":"virtuoso-item-list",children:e.items.map(t=>{let o=a(t.index,t.data,h);return l?(0,n.jsx)(c,{...tP(c,h),index:t.index,height:e.itemHeight,width:e.itemWidth},o):(0,s.createElement)(u,{...tP(u,h),className:i,"data-index":t.index,key:o},r(t.index,t.data,h))})})}),t4=s.memo(function(){let e=t9("HeaderComponent"),t=t6("headerHeight"),i=t9("headerFooterTag"),r=U(s.useMemo(()=>e=>t(q(e,"height")),[t]),!0,!1),a=t9("context");return e?(0,n.jsx)(i,{ref:r,children:(0,n.jsx)(e,{...tP(e,a)})}):null}),t3=s.memo(function(){let e=t9("FooterComponent"),t=t6("footerHeight"),i=t9("headerFooterTag"),r=U(s.useMemo(()=>e=>t(q(e,"height")),[t]),!0,!1),a=t9("context");return e?(0,n.jsx)(i,{ref:r,children:(0,n.jsx)(e,{...tP(e,a)})}):null}),t2=({children:e})=>{let t=s.useContext(td),i=t6("itemDimensions"),r=t6("viewportDimensions"),a=U(s.useMemo(()=>e=>{r(e.getBoundingClientRect())},[r]),!0,!1);return s.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),i({height:t.itemHeight,width:t.itemWidth}))},[t,r,i]),(0,n.jsx)("div",{style:tw(!1),ref:a,children:e})},t5=({children:e})=>{let t=s.useContext(td),i=t6("windowViewportRect"),r=t6("itemDimensions"),a=to(i,t9("customScrollParent"),!1);return s.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),i({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,i,r]),(0,n.jsx)("div",{ref:a,style:tw(!1),children:e})},{Component:t7,usePublisher:t6,useEmitterValue:t9,useEmitter:t8}=O(t0,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},s.memo(function({...e}){let t=t9("useWindowScroll"),i=t9("customScrollParent"),r=i||t?it:ie,s=i||t?t5:t2;return(0,n.jsx)(r,{...e,children:(0,n.jsxs)(s,{children:[(0,n.jsx)(t4,{}),(0,n.jsx)(t1,{}),(0,n.jsx)(t3,{})]})})})),ie=tE({usePublisher:t6,useEmitterValue:t9,useEmitter:t8}),it=tD({usePublisher:t6,useEmitterValue:t9,useEmitter:t8});function ii(e,t,i){return("normal"===t||(null==t?void 0:t.endsWith("px"))||i(`${e} was not resolved to pixel value correctly`,t,F.WARN),"normal"===t)?0:parseInt(null!=t?t:"0",10)}let ir=_(()=>{let e=b(e=>(0,n.jsxs)("td",{children:["Item $",e]})),t=b(null),i=b(null),r=b(null),s=b({}),a=b(tc),l=b(h),o=(e,t=null)=>x(w(s,I(t=>t[e]),P()),t);return{context:t,itemContent:e,fixedHeaderContent:i,fixedFooterContent:r,components:s,computeItemKey:a,scrollerRef:l,TableComponent:o("Table","table"),TableHeadComponent:o("TableHead","thead"),TableFooterComponent:o("TableFoot","tfoot"),TableBodyComponent:o("TableBody","tbody"),TableRowComponent:o("TableRow","tr"),ScrollerComponent:o("Scroller","div"),EmptyPlaceholder:o("EmptyPlaceholder"),ScrollSeekPlaceholder:o("ScrollSeekPlaceholder"),FillerRow:o("FillerRow")}}),is=_(([e,t])=>({...e,...t}),u(tn,ir)),ia=({height:e})=>(0,n.jsx)("tr",{children:(0,n.jsx)("td",{style:{height:e}})}),il=({height:e})=>(0,n.jsx)("tr",{children:(0,n.jsx)("td",{style:{height:e,padding:0,border:0}})}),io={overflowAnchor:"none"},iu=s.memo(function({showTopList:e=!1}){let t=ig("listState"),i=ig("computeItemKey"),r=ig("firstItemIndex"),a=ig("isSeeking"),l=ig("ScrollSeekPlaceholder")||ia,o=ig("context"),u=ig("TableRowComponent"),d=ig("fixedHeaderHeight"),c=ig("itemContent"),h=(e?t.topItems:[]).reduce((e,t,i)=>(0===i?e.push(t.size):e.push(e[i-1]+t.size),e),[]),p=(e?t.topItems:t.items).map(t=>{let n=t.originalIndex,p=i(n+r,t.data,o),f=e?0===n?0:h[n-1]:0;return a?(0,s.createElement)(l,{...tP(l,o),key:p,index:t.index,height:t.size,type:t.type||"item"}):(0,s.createElement)(u,{...tP(u,o),...tC(u,t.data),key:p,"data-index":n,"data-known-size":t.size,"data-item-index":t.index,style:e?{overflowAnchor:"none",position:"sticky",zIndex:2,top:d+f}:io},c(t.index,t.data,o))});return(0,n.jsx)(n.Fragment,{children:p})}),id=s.memo(function(){let e=ig("listState"),t=ig("topItemsIndexes").length>0,i=im("sizeRanges"),r=ig("useWindowScroll"),a=ig("customScrollParent"),l=im("windowScrollContainerState"),o=im("scrollContainerState"),u=ig("trackItemSizes"),{callbackRef:d,ref:c}=$(i,ig("itemSize"),u,a||r?l:o,ig("log"),void 0,a,!1,ig("skipAnimationFrameInResizeObserver")),[h,p]=s.useState(0);iv("deviation",e=>{h!==e&&(c.current.style.marginTop=`${e}px`,p(e))});let f=ig("EmptyPlaceholder"),m=ig("FillerRow")||il,g=ig("TableBodyComponent"),v=ig("paddingTopAddition"),b=ig("statefulTotalCount"),y=ig("context");if(0===b&&f)return(0,n.jsx)(f,{...tP(f,y)});let x=(t?e.topItems:[]).reduce((e,t)=>e+t.size,0),w=e.offsetTop+v+h-x,S=e.offsetBottom,P=w>0?(0,n.jsx)(m,{height:w,context:y},"padding-top"):null,C=S>0?(0,n.jsx)(m,{height:S,context:y},"padding-bottom"):null;return(0,n.jsxs)(g,{ref:d,"data-testid":"virtuoso-item-list",...tP(g,y),children:[P,t&&(0,n.jsx)(iu,{showTopList:!0}),(0,n.jsx)(iu,{}),C]})}),ic=({children:e})=>{let t=s.useContext(tu),i=im("viewportHeight"),r=im("fixedItemHeight"),a=U(s.useMemo(()=>l(i,e=>q(e,"height")),[i]),!0,ig("skipAnimationFrameInResizeObserver"));return s.useEffect(()=>{t&&(i(t.viewportHeight),r(t.itemHeight))},[t,i,r]),(0,n.jsx)("div",{style:tw(!1),ref:a,"data-viewport-type":"element",children:e})},ih=({children:e})=>{let t=s.useContext(tu),i=im("windowViewportRect"),r=im("fixedItemHeight"),a=to(i,ig("customScrollParent"),ig("skipAnimationFrameInResizeObserver"));return s.useEffect(()=>{t&&(r(t.itemHeight),i({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,i,r]),(0,n.jsx)("div",{ref:a,style:tw(!1),"data-viewport-type":"window",children:e})},{Component:ip,usePublisher:im,useEmitterValue:ig,useEmitter:iv}=O(is,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},s.memo(function(e){let t=ig("useWindowScroll"),i=ig("customScrollParent"),r=im("fixedHeaderHeight"),a=im("fixedFooterHeight"),o=ig("fixedHeaderContent"),u=ig("fixedFooterContent"),d=ig("context"),c=U(s.useMemo(()=>l(r,e=>q(e,"height")),[r]),!0,ig("skipAnimationFrameInResizeObserver")),h=U(s.useMemo(()=>l(a,e=>q(e,"height")),[a]),!0,ig("skipAnimationFrameInResizeObserver")),p=i||t?iy:ib,f=i||t?ih:ic,m=ig("TableComponent"),g=ig("TableHeadComponent"),v=ig("TableFooterComponent"),b=o?(0,n.jsx)(g,{style:{zIndex:2,position:"sticky",top:0},ref:c,...tP(g,d),children:o()},"TableHead"):null,y=u?(0,n.jsx)(v,{style:{zIndex:1,position:"sticky",bottom:0},ref:h,...tP(v,d),children:u()},"TableFoot"):null;return(0,n.jsx)(p,{...e,children:(0,n.jsx)(f,{children:(0,n.jsxs)(m,{style:{borderSpacing:0,overflowAnchor:"none"},...tP(m,d),children:[b,(0,n.jsx)(id,{},"TableBody"),y]})})})})),ib=tE({usePublisher:im,useEmitterValue:ig,useEmitter:iv}),iy=tD({usePublisher:im,useEmitterValue:ig,useEmitter:iv})}}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/_app-4c49463b85ca590e.js b/_next/static/chunks/pages/_app-4c49463b85ca590e.js deleted file mode 100644 index df76ea6..0000000 --- a/_next/static/chunks/pages/_app-4c49463b85ca590e.js +++ /dev/null @@ -1,10 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{8039:function(e,t,r){"use strict";r.d(t,{AS7:function(){return P},BGW:function(){return T},FMB:function(){return h},Hf3:function(){return l},NWY:function(){return L},NhS:function(){return c},UG6:function(){return b},VZf:function(){return $},_Ve:function(){return w},kLh:function(){return x},nWS:function(){return m},o1U:function(){return C},veu:function(){return a},xrR:function(){return f}});var n=r(9589);function o(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}var i=["color"],a=(0,n.forwardRef)(function(e,t){var r=e.color,a=o(e,i);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),(0,n.createElement)("path",{d:"M7.5 2C7.77614 2 8 2.22386 8 2.5L8 11.2929L11.1464 8.14645C11.3417 7.95118 11.6583 7.95118 11.8536 8.14645C12.0488 8.34171 12.0488 8.65829 11.8536 8.85355L7.85355 12.8536C7.75979 12.9473 7.63261 13 7.5 13C7.36739 13 7.24021 12.9473 7.14645 12.8536L3.14645 8.85355C2.95118 8.65829 2.95118 8.34171 3.14645 8.14645C3.34171 7.95118 3.65829 7.95118 3.85355 8.14645L7 11.2929L7 2.5C7 2.22386 7.22386 2 7.5 2Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),s=["color"],l=(0,n.forwardRef)(function(e,t){var r=e.color,i=o(e,s);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M7.14645 2.14645C7.34171 1.95118 7.65829 1.95118 7.85355 2.14645L11.8536 6.14645C12.0488 6.34171 12.0488 6.65829 11.8536 6.85355C11.6583 7.04882 11.3417 7.04882 11.1464 6.85355L8 3.70711L8 12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 3.70711L3.85355 6.85355C3.65829 7.04882 3.34171 7.04882 3.14645 6.85355C2.95118 6.65829 2.95118 6.34171 3.14645 6.14645L7.14645 2.14645Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),u=["color"],c=(0,n.forwardRef)(function(e,t){var r=e.color,i=o(e,u);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),d=["color"],f=(0,n.forwardRef)(function(e,t){var r=e.color,i=o(e,d);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),p=["color"],h=(0,n.forwardRef)(function(e,t){var r=e.color,i=o(e,p);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M7.28856 0.796908C7.42258 0.734364 7.57742 0.734364 7.71144 0.796908L13.7114 3.59691C13.8875 3.67906 14 3.85574 14 4.05V10.95C14 11.1443 13.8875 11.3209 13.7114 11.4031L7.71144 14.2031C7.57742 14.2656 7.42258 14.2656 7.28856 14.2031L1.28856 11.4031C1.11252 11.3209 1 11.1443 1 10.95V4.05C1 3.85574 1.11252 3.67906 1.28856 3.59691L7.28856 0.796908ZM2 4.80578L7 6.93078V12.9649L2 10.6316V4.80578ZM8 12.9649L13 10.6316V4.80578L8 6.93078V12.9649ZM7.5 6.05672L12.2719 4.02866L7.5 1.80176L2.72809 4.02866L7.5 6.05672Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),g=["color"],m=(0,n.forwardRef)(function(e,t){var r=e.color,i=o(e,g);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),v=["color"],b=(0,n.forwardRef)(function(e,t){var r=e.color,i=o(e,v);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M7.07095 0.650238C6.67391 0.650238 6.32977 0.925096 6.24198 1.31231L6.0039 2.36247C5.6249 2.47269 5.26335 2.62363 4.92436 2.81013L4.01335 2.23585C3.67748 2.02413 3.23978 2.07312 2.95903 2.35386L2.35294 2.95996C2.0722 3.2407 2.0232 3.6784 2.23493 4.01427L2.80942 4.92561C2.62307 5.2645 2.47227 5.62594 2.36216 6.00481L1.31209 6.24287C0.924883 6.33065 0.650024 6.6748 0.650024 7.07183V7.92897C0.650024 8.32601 0.924883 8.67015 1.31209 8.75794L2.36228 8.99603C2.47246 9.375 2.62335 9.73652 2.80979 10.0755L2.2354 10.9867C2.02367 11.3225 2.07267 11.7602 2.35341 12.041L2.95951 12.6471C3.24025 12.9278 3.67795 12.9768 4.01382 12.7651L4.92506 12.1907C5.26384 12.377 5.62516 12.5278 6.0039 12.6379L6.24198 13.6881C6.32977 14.0753 6.67391 14.3502 7.07095 14.3502H7.92809C8.32512 14.3502 8.66927 14.0753 8.75705 13.6881L8.99505 12.6383C9.37411 12.5282 9.73573 12.3773 10.0748 12.1909L10.986 12.7653C11.3218 12.977 11.7595 12.928 12.0403 12.6473L12.6464 12.0412C12.9271 11.7604 12.9761 11.3227 12.7644 10.9869L12.1902 10.076C12.3768 9.73688 12.5278 9.37515 12.638 8.99596L13.6879 8.75794C14.0751 8.67015 14.35 8.32601 14.35 7.92897V7.07183C14.35 6.6748 14.0751 6.33065 13.6879 6.24287L12.6381 6.00488C12.528 5.62578 12.3771 5.26414 12.1906 4.92507L12.7648 4.01407C12.9766 3.6782 12.9276 3.2405 12.6468 2.95975L12.0407 2.35366C11.76 2.07292 11.3223 2.02392 10.9864 2.23565L10.0755 2.80989C9.73622 2.62328 9.37437 2.47229 8.99505 2.36209L8.75705 1.31231C8.66927 0.925096 8.32512 0.650238 7.92809 0.650238H7.07095ZM4.92053 3.81251C5.44724 3.44339 6.05665 3.18424 6.71543 3.06839L7.07095 1.50024H7.92809L8.28355 3.06816C8.94267 3.18387 9.5524 3.44302 10.0794 3.81224L11.4397 2.9547L12.0458 3.56079L11.1882 4.92117C11.5573 5.44798 11.8164 6.0575 11.9321 6.71638L13.5 7.07183V7.92897L11.932 8.28444C11.8162 8.94342 11.557 9.55301 11.1878 10.0798L12.0453 11.4402L11.4392 12.0462L10.0787 11.1886C9.55192 11.5576 8.94241 11.8166 8.28355 11.9323L7.92809 13.5002H7.07095L6.71543 11.932C6.0569 11.8162 5.44772 11.5572 4.92116 11.1883L3.56055 12.046L2.95445 11.4399L3.81213 10.0794C3.4431 9.55266 3.18403 8.94326 3.06825 8.2845L1.50002 7.92897V7.07183L3.06818 6.71632C3.18388 6.05765 3.44283 5.44833 3.81171 4.92165L2.95398 3.561L3.56008 2.95491L4.92053 3.81251ZM9.02496 7.50008C9.02496 8.34226 8.34223 9.02499 7.50005 9.02499C6.65786 9.02499 5.97513 8.34226 5.97513 7.50008C5.97513 6.65789 6.65786 5.97516 7.50005 5.97516C8.34223 5.97516 9.02496 6.65789 9.02496 7.50008ZM9.92496 7.50008C9.92496 8.83932 8.83929 9.92499 7.50005 9.92499C6.1608 9.92499 5.07513 8.83932 5.07513 7.50008C5.07513 6.16084 6.1608 5.07516 7.50005 5.07516C8.83929 5.07516 9.92496 6.16084 9.92496 7.50008Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),y=["color"],w=(0,n.forwardRef)(function(e,t){var r=e.color,i=o(e,y);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),_=["color"],x=(0,n.forwardRef)(function(e,t){var r=e.color,i=o(e,_);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),E=["color"],C=(0,n.forwardRef)(function(e,t){var r=e.color,i=o(e,E);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M3.24182 2.32181C3.3919 2.23132 3.5784 2.22601 3.73338 2.30781L12.7334 7.05781C12.8974 7.14436 13 7.31457 13 7.5C13 7.68543 12.8974 7.85564 12.7334 7.94219L3.73338 12.6922C3.5784 12.774 3.3919 12.7687 3.24182 12.6782C3.09175 12.5877 3 12.4252 3 12.25V2.75C3 2.57476 3.09175 2.4123 3.24182 2.32181ZM4 3.57925V11.4207L11.4288 7.5L4 3.57925Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),S=["color"],T=(0,n.forwardRef)(function(e,t){var r=e.color,i=o(e,S);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M1.84998 7.49998C1.84998 4.66458 4.05979 1.84998 7.49998 1.84998C10.2783 1.84998 11.6515 3.9064 12.2367 5H10.5C10.2239 5 10 5.22386 10 5.5C10 5.77614 10.2239 6 10.5 6H13.5C13.7761 6 14 5.77614 14 5.5V2.5C14 2.22386 13.7761 2 13.5 2C13.2239 2 13 2.22386 13 2.5V4.31318C12.2955 3.07126 10.6659 0.849976 7.49998 0.849976C3.43716 0.849976 0.849976 4.18537 0.849976 7.49998C0.849976 10.8146 3.43716 14.15 7.49998 14.15C9.44382 14.15 11.0622 13.3808 12.2145 12.2084C12.8315 11.5806 13.3133 10.839 13.6418 10.0407C13.7469 9.78536 13.6251 9.49315 13.3698 9.38806C13.1144 9.28296 12.8222 9.40478 12.7171 9.66014C12.4363 10.3425 12.0251 10.9745 11.5013 11.5074C10.5295 12.4963 9.16504 13.15 7.49998 13.15C4.05979 13.15 1.84998 10.3354 1.84998 7.49998Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),k=["color"],L=(0,n.forwardRef)(function(e,t){var r=e.color,i=o(e,k);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),M=["color"],P=(0,n.forwardRef)(function(e,t){var r=e.color,i=o(e,M);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M4 6H11L7.5 10.5L4 6Z",fill:void 0===r?"currentColor":r}))}),O=["color"],$=(0,n.forwardRef)(function(e,t){var r=e.color,i=o(e,O);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M6 11L6 4L10.5 7.5L6 11Z",fill:void 0===r?"currentColor":r}))})},3822:function(e,t,r){r(4199)},3617:function(e,t,r){r(9327);var n=r(229),o="undefined"!=typeof WeakMap?WeakMap:function(){var e=[],t=[];return{set:function(r,n){e.push(r),t.push(n)},get:function(r){for(var n=0;n/),o=n?n[0]:" ",i="}"===r[r.length-1]?"}":"";return o.replace(/\r\n|\n/g," ").replace(/\s+/g," ")+" /* ... */ "+i},t.restore=function(e,t){var r=e[0],i=e.slice(1);switch(r){case"$":return n(t,e);case"r":var a=i.indexOf(","),s=i.slice(0,a);return RegExp(i.slice(a+1),s);case"d":return new Date(+i);case"f":var l=function(){throw Error("can't run jsan parsed function")};return l.toString=function(){return i},l;case"u":return;case"e":var u=Error(i);return u.stack="Stack is unavailable for jsan parsed errors",u;case"s":return Symbol(i);case"g":return Symbol.for(i);case"m":return new Map(o.parse(i));case"l":return new Set(o.parse(i));case"n":return NaN;case"i":return 1/0;case"y":return-1/0;default:return console.warn("unknown type",e),e}}},7003:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(8251)}])},1463:function(e,t,r){"use strict";r.d(t,{M:function(){return i}});var n=r(9362),o=r(2825);let i=(0,n.eK)(()=>({state:{}}),{withActions:e=>({add:t=>{e.state[t]?e.state[t]<0?e.state[t]=1:e.state[t]++:e.state[t]=1},remove:t=>{e.state[t]&&(e.state[t]<0?e.state[t]=0:e.state[t]--)},clear:()=>{e.state={}}})});o.s||(window.useActiveNode=i)},9676:function(e,t,r){"use strict";r.d(t,{p:function(){return l}});var n=r(9362),o=r(2825),i=r(8344),a=r(5696),s=r(1773);let l=(0,n.eK)(()=>({nodes:[],list:[]}),{withDeepSelector:!1,withActions:e=>({addNode:t=>{let r=s.O.getReadonlyState().closeList,n=Array.from(a.k.getReadonlyState().filter);e.nodes.find(e=>e.i===t.i)?(e.nodes=e.nodes.map(e=>e.i===t.i?t:e),e.list=e.nodes.map(e=>(0,i.VB)(e,e=>null==r?void 0:r[e.i],e=>n.some(t=>+t&e.t))).flat(1)):(e.nodes=[...e.nodes,t],e.list=[...e.list,...(0,i.VB)(t,e=>null==r?void 0:r[e.i],e=>n.some(t=>+t&e.t))]),s.O.getActions().updateSelectList()},update:()=>{let t=s.O.getReadonlyState().closeList,r=Array.from(a.k.getReadonlyState().filter);e.list=e.nodes.map(e=>(0,i.VB)(e,e=>null==t?void 0:t[e.i],e=>r.some(t=>+t&e.t))).flat(1),s.O.getActions().updateSelectList()},clear:()=>{e.nodes=[],e.list=[]}})});o.s||(window.useAppTree=l)},6721:function(e,t,r){"use strict";r.d(t,{F:function(){return i}});var n=r(9362),o=r(2825);let i=(0,n.eK)(()=>({id:null,data:{}}),{withActions:e=>({setLoading:t=>{e.id=t},setLoaded:()=>{e.id=null},setChunk:t=>{e.id&&t[e.id]&&(e.id=null),e.data={...e.data,...t}},clear:()=>{e.id=null,e.data={}}}),withDeepSelector:!1,withStableSelector:!0});o.s||(window.useChunk=i)},4688:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(9362),o=r(2825);let i=(0,n.eK)(()=>({state:{enableHover:!1,enableUpdate:!1,enableRuntimeCount:!1,enableRuntimeMis:!1}}),{withActions:e=>({setEnableHover(t){e.state.enableHover=t},setEnableUpdate(t){e.state.enableUpdate=t},setEnableRuntimeCount(t){e.state.enableRuntimeCount=t},setEnableRuntimeMis(t){e.state.enableRuntimeMis=t}}),withNamespace:"useConfig",withDeepSelector:!0});o.s||(window.useConfig=i)},4874:function(e,t,r){"use strict";r.d(t,{$:function(){return i}});var n=r(9362),o=r(2825);let i=(0,n.eK)(()=>({state:!1,render:void 0,error:void 0,cb:null}),{withActions:e=>({connect(){e.state=!0},setRender(t){e.render=t},setError(t){e.error=t},setWebDev(t,r){e.name=t,e.url=r},disconnect(){e.state=!1,e.url=void 0,e.name=void 0},setConnectHandler(t){e.cb=t}}),withDeepSelector:!1});o.s||(window.useConnect=i)},4115:function(e,t,r){"use strict";r.d(t,{a:function(){return i}});var n=r(9362),o=r(2825);let i=(0,n.eK)(()=>({state:!1,id:0,store:0,position:{x:0,y:0}}),{withActions:e=>({open:t=>{e.state=!0,e.position=t},setId:t=>{e.id=t},setStore:()=>{e.store=e.id,e.id=0},close:()=>{e.id=0,e.store=0,e.state=!1},clear:()=>{e.id=0,e.store=0,e.state=!1,e.position={x:0,y:0}}}),withDeepSelector:!1,withStableSelector:!0});o.s||(window.useContextMenu=i)},3105:function(e,t,r){"use strict";r.d(t,{K:function(){return i}});var n=r(9362),o=r(2825);let i=(0,n.eK)(()=>({nodes:[],loading:!1,error:null}),{withActions:e=>({addNode:t=>{let r=e.nodes.filter(e=>e.i!==t.i);r.push(t),e.nodes=r},delNode:t=>{e.nodes=e.nodes.filter(e=>e.i!==t)},setLoading:t=>{e.loading=t},setError:t=>{e.error=t},clear:()=>{e.nodes=[],e.loading=!1,e.error=null}}),withDeepSelector:!1});o.s||(window.useDetailNode=i)},5696:function(e,t,r){"use strict";r.d(t,{k:function(){return s}});var n=r(9870),o=r(9362),i=r(9676);let a=new Set([n.NODE_TYPE.__comment__,n.NODE_TYPE.__initial__,n.NODE_TYPE.__text__,n.NODE_TYPE.__empty__,n.NODE_TYPE.__null__,n.NODE_TYPE.__plain__,n.NODE_TYPE.__fragment__].map(e=>"".concat(e))),s=(0,o.eK)(()=>({filter:a}),{withActions:e=>({onChange:t=>{e.filter=t,i.p.getActions().update()}}),withDeepSelector:!1,withNamespace:"useFilterNode"})},5720:function(e,t,r){"use strict";r.d(t,{m:function(){return i}});var n=r(9362),o=r(2825);let i=(0,n.eK)(()=>({state:{}}),{withDeepSelector:!1,withActions:e=>({update:t=>{Object.keys(t).forEach(r=>{e.state[r]=t[r]})},clear:()=>{e.state={}}})});o.s||(window.useHMRNode=i)},4416:function(e,t,r){"use strict";r.d(t,{R:function(){return i}});var n=r(9362),o=r(2825);let i=(0,n.eK)(()=>({state:{},warn:{},error:{}}),{withActions:e=>({highlightNode:(t,r)=>{e.state[t]=r,setTimeout(()=>{delete e.state[t]},3e3)},setError:t=>{Object.keys(t).forEach(r=>{e.error[r]=e.error[r]||[],e.error[r].push(...t[r])})},setWarn:t=>{Object.keys(t).forEach(r=>{e.warn[r]=e.warn[r]||[],e.warn[r].push(...t[r])})},clear:()=>{e.state={},e.warn={},e.error={}}})});o.s||(window.useHighlightNode=i)},5993:function(e,t,r){"use strict";r.d(t,{i:function(){return i}});var n=r(9362),o=r(2825);let i=(0,n.eK)(()=>({map:{},state:{}}),{withDeepSelector:!1,withActions:e=>({set:t=>{Object.keys(t).forEach(r=>{e.state[r]=t[r],e.map[t[r]]=r})},clear:()=>{e.state={},e.map={}}})});o.s||(window.useNodeName=i)},4736:function(e,t,r){"use strict";r.d(t,{g:function(){return i}});var n=r(9362),o=r(2825);let i=(0,n.eK)(()=>({state:{}}),{withDeepSelector:!1,withActions:e=>({update:t=>{Object.keys(t).forEach(r=>{e.state[r]={...e.state[r],...t[r]}})},clear:()=>{e.state={}}})});o.s||(window.useRunNode=i)},1773:function(e,t,r){"use strict";r.d(t,{O:function(){return p}});var n=r(715),o=r(9362),i=r(4153),a=r(2825),s=r(8344),l=r(9676),u=r(6721),c=r(3105);let d=u.F.getActions().clear,f=c.K.getActions().delNode,p=(0,o.eK)(()=>({select:null,hover:null,closeList:{},selectList:{},reload:0,store:0,trigger:0}),{withActions:e=>{let t=(0,n.debounce)(()=>{let t=l.p.getReadonlyState().list.find(t=>t.i===e.select);t&&(e.selectList=(0,s.VB)(t,()=>!1,()=>!1).reduce((e,t)=>(e[t.i]=!0,e),{}))},16);return{setSelect:(r,n)=>{r!==e.select||n?(e.select=r,t()):(e.select=null,e.selectList={})},forceReload:()=>{e.select&&(e.reload++,f(e.select)),d()},storeFiber:()=>{e.select&&(e.store++,i.Am.success("store fiber success"))},triggerFiber:()=>{e.select&&(e.trigger++,i.Am.success("trigger fiber success"))},updateSelectList:t,setHover:t=>{t===e.hover?e.hover=null:e.hover=t},setClose:t=>{var r;t&&((null===(r=e.closeList)||void 0===r?void 0:r[t])?e.closeList={...e.closeList,[t]:!1}:e.closeList={...e.closeList,[t]:!0},l.p.getActions().update())},clear:()=>{e.hover=null,e.select=null,e.closeList={},e.selectList={}}}},withDeepSelector:!1});a.s||(window.useTreeNode=p)},872:function(e,t,r){"use strict";r.d(t,{P:function(){return i}});var n=r(9362),o=r(2825);let i=(0,n.eK)(()=>({state:{}}),{withDeepSelector:!1,withActions:e=>({update:t=>{Object.keys(t).forEach(r=>{e.state[r]=t[r]})},clear:()=>{e.state={}}})});o.s||(window.useTriggerNode=i)},8251:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return es}});var n=r(217),o=r(3760),i=r.n(o),a=r(3443),s=r.n(a),l=r(704),u=r(5278),c=r(3427),d=(0,c.tv)({slots:{base:"inline-flex items-center justify-between h-fit rounded-large gap-2",pre:"bg-transparent text-inherit font-mono font-normal inline-block whitespace-nowrap",content:"flex flex-col",symbol:"select-none",copyButton:["group","relative","z-10","text-large","text-inherit","data-[hover=true]:bg-transparent"],copyIcon:["absolute text-inherit opacity-100 scale-100 group-data-[copied=true]:opacity-0 group-data-[copied=true]:scale-50"],checkIcon:["absolute text-inherit opacity-0 scale-50 group-data-[copied=true]:opacity-100 group-data-[copied=true]:scale-100"]},variants:{variant:{flat:"",solid:"",bordered:"border-medium bg-transparent",shadow:""},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{base:"px-1.5 py-0.5 text-tiny rounded-small"},md:{base:"px-3 py-1.5 text-small rounded-medium"},lg:{base:"px-4 py-2 text-medium rounded-large"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},fullWidth:{true:{base:"w-full"}},disableAnimation:{true:{},false:{copyIcon:"transition-transform-opacity",checkIcon:"transition-transform-opacity"}}},defaultVariants:{color:"default",variant:"flat",size:"md",fullWidth:!1},compoundVariants:[{variant:["solid","shadow"],color:"default",class:{copyButton:"data-[focus-visible]:outline-default-foreground"}},{variant:["solid","shadow"],color:"primary",class:{copyButton:"data-[focus-visible]:outline-primary-foreground"}},{variant:["solid","shadow"],color:"secondary",class:{copyButton:"data-[focus-visible]:outline-secondary-foreground"}},{variant:["solid","shadow"],color:"success",class:{copyButton:"data-[focus-visible]:outline-success-foreground"}},{variant:["solid","shadow"],color:"warning",class:{copyButton:"data-[focus-visible]:outline-warning-foreground"}},{variant:["solid","shadow"],color:"danger",class:{copyButton:"data-[focus-visible]:outline-danger-foreground"}},{variant:"flat",color:"default",class:{base:u.J.flat.default}},{variant:"flat",color:"primary",class:{base:u.J.flat.primary}},{variant:"flat",color:"secondary",class:{base:u.J.flat.secondary}},{variant:"flat",color:"success",class:{base:u.J.flat.success}},{variant:"flat",color:"warning",class:{base:u.J.flat.warning}},{variant:"flat",color:"danger",class:{base:u.J.flat.danger}},{variant:"solid",color:"default",class:{base:u.J.solid.default}},{variant:"solid",color:"primary",class:{base:u.J.solid.primary}},{variant:"solid",color:"secondary",class:{base:u.J.solid.secondary}},{variant:"solid",color:"success",class:{base:u.J.solid.success}},{variant:"solid",color:"warning",class:{base:u.J.solid.warning}},{variant:"solid",color:"danger",class:{base:u.J.solid.danger}},{variant:"shadow",color:"default",class:{base:u.J.shadow.default}},{variant:"shadow",color:"primary",class:{base:u.J.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:u.J.shadow.secondary}},{variant:"shadow",color:"success",class:{base:u.J.shadow.success}},{variant:"shadow",color:"warning",class:{base:u.J.shadow.warning}},{variant:"shadow",color:"danger",class:{base:u.J.shadow.danger}},{variant:"bordered",color:"default",class:{base:u.J.bordered.default}},{variant:"bordered",color:"primary",class:{base:u.J.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:u.J.bordered.secondary}},{variant:"bordered",color:"success",class:{base:u.J.bordered.success}},{variant:"bordered",color:"warning",class:{base:u.J.bordered.warning}},{variant:"bordered",color:"danger",class:{base:u.J.bordered.danger}}]}),f=r(7510),p=r(4189),h=r(4211),g=r(7433),m=r(9077),v=r(1870),b=r(1273),y=r(9589),w=r(709),_=r(6486),x=e=>(0,n.jsxs)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",...e,children:[(0,n.jsx)("path",{d:"M16 17.1c0 3.5-1.4 4.9-4.9 4.9H6.9C3.4 22 2 20.6 2 17.1v-4.2C2 9.4 3.4 8 6.9 8h4.2c3.5 0 4.9 1.4 4.9 4.9Z"}),(0,n.jsx)("path",{d:"M8 8V6.9C8 3.4 9.4 2 12.9 2h4.2C20.6 2 22 3.4 22 6.9v4.2c0 3.5-1.4 4.9-4.9 4.9H16"}),(0,n.jsx)("path",{d:"M16 12.9C16 9.4 14.6 8 11.1 8"})]}),E=e=>(0,n.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...e,children:(0,n.jsx)("polyline",{points:"20 6 9 17 4 12"})}),C=r(3412),S=(0,p.Gp)((e,t)=>{let{Component:r,domRef:o,preRef:i,children:a,slots:s,classNames:l,copied:u,copyIcon:c=(0,n.jsx)(x,{}),checkIcon:S=(0,n.jsx)(E,{}),symbolBefore:T,disableCopy:k,disableTooltip:L,hideSymbol:M,hideCopyButton:P,tooltipProps:O,isMultiLine:$,onCopy:R,getSnippetProps:j,getCopyButtonProps:N}=function(e){var t,r,n,o;let i=(0,f.w)(),[a,s]=(0,p.oe)(e,d.variantKeys),{ref:l,as:u,children:c,symbol:_="$",classNames:x,timeout:E,copyIcon:C,checkIcon:S,codeString:T,disableCopy:k=!1,disableTooltip:L=!1,hideCopyButton:M=!1,autoFocus:P=!1,hideSymbol:O=!1,onCopy:$,tooltipProps:R={},copyButtonProps:j={},className:N,...A}=a,I=u||"div",D="string"==typeof I,z=null!=(r=null!=(t=null==e?void 0:e.disableAnimation)?t:null==i?void 0:i.disableAnimation)&&r,H={offset:15,delay:1e3,content:"Copy to clipboard",color:null!=(o=null==e?void 0:e.color)?o:null==(n=d.defaultVariants)?void 0:n.color,isDisabled:a.disableCopy,...R},F=(0,h.gy)(l),W=(0,y.useRef)(null),{copy:B,copied:K}=function({timeout:e=2e3}={}){let[t,r]=(0,y.useState)(null),[n,o]=(0,y.useState)(!1),[i,a]=(0,y.useState)(null),s=(0,y.useCallback)(()=>{i&&clearTimeout(i)},[i]),l=(0,y.useCallback)(t=>{s(),a(setTimeout(()=>o(!1),e)),o(t)},[s,e]);return{copy:(0,y.useCallback)(e=>{"clipboard"in navigator?navigator.clipboard.writeText(e).then(()=>l(!0)).catch(e=>r(e)):r(Error("useClipboard: navigator.clipboard is not supported"))},[l]),reset:(0,y.useCallback)(()=>{o(!1),r(null),s()},[s]),error:t,copied:n}}({timeout:E}),V=c&&Array.isArray(c),{isFocusVisible:U,isFocused:J,focusProps:Y}=(0,w.F)({autoFocus:P}),Z=(0,y.useMemo)(()=>d({...s,disableAnimation:z}),[(0,m.Xx)(s),z]),G=(0,y.useMemo)(()=>{if(!_||"string"!=typeof _)return _;let e=_.trim();return e?`${e} `:""},[_]),X=(0,v.W)(null==x?void 0:x.base,N),q=(0,y.useCallback)(()=>({className:Z.base({class:X}),...(0,g.z)(A,{enabled:D})}),[Z,X,V,A]),Q=(0,y.useCallback)(()=>{var e;if(k)return;let t="";"string"==typeof c?t=c:Array.isArray(c)&&c.forEach(e=>{var r,n;let o="string"==typeof e?e:null==(n=null==(r=null==e?void 0:e.props)?void 0:r.children)?void 0:n.toString();o&&(t+=o+"\n")});let r=T||t||(null==(e=W.current)?void 0:e.textContent)||"";B(r),null==$||$(r)},[B,T,k,$,c]),ee={"aria-label":"string"==typeof H.content?H.content:"Copy to clipboard",size:"sm",variant:"light",isDisabled:k,onPress:Q,isIconOnly:!0,...j},et=(0,y.useCallback)(()=>({...ee,"data-copied":(0,b.PB)(K),className:Z.copyButton({class:(0,v.W)(null==x?void 0:x.copyButton)})}),[Z,U,J,k,null==x?void 0:x.copyButton,ee,Y]);return{Component:I,as:u,domRef:F,preRef:W,children:c,slots:Z,classNames:x,copied:K,onCopy:Q,copyIcon:C,checkIcon:S,symbolBefore:G,isMultiLine:V,isFocusVisible:U,hideCopyButton:M,disableCopy:k,disableTooltip:L,hideSymbol:O,tooltipProps:H,getSnippetProps:q,getCopyButtonProps:et}}({...e,ref:t}),A=(0,y.useCallback)(({children:e})=>(0,n.jsx)(_.e,{...O,isDisabled:u||O.isDisabled,children:e}),[(0,m.Xx)(O)]),I=(0,y.useMemo)(()=>{if(P)return null;let e=S&&(0,y.cloneElement)(S,{className:s.checkIcon()}),t=c&&(0,y.cloneElement)(c,{className:s.copyIcon()}),r=(0,n.jsxs)(C.A,{...N(),children:[e,t]});return L?r:(0,n.jsx)(A,{children:r})},[s,null==l?void 0:l.copyButton,u,S,c,R,A,k,L,P]),D=(0,y.useMemo)(()=>$&&a&&Array.isArray(a)?(0,n.jsx)("div",{className:s.content({class:null==l?void 0:l.content}),children:a.map((e,t)=>(0,n.jsxs)("pre",{className:s.pre({class:null==l?void 0:l.pre}),children:[!M&&(0,n.jsx)("span",{className:s.symbol({class:null==l?void 0:l.symbol}),children:T}),e]},`${t}-${e}`))}):(0,n.jsxs)("pre",{ref:i,className:s.pre({class:null==l?void 0:l.pre}),children:[!M&&(0,n.jsx)("span",{className:s.symbol({class:null==l?void 0:l.symbol}),children:T}),a]}),[a,M,$,T,null==l?void 0:l.pre,s]);return(0,n.jsxs)(r,{ref:o,...j(),children:[D,I]})});S.displayName="NextUI.Snippet";var T=(0,c.tv)({base:["px-2","py-1","h-fit","font-mono","font-normal","inline-block","whitespace-nowrap"],variants:{color:{default:u.J.flat.default,primary:u.J.flat.primary,secondary:u.J.flat.secondary,success:u.J.flat.success,warning:u.J.flat.warning,danger:u.J.flat.danger},size:{sm:"text-small",md:"text-medium",lg:"text-large"},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"}},defaultVariants:{color:"default",size:"sm",radius:"sm"}}),k=(0,p.Gp)((e,t)=>{let{Component:r,children:o,getCodeProps:i}=function(e){let[t,r]=(0,p.oe)(e,T.variantKeys),{as:n,children:o,className:i,...a}=t,s=(0,y.useMemo)(()=>T({...r,className:i}),[(0,m.Xx)(r),i]);return{Component:n||"code",children:o,getCodeProps:()=>({className:s,...a})}}({...e});return(0,n.jsx)(r,{ref:t,...i(),children:o})});k.displayName="NextUI.Code";var L=r(9272),M=r(2314),P=r(501),O=r(4697),$=r(3376),R=r(5302),j=r(9466),N=r(4141);function A({children:e,isValidProp:t,...r}){t&&(0,j.K)(t),(r={...(0,y.useContext)(R._),...r}).isStatic=(0,N.h)(()=>r.isStatic);let o=(0,y.useMemo)(()=>r,[JSON.stringify(r.transition),r.transformPagePoint,r.reducedMotion]);return(0,n.jsx)(R._.Provider,{value:o,children:e})}var I=({children:e,navigate:t,disableAnimation:r,useHref:o,disableRipple:i=!1,skipFramerMotionAnimations:a=r,reducedMotion:s="never",validationBehavior:l,locale:u="en-US",defaultDates:c,createCalendar:d,...p})=>{let h=e;t&&(h=(0,n.jsx)(P.pG,{navigate:t,useHref:o,children:h}));let g=(0,y.useMemo)(()=>(r&&a&&($.c.skipAnimations=!0),{createCalendar:d,defaultDates:c,disableAnimation:r,disableRipple:i,validationBehavior:l}),[d,null==c?void 0:c.maxDate,null==c?void 0:c.minDate,r,i,l]);return(0,n.jsx)(f.a,{value:g,children:(0,n.jsx)(M.b,{locale:u,children:(0,n.jsx)(A,{reducedMotion:s,children:(0,n.jsx)(O.N3,{...p,children:h})})})})},D=r(8039),z=r(5386),H=r(4874),F=r(715),W=r(1463),B=r(9676),K=r(6721),V=r(4688),U=r(4115),J=r(3105),Y=r(5720),Z=r(5993),G=r(4736),X=r(1773),q=r(872);r(4416);let Q="@my-react/devtool",ee=e=>{try{e()}catch(e){H.$.getActions().setError(e.message)}},et=()=>{(0,y.useEffect)(()=>{},[])},er="iframe",en=e=>{var t;null===(t=window.top)||void 0===t||t.postMessage({from:er,...e,source:Q},"*")},eo=(0,F.debounce)(en,100),ei=()=>{(0,y.useEffect)(()=>{if(window!==window.top&&window.top){console.log("[Dev mode] iframe start");let e=!1,t=null,r=[],n=()=>{e||(en({type:F.MessageWorkerType.init}),en({type:F.MessagePanelType.show}),t=setTimeout(n,1e3))},o=()=>{console.log("[Dev mode] iframe disconnect"),e=!1,t&&clearTimeout(t),r.forEach(e=>e()),H.$.getActions().disconnect()};return window.addEventListener("message",t=>{var r,n,o;if(t.source!==window.top||(null===(r=t.data)||void 0===r?void 0:r.source)!==Q||(null===(n=t.data)||void 0===n?void 0:n.from)===er)return;let i=(null===(o=t.data)||void 0===o?void 0:o.type)==="hook-render"?t.data.data:t.data;i.type===F.DevToolMessageEnum.init&&ee(()=>{e=!0,H.$.getActions().setRender(i.data)}),i.type===F.DevToolMessageEnum.dir&&ee(()=>{Z.i.getActions().set(i.data)}),i.type===F.DevToolMessageEnum.ready&&ee(()=>{i.data&&B.p.getActions().addNode(i.data)}),i.type===F.DevToolMessageEnum.unmount&&ee(()=>{var e,t,r,n,o,i,a,s,l,u,c,d,f,p,h,g,m,v,b,y;null===K.F||void 0===K.F||null===(r=K.F.getActions)||void 0===r||null===(t=r.call(K.F))||void 0===t||null===(e=t.clear)||void 0===e||e.call(t),null===B.p||void 0===B.p||null===(i=B.p.getActions)||void 0===i||null===(o=i.call(B.p))||void 0===o||null===(n=o.clear)||void 0===n||n.call(o),null===Z.i||void 0===Z.i||null===(l=Z.i.getActions)||void 0===l||null===(s=l.call(Z.i))||void 0===s||null===(a=s.clear)||void 0===a||a.call(s),null===X.O||void 0===X.O||null===(d=X.O.getActions)||void 0===d||null===(c=d.call(X.O))||void 0===c||null===(u=c.clear)||void 0===u||u.call(c),null===J.K||void 0===J.K||null===(h=J.K.getActions)||void 0===h||null===(p=h.call(J.K))||void 0===p||null===(f=p.clear)||void 0===f||f.call(p),null===W.M||void 0===W.M||null===(m=W.M.getActions())||void 0===m||null===(g=m.clear)||void 0===g||g.call(m),null===U.a||void 0===U.a||null===(y=U.a.getActions)||void 0===y||null===(b=y.call(U.a))||void 0===b||null===(v=b.clear)||void 0===v||v.call(b)}),i.type===F.DevToolMessageEnum.hmr&&ee(()=>{Y.m.getActions().update(i.data)}),i.type===F.DevToolMessageEnum.trigger&&ee(()=>{q.P.getActions().update(i.data)}),i.type===F.DevToolMessageEnum.run&&ee(()=>{G.g.getActions().update(i.data)}),i.type===F.DevToolMessageEnum.detail&&ee(()=>{i.data&&J.K.getActions().addNode(i.data),J.K.getActions().setLoading(!1)}),i.type===F.DevToolMessageEnum.config&&ee(()=>{var e,t;V.Z.getActions().setEnableHover(null===(e=i.data)||void 0===e?void 0:e.enableHover),V.Z.getActions().setEnableUpdate(null===(t=i.data)||void 0===t?void 0:t.enableUpdate)}),i.type===F.DevToolMessageEnum.chunk&&ee(()=>{K.F.getActions().setChunk(i.data)})}),console.log("[Dev mode] iframe connect"),H.$.getActions().connect(),n(),r.push(X.O.subscribe(e=>e.select,()=>{let e=X.O.getReadonlyState().select;e?(J.K.getActions().setLoading(!0),en({type:F.MessagePanelType.nodeSelect,data:e})):en({type:F.MessagePanelType.nodeSelect,data:null})})),r.push(X.O.subscribe(e=>e.reload,()=>{let e=X.O.getReadonlyState().select;e&&(J.K.getActions().setLoading(!0),eo({type:F.MessagePanelType.nodeSelectForce,data:e}))})),r.push(X.O.subscribe(e=>e.store,()=>{let e=X.O.getReadonlyState().select;e&&eo({type:F.MessagePanelType.nodeStore,data:e})})),r.push(X.O.subscribe(e=>e.trigger,()=>{let e=X.O.getReadonlyState().select;e&&eo({type:F.MessagePanelType.nodeTrigger,data:e})})),r.push(X.O.subscribe(e=>e.hover,()=>en({type:F.MessagePanelType.nodeHover,data:X.O.getReadonlyState().hover}))),r.push(W.M.subscribe(e=>e.state,(0,F.debounce)(()=>en({type:F.MessagePanelType.nodeSubscriber,data:W.M.getReadonlyState().state}),100))),r.push(V.Z.subscribe(e=>e.state.enableHover,()=>en({type:F.MessagePanelType.enableHover,data:V.Z.getReadonlyState().state.enableHover}))),r.push(V.Z.subscribe(e=>e.state.enableUpdate,()=>en({type:F.MessagePanelType.enableUpdate,data:V.Z.getReadonlyState().state.enableUpdate}))),r.push(K.F.subscribe(e=>e.id,()=>{let e=K.F.getReadonlyState().id;e&&en({type:F.MessagePanelType.chunk,data:e})})),r.push(U.a.subscribe(e=>e.store,()=>{let e=U.a.getReadonlyState().store;e&&en({type:F.MessagePanelType.varStore,data:e})})),()=>{o()}}},[])},ea=()=>{let[e,t]=(0,y.useState)(!1);return(0,y.useEffect)(()=>{t(!0)},[]),e};function es(e){let{Component:t,pageProps:r,router:o}=e,{render:a,state:u,name:c,url:d,reconnect:f}=(0,H.$)(e=>({render:e.render,state:e.state,name:e.name,url:e.url,reconnect:e.cb})),p=ea(),h="/devTool"===o.pathname,g=(0,n.jsx)(t,{...r});h&&"boolean"!=typeof a?(p&&window.location.origin,g=(0,n.jsx)("div",{className:"flex items-center justify-center w-screen h-screen",children:(0,n.jsxs)("div",{className:"flex flex-col items-center",children:[(0,n.jsx)(l.c,{color:"primary",size:"lg"}),!1,!1]})})):h&&!a&&(g=(0,n.jsx)("div",{className:"flex items-center justify-center w-screen h-screen",children:(0,n.jsxs)("div",{className:"text-center text-[20px] text-red-400 px-10",children:[(0,n.jsxs)("div",{children:["This ","page"," not render By ",(0,n.jsx)(k,{className:" text-inherit text-[20px] ml-2",children:"@my-react"})]}),(0,n.jsx)(L.q,{className:"my-2"}),(0,n.jsx)(S,{symbol:"",color:"warning",variant:"solid",hideCopyButton:!0,children:"https://github.com/MrWangJustToDo/MyReact"}),(0,n.jsx)("div",{className:"fixed top-4 right-4",children:(0,n.jsx)(_.e,{content:(0,n.jsx)("p",{className:u?"text-green-400":"text-red-400",children:u?"DevTool Connect":"DevTool DisConnect"}),showArrow:!0,placement:"bottom-end",children:(0,n.jsx)(C.A,{isIconOnly:!0,disabled:u,onClick:()=>null==f?void 0:f(),children:u?(0,n.jsx)(D.NhS,{className:"text-green-500"}):(0,n.jsx)(D.xrR,{className:" text-red-500"})})})})]})})),et(),ei();let m=p?g:(0,n.jsx)("div",{className:"fixed w-full h-full flex items-center justify-center",children:(0,n.jsx)(l.c,{color:"primary",size:"lg"})});return(0,n.jsxs)(I,{children:[(0,n.jsx)(s(),{id:"babad980b5499b20",dynamic:[i().style.fontFamily,i().style.fontFamily,i().style.fontFamily],children:"html{font-family:".concat(i().style.fontFamily,"!important;--root-font--:").concat(i().style.fontFamily,"}body{font-family:").concat(i().style.fontFamily,"!important}")}),(0,n.jsx)(z.f,{attribute:"class",defaultTheme:"light",children:m})]})}r(41),r(5988)},2825:function(e,t,r){"use strict";r.d(t,{s:function(){return n}});let n=!1},8344:function(e,t,r){"use strict";r.d(t,{VB:function(){return o},VR:function(){return n}});let n=(e,t)=>t.some(t=>(null==e?void 0:e.t)&t),o=(e,t,r)=>{let n=[],o=[e];for(;o.length;){let e=o.pop();if(e&&(r(e)||n.push(e),e.c&&!t(e)))for(let t=e.c.length-1;t>=0;t--)o.push(e.c[t])}return n}},9068:function(e,t,r){"use strict";var n=r(4675);r(5355);var o=r(9589),i=o&&"object"==typeof o&&"default"in o?o:{default:o},a=void 0!==n&&n.env&&!0,s=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,o=t.optimizeForSpeed,i=void 0===o?a:o;u(s(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",u("boolean"==typeof i,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=i,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l=document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(a||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t>>0},d={};function f(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return d[n]||(d[n]="jsx-"+c(e+"-"+r)),d[n]}function p(e,t){var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var h=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,o=t.optimizeForSpeed,i=void 0!==o&&o;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:i}),this._sheet.inject(),n&&"boolean"==typeof i&&(this._sheet.setOptimizeForSpeed(i),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,o=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var i=o.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=i,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return i.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var o=f(n,r);return{styleId:o,rules:Array.isArray(t)?t.map(function(e){return p(o,e)}):[p(o,t)]}}return{styleId:f(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),g=o.createContext(null);g.displayName="StyleSheetContext";var m=i.default.useInsertionEffect||i.default.useLayoutEffect,v=new h;function b(e){var t=v||o.useContext(g);return t&&m(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}b.dynamic=function(e){return e.map(function(e){return f(e[0],e[1])}).join(" ")},t.style=b},3443:function(e,t,r){"use strict";e.exports=r(9068).style},5355:function(){},5988:function(){},41:function(){},3760:function(e){e.exports={style:{fontFamily:"'__Fira_Code_5c49b7', '__Fira_Code_Fallback_5c49b7'",fontWeight:400,fontStyle:"normal"},className:"__className_5c49b7",variable:"__variable_5c49b7"}},4675:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c1)for(var r=1;r"),e:n};if("Error"===r)return{i:o,t:r,v:e.message,e:n};if("object"==typeof e&&null!==e)return{i:o,t:r,v:Object.prototype.toString.call(e),e:n};return{i:o,t:r,v:String(e),e:n}}catch(e){return{i:NaN,t:"ReadError",v:"Read data error: "+e.message,e:!1}}},E=function(e,t){return void 0===t&&(t=3),b=new WeakMap,x(e,t)},C=function(e){var t=m.get(e);if(t){g=!0;var r=x(t);return g=!1,r}},S=0,T=function(e){this.i=e||"".concat(S++)};(n=l||(l={}))[n.__initial__=0]="__initial__",n[n.__class__=1]="__class__",n[n.__function__=2]="__function__",n[n.__lazy__=4]="__lazy__",n[n.__memo__=8]="__memo__",n[n.__forwardRef__=16]="__forwardRef__",n[n.__provider__=32]="__provider__",n[n.__consumer__=64]="__consumer__",n[n.__portal__=128]="__portal__",n[n.__null__=256]="__null__",n[n.__text__=512]="__text__",n[n.__empty__=1024]="__empty__",n[n.__plain__=2048]="__plain__",n[n.__strict__=4096]="__strict__",n[n.__suspense__=8192]="__suspense__",n[n.__fragment__=16384]="__fragment__",n[n.__keepLive__=32768]="__keepLive__",n[n.__scope__=65536]="__scope__",n[n.__comment__=131072]="__comment__",n[n.__profiler__=262144]="__profiler__",n[n.__compiler__=524288]="__compiler__";var k=new Map,L=new Map,M=new Map,P=new Map,O={},$=0,R=function(e,t){var r=null!==t.key&&void 0!==t.key;r&&!O[t.key]&&(O[t.key]=++$+"");var n=J(t);O[n]||(O[n]=++$+""),e.k=r?O[t.key]:void 0,e.t=U(t),e.n=O[n]},j=function(e,t,r){R(e,t),e.p=Q(t,r),e._s=G(t),e._t=X(t),e._h=q(t,r),t.type&l.__class__&&(e.s=ee(t,r))},N=function(e,t){if(!e)return null;var r=k.get(e),n=r||new T;return n.c=null,t?(t.c=t.c||[],t.c.push(n),n._d=t._d+1):n._d=0,R(n,e),r||(k.set(e,n),M.set(n.i,e),P.set(n.i,n)),e.child&&N(e.child,n),e.sibling&&N(e.sibling,t),{current:n,directory:O}},A=function(e,t,r){if(!e)return null;t.add(e);var n=k.get(e);if(!n&&!r)return null;var o=n||new T;return o.c=null,r&&(r.c=r.c||[],r.c.push(o),o._d=r._d+1),R(o,e),n||(k.set(e,o),M.set(o.i,e),P.set(o.i,o)),e.child&&A(e.child,t,o),e.sibling&&A(e.sibling,t,r),{current:o,directory:O}},I=function(e){var t=k.get(e);t&&(M.delete(t.i),P.delete(t.i)),k.delete(e),L.delete(e)},D=function(e){return k.get(e)},z=function(e){var t=D(e);return null==t?void 0:t.i},H=function(e){return e?e.parent?H(e.parent):D(e):null},F=function(e){var t=new WeakSet,r=[];return e.listToFoot(function(e){if(!t.has(e)){t.add(e);var n=A(e,t);n&&n.current&&r.push(n.current)}}),{result:r,directory:O}},W=function(e,t){var r=D(e);if(!r)throw Error("plainNode not found, look like a bug for @my-react/devtools");var n=L.get(e);if(n)return j(n,e,t),n;var o=new T(r.i);return j(o,e,t),L.set(e,o),o},B=function(e){return M.get(e)},K=[],V=Symbol.for("react.memo_cache_sentinel");Object.keys(l).forEach(function(e){e.startsWith("__")||K.push(+e)});var U=function(e){var t,r=e.type,n=!1;return null===(t=e.hookList)||void 0===t||t.listToFoot(function(e){var t;!n&&e.type===u.HOOK_TYPE.useMemo&&(null===(t=e.result)||void 0===t?void 0:t[V])&&(n=!0)}),n?u.merge(r,l.__compiler__):r},J=function(e){if(e.type&l.__provider__){var t=e.elementType,r=t.Context.displayName;return"".concat(r||"Context",".Provider")}if(e.type&l.__consumer__){var t=e.elementType,n=t.Context.displayName;return"".concat(n||"Context",".Consumer")}if(e.type&l.__lazy__){var t=e.elementType,o=null==t?void 0:t.render,i=(null==o?void 0:o.displayName)||(null==o?void 0:o.name)||"",a=e._debugElement,s=null==a?void 0:a.type;return i=(null==s?void 0:s.displayName)||i,"".concat(i||"Anonymous")}if(e.type&l.__portal__)return"Portal";if(e.type&l.__null__)return"Null";if(e.type&l.__empty__)return"Empty";if(e.type&l.__scope__)return"Scope";if(e.type&l.__strict__)return"Strict";if(e.type&l.__profiler__)return"Profiler";if(e.type&l.__suspense__)return"Suspense";if(e.type&l.__comment__)return"Comment";if(e.type&l.__keepLive__)return"KeepAlive";if(e.type&l.__fragment__)return"Fragment";if(e.type&l.__text__)return"text";if("string"==typeof e.elementType)return"".concat(e.elementType);if("function"==typeof e.elementType){var t=e.elementType,u=t.displayName||t.name||"Anonymous",a=e._debugElement,s=null==a?void 0:a.type;return u=(null==s?void 0:s.displayName)||u,"".concat(u)}return"unknown"},Y=function(e){switch(e){case u.HOOK_TYPE.useReducer:return"Reducer";case u.HOOK_TYPE.useEffect:return"Effect";case u.HOOK_TYPE.useLayoutEffect:return"LayoutEffect";case u.HOOK_TYPE.useMemo:return"Memo";case u.HOOK_TYPE.useCallback:return"Callback";case u.HOOK_TYPE.useRef:return"Ref";case u.HOOK_TYPE.useImperativeHandle:return"ImperativeHandle";case u.HOOK_TYPE.useDebugValue:return"DebugValue";case u.HOOK_TYPE.useContext:return"Context";case u.HOOK_TYPE.useDeferredValue:return"DeferredValue";case u.HOOK_TYPE.useTransition:return"Transition";case u.HOOK_TYPE.useId:return"Id";case u.HOOK_TYPE.useSyncExternalStore:return"SyncExternalStore";case u.HOOK_TYPE.useInsertionEffect:return"InsertionEffect";case u.HOOK_TYPE.useState:return"State";case u.HOOK_TYPE.useSignal:return"Signal"}},Z=function(e){return e.displayName||"Context"},G=function(e){return e._debugElement?e._debugElement._source:null},X=function(e){for(var t=[],r=e,n=null==r?void 0:r.parent;n;){var o=D(n).i;t.push(o),r=n,n=n.parent}if(r){var i=r.renderDispatch;i&&i.version?t.push("@my-react ".concat(i.version)):t.push("@my-react legacy")}return t},q=function(e,t){var r,n=[],o=e.hookList,i={};return null===(r=null==o?void 0:o.toArray())||void 0===r||r.forEach(function(e,r){var o=e._debugStack;if(o&&Array.isArray(o)&&0!==o.length)for(var a="",s=0;st.left+t.width&&(a=t.left+t.width-i-5),{style:{top:n+="px",left:a+="px"}});es(this.tip.style,l.style)},e}(),ec=function(){function e(e){this.agent=e;var t=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;this.window=t;var r=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;this.tipBoundsWindow=r;var n=t.document;this.container=n.createElement("div"),this.container.style.zIndex="10000000",this.container.setAttribute("data-select","@my-react"),this.tip=new eu(n,this.container),this.rects=[],this.agent=e,n.body.appendChild(this.container)}return e.prototype.remove=function(){this.tip.remove(),this.rects.forEach(function(e){e.remove()}),this.rects.length=0,this.container.parentNode&&this.container.parentNode.removeChild(this.container)},e.prototype.inspect=function(e,t){for(var r=this,n=t.filter(function(e){return e.nodeType===Node.ELEMENT_NODE});this.rects.length>n.length;)this.rects.pop().remove();if(0!==n.length){for(;this.rects.length=0&&o.left>=0&&o.right<=(window.innerWidth||document.documentElement.clientWidth)&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)){var i=o.left-.5,a=o.top-.5,s=o.width+1,l=o.height+1;r.strokeRect(i<0?0:i,a<0?0:a,s>window.innerWidth?window.innerWidth:s,l>window.innerHeight?window.innerHeight:l)}}catch(e){}},this.flashPending=function(){var e=t.mask.getContext("2d"),r=new Set(t.__pendingUpdate__);t.__pendingUpdate__.clear(),e.strokeStyle=ep.update,r.forEach(function(r){return t.processHighlight(r,e)});var n=new Set(t.__pendingAppend__);t.__pendingAppend__.clear(),e.strokeStyle=ep.append,n.forEach(function(r){return t.processHighlight(r,e)});var o=new Set(t.__pendingSetRef__);t.__pendingSetRef__.clear(),e.strokeStyle=ep.setRef,o.forEach(function(r){return t.processHighlight(r,e)});var i=new Set(t.__pendingWarn__);t.__pendingWarn__.clear(),e.strokeStyle=ep.warn,i.forEach(function(r){return t.processHighlight(r,e)}),setTimeout(function(){e.clearRect(0,0,t.width,t.height),t.running=!1,(t.__pendingUpdate__.size||t.__pendingAppend__.size||t.__pendingSetRef__.size)&&(t.running=!0,t.flashPending())},100)}},eg=function(e,t){e.$$hasDevToolInject||(e.$$hasDevToolInject=!0,function(e){if("function"==typeof e.onFiberUnmount)e.onFiberUnmount(I);else{var t=e.patchToFiberUnmount;e.patchToFiberUnmount=function(e){t.call(this,e),I(e)}}}(e),Object.defineProperty(e,"__devtool_runtime__",{value:t}))};t.DevToolMessageEnum=void 0,(o=t.DevToolMessageEnum||(t.DevToolMessageEnum={})).init="init",o.dir="dir",o.config="config",o.ready="ready",o.update="update",o.changed="changed",o.highlight="highlight",o.trigger="trigger",o.hmr="hmr",o.run="run",o.detail="detail",o.unmount="unmount",o.warn="warn",o.error="error",o.chunk="chunk";var em=function(e,t){var r=null;return function(){for(var n=[],o=0;o0}).forEach(function(t){r[t]=e._run[t]}),e._notify({type:t.DevToolMessageEnum.run,data:r})}},100),this.notifyAll=em(function(){e.notifyDetector(),e._needUnmount&&(e._notify({type:t.DevToolMessageEnum.unmount,data:null}),e._needUnmount=!1),e._dispatch.size&&e._dispatch.forEach(function(t){e.notifyDispatch(t)}),e.notifyConfig(),e.notifyDir(),e.notifyTrigger(),e.notifyHMR(),e.notifySelect(),e.notifyWarn(),e.notifyError()},200),this.update=new eh(this)}e.prototype.getDispatch=function(){return Array.from(this._dispatch)},Object.defineProperty(e.prototype,"hasEnable",{get:function(){return this._enabled||this._forceEnable},enumerable:!1,configurable:!0}),e.prototype.setHoverStatus=function(e){this._enableHover=e},e.prototype.setUpdateStatus=function(e){this._enableUpdate=e},e.prototype.addDispatch=function(e){e&&(this._detector=!0),this.hasDispatch(e)||(eg(e,this),this._dispatch.add(e),this.patchDispatch(e))},e.prototype.patchDispatch=function(e){var t,r,n,o,i,a,s,l,d,f,p,h,g,m=this;if(!e.$$hasDevToolPatch){e.$$hasDevToolPatch=!0;var v=ev(function(){m.hasEnable&&(m.notifyDispatch(e),m.notifySelect())},200),b=function(){m._needUnmount=!0,m.delDispatch(e)};if("function"==typeof e.onAfterCommit&&"function"==typeof e.onAfterUpdate)e.onAfterCommit(v),null===(t=e.onAfterUnmount)||void 0===t||t.call(e,b),null===(r=e.onFiberState)||void 0===r||r.call(e,function(e){var t=z(e);t&&(m._state[t]=m._state[t]?m._state[t]+1:1)}),null===(n=e.onFiberTrigger)||void 0===n||n.call(e,function(e){var t=z(e);t&&(m._trigger[t]=m._trigger[t]?m._trigger[t]+1:1,m.hasEnable&&m.notifyTrigger())}),null===(o=e.onPerformanceWarn)||void 0===o||o.call(e,function(e){var t=z(e);t&&(m.hasEnable&&m._enableUpdate&&m.update.highLight(e,"warn"),m.notifyHighlight(t,"performance"))}),null===(i=e.onFiberChange)||void 0===i||i.call(e,function(e){var t=F(e).directory;u.isNormalEquals(m._dir,t)||(m._dir=c({},t),m.notifyDir()),m.notifyChanged(e)}),null===(a=e.onFiberUpdate)||void 0===a||a.call(e,function(e){var t=z(e);t&&m.hasEnable&&t===m._selectId&&m.notifySelect()}),null===(s=e.onFiberHMR)||void 0===s||s.call(e,function(t){var r=z(t);r&&(m._hmr[r]=m._hmr[r]?m._hmr[r]+1:1,m.hasEnable&&(m.notifyHMR(),m.notifyDispatch(e,!0)))}),null===(l=e.onAfterFiberRun)||void 0===l||l.call(e,function(e){var t,r,n=z(e);n&&(m._run[n]?m._run[n]={c:m._run[n].c+1,t:null===(t=e._debugRenderState)||void 0===t?void 0:t.timeForRender}:m._run[n]={c:1,t:null===(r=e._debugRenderState)||void 0===r?void 0:r.timeForRender},m.notifyRun())}),null===(d=e.onDOMUpdate)||void 0===d||d.call(e,function(e){m.hasEnable&&m._enableUpdate&&m.update.highLight(e,"update")}),null===(f=e.onDOMAppend)||void 0===f||f.call(e,function(e){m.hasEnable&&m._enableUpdate&&m.update.highLight(e,"append")}),null===(p=e.onDOMSetRef)||void 0===p||p.call(e,function(e){m.hasEnable&&m._enableUpdate&&m.update.highLight(e,"setRef")}),null===(h=e.onFiberError)||void 0===h||h.call(e,function(e){for(var t=[],r=1;r{let t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(null==t?void 0:t[e])||{}},o=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],i=(e,t)=>{if(t.includes("-")){let[r]=t.split("-");if(r.includes(e))return!1}return!0},a=(e,t)=>{if(t.includes("-")){let[,r]=t.split("-");return`${e}-${r}`}return e}},2920:function(e,t,r){"use strict";r.d(t,{D:function(){return n},M:function(){return o}});var[n,o]=(0,r(4083).k)({name:"ButtonGroupContext",strict:!1})},3412:function(e,t,r){"use strict";r.d(t,{A:function(){return _}});var n=r(2920),o=r(7510),i=r(1273),a=r(9589),s=r(709),l=r(6367),u=r(2014),c=r(4211),d=r(7433),f=r(8762),p=r(7414),h=r(1596),g=r(5867),m=r(704),v=r(6897),b=r(4189),y=r(217),w=(0,b.Gp)((e,t)=>{let{Component:r,domRef:b,children:w,styles:_,spinnerSize:x,spinner:E=(0,y.jsx)(m.c,{color:"current",size:x}),spinnerPlacement:C,startContent:S,endContent:T,isLoading:k,disableRipple:L,getButtonProps:M,getRippleProps:P,isIconOnly:O}=function(e){var t,r,m,v,b,y,w,_,x;let E=(0,n.M)(),C=(0,o.w)(),S=!!E,{ref:T,as:k,children:L,startContent:M,endContent:P,autoFocus:O,className:$,spinner:R,isLoading:j=!1,disableRipple:N=!1,fullWidth:A=null!=(t=null==E?void 0:E.fullWidth)&&t,radius:I=null==E?void 0:E.radius,size:D=null!=(r=null==E?void 0:E.size)?r:"md",color:z=null!=(m=null==E?void 0:E.color)?m:"default",variant:H=null!=(v=null==E?void 0:E.variant)?v:"solid",disableAnimation:F=null!=(y=null!=(b=null==E?void 0:E.disableAnimation)?b:null==C?void 0:C.disableAnimation)&&y,isDisabled:W=null!=(w=null==E?void 0:E.isDisabled)&&w,isIconOnly:B=null!=(_=null==E?void 0:E.isIconOnly)&&_,spinnerPlacement:K="start",onPress:V,onClick:U,...J}=e,Y=k||"button",Z="string"==typeof Y,G=(0,c.gy)(T),X=null!=(x=N||(null==C?void 0:C.disableRipple))?x:F,{isFocusVisible:q,isFocused:Q,focusProps:ee}=(0,s.F)({autoFocus:O}),et=W||j,er=(0,a.useMemo)(()=>(0,f.L)({size:D,color:z,variant:H,radius:I,fullWidth:A,isDisabled:et,isInGroup:S,disableAnimation:F,isIconOnly:B,className:$}),[D,z,H,I,A,et,S,B,F,$]),{onPress:en,onClear:eo,ripples:ei}=(0,g.i)(),ea=(0,a.useCallback)(e=>{X||et||F||!G.current||en(e)},[X,et,F,G,en]),{buttonProps:es,isPressed:el}=(0,p.j)({elementType:k,isDisabled:et,onPress:(0,l.t)(V,ea),onClick:U,...J},G),{isHovered:eu,hoverProps:ec}=(0,h.X)({isDisabled:et}),ed=(0,a.useCallback)((e={})=>({"data-disabled":(0,i.PB)(et),"data-focus":(0,i.PB)(Q),"data-pressed":(0,i.PB)(el),"data-focus-visible":(0,i.PB)(q),"data-hover":(0,i.PB)(eu),"data-loading":(0,i.PB)(j),...(0,u.d)(es,ee,ec,(0,d.z)(J,{enabled:Z}),(0,d.z)(e))}),[j,et,Q,el,Z,q,eu,es,ee,ec,J]),ef=e=>(0,a.isValidElement)(e)?(0,a.cloneElement)(e,{"aria-hidden":!0,focusable:!1,tabIndex:-1}):null,ep=ef(M);return{Component:Y,children:L,domRef:G,spinner:R,styles:er,startContent:ep,endContent:ef(P),isLoading:j,spinnerPlacement:K,spinnerSize:(0,a.useMemo)(()=>({sm:"sm",md:"sm",lg:"md"})[D],[D]),disableRipple:X,getButtonProps:ed,getRippleProps:(0,a.useCallback)(()=>({ripples:ei,onClear:eo}),[ei,eo]),isIconOnly:B}}({...e,ref:t});return(0,y.jsxs)(r,{ref:b,className:_,...M(),children:[S,k&&"start"===C&&E,k&&O?null:w,k&&"end"===C&&E,T,!L&&(0,y.jsx)(v.L,{...P()})]})});w.displayName="NextUI.Button";var _=w},6737:function(e,t,r){"use strict";r.d(t,{Lj:function(){return n},y7:function(){return o}});var n={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]};n.easeOut,n.easeIn;var o={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:n.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:n.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:n.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:n.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:n.ease}},exit:{opacity:0,transition:{duration:.3,ease:n.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}}},7433:function(e,t,r){"use strict";r.d(t,{z:function(){return l}});var n=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),o=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),i=/^(data-.*)$/,a=/^(aria-.*)$/,s=/^(on[A-Z].*)$/;function l(e,t={}){let{labelable:r=!0,enabled:l=!0,propNames:u,omitPropNames:c,omitEventNames:d,omitDataProps:f,omitEventProps:p}=t,h={};if(!l)return e;for(let t in e)!((null==c?void 0:c.has(t))||(null==d?void 0:d.has(t))&&s.test(t)||s.test(t)&&!o.has(t)||f&&i.test(t)||p&&s.test(t))&&(Object.prototype.hasOwnProperty.call(e,t)&&(n.has(t)||r&&a.test(t)||(null==u?void 0:u.has(t))||i.test(t))||s.test(t))&&(h[t]=e[t]);return h}},4083:function(e,t,r){"use strict";r.d(t,{k:function(){return o}});var n=r(9589);function o(e={}){let{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=e,i=n.createContext(void 0);return i.displayName=o,[i.Provider,function e(){var o;let a=n.useContext(i);if(!a&&t){let t=Error(r);throw t.name="ContextError",null==(o=Error.captureStackTrace)||o.call(Error,t,e),t}return a},i]}},7243:function(e,t,r){"use strict";r.d(t,{l:function(){return o}});var n=r(1273);function o(...e){return t=>{e.forEach(e=>(function(e,t){if(null!=e){if((0,n.mf)(e)){e(t);return}try{e.current=t}catch(r){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}})(e,t))}}},4211:function(e,t,r){"use strict";r.d(t,{fg:function(){return o},gy:function(){return i}});var n=r(9589);function o(e){return{UNSAFE_getDOMNode:()=>e.current}}function i(e){let t=(0,n.useRef)(null);return(0,n.useImperativeHandle)(e,()=>t.current),t}"undefined"!=typeof window&&window.document&&window.document.createElement},5867:function(e,t,r){"use strict";r.d(t,{i:function(){return i}});var n=r(9077),o=r(9589);function i(e={}){let[t,r]=(0,o.useState)([]),i=(0,o.useCallback)(e=>{let t=e.target,o=Math.max(t.clientWidth,t.clientHeight);r(t=>[...t,{key:(0,n.QI)(t.length.toString()),size:o,x:e.x-o/2,y:e.y-o/2}])},[]);return{ripples:t,onClear:(0,o.useCallback)(e=>{r(t=>t.filter(t=>t.key!==e))},[]),onPress:i,...e}}},6897:function(e,t,r){"use strict";r.d(t,{L:function(){return u}});var n=r(3264),o=r(4111),i=r(2414),a=r(217),s=()=>Promise.all([r.e(425),r.e(965)]).then(r.bind(r,2965)).then(e=>e.default),l=e=>{let{ripples:t=[],motionProps:r,color:l="currentColor",style:u,onClear:c}=e;return(0,a.jsx)(a.Fragment,{children:t.map(e=>{let t=Math.min(Math.max(.01*e.size,.2),e.size>100?.75:.5);return(0,a.jsx)(n.X,{features:s,children:(0,a.jsx)(o.M,{mode:"popLayout",children:(0,a.jsx)(i.m.span,{animate:{transform:"scale(2)",opacity:0},className:"nextui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:l,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:e.y,left:e.x,width:`${e.size}px`,height:`${e.size}px`,...u},transition:{duration:t},onAnimationComplete:()=>{c(e.key)},...r})})},e.key)})})};l.displayName="NextUI.Ripple";var u=l},1870:function(e,t,r){"use strict";function n(...e){for(var t,r,o=0,i="";oe?"true":void 0},9077:function(e,t,r){"use strict";let n,o,i;r.d(t,{kC:function(){return h},QI:function(){return g},Xx:function(){return v},Os:function(){return m}});var a=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t)=>function(){return t||(0,e[u(e)[0]])((t={exports:{}}).exports,t),t.exports},p=f({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function m(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||p}function v(){}function b(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var y=b.prototype=new v;y.constructor=b,h(y,m.prototype),y.isPureReactComponent=!0;var w=Array.isArray,_=Object.prototype.hasOwnProperty,x={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(e,r,n){var o,i={},a=null,s=null;if(null!=r)for(o in void 0!==r.ref&&(s=r.ref),void 0!==r.key&&(a=""+r.key),r)_.call(r,o)&&!E.hasOwnProperty(o)&&(i[o]=r[o]);var l=arguments.length-2;if(1===l)i.children=n;else if(1{if(t&&"object"==typeof t||"function"==typeof t)for(let o of u(t))d.call(e,o)||o===r||s(e,o,{get:()=>t[o],enumerable:!(n=l(t,o))||n.enumerable})})(!o&&n&&n.__esModule?i:s(i,"default",{value:n,enumerable:!0}),n);var h=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"";function g(e){return`${e}-${Math.floor(1e6*Math.random())}`}function m(e){for(let t in e)t.startsWith("on")&&delete e[t];return e}function v(e){if(!e||"object"!=typeof e)return"";try{return JSON.stringify(e)}catch(e){return""}}},4700:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(4675),o={};function i(e,t,...r){var a;let s=t?` [${t}]`:" ",l=`[Next UI]${s}: ${e}`;if("undefined"!=typeof console&&!o[l]&&(o[l]=!0,(null==(a=null==n?void 0:n.env)?void 0:a.NODE_ENV)!=="production"))return console.warn(l,r)}},9272:function(e,t,r){"use strict";r.d(t,{q:function(){return p}});var n={px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},o=r(4189),i=(0,r(3427).tv)({base:"w-px h-px inline-block",variants:{isInline:{true:"inline-block",false:"block"}},defaultVariants:{isInline:!1}}),a=r(9077),s=r(1273),l=r(1870),u=r(9589),c=e=>{var t;return null!=(t=n[e])?t:e},d=r(217),f=(0,o.Gp)((e,t)=>{let{Component:r,getSpacerProps:n}=function(e){let[t,r]=(0,o.oe)(e,i.variantKeys),{as:n,className:d,x:f=1,y:p=1,...h}=t,g=(0,u.useMemo)(()=>i({...r,className:d}),[(0,a.Xx)(r),d]),m=c(f),v=c(p);return{Component:n||"span",getSpacerProps:(e={})=>({...e,...h,"aria-hidden":(0,s.PB)(!0),className:(0,l.W)(g,e.className),style:{...e.style,...h.style,marginLeft:m,marginTop:v}})}}({...e});return(0,d.jsx)(r,{ref:t,...n()})});f.displayName="NextUI.Spacer";var p=f},704:function(e,t,r){"use strict";r.d(t,{c:function(){return c}});var n=r(4189),o=(0,r(3427).tv)({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",circle1:["absolute","w-full","h-full","rounded-full","animate-spinner-ease-spin","border-2","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["absolute","w-full","h-full","rounded-full","opacity-75","animate-spinner-linear-spin","border-2","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"],label:"text-foreground dark:text-foreground-dark font-regular"},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current"},white:{circle1:"border-b-white",circle2:"border-b-white"},default:{circle1:"border-b-default",circle2:"border-b-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground"}}),i=r(9077),a=r(1870),s=r(9589),l=r(217),u=(0,n.Gp)((e,t)=>{let{slots:r,classNames:u,label:c,getSpinnerProps:d}=function(e){let[t,r]=(0,n.oe)(e,o.variantKeys),{children:l,className:u,classNames:c,label:d,...f}=t,p=(0,s.useMemo)(()=>o({...r}),[(0,i.Xx)(r)]),h=(0,a.W)(null==c?void 0:c.base,u),g=d||l,m=(0,s.useMemo)(()=>g&&"string"==typeof g?g:f["aria-label"]?"":"Loading",[l,g,f["aria-label"]]),v=(0,s.useCallback)(()=>({"aria-label":m,className:p.base({class:h}),...f}),[m,p,h,f]);return{label:g,slots:p,classNames:c,getSpinnerProps:v}}({...e});return(0,l.jsxs)("div",{ref:t,...d(),children:[(0,l.jsxs)("div",{className:r.wrapper({class:null==u?void 0:u.wrapper}),children:[(0,l.jsx)("i",{className:r.circle1({class:null==u?void 0:u.circle1})}),(0,l.jsx)("i",{className:r.circle2({class:null==u?void 0:u.circle2})})]}),c&&(0,l.jsx)("span",{className:r.label({class:null==u?void 0:u.label}),children:c})]})});u.displayName="NextUI.Spinner";var c=u},4189:function(e,t,r){"use strict";r.d(t,{Gp:function(){return o},oe:function(){return i}});var n=r(9589);function o(e){return(0,n.forwardRef)(e)}var i=(e,t,r=!0)=>{if(!t)return[e,{}];let n=t.reduce((t,r)=>r in e?{...t,[r]:e[r]}:t,{});return r?[Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>({...t,[r]:e[r]}),{}),n]:[e,n]}},7510:function(e,t,r){"use strict";r.d(t,{a:function(){return n},w:function(){return o}});var[n,o]=(0,r(4083).k)({name:"ProviderContext",strict:!1})},5520:function(e,t,r){"use strict";r.d(t,{v:function(){return a}});var n=r(5278),o=r(3427),i=r(3123),a=(0,o.tv)({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...i.Dh],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:n.J.solid.foreground},primary:{base:"before:bg-primary",content:n.J.solid.primary},secondary:{base:"before:bg-secondary",content:n.J.solid.secondary},success:{base:"before:bg-success",content:n.J.solid.success},warning:{base:"before:bg-warning",content:n.J.solid.warning},danger:{base:"before:bg-danger",content:n.J.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]})},8762:function(e,t,r){"use strict";r.d(t,{D:function(){return s},L:function(){return a}});var n=r(5278),o=r(3427),i=r(3123),a=(0,o.tv)({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent","data-[pressed=true]:scale-[0.97]",...i.Dh],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-3 min-w-16 h-8 text-tiny gap-2 rounded-small",md:"px-4 min-w-20 h-10 text-small gap-2 rounded-medium",lg:"px-6 min-w-24 h-12 text-medium gap-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-0 !gap-0",false:"[&>svg]:max-w-[theme(spacing.8)]"},disableAnimation:{true:"!transition-none data-[pressed=true]:scale-100",false:"transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1},compoundVariants:[{variant:"solid",color:"default",class:n.J.solid.default},{variant:"solid",color:"primary",class:n.J.solid.primary},{variant:"solid",color:"secondary",class:n.J.solid.secondary},{variant:"solid",color:"success",class:n.J.solid.success},{variant:"solid",color:"warning",class:n.J.solid.warning},{variant:"solid",color:"danger",class:n.J.solid.danger},{variant:"shadow",color:"default",class:n.J.shadow.default},{variant:"shadow",color:"primary",class:n.J.shadow.primary},{variant:"shadow",color:"secondary",class:n.J.shadow.secondary},{variant:"shadow",color:"success",class:n.J.shadow.success},{variant:"shadow",color:"warning",class:n.J.shadow.warning},{variant:"shadow",color:"danger",class:n.J.shadow.danger},{variant:"bordered",color:"default",class:n.J.bordered.default},{variant:"bordered",color:"primary",class:n.J.bordered.primary},{variant:"bordered",color:"secondary",class:n.J.bordered.secondary},{variant:"bordered",color:"success",class:n.J.bordered.success},{variant:"bordered",color:"warning",class:n.J.bordered.warning},{variant:"bordered",color:"danger",class:n.J.bordered.danger},{variant:"flat",color:"default",class:n.J.flat.default},{variant:"flat",color:"primary",class:n.J.flat.primary},{variant:"flat",color:"secondary",class:n.J.flat.secondary},{variant:"flat",color:"success",class:n.J.flat.success},{variant:"flat",color:"warning",class:n.J.flat.warning},{variant:"flat",color:"danger",class:n.J.flat.danger},{variant:"faded",color:"default",class:n.J.faded.default},{variant:"faded",color:"primary",class:n.J.faded.primary},{variant:"faded",color:"secondary",class:n.J.faded.secondary},{variant:"faded",color:"success",class:n.J.faded.success},{variant:"faded",color:"warning",class:n.J.faded.warning},{variant:"faded",color:"danger",class:n.J.faded.danger},{variant:"light",color:"default",class:[n.J.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[n.J.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[n.J.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[n.J.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[n.J.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[n.J.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:[n.J.ghost.default,"data-[hover=true]:!bg-default"]},{variant:"ghost",color:"primary",class:[n.J.ghost.primary,"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"]},{variant:"ghost",color:"secondary",class:[n.J.ghost.secondary,"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"]},{variant:"ghost",color:"success",class:[n.J.ghost.success,"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"]},{variant:"ghost",color:"warning",class:[n.J.ghost.warning,"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"]},{variant:"ghost",color:"danger",class:[n.J.ghost.danger,"data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground"]},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:i.Zs.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:i.Zs.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:i.Zs.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:i.Zs.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:i.Zs.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:i.Zs.danger},{isIconOnly:!0,size:"sm",class:"min-w-8 w-8 h-8"},{isIconOnly:!0,size:"md",class:"min-w-10 w-10 h-10"},{isIconOnly:!0,size:"lg",class:"min-w-12 w-12 h-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]}),s=(0,o.tv)({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}})},3123:function(e,t,r){"use strict";r.d(t,{Dh:function(){return n},ID:function(){return o},PZ:function(){return s},Zs:function(){return a},jR:function(){return i}});var n=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],o=["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],i=["outline-none","ring-2","ring-focus","ring-offset-2","ring-offset-background"],a={default:["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]},s=["[--cursor-hit-x:8px]","font-inherit","text-[100%]","leading-[1.15]","m-0","p-0","overflow-visible","box-border","absolute","top-0","start-[calc(var(--cursor-hit-x)*-1)]","w-[calc(100%+var(--cursor-hit-x)*2)]","h-full","opacity-[0.0001]","z-[1]","cursor-pointer","disabled:cursor-default"]},5278:function(e,t,r){"use strict";r.d(t,{J:function(){return n}});var n={solid:{default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},shadow:{default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},bordered:{default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},flat:{default:"bg-default/40 text-default-700",primary:"bg-primary/20 text-primary-600",secondary:"bg-secondary/20 text-secondary-600",success:"bg-success/20 text-success-700 dark:text-success",warning:"bg-warning/20 text-warning-700 dark:text-warning",danger:"bg-danger/20 text-danger-600 dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},faded:{default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},light:{default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},ghost:{default:"border-default text-default-foreground",primary:"border-primary text-primary",secondary:"border-secondary text-secondary",success:"border-success text-success",warning:"border-warning text-warning",danger:"border-danger text-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"}}},3427:function(e,t,r){"use strict";r.d(t,{tv:function(){return er}});var n=["small","medium","large"],o={theme:{opacity:["disabled"],spacing:["divider"],borderWidth:n,borderRadius:n},classGroups:{shadow:[{shadow:n}],"font-size":[{text:["tiny",...n]}],"bg-image":["bg-stripe-gradient-default","bg-stripe-gradient-primary","bg-stripe-gradient-secondary","bg-stripe-gradient-success","bg-stripe-gradient-warning","bg-stripe-gradient-danger"]}},i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=e=>!e||"object"!=typeof e||0===Object.keys(e).length,s=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function l(e){let t=[];return function e(t,r){t.forEach(function(t){Array.isArray(t)?e(t,r):r.push(t)})}(e,t),t}var u=(...e)=>l(e).filter(Boolean),c=(e,t)=>{let r={},n=Object.keys(e),o=Object.keys(t);for(let i of n)if(o.includes(i)){let n=e[i],o=t[i];"object"==typeof n&&"object"==typeof o?r[i]=c(n,o):Array.isArray(n)||Array.isArray(o)?r[i]=u(o,n):r[i]=o+" "+n}else r[i]=e[i];for(let e of o)n.includes(e)||(r[e]=t[e]);return r},d=e=>e&&"string"==typeof e?e.replace(/\s+/g," ").trim():e,f=/^\[(.+)\]$/;function p(e,t){var r=e;return t.split("-").forEach(function(e){r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r}var h=/\s+/;function g(){for(var e,t,r=0,n="";re&&(t=0,n=r,r=new Map)}return{get:function(e){var t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set:function(e,t){r.has(e)?r.set(e,t):o(e,t)}}}(e.cacheSize),splitModifiers:(r=1===(t=e.separator||":").length,n=t[0],o=t.length,function(e){for(var i,a=[],s=0,l=0,u=0;ul?i-l:void 0}}),...(l=e.theme,u=e.prefix,c={nextPart:new Map,validators:[]},(d=Object.entries(e.classGroups),u?d.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?u+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[u+e[0],e[1]]})):e})]}):d).forEach(function(e){var t=e[0];(function e(t,r,n,o){t.forEach(function(t){if("string"==typeof t){(""===t?r:p(r,t)).classGroupId=n;return}if("function"==typeof t){if(t.isThemeGetter){e(t(o),r,n,o);return}r.validators.push({validator:t,classGroupId:n});return}Object.entries(t).forEach(function(t){var i=t[0];e(t[1],p(r,i),n,o)})})})(e[1],c,t,l)}),i=e.conflictingClassGroups,s=void 0===(a=e.conflictingClassGroupModifiers)?{}:a,{getClassGroupId:function(e){var t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),function e(t,r){if(0===t.length)return r.classGroupId;var n=t[0],o=r.nextPart.get(n),i=o?e(t.slice(1),o):void 0;if(i)return i;if(0!==r.validators.length){var a=t.join("-");return r.validators.find(function(e){return(0,e.validator)(a)})?.classGroupId}}(t,c)||function(e){if(f.test(e)){var t=f.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){var r=i[e]||[];return t&&s[e]?[].concat(r,s[e]):r}})}}(o.slice(1).reduce(function(e,t){return t(e)},i()))).cache.get,r=e.cache.set,a=s,s(n)};function s(n){var o,i,a,s,l,u=t(n);if(u)return u;var c=(i=(o=e).splitModifiers,a=o.getClassGroupId,s=o.getConflictingClassGroupIds,l=new Set,n.trim().split(h).map(function(e){var t=i(e),r=t.modifiers,n=t.hasImportantModifier,o=t.baseClassName,s=t.maybePostfixModifierPosition,l=a(s?o.substring(0,s):o),u=!!s;if(!l){if(!s||!(l=a(o)))return{isTailwindClass:!1,originalClassName:e};u=!1}var c=(function(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(e){"["===e[0]?(t.push.apply(t,r.sort().concat([e])),r=[]):r.push(e)}),t.push.apply(t,r.sort()),t})(r).join(":");return{isTailwindClass:!0,modifierId:n?c+"!":c,classGroupId:l,originalClassName:e,hasPostfixModifier:u}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,r=e.classGroupId,n=e.hasPostfixModifier,o=t+r;return!l.has(o)&&(l.add(o),s(r,n).forEach(function(e){return l.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return r(n,c),c}return function(){return a(g.apply(null,arguments))}}function v(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var b=/^\[(?:([a-z-]+):)?(.+)\]$/i,y=/^\d+\/\d+$/,w=new Set(["px","full","screen"]),_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,x=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,E=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function C(e){return P(e)||w.has(e)||y.test(e)||S(e)}function S(e){return I(e,"length",D)}function T(e){return I(e,"size",z)}function k(e){return I(e,"position",z)}function L(e){return I(e,"url",H)}function M(e){return I(e,"number",P)}function P(e){return!Number.isNaN(Number(e))}function O(e){return e.endsWith("%")&&P(e.slice(0,-1))}function $(e){return F(e)||I(e,"number",F)}function R(e){return b.test(e)}function j(){return!0}function N(e){return _.test(e)}function A(e){return I(e,"",W)}function I(e,t,r){var n=b.exec(e);return!!n&&(n[1]?n[1]===t:r(n[2]))}function D(e){return x.test(e)}function z(){return!1}function H(e){return e.startsWith("url(")}function F(e){return Number.isInteger(Number(e))}function W(e){return E.test(e)}function B(){var e=v("colors"),t=v("spacing"),r=v("blur"),n=v("brightness"),o=v("borderColor"),i=v("borderRadius"),a=v("borderSpacing"),s=v("borderWidth"),l=v("contrast"),u=v("grayscale"),c=v("hueRotate"),d=v("invert"),f=v("gap"),p=v("gradientColorStops"),h=v("gradientColorStopPositions"),g=v("inset"),m=v("margin"),b=v("opacity"),y=v("padding"),w=v("saturate"),_=v("scale"),x=v("sepia"),E=v("skew"),I=v("space"),D=v("translate"),z=function(){return["auto","contain","none"]},H=function(){return["auto","hidden","clip","visible","scroll"]},F=function(){return["auto",R,t]},W=function(){return[R,t]},B=function(){return["",C]},K=function(){return["auto",P,R]},V=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},U=function(){return["solid","dashed","dotted","double","none"]},J=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},Y=function(){return["start","end","center","between","around","evenly","stretch"]},Z=function(){return["","0",R]},G=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},X=function(){return[P,M]},q=function(){return[P,R]};return{cacheSize:500,theme:{colors:[j],spacing:[C],blur:["none","",N,R],brightness:X(),borderColor:[e],borderRadius:["none","","full",N,R],borderSpacing:W(),borderWidth:B(),contrast:X(),grayscale:Z(),hueRotate:q(),invert:Z(),gap:W(),gradientColorStops:[e],gradientColorStopPositions:[O,S],inset:F(),margin:F(),opacity:X(),padding:W(),saturate:X(),scale:X(),sepia:Z(),skew:q(),space:W(),translate:W()},classGroups:{aspect:[{aspect:["auto","square","video",R]}],container:["container"],columns:[{columns:[N]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(V(),[R])}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",$]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",R]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",$]}],"grid-cols":[{"grid-cols":[j]}],"col-start-end":[{col:["auto",{span:["full",$]},R]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[j]}],"row-start-end":[{row:["auto",{span:[$]},R]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",R]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",R]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(Y())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(Y(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(Y(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",R,t]}],"min-w":[{"min-w":["min","max","fit",R,C]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[N]},N,R]}],h:[{h:[R,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",R,C]}],"max-h":[{"max-h":[R,t,"min","max","fit"]}],"font-size":[{text:["base",N,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",M]}],"font-family":[{font:[j]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",R]}],"line-clamp":[{"line-clamp":["none",P,M]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",R,C]}],"list-image":[{"list-image":["none",R]}],"list-style-type":[{list:["none","disc","decimal",R]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(U(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",C]}],"underline-offset":[{"underline-offset":["auto",R,C]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",R]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",R]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(V(),[k])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",T]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},L]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[].concat(U(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:U()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(U())}],"outline-offset":[{"outline-offset":[R,C]}],"outline-w":[{outline:[C]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[C]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",N,A]}],"shadow-color":[{shadow:[j]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":J()}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",N,R]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",R]}],duration:[{duration:q()}],ease:[{ease:["linear","in","out","in-out",R]}],delay:[{delay:q()}],animate:[{animate:["none","spin","ping","pulse","bounce",R]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[$,R]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",R]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",R]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",R]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[C,M]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var K=m(B),V=Object.prototype.hasOwnProperty,U=new Set(["string","number","boolean"]),J={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Y=e=>e||void 0,Z=(...e)=>Y(l(e).filter(Boolean).join(" ")),G=null,X={},q=!1,Q=(...e)=>t=>t.twMerge?((!G||q)&&(q=!1,G=a(X)?K:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{for(let r in t)e.hasOwnProperty(r)?e[r]=Z(e[r],t[r]):e[r]=t[r];return e},et=(e,t)=>{let{extend:r=null,slots:n={},variants:o={},compoundVariants:l=[],compoundSlots:f=[],defaultVariants:p={}}=e,h={...J,...t},g=null!=r&&r.base?Z(r.base,null==e?void 0:e.base):null==e?void 0:e.base,m=null!=r&&r.variants&&!a(r.variants)?c(o,r.variants):o,v=null!=r&&r.defaultVariants&&!a(r.defaultVariants)?{...r.defaultVariants,...p}:p;a(h.twMergeConfig)||s(h.twMergeConfig,X)||(q=!0,X=h.twMergeConfig);let b=a(null==r?void 0:r.slots),y=a(n)?{}:{base:Z(null==e?void 0:e.base,b&&(null==r?void 0:r.base)),...n},w=b?y:ee({...null==r?void 0:r.slots},a(y)?{base:null==e?void 0:e.base}:y),_=e=>{if(a(m)&&a(n)&&b)return Q(g,null==e?void 0:e.class,null==e?void 0:e.className)(h);if(l&&!Array.isArray(l))throw TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof l}`);if(f&&!Array.isArray(f))throw TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);let t=(e,t,r=[],n)=>{let o=r;if("string"==typeof t)o=o.concat(d(t).split(" ").map(t=>`${e}:${t}`));else if(Array.isArray(t))o=o.concat(t.reduce((t,r)=>t.concat(`${e}:${r}`),[]));else if("object"==typeof t&&"string"==typeof n){for(let r in t)if(t.hasOwnProperty(r)&&r===n){let i=t[r];if(i&&"string"==typeof i){let t=d(i);o[n]?o[n]=o[n].concat(t.split(" ").map(t=>`${e}:${t}`)):o[n]=t.split(" ").map(t=>`${e}:${t}`)}else Array.isArray(i)&&i.length>0&&(o[n]=i.reduce((t,r)=>t.concat(`${e}:${r}`),[]))}}return o},o=(r,n=m,o=null,s=null)=>{var l;let u=n[r];if(!u||a(u))return null;let c=null!=(l=null==s?void 0:s[r])?l:null==e?void 0:e[r];if(null===c)return null;let d=i(c),f=Array.isArray(h.responsiveVariants)&&h.responsiveVariants.length>0||!0===h.responsiveVariants,p=null==v?void 0:v[r],g=[];if("object"==typeof d&&f)for(let[e,r]of Object.entries(d)){let n=u[r];if("initial"===e){p=r;continue}Array.isArray(h.responsiveVariants)&&!h.responsiveVariants.includes(e)||(g=t(e,n,g,o))}let b=u[d]||u[i(p)];return"object"==typeof g&&"string"==typeof o&&g[o]?ee(g,b):g.length>0?(g.push(b),g):b},s=(e,t)=>{if(!m||"object"!=typeof m)return null;let r=[];for(let n in m){let i=o(n,m,e,t),a="base"===e&&"string"==typeof i?i:i&&i[e];a&&(r[r.length]=a)}return r},c={};for(let t in e)void 0!==e[t]&&(c[t]=e[t]);let p=(t,r)=>{var n;let o="object"==typeof(null==e?void 0:e[t])?{[t]:null==(n=e[t])?void 0:n.initial}:{};return{...v,...c,...o,...r}},y=(e=[],t)=>{let r=[];for(let{class:n,className:o,...i}of e){let e=!0;for(let[r,n]of Object.entries(i)){let o=p(r,t);if(Array.isArray(n)){if(!n.includes(o[r])){e=!1;break}}else if(o[r]!==n){e=!1;break}}e&&(n&&r.push(n),o&&r.push(o))}return r},_=e=>{let t=y(l,e);return u(y(null==r?void 0:r.compoundVariants,e),t)},x=e=>{let t=_(e);if(!Array.isArray(t))return t;let r={};for(let e of t)if("string"==typeof e&&(r.base=Q(r.base,e)(h)),"object"==typeof e)for(let[t,n]of Object.entries(e))r[t]=Q(r[t],n)(h);return r},E=e=>{if(f.length<1)return null;let t={};for(let{slots:r=[],class:n,className:o,...i}of f){if(!a(i)){let t=!0;for(let r of Object.keys(i)){let n=p(r,e)[r];if(void 0===n||(Array.isArray(i[r])?!i[r].includes(n):i[r]!==n)){t=!1;break}}if(!t)continue}for(let e of r)t[e]=t[e]||[],t[e].push([n,o])}return t};if(!a(n)||!b){let e={};if("object"==typeof w&&!a(w))for(let t of Object.keys(w))e[t]=e=>{var r,n;return Q(w[t],s(t,e),(null!=(r=x(e))?r:[])[t],(null!=(n=E(e))?n:[])[t],null==e?void 0:e.class,null==e?void 0:e.className)(h)};return e}return Q(g,m?Object.keys(m).map(e=>o(e,m)):null,_(),null==e?void 0:e.class,null==e?void 0:e.className)(h)};return _.variantKeys=(()=>{if(!(!m||"object"!=typeof m))return Object.keys(m)})(),_.extend=r,_.base=g,_.slots=w,_.variants=m,_.defaultVariants=v,_.compoundSlots=f,_.compoundVariants=l,_},er=(e,t)=>{var r,n,i;return et(e,{...t,twMerge:null==(r=null==t?void 0:t.twMerge)||r,twMergeConfig:{...null==t?void 0:t.twMergeConfig,theme:{...null==(n=null==t?void 0:t.twMergeConfig)?void 0:n.theme,...o.theme},classGroups:{...null==(i=null==t?void 0:t.twMergeConfig)?void 0:i.classGroups,...o.classGroups}}})}},6486:function(e,t,r){"use strict";r.d(t,{e:function(){return I}});var n=r(9589),o=r(8215);let i={},a=0,s=!1,l=null,u=null;var c=r(2014),d=r(7654),f=r(1596),p=r(6176),h=r(1771),g=r(341),m=r(8390),v=r(1699),b=r(7510),y=r(4189),w=r(5520),_=r(9077),x=r(1273),E=r(1870),C=r(7243),S=r(4211),T=r(6594),k=r(2110),L=r(4697),M=r(3264),P=r(2414),O=r(4111),$=r(6737),R=r(4700),j=r(217),N=()=>Promise.all([r.e(425),r.e(965)]).then(r.bind(r,2965)).then(e=>e.default),A=(0,y.Gp)((e,t)=>{let r;let{Component:A,children:I,content:D,isOpen:z,portalContainer:H,placement:F,disableAnimation:W,motionProps:B,getTriggerProps:K,getTooltipProps:V,getTooltipContentProps:U}=function(e){var t,r;let L=(0,b.w)(),[M,P]=(0,y.oe)(e,w.v.variantKeys),{ref:O,as:$,isOpen:R,content:j,children:N,defaultOpen:A,onOpenChange:I,isDisabled:D,trigger:z,shouldFlip:H=!0,containerPadding:F=12,placement:W="top",delay:B=0,closeDelay:K=500,showArrow:V=!1,offset:U=7,crossOffset:J=0,isDismissable:Y,shouldCloseOnBlur:Z=!0,portalContainer:G,isKeyboardDismissDisabled:X=!1,updatePositionDeps:q=[],shouldCloseOnInteractOutside:Q,className:ee,onClose:et,motionProps:er,classNames:en,...eo}=M,ei=null!=(r=null!=(t=null==e?void 0:e.disableAnimation)?t:null==L?void 0:L.disableAnimation)&&r,ea=function(e={}){let{delay:t=1500,closeDelay:r=500}=e,{isOpen:c,open:d,close:f}=(0,o.d)(e),p=(0,n.useMemo)(()=>`${++a}`,[]),h=(0,n.useRef)(null),g=(0,n.useRef)(f),m=()=>{i[p]=y},v=()=>{for(let e in i)e!==p&&(i[e](!0),delete i[e])},b=()=>{h.current&&clearTimeout(h.current),h.current=null,v(),m(),s=!0,d(),l&&(clearTimeout(l),l=null),u&&(clearTimeout(u),u=null)},y=e=>{e||r<=0?(h.current&&clearTimeout(h.current),h.current=null,g.current()):h.current||(h.current=setTimeout(()=>{h.current=null,g.current()},r)),l&&(clearTimeout(l),l=null),s&&(u&&clearTimeout(u),u=setTimeout(()=>{delete i[p],u=null,s=!1},Math.max(500,r)))},w=()=>{v(),m(),c||l||s?c||b():l=setTimeout(()=>{l=null,s=!0,b()},t)};return(0,n.useEffect)(()=>{g.current=f},[f]),(0,n.useEffect)(()=>()=>{h.current&&clearTimeout(h.current),i[p]&&delete i[p]},[p]),{isOpen:c,open:e=>{e||!(t>0)||h.current?b():w()},close:y}}({delay:B,closeDelay:K,isDisabled:D,defaultOpen:A,isOpen:R,onOpenChange:e=>{null==I||I(e),e||null==et||et()}}),es=(0,n.useRef)(null),el=(0,n.useRef)(null),eu=(0,n.useId)(),ec=ea.isOpen&&!D;(0,n.useImperativeHandle)(O,()=>(0,S.fg)(el));let{triggerProps:ed,tooltipProps:ef}=function(e,t,r){let{isDisabled:o,trigger:i}=e,a=(0,p.Me)(),s=(0,n.useRef)(!1),l=(0,n.useRef)(!1),u=()=>{(s.current||l.current)&&t.open(l.current)},g=e=>{s.current||l.current||t.close(e)};(0,n.useEffect)(()=>{let e=e=>{r&&r.current&&"Escape"===e.key&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}},[r,t]);let m=()=>{l.current=!1,s.current=!1,g(!0)},{hoverProps:v}=(0,f.X)({isDisabled:o,onHoverStart:()=>{"focus"!==i&&("pointer"===(0,d.Jz)()?s.current=!0:s.current=!1,u())},onHoverEnd:()=>{"focus"!==i&&(l.current=!1,s.current=!1,g())}}),{focusableProps:b}=(0,h.k)({isDisabled:o,onFocus:()=>{(0,d.E)()&&(l.current=!0,u())},onBlur:()=>{l.current=!1,s.current=!1,g(!0)}},r);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...(0,c.d)(b,v,{onPointerDown:m,onKeyDown:m})},tooltipProps:{id:a}}}({isDisabled:D,trigger:z},ea,es),{tooltipProps:ep}=function(e,t){let r=(0,g.z)(e,{labelable:!0}),{hoverProps:n}=(0,f.X)({onHoverStart:()=>null==t?void 0:t.open(!0),onHoverEnd:()=>null==t?void 0:t.close()});return{tooltipProps:(0,c.d)(r,n,{role:"tooltip"})}}({isOpen:ec,...(0,c.d)(M,ef)},ea),{overlayProps:eh,placement:eg,updatePosition:em}=(0,m.t)({isOpen:ec,targetRef:es,placement:(0,T.Yx)(W),overlayRef:el,offset:V?U+3:U,crossOffset:J,shouldFlip:H,containerPadding:F});(0,k.G)(()=>{q.length&&em()},q);let{overlayProps:ev}=(0,v.I)({isOpen:ec,onClose:ea.close,isDismissable:Y,shouldCloseOnBlur:Z,isKeyboardDismissDisabled:X,shouldCloseOnInteractOutside:Q},el),eb=(0,n.useMemo)(()=>{var t,r,n;return(0,w.v)({...P,disableAnimation:ei,radius:null!=(t=null==e?void 0:e.radius)?t:"md",size:null!=(r=null==e?void 0:e.size)?r:"md",shadow:null!=(n=null==e?void 0:e.shadow)?n:"sm"})},[(0,_.Xx)(P),ei,null==e?void 0:e.radius,null==e?void 0:e.size,null==e?void 0:e.shadow]),ey=(0,n.useCallback)((e={},t=null)=>({...(0,c.d)(ed,e),ref:(0,C.l)(t,es),"aria-describedby":ec?eu:void 0}),[ed,ec,eu,ea]),ew=(0,n.useCallback)(()=>({ref:el,"data-slot":"base","data-open":(0,x.PB)(ec),"data-arrow":(0,x.PB)(V),"data-disabled":(0,x.PB)(D),"data-placement":(0,T.sK)(eg||"top",W),...(0,c.d)(ep,ev,eo),style:(0,c.d)(eh.style,eo.style,M.style),className:eb.base({class:null==en?void 0:en.base}),id:eu}),[eb,ec,V,D,eg,W,ep,ev,eo,eh,M,eu]),e_=(0,n.useCallback)(()=>({"data-slot":"content","data-open":(0,x.PB)(ec),"data-arrow":(0,x.PB)(V),"data-disabled":(0,x.PB)(D),"data-placement":(0,T.sK)(eg||"top",W),className:eb.content({class:(0,E.W)(null==en?void 0:en.content,ee)})}),[eb,ec,V,D,eg,W,en]);return{Component:$||"div",content:j,children:N,isOpen:ec,triggerRef:es,showArrow:V,portalContainer:G,placement:W,disableAnimation:ei,isDisabled:D,motionProps:er,getTooltipContentProps:e_,getTriggerProps:ey,getTooltipProps:ew}}({...e,ref:t});try{let e=n.Children.count(I);if(1!==e)throw Error();r=(0,n.isValidElement)(I)?(0,n.cloneElement)(I,K(I.props,I.ref)):(0,j.jsx)("p",{...K(),children:I})}catch(e){r=(0,j.jsx)("span",{}),(0,R.Z)("Tooltip must have only one child node. Please, check your code.")}let{ref:J,id:Y,style:Z,...G}=V(),X=(0,j.jsx)("div",{ref:J,id:Y,style:Z,children:(0,j.jsx)(M.X,{features:N,children:(0,j.jsx)(P.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:$.y7.scaleSpring,...(0,c.d)(B,G),style:{...(0,T.VS)(F)},children:(0,j.jsx)(A,{...U(),children:D})})})});return(0,j.jsxs)(j.Fragment,{children:[r,W&&z?(0,j.jsx)(L.Xj,{portalContainer:H,children:(0,j.jsx)("div",{ref:J,id:Y,style:Z,...G,children:(0,j.jsx)(A,{...U(),children:D})})}):(0,j.jsx)(O.M,{children:z?(0,j.jsx)(L.Xj,{portalContainer:H,children:X}):null})]})});A.displayName="NextUI.Tooltip";var I=A},7414:function(e,t,r){"use strict";r.d(t,{j:function(){return u}});var n=r(4700),o=r(7894),i=r(2014),a=r(341),s=r(1771),l=r(9762);function u(e,t){let r,{elementType:u="button",isDisabled:c,onPress:d,onPressStart:f,onPressEnd:p,onPressChange:h,preventFocusOnPress:g,allowFocusWhenDisabled:m,onClick:v,href:b,target:y,rel:w,type:_="button",allowTextSelectionOnPress:x}=e;r="button"===u?{type:_,disabled:c}:{role:"button",tabIndex:c?void 0:0,href:"a"!==u||c?void 0:b,target:"a"===u?y:void 0,type:"input"===u?_:void 0,disabled:"input"===u?c:void 0,"aria-disabled":c&&"input"!==u?c:void 0,rel:"a"===u?w:void 0};let E=(0,o.gn)()||(0,o.Dt)();v&&"function"==typeof v&&(0,n.Z)("onClick is deprecated, please use onPress instead. See: https://github.com/nextui-org/nextui/issues/4292","useButton");let{pressProps:C,isPressed:S}=(0,l.r)({onPressStart:f,onPressEnd:p,onPressChange:h,onPress:e=>{E&&(null==v||v(e)),null==d||d(e)},isDisabled:c,preventFocusOnPress:g,allowTextSelectionOnPress:x,ref:t}),{focusableProps:T}=(0,s.k)(e,t);m&&(T.tabIndex=c?-1:T.tabIndex);let k=(0,i.d)(T,C,(0,a.z)(e,{labelable:!0}));return{isPressed:S,buttonProps:(0,i.d)(r,k,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{"button"===_&&E||null==v||v(e)}})}}},2110:function(e,t,r){"use strict";r.d(t,{G:function(){return o}});var n=r(9589),o=(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:n.useEffect},7599:function(e,t,r){"use strict";r.d(t,{MT:function(){return c},QL:function(){return S},cW:function(){return b}});var n=r(6814),o=r(4229),i=r(1841),a=r(9589);let s=a.createContext(null),l="react-aria-focus-scope-restore",u=null;function c(e){let t,r,{children:n,contain:c,restoreFocus:d,autoFocus:f}=e,p=(0,a.useRef)(null),b=(0,a.useRef)(null),T=(0,a.useRef)([]),{parentNode:M}=(0,a.useContext)(s)||{},P=(0,a.useMemo)(()=>new k({scopeRef:T}),[T]);(0,i.b)(()=>{let e=M||L.root;if(L.getTreeNode(e.scopeRef)&&u&&!y(u,e.scopeRef)){let t=L.getTreeNode(u);t&&(e=t)}e.addChild(P),L.addNode(P)},[P,M]),(0,i.b)(()=>{let e=L.getTreeNode(T);e&&(e.contain=!!c)},[c]),(0,i.b)(()=>{var e;let t=null===(e=p.current)||void 0===e?void 0:e.nextSibling,r=[],n=e=>e.stopPropagation();for(;t&&t!==b.current;)r.push(t),t.addEventListener(l,n),t=t.nextSibling;return T.current=r,()=>{for(let e of r)e.removeEventListener(l,n)}},[n]),(0,i.b)(()=>{if(d||c)return;let e=T.current,t=(0,o.r)(e?e[0]:void 0),r=e=>{let t=e.target;m(t,T.current)?u=T:v(t)||(u=null)};return t.addEventListener("focusin",r,!1),null==e||e.forEach(e=>e.addEventListener("focusin",r,!1)),()=>{t.removeEventListener("focusin",r,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",r,!1))}},[T,d,c]),t=(0,a.useRef)(void 0),r=(0,a.useRef)(void 0),(0,i.b)(()=>{let e=T.current;if(!c){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}let n=(0,o.r)(e?e[0]:void 0),i=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!g(T)||e.isComposing)return;let t=n.activeElement,r=T.current;if(!r||!m(t,r))return;let o=S(h(r),{tabbable:!0},r);if(!t)return;o.currentNode=t;let i=e.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=e.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=e.shiftKey?o.previousNode():o.nextNode()),e.preventDefault(),i&&w(i,!0)},a=e=>{(!u||y(u,T))&&m(e.target,T.current)?(u=T,t.current=e.target):g(T)&&!v(e.target,T)?t.current?t.current.focus():u&&u.current&&x(u.current):g(T)&&(t.current=e.target)},s=e=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(n.activeElement&&g(T)&&!v(n.activeElement,T)){if(u=T,n.body.contains(e.target)){var r;t.current=e.target,null===(r=t.current)||void 0===r||r.focus()}else u.current&&x(u.current)}})};return n.addEventListener("keydown",i,!1),n.addEventListener("focusin",a,!1),null==e||e.forEach(e=>e.addEventListener("focusin",a,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",s,!1)),()=>{n.removeEventListener("keydown",i,!1),n.removeEventListener("focusin",a,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",a,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",s,!1))}},[T,c]),(0,i.b)(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r]),function(e,t,r){let n=(0,a.useRef)("undefined"!=typeof document?(0,o.r)(e.current?e.current[0]:void 0).activeElement:null);(0,i.b)(()=>{let n=e.current,i=(0,o.r)(n?n[0]:void 0);if(!t||r)return;let a=()=>{(!u||y(u,e))&&m(i.activeElement,e.current)&&(u=e)};return i.addEventListener("focusin",a,!1),null==n||n.forEach(e=>e.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),null==n||n.forEach(e=>e.removeEventListener("focusin",a,!1))}},[e,r]),(0,i.b)(()=>{let n=(0,o.r)(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!g(e)||t.isComposing)return;let r=n.activeElement;if(!v(r,e)||!E(e))return;let o=L.getTreeNode(e);if(!o)return;let i=o.nodeToRestore,a=S(n.body,{tabbable:!0});a.currentNode=r;let s=t.shiftKey?a.previousNode():a.nextNode();if(i&&n.body.contains(i)&&i!==n.body||(i=void 0,o.nodeToRestore=void 0),(!s||!v(s,e))&&i){a.currentNode=i;do s=t.shiftKey?a.previousNode():a.nextNode();while(v(s,e));(t.preventDefault(),t.stopPropagation(),s)?w(s,!0):v(i)?w(i,!0):r.blur()}};return r||n.addEventListener("keydown",i,!0),()=>{r||n.removeEventListener("keydown",i,!0)}},[e,t,r]),(0,i.b)(()=>{var r;let i=(0,o.r)(e.current?e.current[0]:void 0);if(!t)return;let a=L.getTreeNode(e);if(a)return a.nodeToRestore=null!==(r=n.current)&&void 0!==r?r:void 0,()=>{let r=L.getTreeNode(e);if(!r)return;let n=r.nodeToRestore;if(t&&n&&(i.activeElement&&v(i.activeElement,e)||i.activeElement===i.body&&E(e))){let t=L.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let r=t.getTreeNode(e);for(;r;){if(r.nodeToRestore&&r.nodeToRestore.isConnected){C(r.nodeToRestore);return}r=r.parent}for(r=t.getTreeNode(e);r;){if(r.scopeRef&&r.scopeRef.current&&L.getTreeNode(r.scopeRef)){C(_(r.scopeRef.current,!0));return}r=r.parent}}})}}},[e,t])}(T,d,c),function(e,t){let r=a.useRef(t);(0,a.useEffect)(()=>{r.current&&(u=e,!m((0,o.r)(e.current?e.current[0]:void 0).activeElement,u.current)&&e.current&&x(e.current)),r.current=!1},[e])}(T,f),(0,a.useEffect)(()=>{let e=(0,o.r)(T.current?T.current[0]:void 0).activeElement,t=null;if(m(e,T.current)){for(let r of L.traverse())r.scopeRef&&m(e,r.scopeRef.current)&&(t=r);t===L.getTreeNode(T)&&(u=t.scopeRef)}},[T]),(0,i.b)(()=>()=>{var e,t,r;let n=null!==(r=null===(t=L.getTreeNode(T))||void 0===t?void 0:null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==r?r:null;(T===u||y(T,u))&&(!n||L.getTreeNode(n))&&(u=n),L.removeTreeNode(T)},[T]);let O=(0,a.useMemo)(()=>({focusNext(e={}){let t=T.current,{from:r,tabbable:n,wrap:i,accept:a}=e,s=r||(0,o.r)(t[0]).activeElement,l=t[0].previousElementSibling,u=S(h(t),{tabbable:n,accept:a},t);u.currentNode=m(s,t)?s:l;let c=u.nextNode();return!c&&i&&(u.currentNode=l,c=u.nextNode()),c&&w(c,!0),c},focusPrevious(e={}){let t=T.current,{from:r,tabbable:n,wrap:i,accept:a}=e,s=r||(0,o.r)(t[0]).activeElement,l=t[t.length-1].nextElementSibling,u=S(h(t),{tabbable:n,accept:a},t);u.currentNode=m(s,t)?s:l;let c=u.previousNode();return!c&&i&&(u.currentNode=l,c=u.previousNode()),c&&w(c,!0),c},focusFirst(e={}){let t=T.current,{tabbable:r,accept:n}=e,o=S(h(t),{tabbable:r,accept:n},t);o.currentNode=t[0].previousElementSibling;let i=o.nextNode();return i&&w(i,!0),i},focusLast(e={}){let t=T.current,{tabbable:r,accept:n}=e,o=S(h(t),{tabbable:r,accept:n},t);o.currentNode=t[t.length-1].nextElementSibling;let i=o.previousNode();return i&&w(i,!0),i}}),[]),$=(0,a.useMemo)(()=>({focusManager:O,parentNode:P}),[P,O]);return a.createElement(s.Provider,{value:$},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:p}),n,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:b}))}let d=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],f=d.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";d.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let p=d.join(':not([hidden]):not([tabindex="-1"]),');function h(e){return e[0].parentElement}function g(e){let t=L.getTreeNode(u);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function m(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function v(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of L.traverse(L.getTreeNode(t)))if(r&&m(e,r.current))return!0;return!1}function b(e){return v(e,u)}function y(e,t){var r;let n=null===(r=L.getTreeNode(t))||void 0===r?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function w(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{(0,n.e)(e)}catch{}}function _(e,t=!0){let r=e[0].previousElementSibling,n=h(e),o=S(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&((o=S(n=h(e),{tabbable:!1},e)).currentNode=r,i=o.nextNode()),i}function x(e,t=!0){w(_(e,t))}function E(e){let t=L.getTreeNode(u);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function C(e){e.dispatchEvent(new CustomEvent(l,{bubbles:!0,cancelable:!0}))&&w(e)}function S(e,t,r){let n=(null==t?void 0:t.tabbable)?p:f,i=(0,o.r)(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return(null==t?void 0:null===(i=t.from)||void 0===i?void 0:i.contains(e))?NodeFilter.FILTER_REJECT:e.matches(n)&&function e(t,r){return"#comment"!==t.nodeName&&function(e){let t=(0,o.k)(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,i="none"!==r&&"hidden"!==n&&"collapse"!==n;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n}=t(e);i="none"!==r&&"hidden"!==n&&"collapse"!==n}return i}(t)&&!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==t.nodeName||!r||"SUMMARY"===r.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(e)&&(!r||m(e,r))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(i.currentNode=t.from),i}class T{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let n=this.fastMap.get(null!=t?t:null);if(!n)return;let o=new k({scopeRef:e});n.addChild(o),o.parent=n,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let r=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&m(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;r&&(r.removeChild(t),n.size>0&&n.forEach(e=>r&&r.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let r=new T;for(let n of this.traverse())r.addTreeNode(n.scopeRef,null!==(t=null===(e=n.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,n.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new k({scopeRef:null}),this.fastMap.set(null,this.root)}}class k{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let L=new T},6814:function(e,t,r){"use strict";r.d(t,{e:function(){return s}});var n=r(4229),o=r(2097),i=r(1723),a=r(7654);function s(e){let t=(0,n.r)(e);if("virtual"===(0,a.Jz)()){let r=t.activeElement;(0,o.Q)(()=>{t.activeElement===r&&e.isConnected&&(0,i.A)(e)})}else(0,i.A)(e)}},709:function(e,t,r){"use strict";r.d(t,{F:function(){return s}});var n=r(7654),o=r(4098),i=r(4915),a=r(9589);function s(e={}){let{autoFocus:t=!1,isTextInput:r,within:s}=e,l=(0,a.useRef)({isFocused:!1,isFocusVisible:t||(0,n.E)()}),[u,c]=(0,a.useState)(!1),[d,f]=(0,a.useState)(()=>l.current.isFocused&&l.current.isFocusVisible),p=(0,a.useCallback)(()=>f(l.current.isFocused&&l.current.isFocusVisible),[]),h=(0,a.useCallback)(e=>{l.current.isFocused=e,c(e),p()},[p]);(0,n.mG)(e=>{l.current.isFocusVisible=e,p()},[],{isTextInput:r});let{focusProps:g}=(0,o.K)({isDisabled:s,onFocusChange:h}),{focusWithinProps:m}=(0,i.L)({isDisabled:!s,onFocusWithinChange:h});return{isFocused:u,isFocusVisible:d,focusProps:s?m:g}}},1771:function(e,t,r){"use strict";r.d(t,{k:function(){return c}});var n=r(6814),o=r(5362),i=r(2014),a=r(9589),s=r(4098);function l(e){if(!e)return;let t=!0;return r=>{e({...r,preventDefault(){r.preventDefault()},isDefaultPrevented:()=>r.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}}),t&&r.stopPropagation()}}let u=a.createContext(null);function c(e,t){let{focusProps:r}=(0,s.K)(e),{keyboardProps:c}={keyboardProps:e.isDisabled?{}:{onKeyDown:l(e.onKeyDown),onKeyUp:l(e.onKeyUp)}},d=(0,i.d)(r,c),f=function(e){let t=(0,a.useContext)(u)||{};(0,o.l)(t,e);let{ref:r,...n}=t;return n}(t),p=e.isDisabled?{}:f,h=(0,a.useRef)(e.autoFocus);return(0,a.useEffect)(()=>{h.current&&t.current&&(0,n.e)(t.current),h.current=!1},[t]),{focusableProps:(0,i.d)({...d,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},p)}}},2314:function(e,t,r){"use strict";r.d(t,{b:function(){return g},j:function(){return m}});let n=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function i(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),r="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(r)return"rtl"===r.direction;if(t.script)return n.has(t.script)}let t=e.split("-")[0];return o.has(t)}var a=r(9589),s=r(6717);let l=Symbol.for("react-aria.i18n.locale");function u(){let e="undefined"!=typeof window&&window[l]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:i(e)?"rtl":"ltr"}}let c=u(),d=new Set;function f(){for(let e of(c=u(),d))e(c)}function p(){let e=(0,s.Av)(),[t,r]=(0,a.useState)(c);return((0,a.useEffect)(()=>(0===d.size&&window.addEventListener("languagechange",f),d.add(r),()=>{d.delete(r),0===d.size&&window.removeEventListener("languagechange",f)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}let h=a.createContext(null);function g(e){let{locale:t,children:r}=e,n=p(),o=a.useMemo(()=>t?{locale:t,direction:i(t)?"rtl":"ltr"}:n,[n,t]);return a.createElement(h.Provider,{value:o},r)}function m(){let e=p();return(0,a.useContext)(h)||e}},9096:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});let n=r(9589).createContext({register:()=>{}});n.displayName="PressResponderContext"},4098:function(e,t,r){"use strict";r.d(t,{K:function(){return a}});var n=r(3100),o=r(9589),i=r(4229);function a(e){let{isDisabled:t,onFocus:r,onBlur:a,onFocusChange:s}=e,l=(0,o.useCallback)(e=>{if(e.target===e.currentTarget)return a&&a(e),s&&s(!1),!0},[a,s]),u=(0,n.d)(l),c=(0,o.useCallback)(e=>{let t=(0,i.r)(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(r&&r(e),s&&s(!0),u(e))},[s,r,u]);return{focusProps:{onFocus:!t&&(r||s||a)?c:void 0,onBlur:!t&&(a||s)?l:void 0}}}},7654:function(e,t,r){"use strict";r.d(t,{E:function(){return x},Jz:function(){return E},Kf:function(){return S},_w:function(){return C},mG:function(){return k}});var n=r(7894),o=r(7248),i=r(4229),a=r(9589),s=r(6717);let l=null,u=new Set,c=new Map,d=!1,f=!1,p={Tab:!0,Escape:!0};function h(e,t){for(let r of u)r(e,t)}function g(e){d=!0,e.metaKey||!(0,n.V5)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(l="keyboard",h("keyboard",e))}function m(e){l="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(d=!0,h("pointer",e))}function v(e){(0,o.Z)(e)&&(d=!0,l="virtual")}function b(e){e.target!==window&&e.target!==document&&(d||f||(l="virtual",h("virtual",e)),d=!1,f=!1)}function y(){d=!1,f=!0}function w(e){if("undefined"==typeof window||c.get((0,i.k)(e)))return;let t=(0,i.k)(e),r=(0,i.r)(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){d=!0,n.apply(this,arguments)},r.addEventListener("keydown",g,!0),r.addEventListener("keyup",g,!0),r.addEventListener("click",v,!0),t.addEventListener("focus",b,!0),t.addEventListener("blur",y,!1),"undefined"!=typeof PointerEvent?(r.addEventListener("pointerdown",m,!0),r.addEventListener("pointermove",m,!0),r.addEventListener("pointerup",m,!0)):(r.addEventListener("mousedown",m,!0),r.addEventListener("mousemove",m,!0),r.addEventListener("mouseup",m,!0)),t.addEventListener("beforeunload",()=>{_(e)},{once:!0}),c.set(t,{focus:n})}let _=(e,t)=>{let r=(0,i.k)(e),n=(0,i.r)(e);t&&n.removeEventListener("DOMContentLoaded",t),c.has(r)&&(r.HTMLElement.prototype.focus=c.get(r).focus,n.removeEventListener("keydown",g,!0),n.removeEventListener("keyup",g,!0),n.removeEventListener("click",v,!0),r.removeEventListener("focus",b,!0),r.removeEventListener("blur",y,!1),"undefined"!=typeof PointerEvent?(n.removeEventListener("pointerdown",m,!0),n.removeEventListener("pointermove",m,!0),n.removeEventListener("pointerup",m,!0)):(n.removeEventListener("mousedown",m,!0),n.removeEventListener("mousemove",m,!0),n.removeEventListener("mouseup",m,!0)),c.delete(r))};function x(){return"pointer"!==l}function E(){return l}function C(e){l=e,h(e,null)}function S(){w();let[e,t]=(0,a.useState)(l);return(0,a.useEffect)(()=>{let e=()=>{t(l)};return u.add(e),()=>{u.delete(e)}},[]),(0,s.Av)()?null:e}"undefined"!=typeof document&&function(e){let t;let r=(0,i.r)(void 0);"loading"!==r.readyState?w(void 0):(t=()=>{w(void 0)},r.addEventListener("DOMContentLoaded",t)),()=>_(e,t)}();let T=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function k(e,t,r){w(),(0,a.useEffect)(()=>{let t=(t,n)=>{(function(e,t,r){var n;let o="undefined"!=typeof window?(0,i.k)(null==r?void 0:r.target).HTMLInputElement:HTMLInputElement,a="undefined"!=typeof window?(0,i.k)(null==r?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,s="undefined"!=typeof window?(0,i.k)(null==r?void 0:r.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?(0,i.k)(null==r?void 0:r.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==r?void 0:r.target)instanceof o&&!T.has(null==r?void 0:null===(n=r.target)||void 0===n?void 0:n.type)||(null==r?void 0:r.target)instanceof a||(null==r?void 0:r.target)instanceof s&&(null==r?void 0:r.target.isContentEditable))&&"keyboard"===t&&r instanceof l&&!p[r.key])})(!!(null==r?void 0:r.isTextInput),t,n)&&e(x())};return u.add(t),()=>{u.delete(t)}},t)}},4915:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(3100),o=r(9589);function i(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:i,onFocusWithinChange:a}=e,s=(0,o.useRef)({isFocusWithin:!1}),l=(0,o.useCallback)(e=>{s.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(s.current.isFocusWithin=!1,r&&r(e),a&&a(!1))},[r,a,s]),u=(0,n.d)(l),c=(0,o.useCallback)(e=>{s.current.isFocusWithin||document.activeElement!==e.target||(i&&i(e),a&&a(!0),s.current.isFocusWithin=!0,u(e))},[i,a,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}},1596:function(e,t,r){"use strict";r.d(t,{X:function(){return u}});var n=r(9589);let o=!1,i=0;function a(){o=!0,setTimeout(()=>{o=!1},50)}function s(e){"touch"===e.pointerType&&a()}function l(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",s):document.addEventListener("touchend",a),i++,()=>{--i>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",s):document.removeEventListener("touchend",a))}}function u(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:i,isDisabled:a}=e,[s,u]=(0,n.useState)(!1),c=(0,n.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,n.useEffect)(l,[]);let{hoverProps:d,triggerHoverEnd:f}=(0,n.useMemo)(()=>{let e=(e,n)=>{if(c.pointerType=n,a||"touch"===n||c.isHovered||!e.currentTarget.contains(e.target))return;c.isHovered=!0;let o=e.currentTarget;c.target=o,t&&t({type:"hoverstart",target:o,pointerType:n}),r&&r(!0),u(!0)},n=(e,t)=>{if(c.pointerType="",c.target=null,"touch"===t||!c.isHovered)return;c.isHovered=!1;let n=e.currentTarget;i&&i({type:"hoverend",target:n,pointerType:t}),r&&r(!1),u(!1)},s={};return"undefined"!=typeof PointerEvent?(s.onPointerEnter=t=>{o&&"mouse"===t.pointerType||e(t,t.pointerType)},s.onPointerLeave=e=>{!a&&e.currentTarget.contains(e.target)&&n(e,e.pointerType)}):(s.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},s.onMouseEnter=t=>{c.ignoreEmulatedMouseEvents||o||e(t,"mouse"),c.ignoreEmulatedMouseEvents=!1},s.onMouseLeave=e=>{!a&&e.currentTarget.contains(e.target)&&n(e,"mouse")}),{hoverProps:s,triggerHoverEnd:n}},[t,r,i,a,c]);return(0,n.useEffect)(()=>{a&&f({currentTarget:c.target},c.pointerType)},[a]),{hoverProps:d,isHovered:s}}},9762:function(e,t,r){"use strict";r.d(t,{r:function(){return T}});var n=r(7894),o=r(4229),i=r(2097);let a="default",s="",l=new WeakMap;function u(e){if((0,n.gn)()){if("default"===a){let t=(0,o.r)(e);s=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}a="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(l.set(e,e.style.userSelect),e.style.userSelect="none")}function c(e){if((0,n.gn)())"disabled"===a&&(a="restoring",setTimeout(()=>{(0,i.Q)(()=>{if("restoring"===a){let t=(0,o.r)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=s||""),s="",a="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&l.has(e)){let t=l.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),l.delete(e)}}var d=r(9096);function f(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function p(e,t,r){var n=f(e,t,"set");return!function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=r}}(e,n,r),r}var h=r(2014),g=r(5362),m=r(7278),v=r(2013),b=r(6367),y=r(501),w=r(7248),_=r(1723),x=r(9589),E=new WeakMap;class C{continuePropagation(){p(this,E,!1)}get shouldStopPropagation(){var e;return(e=f(this,E,"get")).get?e.get.call(this):e.value}constructor(e,t,r,n){var o,i;i={writable:!0,value:void 0},function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(this,E),E.set(this,i),p(this,E,!0);let a=null!==(o=null==n?void 0:n.target)&&void 0!==o?o:r.currentTarget,s=null==a?void 0:a.getBoundingClientRect(),l,u=0,c,d=null;null!=r.clientX&&null!=r.clientY&&(c=r.clientX,d=r.clientY),s&&(null!=c&&null!=d?(l=c-s.left,u=d-s.top):(l=s.width/2,u=s.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}}let S=Symbol("linkClicked");function T(e){let{onPress:t,onPressChange:r,onPressStart:i,onPressEnd:a,onPressUp:s,isDisabled:l,isPressed:f,preventFocusOnPress:p,shouldCancelOnPointerExit:E,allowTextSelectionOnPress:T,ref:A,...I}=function(e){let t=(0,x.useContext)(d.O);if(t){let{register:r,...n}=t;e=(0,h.d)(n,e),r()}return(0,g.l)(t,e.ref),e}(e),[D,z]=(0,x.useState)(!1),H=(0,x.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:F,removeAllGlobalListeners:W}=(0,m.x)(),B=(0,v.i)((e,t)=>{let n=H.current;if(l||n.didFirePressStart)return!1;let o=!0;if(n.isTriggeringEvent=!0,i){let r=new C("pressstart",t,e);i(r),o=r.shouldStopPropagation}return r&&r(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,z(!0),o}),K=(0,v.i)((e,n,o=!0)=>{let i=H.current;if(!i.didFirePressStart)return!1;i.ignoreClickAfterPress=!0,i.didFirePressStart=!1,i.isTriggeringEvent=!0;let s=!0;if(a){let t=new C("pressend",n,e);a(t),s=t.shouldStopPropagation}if(r&&r(!1),z(!1),t&&o&&!l){let r=new C("press",n,e);t(r),s&&(s=r.shouldStopPropagation)}return i.isTriggeringEvent=!1,s}),V=(0,v.i)((e,t)=>{let r=H.current;if(l)return!1;if(s){r.isTriggeringEvent=!0;let n=new C("pressup",t,e);return s(n),r.isTriggeringEvent=!1,n.shouldStopPropagation}return!0}),U=(0,v.i)(e=>{let t=H.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&K(O(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,W(),T||c(t.target))}),J=(0,v.i)(e=>{E&&U(e)}),Y=(0,x.useMemo)(()=>{let e=H.current,t={onKeyDown(t){if(L(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var i;N(t.target,t.key)&&t.preventDefault();let a=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,a=B(t,"keyboard");let n=t.currentTarget;F((0,o.r)(t.currentTarget),"keyup",(0,b.t)(t=>{L(t,n)&&!t.repeat&&n.contains(t.target)&&e.target&&V(O(e.target,t),"keyboard")},r),!0)}a&&t.stopPropagation(),t.metaKey&&(0,n.V5)()&&(null===(i=e.metaKeyEvents)||void 0===i||i.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!y.nG.isOpening){let r=!0;if(l&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||(0,w.Z)(t.nativeEvent))){l||p||(0,_.A)(t.currentTarget);let e=B(t,"virtual"),n=V(t,"virtual"),o=K(t,"virtual");r=e&&n&&o}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,r&&t.stopPropagation()}}},r=t=>{var r,n,o;if(e.isPressed&&e.target&&L(t,e.target)){N(t.target,t.key)&&t.preventDefault();let r=t.target;K(O(e.target,t),"keyboard",e.target.contains(r)),W(),"Enter"!==t.key&&k(e.target)&&e.target.contains(r)&&!t[S]&&(t[S]=!0,(0,y.nG)(e.target,t,!1)),e.isPressed=!1,null===(n=e.metaKeyEvents)||void 0===n||n.delete(t.key)}else if("Meta"===t.key&&(null===(r=e.metaKeyEvents)||void 0===r?void 0:r.size)){let t=e.metaKeyEvents;for(let r of(e.metaKeyEvents=void 0,t.values()))null===(o=e.target)||void 0===o||o.dispatchEvent(new KeyboardEvent("keyup",r))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if((0,w.c)(t.nativeEvent)){e.pointerType="virtual";return}R(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let i=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,l||p||(0,_.A)(t.currentTarget),T||u(e.target),i=B(t,e.pointerType),F((0,o.r)(t.currentTarget),"pointermove",r,!1),F((0,o.r)(t.currentTarget),"pointerup",n,!1),F((0,o.r)(t.currentTarget),"pointercancel",a,!1)),i&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(R(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&$(t,t.currentTarget)&&V(t,e.pointerType||t.pointerType)};let r=t=>{t.pointerId===e.activePointerId&&(e.target&&$(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,B(O(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,K(O(e.target,t),e.pointerType,!1),J(t)))},n=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&($(t,e.target)&&null!=e.pointerType?K(O(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&K(O(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,W(),T||c(e.target),"ontouchend"in e.target&&"mouse"!==t.pointerType&&F(e.target,"touchend",i,{once:!0}))},i=e=>{j(e.currentTarget)&&e.preventDefault()},a=e=>{U(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&U(e)}}else{t.onMouseDown=t=>{if(0===t.button&&t.currentTarget.contains(t.target)){if(R(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents){t.stopPropagation();return}e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=(0,w.Z)(t.nativeEvent)?"virtual":"mouse",l||p||(0,_.A)(t.currentTarget),B(t,e.pointerType)&&t.stopPropagation(),F((0,o.r)(t.currentTarget),"mouseup",r,!1)}},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let r=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,r=B(t,e.pointerType)),r&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let r=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,r=K(t,e.pointerType,!1),J(t)),r&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&!e.ignoreEmulatedMouseEvents&&0===t.button&&V(t,e.pointerType||"mouse")};let r=t=>{if(0===t.button){if(e.isPressed=!1,W(),e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=!1;return}e.target&&$(t,e.target)&&null!=e.pointerType?K(O(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&K(O(e.target,t),e.pointerType,!1),e.isOverTarget=!1}};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let r=function(e){let{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",l||p||(0,_.A)(t.currentTarget),T||u(e.target),B(P(e.target,t),e.pointerType)&&t.stopPropagation(),F((0,o.k)(t.currentTarget),"scroll",n,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let r=M(t.nativeEvent,e.activePointerId),n=!0;r&&$(r,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,n=B(P(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,n=K(P(e.target,t),e.pointerType,!1),J(P(e.target,t))),n&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let r=M(t.nativeEvent,e.activePointerId),n=!0;r&&$(r,t.currentTarget)&&null!=e.pointerType?(V(P(e.target,t),e.pointerType),n=K(P(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(n=K(P(e.target,t),e.pointerType,!1)),n&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!T&&c(e.target),W()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&U(P(e.target,t)))};let n=t=>{e.isPressed&&t.target.contains(e.target)&&U({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&U(e)}}return t},[F,l,p,W,T,U,J,K,B,V]);return(0,x.useEffect)(()=>()=>{var e;T||c(null!==(e=H.current.target)&&void 0!==e?e:void 0)},[T]),{isPressed:f||D,pressProps:(0,h.d)(I,Y)}}function k(e){return"A"===e.tagName&&e.hasAttribute("href")}function L(e,t){let{key:r,code:n}=e,i=t.getAttribute("role");return("Enter"===r||" "===r||"Spacebar"===r||"Space"===n)&&!(t instanceof(0,o.k)(t).HTMLInputElement&&!I(t,r)||t instanceof(0,o.k)(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===i||!i&&k(t))&&"Enter"!==r)}function M(e,t){let r=e.changedTouches;for(let e=0;ei.right)&&!(i.left>o.right)&&!(o.top>i.bottom)&&!(i.top>o.bottom)}function R(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function j(e){return!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!k(e))}function N(e,t){return e instanceof HTMLInputElement?!I(e,t):j(e)}let A=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function I(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:A.has(e.type)}},3100:function(e,t,r){"use strict";r.d(t,{d:function(){return s}});var n=r(9589),o=r(1841),i=r(2013);class a{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function s(e){let t=(0,n.useRef)({isFocused:!1,observer:null});(0,o.b)(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let r=(0,i.i)(t=>{null==e||e(t)});return(0,n.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target;n.addEventListener("focusout",e=>{t.current.isFocused=!1,n.disabled&&r(new a("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let r=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[r])}},5663:function(e,t,r){"use strict";r.d(t,{O:function(){return i},v:function(){return o}});var n=r(9589);let o=new WeakMap;function i(e){let{triggerRef:t,isOpen:r,onClose:i}=e;(0,n.useEffect)(()=>{if(!r||null===i)return;let e=e=>{let r=e.target;if(!t.current||r instanceof Node&&!r.contains(t.current)||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let n=i||o.get(t.current);n&&n()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[r,i,t])}},4697:function(e,t,r){"use strict";r.d(t,{N3:function(){return u},Xj:function(){return c}});var n=r(9589),o=r(9297),i=r(6717);let a=n.createContext(null);function s(e){let{children:t}=e,r=(0,n.useContext)(a),[o,i]=(0,n.useState)(0),s=(0,n.useMemo)(()=>({parent:r,modalCount:o,addModal(){i(e=>e+1),r&&r.addModal()},removeModal(){i(e=>e-1),r&&r.removeModal()}}),[r,o]);return n.createElement(a.Provider,{value:s},t)}function l(e){let t;let{modalProviderProps:r}={modalProviderProps:{"aria-hidden":!!(t=(0,n.useContext)(a))&&t.modalCount>0||void 0}};return n.createElement("div",{"data-overlay-container":!0,...e,...r})}function u(e){return n.createElement(s,null,n.createElement(l,e))}function c(e){let t=(0,i.Av)(),{portalContainer:r=t?null:document.body,...a}=e;if(n.useEffect(()=>{if(null==r?void 0:r.closest("[data-overlay-container]"))throw Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let s=n.createElement(u,a);return o.createPortal(s,r)}},1699:function(e,t,r){"use strict";r.d(t,{I:function(){return c}});var n=r(7599),o=r(9589),i=r(2013),a=r(4229);function s(e,t){if(e.button>0)return!1;if(e.target){let t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}var l=r(4915);let u=[];function c(e,t){let{onClose:r,shouldCloseOnBlur:c,isOpen:d,isDismissable:f=!1,isKeyboardDismissDisabled:p=!1,shouldCloseOnInteractOutside:h}=e;(0,o.useEffect)(()=>(d&&u.push(t),()=>{let e=u.indexOf(t);e>=0&&u.splice(e,1)}),[d,t]);let g=()=>{u[u.length-1]===t&&r&&r()};!function(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:l}=e,u=(0,o.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),c=(0,i.i)(e=>{r&&s(e,t)&&(l&&l(e),u.current.isPointerDown=!0)}),d=(0,i.i)(e=>{r&&r(e)});(0,o.useEffect)(()=>{let e=u.current;if(n)return;let r=t.current,o=(0,a.r)(r);if("undefined"!=typeof PointerEvent){let r=r=>{e.isPointerDown&&s(r,t)&&d(r),e.isPointerDown=!1};return o.addEventListener("pointerdown",c,!0),o.addEventListener("pointerup",r,!0),()=>{o.removeEventListener("pointerdown",c,!0),o.removeEventListener("pointerup",r,!0)}}{let r=r=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&s(r,t)&&d(r),e.isPointerDown=!1},n=r=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&s(r,t)&&d(r),e.isPointerDown=!1};return o.addEventListener("mousedown",c,!0),o.addEventListener("mouseup",r,!0),o.addEventListener("touchstart",c,!0),o.addEventListener("touchend",n,!0),()=>{o.removeEventListener("mousedown",c,!0),o.removeEventListener("mouseup",r,!0),o.removeEventListener("touchstart",c,!0),o.removeEventListener("touchend",n,!0)}}},[t,n,c,d])}({ref:t,onInteractOutside:f&&d?e=>{(!h||h(e.target))&&(u[u.length-1]===t&&(e.stopPropagation(),e.preventDefault()),g())}:void 0,onInteractOutsideStart:e=>{(!h||h(e.target))&&u[u.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:m}=(0,l.L)({isDisabled:!c,onBlurWithin:e=>{!(!e.relatedTarget||(0,n.cW)(e.relatedTarget))&&(!h||h(e.relatedTarget))&&(null==r||r())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||p||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),g())},...m},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}},8390:function(e,t,r){"use strict";r.d(t,{t:function(){return T}});var n=r(7894);function o(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}let i={top:"top",bottom:"top",left:"left",right:"left"},a={top:"bottom",bottom:"top",left:"right",right:"left"},s={top:"left",left:"top"},l={top:"height",left:"width"},u={width:"totalWidth",height:"totalHeight"},c={},d="undefined"!=typeof document?window.visualViewport:null;function f(e){var t,r,o,i,a;let s=0,l=0,u=0,c=0,f=0,p=0,h={},g=(null!==(t=null==d?void 0:d.scale)&&void 0!==t?t:1)>1;if("BODY"===e.tagName){let t=document.documentElement;u=t.clientWidth,c=t.clientHeight,s=null!==(r=null==d?void 0:d.width)&&void 0!==r?r:u,l=null!==(o=null==d?void 0:d.height)&&void 0!==o?o:c,h.top=t.scrollTop||e.scrollTop,h.left=t.scrollLeft||e.scrollLeft,d&&(f=d.offsetTop,p=d.offsetLeft)}else({width:s,height:l,top:f,left:p}=v(e)),h.top=e.scrollTop,h.left=e.scrollLeft,u=s,c=l;return(0,n.Pf)()&&("BODY"===e.tagName||"HTML"===e.tagName)&&g&&(h.top=0,h.left=0,f=null!==(i=null==d?void 0:d.pageTop)&&void 0!==i?i:0,p=null!==(a=null==d?void 0:d.pageLeft)&&void 0!==a?a:0),{width:s,height:l,totalWidth:u,totalHeight:c,scroll:h,top:f,left:p}}function p(e,t,r,n,o,a,s){var u;let c=null!==(u=o.scroll[e])&&void 0!==u?u:0,d=n[l[e]],f=n.scroll[i[e]]+a,p=d+n.scroll[i[e]]-a,h=t-c+s[e]-n[i[e]],g=t-c+r+s[e]-n[i[e]];return hp?Math.max(p-g,f-h):0}function h(e){if(c[e])return c[e];let[t,r]=e.split(" "),n=i[t]||"right",o=s[n];i[r]||(r="center");let a=l[n],u=l[o];return c[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:a,crossSize:u},c[e]}function g(e,t,r,n,i,s,l,c,d,f){var p,h,g,m,v;let{placement:b,crossPlacement:y,axis:w,crossAxis:_,size:x,crossSize:E}=n,C={};C[_]=null!==(p=e[_])&&void 0!==p?p:0,"center"===y?C[_]+=((null!==(h=e[E])&&void 0!==h?h:0)-(null!==(g=r[E])&&void 0!==g?g:0))/2:y!==_&&(C[_]+=(null!==(m=e[E])&&void 0!==m?m:0)-(null!==(v=r[E])&&void 0!==v?v:0)),C[_]+=s;let S=e[_]-r[E]+d+f,T=e[_]+e[E]-d-f;if(C[_]=o(C[_],S,T),b===w){let r=c?l[x]:t[u[x]];C[a[w]]=Math.floor(r-e[w]+i)}else C[w]=Math.floor(e[w]+e[x]+i);return C}function m(e,t,r,n,o,i){var s,l,u;let{placement:c,axis:d,size:f}=i;return c===d?Math.max(0,r[d]-e[d]-(null!==(s=e.scroll[d])&&void 0!==s?s:0)+t[d]-(null!==(l=n[d])&&void 0!==l?l:0)-n[a[d]]-o):Math.max(0,e[f]+e[d]+e.scroll[d]-t[d]-r[d]-r[f]-(null!==(u=n[d])&&void 0!==u?u:0)-n[a[d]]-o)}function v(e){let{top:t,left:r,width:n,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:a,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+i-s,left:r+a-l,width:n,height:o}}function b(e,t){let r,n=window.getComputedStyle(e);if("fixed"===n.position){let{top:t,left:n,width:o,height:i}=e.getBoundingClientRect();r={top:t,left:n,width:o,height:i}}else{r=v(e);let n=v(t),o=window.getComputedStyle(t);n.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,n.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=n.top,r.left-=n.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function y(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}var w=r(5663),_=r(9589),x=r(1841);function E(e){let{ref:t,box:r,onResize:n}=e;(0,_.useEffect)(()=>{let e=null==t?void 0:t.current;if(e){if(!(void 0!==window.ResizeObserver))return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)};{let t=new window.ResizeObserver(e=>{e.length&&n()});return t.observe(e,{box:r}),()=>{e&&t.unobserve(e)}}}},[n,t,r])}var C=r(2314);let S="undefined"!=typeof document?window.visualViewport:null;function T(e){var t,r;let{direction:n}=(0,C.j)(),{arrowSize:s=0,targetRef:l,overlayRef:c,scrollRef:d=c,placement:T="bottom",containerPadding:k=12,shouldFlip:L=!0,boundaryElement:M="undefined"!=typeof document?document.body:null,offset:P=0,crossOffset:O=0,shouldUpdatePosition:$=!0,isOpen:R=!0,onClose:j,maxHeight:N,arrowBoundaryOffset:A=0}=e,[I,D]=(0,_.useState)(null),z=[$,T,c.current,l.current,d.current,k,L,M,P,O,R,n,N,A,s],H=(0,_.useRef)(null==S?void 0:S.scale);(0,_.useEffect)(()=>{R&&(H.current=null==S?void 0:S.scale)},[R]);let F=(0,_.useCallback)(()=>{var e,t,r,w,_;if(!1===$||!R||!c.current||!l.current||!M||(null==S?void 0:S.scale)!==H.current)return;let x=null;if(d.current&&d.current.contains(document.activeElement)){let n=null===(e=document.activeElement)||void 0===e?void 0:e.getBoundingClientRect(),o=d.current.getBoundingClientRect();(x={type:"top",offset:(null!==(t=null==n?void 0:n.top)&&void 0!==t?t:0)-o.top}).offset>o.height/2&&(x.type="bottom",x.offset=(null!==(r=null==n?void 0:n.bottom)&&void 0!==r?r:0)-o.bottom)}let E=c.current;!N&&c.current&&(E.style.top="0px",E.style.bottom="",E.style.maxHeight=(null!==(_=null===(w=window.visualViewport)||void 0===w?void 0:w.height)&&void 0!==_?_:window.innerHeight)+"px");let C=function(e){var t,r,n,s;let l;let{placement:c,targetNode:d,overlayNode:w,scrollNode:_,padding:x,shouldFlip:E,boundaryElement:C,offset:S,crossOffset:T,maxHeight:k,arrowSize:L=0,arrowBoundaryOffset:M=0}=e,P=w instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!y(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!y(t);)t=t.parentElement;return t||document.documentElement}(w):document.documentElement,O=P===document.documentElement,$=window.getComputedStyle(P).position,R=O?v(d):b(d,P);if(!O){let{marginTop:e,marginLeft:t}=window.getComputedStyle(d);R.top+=parseInt(e,10)||0,R.left+=parseInt(t,10)||0}let j=v(w),N={top:parseInt((l=window.getComputedStyle(w)).marginTop,10)||0,bottom:parseInt(l.marginBottom,10)||0,left:parseInt(l.marginLeft,10)||0,right:parseInt(l.marginRight,10)||0};j.width+=(null!==(t=N.left)&&void 0!==t?t:0)+(null!==(r=N.right)&&void 0!==r?r:0),j.height+=(null!==(n=N.top)&&void 0!==n?n:0)+(null!==(s=N.bottom)&&void 0!==s?s:0);let A={top:_.scrollTop,left:_.scrollLeft,width:_.scrollWidth,height:_.scrollHeight},I=f(C),D=f(P),z="BODY"===C.tagName?v(P):b(P,C);return"HTML"===P.tagName&&"BODY"===C.tagName&&(D.scroll.top=0,D.scroll.left=0),function(e,t,r,n,s,l,c,d,f,v,b,y,w,_,x,E){var C,S,T,k;let L=h(e),{size:M,crossAxis:P,crossSize:O,placement:$,crossPlacement:R}=L,j=g(t,d,r,L,b,y,v,w,x,E),N=b,A=m(d,v,t,s,l+b,L);if(c&&n[M]>A){let e=h(`${a[$]} ${R}`),n=g(t,d,r,e,b,y,v,w,x,E);m(d,v,t,s,l+b,e)>A&&(L=e,j=n,N=b)}let I="bottom";"top"===L.axis?"top"===L.placement?I="top":"bottom"===L.placement&&(I="bottom"):"top"===L.crossAxis&&("top"===L.crossPlacement?I="bottom":"bottom"===L.crossPlacement&&(I="top"));let D=p(P,j[P],r[O],d,f,l,v);j[P]+=D;let z=function(e,t,r,n,o,i,a,s){var l,c,d,f,p,h,g;let m=n?r.height:t[u.height],v=null!=e.top?r.top+e.top:r.top+(m-(null!==(l=e.bottom)&&void 0!==l?l:0)-a),b="top"!==s?Math.max(0,t.height+t.top+(null!==(c=t.scroll.top)&&void 0!==c?c:0)-v-((null!==(d=o.top)&&void 0!==d?d:0)+(null!==(f=o.bottom)&&void 0!==f?f:0)+i)):Math.max(0,v+a-(t.top+(null!==(p=t.scroll.top)&&void 0!==p?p:0))-((null!==(h=o.top)&&void 0!==h?h:0)+(null!==(g=o.bottom)&&void 0!==g?g:0)+i));return Math.min(t.height-2*i,b)}(j,d,v,w,s,l,r.height,I);_&&_E.style[e]=C.position[e]+"px"),E.style.maxHeight=null!=C.maxHeight?C.maxHeight+"px":"",x&&document.activeElement&&d.current){let e=document.activeElement.getBoundingClientRect(),t=d.current.getBoundingClientRect(),r=e[x.type]-t[x.type];d.current.scrollTop+=r-x.offset}D(C)}},z);(0,x.b)(F,z),(0,x.b)(()=>(window.addEventListener("resize",F,!1),()=>{window.removeEventListener("resize",F,!1)}),[F]),E({ref:c,onResize:F}),E({ref:l,onResize:F});let W=(0,_.useRef)(!1);(0,x.b)(()=>{let e;let t=()=>{W.current=!0,clearTimeout(e),e=setTimeout(()=>{W.current=!1},500),F()},r=()=>{W.current&&t()};return null==S||S.addEventListener("resize",t),null==S||S.addEventListener("scroll",r),()=>{null==S||S.removeEventListener("resize",t),null==S||S.removeEventListener("scroll",r)}},[F]);let B=(0,_.useCallback)(()=>{W.current||null==j||j()},[j,W]);return(0,w.O)({triggerRef:l,isOpen:R,onClose:j&&B}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...null==I?void 0:I.position,maxHeight:null!==(t=null==I?void 0:I.maxHeight)&&void 0!==t?t:"100vh"}},placement:null!==(r=null==I?void 0:I.placement)&&void 0!==r?r:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:null==I?void 0:I.arrowOffsetLeft,top:null==I?void 0:I.arrowOffsetTop}},updatePosition:F}}},6717:function(e,t,r){"use strict";r.d(t,{Av:function(){return p},gP:function(){return u}});var n=r(9589);let o={prefix:String(Math.round(1e10*Math.random())),current:0},i=n.createContext(o),a=n.createContext(!1),s=!!("undefined"!=typeof window&&window.document&&window.document.createElement),l=new WeakMap,u="function"==typeof n.useId?function(e){let t=n.useId(),[r]=(0,n.useState)(p()),i=r?"react-aria":`react-aria${o.prefix}`;return e||`${i}-${t}`}:function(e){let t=(0,n.useContext)(i);t!==o||s||console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let r=function(e=!1){let t=(0,n.useContext)(i),r=(0,n.useRef)(null);if(null===r.current&&!e){var o,a;let e=null===(a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===a?void 0:null===(o=a.ReactCurrentOwner)||void 0===o?void 0:o.current;if(e){let r=l.get(e);null==r?l.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==r.state&&(t.current=r.id,l.delete(e))}r.current=++t.current}return r.current}(!!e),a=`react-aria${t.prefix}`;return e||`${a}-${r}`};function c(){return!1}function d(){return!0}function f(e){return()=>{}}function p(){return"function"==typeof n.useSyncExternalStore?n.useSyncExternalStore(f,c,d):(0,n.useContext)(a)}},6367:function(e,t,r){"use strict";function n(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}r.d(t,{t:function(){return n}})},4229:function(e,t,r){"use strict";r.d(t,{k:function(){return o},r:function(){return n}});let n=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},o=e=>e&&"window"in e&&e.window===e?e:n(e).defaultView||window},341:function(e,t,r){"use strict";r.d(t,{z:function(){return s}});let n=new Set(["id"]),o=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),i=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),a=/^(data-.*)$/;function s(e,t={}){let{labelable:r,isLink:s,propNames:l}=t,u={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n.has(t)||r&&o.has(t)||s&&i.has(t)||(null==l?void 0:l.has(t))||a.test(t))&&(u[t]=e[t]);return u}},1723:function(e,t,r){"use strict";function n(e){if(function(){if(null==o){o=!1;try{document.createElement("div").focus({get preventScroll(){return o=!0,!0}})}catch{}}return o}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight=65&&90>=e.charCodeAt(2)?t[e]=(0,n.t)(r,s):("className"===e||"UNSAFE_className"===e)&&"string"==typeof r&&"string"==typeof s?t[e]=i(r,s):"id"===e&&r&&s?t.id=(0,o.ur)(r,s):t[e]=void 0!==s?s:r}}return t}},501:function(e,t,r){"use strict";r.d(t,{eY:function(){return d},nG:function(){return u},pG:function(){return s},tv:function(){return l}});var n=r(1723),o=r(7894),i=r(9589);let a=(0,i.createContext)({isNative:!0,open:function(e,t){c(e,e=>u(e,t))},useHref:e=>e});function s(e){let{children:t,navigate:r,useHref:n}=e,o=(0,i.useMemo)(()=>({isNative:!1,open:(e,t,n,o)=>{c(e,e=>{let i;(i=e.getAttribute("target"))&&"_self"!==i||e.origin!==location.origin||e.hasAttribute("download")||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey?u(e,t):r(n,o)})},useHref:n||(e=>e)}),[r,n]);return i.createElement(a.Provider,{value:o},t)}function l(){return(0,i.useContext)(a)}function u(e,t,r=!0){var i,a;let{metaKey:s,ctrlKey:l,altKey:c,shiftKey:d}=t;(0,o.vU)()&&(null===(a=window.event)||void 0===a?void 0:null===(i=a.type)||void 0===i?void 0:i.startsWith("key"))&&"_blank"===e.target&&((0,o.V5)()?s=!0:l=!0);let f=(0,o.Pf)()&&(0,o.V5)()&&!(0,o.zc)()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:l,altKey:c,shiftKey:d}):new MouseEvent("click",{metaKey:s,ctrlKey:l,altKey:c,shiftKey:d,bubbles:!0,cancelable:!0});u.isOpening=r,(0,n.A)(e),e.dispatchEvent(f),u.isOpening=!1}function c(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function d(e){var t;let r=l().useHref(null!==(t=null==e?void 0:e.href)&&void 0!==t?t:"");return{href:(null==e?void 0:e.href)?r:void 0,target:null==e?void 0:e.target,rel:null==e?void 0:e.rel,download:null==e?void 0:e.download,ping:null==e?void 0:e.ping,referrerPolicy:null==e?void 0:e.referrerPolicy}}u.isOpening=!1},7894:function(e,t,r){"use strict";function n(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function o(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function i(e){let t=null;return()=>(null==t&&(t=e()),t)}r.d(t,{Dt:function(){return p},Pf:function(){return d},V5:function(){return a},ad:function(){return c},gn:function(){return u},vU:function(){return h},zc:function(){return l}});let a=i(function(){return o(/^Mac/i)}),s=i(function(){return o(/^iPhone/i)}),l=i(function(){return o(/^iPad/i)||a()&&navigator.maxTouchPoints>1}),u=i(function(){return s()||l()}),c=i(function(){return a()||u()}),d=i(function(){return n(/AppleWebKit/i)&&!f()}),f=i(function(){return n(/Chrome/i)}),p=i(function(){return n(/Android/i)}),h=i(function(){return n(/Firefox/i)})},2097:function(e,t,r){"use strict";r.d(t,{Q:function(){return a}});let n=new Map,o=new Set;function i(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=r=>{if(!e(r)||!r.target)return;let i=n.get(r.target);if(i&&(i.delete(r.propertyName),0===i.size&&(r.target.removeEventListener("transitioncancel",t),n.delete(r.target)),0===n.size)){for(let e of o)e();o.clear()}};document.body.addEventListener("transitionrun",r=>{if(!e(r)||!r.target)return;let o=n.get(r.target);o||(o=new Set,n.set(r.target,o),r.target.addEventListener("transitioncancel",t,{once:!0})),o.add(r.propertyName)}),document.body.addEventListener("transitionend",t)}function a(e){requestAnimationFrame(()=>{0===n.size?e():o.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?i():document.addEventListener("DOMContentLoaded",i))},2013:function(e,t,r){"use strict";r.d(t,{i:function(){return i}});var n=r(1841),o=r(9589);function i(e){let t=(0,o.useRef)(null);return(0,n.b)(()=>{t.current=e},[e]),(0,o.useCallback)((...e)=>{let r=t.current;return null==r?void 0:r(...e)},[])}},7278:function(e,t,r){"use strict";r.d(t,{x:function(){return o}});var n=r(9589);function o(){let e=(0,n.useRef)(new Map),t=(0,n.useCallback)((t,r,n,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:i,options:o}),t.addEventListener(r,n,o)},[]),r=(0,n.useCallback)((t,r,n,o)=>{var i;let a=(null===(i=e.current.get(n))||void 0===i?void 0:i.fn)||n;t.removeEventListener(r,a,o),e.current.delete(n)},[]),o=(0,n.useCallback)(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return(0,n.useEffect)(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}},6176:function(e,t,r){"use strict";r.d(t,{ur:function(){return c},Me:function(){return u},mp:function(){return d}});var n=r(1841),o=r(2013),i=r(9589),a=r(6717);let s=!!("undefined"!=typeof window&&window.document&&window.document.createElement),l=new Map;function u(e){let[t,r]=(0,i.useState)(e),o=(0,i.useRef)(null),u=(0,a.gP)(t),c=(0,i.useCallback)(e=>{o.current=e},[]);return s&&(l.has(u)&&!l.get(u).includes(c)?l.set(u,[...l.get(u),c]):l.set(u,[c])),(0,n.b)(()=>()=>{l.delete(u)},[u]),(0,i.useEffect)(()=>{let e=o.current;e&&(o.current=null,r(e))}),u}function c(e,t){if(e===t)return e;let r=l.get(e);if(r)return r.forEach(e=>e(t)),t;let n=l.get(t);return n?(n.forEach(t=>t(e)),e):t}function d(e=[]){let t=u(),[r,a]=function(e){let[t,r]=(0,i.useState)(e),a=(0,i.useRef)(null),s=(0,o.i)(()=>{if(!a.current)return;let e=a.current.next();if(e.done){a.current=null;return}t===e.value?s():r(e.value)});(0,n.b)(()=>{a.current&&s()});let l=(0,o.i)(e=>{a.current=e(t),s()});return[t,l]}(t),s=(0,i.useCallback)(()=>{a(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,a]);return(0,n.b)(s,[t,s,...e]),r}},1841:function(e,t,r){"use strict";r.d(t,{b:function(){return o}});var n=r(9589);let o="undefined"!=typeof document?n.useLayoutEffect:()=>{}},5362:function(e,t,r){"use strict";r.d(t,{l:function(){return o}});var n=r(1841);function o(e,t){(0,n.b)(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}},8215:function(e,t,r){"use strict";r.d(t,{d:function(){return i}});var n=r(9589),o=r(125);function i(e){let[t,r]=(0,o.z)(e.isOpen,e.defaultOpen||!1,e.onOpenChange),i=(0,n.useCallback)(()=>{r(!0)},[r]),a=(0,n.useCallback)(()=>{r(!1)},[r]),s=(0,n.useCallback)(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:i,close:a,toggle:s}}},125:function(e,t,r){"use strict";r.d(t,{z:function(){return o}});var n=r(9589);function o(e,t,r){let[o,i]=(0,n.useState)(e||t),a=(0,n.useRef)(void 0!==e),s=void 0!==e;(0,n.useEffect)(()=>{let e=a.current;e!==s&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let l=s?e:o,u=(0,n.useCallback)((e,...t)=>{let n=(e,...t)=>{r&&!Object.is(l,e)&&r(e,...t),s||(l=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((r,...o)=>{let i=e(s?l:r,...o);return(n(i,...t),s)?r:i})):(s||i(e),n(e,...t))},[s,l,r]);return[l,u]}},3276:function(e,t,r){"use strict";r.d(t,{M:function(){return n}});let n="data-"+(0,r(26).D)("framerAppearId")},5150:function(e,t,r){"use strict";function n(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}r.d(t,{H:function(){return n}})},3666:function(e,t,r){"use strict";r.d(t,{C:function(){return n}});let n=e=>Array.isArray(e)},4111:function(e,t,r){"use strict";r.d(t,{M:function(){return v}});var n=r(217),o=r(9589),i=r(6526),a=r(4141),s=r(5302);class l extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u({children:e,isPresent:t}){let r=(0,o.useId)(),i=(0,o.useRef)(null),a=(0,o.useRef)({width:0,height:0,top:0,left:0}),{nonce:u}=(0,o.useContext)(s._);return(0,o.useInsertionEffect)(()=>{let{width:e,height:n,top:o,left:s}=a.current;if(t||!i.current||!e||!n)return;i.current.dataset.motionPopId=r;let l=document.createElement("style");return u&&(l.nonce=u),document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` - [data-motion-pop-id="${r}"] { - position: absolute !important; - width: ${e}px !important; - height: ${n}px !important; - top: ${o}px !important; - left: ${s}px !important; - } - `),()=>{document.head.removeChild(l)}},[t]),(0,n.jsx)(l,{isPresent:t,childRef:i,sizeRef:a,children:o.cloneElement(e,{ref:i})})}let c=({children:e,initial:t,isPresent:r,onExitComplete:s,custom:l,presenceAffectsLayout:c,mode:f})=>{let p=(0,a.h)(d),h=(0,o.useId)(),g=(0,o.useCallback)(e=>{for(let t of(p.set(e,!0),p.values()))if(!t)return;s&&s()},[p,s]),m=(0,o.useMemo)(()=>({id:h,initial:t,isPresent:r,custom:l,onExitComplete:g,register:e=>(p.set(e,!1),()=>p.delete(e))}),c?[Math.random(),g]:[r,g]);return(0,o.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[r]),o.useEffect(()=>{r||p.size||!s||s()},[r]),"popLayout"===f&&(e=(0,n.jsx)(u,{isPresent:r,children:e})),(0,n.jsx)(i.O.Provider,{value:m,children:e})};function d(){return new Map}var f=r(6502),p=r(1257);let h=e=>e.key||"";function g(e){let t=[];return o.Children.forEach(e,e=>{(0,o.isValidElement)(e)&&t.push(e)}),t}var m=r(8154);let v=({children:e,exitBeforeEnter:t,custom:r,initial:i=!0,onExitComplete:s,presenceAffectsLayout:l=!0,mode:u="sync"})=>{(0,p.k)(!t,"Replace exitBeforeEnter with mode='wait'");let d=(0,o.useMemo)(()=>g(e),[e]),v=d.map(h),b=(0,o.useRef)(!0),y=(0,o.useRef)(d),w=(0,a.h)(()=>new Map),[_,x]=(0,o.useState)(d),[E,C]=(0,o.useState)(d);(0,m.L)(()=>{b.current=!1,y.current=d;for(let e=0;e{let t=h(e),o=d===E||v.includes(t);return(0,n.jsx)(c,{isPresent:o,initial:(!b.current||!!i)&&void 0,custom:o?void 0:r,presenceAffectsLayout:l,mode:u,onExitComplete:o?void 0:()=>{if(!w.has(t))return;w.set(t,!0);let e=!0;w.forEach(t=>{t||(e=!1)}),e&&(null==T||T(),C(y.current),s&&s())},children:e},t)})})}},3264:function(e,t,r){"use strict";r.d(t,{X:function(){return s}});var n=r(217),o=r(9589),i=r(2015),a=r(1615);function s({children:e,features:t,strict:r=!1}){let[,s]=(0,o.useState)(!l(t)),u=(0,o.useRef)(void 0);if(!l(t)){let{renderer:e,...r}=t;u.current=e,(0,a.K)(r)}return(0,o.useEffect)(()=>{l(t)&&t().then(({renderer:e,...t})=>{(0,a.K)(t),u.current=e,s(!0)})},[]),(0,n.jsx)(i.u.Provider,{value:{renderer:u.current,strict:r},children:e})}function l(e){return"function"==typeof e}},6502:function(e,t,r){"use strict";r.d(t,{p:function(){return n}});let n=(0,r(9589).createContext)({})},2015:function(e,t,r){"use strict";r.d(t,{u:function(){return n}});let n=(0,r(9589).createContext)({strict:!1})},5302:function(e,t,r){"use strict";r.d(t,{_:function(){return n}});let n=(0,r(9589).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},6526:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});let n=(0,r(9589).createContext)(null)},6458:function(e,t,r){"use strict";r.d(t,{g:function(){return n}});let n=(0,r(9589).createContext)({})},5678:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(3376);let o=["read","resolveKeyframes","update","preRender","render","postRender"];function i(e,t){let r=!1,i=!0,a={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,l=o.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,o=!1,i=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}let l={schedule:(e,o=!1,a=!1)=>{let s=a&&n?t:r;return o&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),i.delete(e)},process:e=>{if(a=e,n){o=!0;return}n=!0,[t,r]=[r,t],t.forEach(s),t.clear(),n=!1,o&&(o=!1,l.process(e))}};return l}(s),e),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:p,postRender:h}=l,g=()=>{let o=n.c.useManualTiming?a.timestamp:performance.now();r=!1,a.delta=i?1e3/60:Math.max(Math.min(o-a.timestamp,40),1),a.timestamp=o,a.isProcessing=!0,u.process(a),c.process(a),d.process(a),f.process(a),p.process(a),h.process(a),a.isProcessing=!1,r&&t&&(i=!1,e(g))},m=()=>{r=!0,i=!0,a.isProcessing||e(g)};return{schedule:o.reduce((e,t)=>{let n=l[t];return e[t]=(e,t=!1,o=!1)=>(r||m(),n.schedule(e,t,o)),e},{}),cancel:e=>{for(let t=0;tn[e].some(e=>!!t[e])}},1615:function(e,t,r){"use strict";r.d(t,{K:function(){return o}});var n=r(3971);function o(e){for(let t in e)n.featureDefinitions[t]={...n.featureDefinitions[t],...e[t]}}},2393:function(e,t,r){"use strict";r.d(t,{j:function(){return i}});var n=r(8866),o=r(1389);function i(e,{layout:t,layoutId:r}){return o.G.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!n.P[e]||"opacity"===e)}},8866:function(e,t,r){"use strict";r.d(t,{B:function(){return o},P:function(){return n}});let n={};function o(e){Object.assign(n,e)}},1530:function(e,t,r){"use strict";r.d(t,{x:function(){return W}});var n=r(217),o=r(9589),i=r(5302);let a=(0,o.createContext)({});var s=r(6526),l=r(8154),u=r(2015),c=r(3276),d=r(817),f=r(790),p=r(6458),h=r(6315),g=r(1574);function m(e){return Array.isArray(e)?e.join(" "):e}var v=r(1615),b=r(5866),y=r(6502);let w=Symbol.for("motionComponentSymbol");var _=r(3971),x=r(8316),E=r(6745),C=r(5603),S=r(5150),T=r(9174),k=r(4141),L=r(4718);let M=e=>(t,r)=>{let n=(0,o.useContext)(a),i=(0,o.useContext)(s.O),l=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){let a={latestValues:function(e,t,r,n){let o={},i=n(e,{});for(let e in i)o[e]=(0,L.b)(i[e]);let{initial:a,animate:s}=e,l=(0,g.G)(e),u=(0,g.M)(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial,d=(c=c||!1===a)?s:a;if(d&&"boolean"!=typeof d&&!(0,S.H)(d)){let t=Array.isArray(d)?d:[d];for(let r=0;rr(n,e,a)),a})(e,t,n,i);return r?l():(0,k.h)(l)},P=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),O=()=>({...P(),attrs:{}});var $=r(889),R=r(1176),j=r(1282);let N={useVisualState:M({scrapeMotionValuesFromProps:C.U,createRenderState:O,onMount:(e,t,{renderState:r,latestValues:n})=>{j.Wi.read(()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),j.Wi.render(()=>{(0,$.i)(r,n,(0,R.a)(t.tagName),e.transformTemplate),(0,E.K)(t,r)})}})},A={useVisualState:M({scrapeMotionValuesFromProps:r(1310).U,createRenderState:P})};var I=r(2393),D=r(9596),z=r(7436);function H(e,t,r){for(let n in t)(0,D.i)(t[n])||(0,I.j)(n,r)||(e[n]=t[n])}var F=r(9466);function W(e,t){return function(r,{forwardMotionProps:E}={forwardMotionProps:!1}){return function({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:x,Component:E}){e&&(0,v.K)(e);let C=(0,o.forwardRef)(function(e,v){var w;let C;let S={...(0,o.useContext)(i._),...e,layoutId:function({layoutId:e}){let t=(0,o.useContext)(y.p).id;return t&&void 0!==e?t+"-"+e:e}(e)},{isStatic:T}=S,k=function(e){let{initial:t,animate:r}=function(e,t){if((0,g.G)(e)){let{initial:t,animate:r}=e;return{initial:!1===t||(0,h.$)(t)?t:void 0,animate:(0,h.$)(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(a));return(0,o.useMemo)(()=>({initial:t,animate:r}),[m(t),m(r)])}(e),L=x(e,T);if(!T&&b.j){(0,o.useContext)(u.u).strict;let e=function(e){let{drag:t,layout:r}=_.featureDefinitions;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(S);C=e.MeasureLayout,k.visualElement=function(e,t,r,n,h){var g,m;let{visualElement:v}=(0,o.useContext)(a),b=(0,o.useContext)(u.u),y=(0,o.useContext)(s.O),w=(0,o.useContext)(i._).reducedMotion,_=(0,o.useRef)(null);n=n||b.renderer,!_.current&&n&&(_.current=n(e,{visualState:t,parent:v,props:r,presenceContext:y,blockInitialAnimation:!!y&&!1===y.initial,reducedMotionConfig:w}));let x=_.current,E=(0,o.useContext)(p.g);x&&!x.projection&&h&&("html"===x.type||"svg"===x.type)&&function(e,t,r,n){let{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!a||s&&(0,f.I)(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(_.current,r,h,E);let C=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{x&&C.current&&x.update(r,y)});let S=r[c.M],T=(0,o.useRef)(!!S&&!(null===(g=window.MotionHandoffIsComplete)||void 0===g?void 0:g.call(window,S))&&(null===(m=window.MotionHasOptimisedAnimation)||void 0===m?void 0:m.call(window,S)));return(0,l.L)(()=>{x&&(C.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),d.g.render(x.render),T.current&&x.animationState&&x.animationState.animateChanges())}),(0,o.useEffect)(()=>{x&&(!T.current&&x.animationState&&x.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,S)}),T.current=!1))}),x}(E,L,S,t,e.ProjectionNode)}return(0,n.jsxs)(a.Provider,{value:k,children:[C&&k.visualElement?(0,n.jsx)(C,{visualElement:k.visualElement,...S}):null,r(E,e,(w=k.visualElement,(0,o.useCallback)(e=>{e&&L.mount&&L.mount(e),w&&(e?w.mount(e):w.unmount()),v&&("function"==typeof v?v(e):(0,f.I)(v)&&(v.current=e))},[w])),L,T,k.visualElement)]})});return C[w]=E,C}({...(0,x.q)(r)?N:A,preloadedFeatures:e,useRender:function(e=!1){return(t,r,n,{latestValues:i},a)=>{let s=((0,x.q)(t)?function(e,t,r,n){let i=(0,o.useMemo)(()=>{let r=O();return(0,$.i)(r,t,(0,R.a)(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};H(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let r={},n=function(e,t){let r=e.style||{},n={};return H(n,r,e),Object.assign(n,function({transformTemplate:e},t){return(0,o.useMemo)(()=>{let r=P();return(0,z.r)(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r})(r,i,a,t),l=(0,F.L)(r,"string"==typeof t,e),u=t!==o.Fragment?{...l,...s,ref:n}:{},{children:c}=r,d=(0,o.useMemo)(()=>(0,D.i)(c)?c.get():c,[c]);return(0,o.createElement)(t,{...u,children:d})}}(E),createVisualElement:t,Component:r})}}},9170:function(e,t,r){"use strict";function n(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(r,n)=>"create"===n?e:(t.has(n)||t.set(n,e(n)),t.get(n))})}r.d(t,{c:function(){return n}})},2414:function(e,t,r){"use strict";r.d(t,{m:function(){return i}});var n=r(9170);let o=(0,r(1530).x)(),i=(0,n.c)(o)},26:function(e,t,r){"use strict";r.d(t,{D:function(){return n}});let n=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},9466:function(e,t,r){"use strict";r.d(t,{L:function(){return s},K:function(){return a}});let n=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function o(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||n.has(e)}let i=e=>!o(e);function a(e){e&&(i=t=>t.startsWith("on")?!o(t):e(t))}try{a(require("@emotion/is-prop-valid").default)}catch(e){}function s(e,t,r){let n={};for(let a in e)("values"!==a||"object"!=typeof e.values)&&(i(a)||!0===r&&o(a)||!t&&!o(a)||e.draggable&&a.startsWith("onDrag"))&&(n[a]=e[a]);return n}},6849:function(e,t,r){"use strict";r.d(t,{f:function(){return o},t:function(){return a}});let n=e=>t=>"string"==typeof t&&t.startsWith(e),o=n("--"),i=n("var(--"),a=e=>!!i(e)&&s.test(e.split("/*")[0].trim()),s=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},8316:function(e,t,r){"use strict";r.d(t,{q:function(){return o}});let n=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function o(e){if("string"!=typeof e||e.includes("-"));else if(n.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}},8188:function(e,t,r){"use strict";r.d(t,{j:function(){return l}});var n=r(8813),o=r(6167);let i={borderWidth:o.px,borderTopWidth:o.px,borderRightWidth:o.px,borderBottomWidth:o.px,borderLeftWidth:o.px,borderRadius:o.px,radius:o.px,borderTopLeftRadius:o.px,borderTopRightRadius:o.px,borderBottomRightRadius:o.px,borderBottomLeftRadius:o.px,width:o.px,maxWidth:o.px,height:o.px,maxHeight:o.px,top:o.px,right:o.px,bottom:o.px,left:o.px,padding:o.px,paddingTop:o.px,paddingRight:o.px,paddingBottom:o.px,paddingLeft:o.px,margin:o.px,marginTop:o.px,marginRight:o.px,marginBottom:o.px,marginLeft:o.px,backgroundPositionX:o.px,backgroundPositionY:o.px},a={rotate:o.RW,rotateX:o.RW,rotateY:o.RW,rotateZ:o.RW,scale:n.bA,scaleX:n.bA,scaleY:n.bA,scaleZ:n.bA,skew:o.RW,skewX:o.RW,skewY:o.RW,distance:o.px,translateX:o.px,translateY:o.px,translateZ:o.px,x:o.px,y:o.px,z:o.px,perspective:o.px,transformPerspective:o.px,opacity:n.Fq,originX:o.$C,originY:o.$C,originZ:o.px},s={...n.Rx,transform:Math.round},l={...i,...a,zIndex:s,size:o.px,fillOpacity:n.Fq,strokeOpacity:n.Fq,numOctaves:s}},7436:function(e,t,r){"use strict";r.d(t,{r:function(){return u}});var n=r(1389);let o=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var i=r(8188);let a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},s=n._.length;var l=r(6849);function u(e,t,r){let{style:u,vars:c,transformOrigin:d}=e,f=!1,p=!1;for(let e in t){let r=t[e];if(n.G.has(e)){f=!0;continue}if((0,l.f)(e)){c[e]=r;continue}{let t=o(r,i.j[e]);e.startsWith("origin")?(p=!0,d[e]=t):u[e]=t}}if(!t.transform&&(f||r?u.transform=function(e,t,r){let l="",u=!0;for(let c=0;c"string"==typeof e&&"svg"===e.toLowerCase()},6745:function(e,t,r){"use strict";r.d(t,{K:function(){return a}});var n=r(26),o=r(3676),i=r(5030);function a(e,t,r,a){for(let r in(0,o.N)(e,t,void 0,a),t.attrs)e.setAttribute(i.s.has(r)?r:(0,n.D)(r),t.attrs[r])}},5603:function(e,t,r){"use strict";r.d(t,{U:function(){return a}});var n=r(9596),o=r(1310),i=r(1389);function a(e,t,r){let a=(0,o.U)(e,t,r);for(let r in e)((0,n.i)(e[r])||(0,n.i)(t[r]))&&(a[-1!==i._.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return a}},1574:function(e,t,r){"use strict";r.d(t,{G:function(){return a},M:function(){return s}});var n=r(5150),o=r(6315),i=r(899);function a(e){return(0,n.H)(e.animate)||i.V.some(t=>(0,o.$)(e[t]))}function s(e){return!!(a(e)||e.variants)}},6315:function(e,t,r){"use strict";function n(e){return"string"==typeof e||Array.isArray(e)}r.d(t,{$:function(){return n}})},9174:function(e,t,r){"use strict";function n(e){let t=[{},{}];return null==e||e.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function o(e,t,r,o){if("function"==typeof t){let[i,a]=n(o);t=t(void 0!==r?r:e.custom,i,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,a]=n(o);t=t(void 0!==r?r:e.custom,i,a)}return t}r.d(t,{o:function(){return o}})},899:function(e,t,r){"use strict";r.d(t,{V:function(){return o},e:function(){return n}});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],o=["initial",...n]},3376:function(e,t,r){"use strict";r.d(t,{c:function(){return n}});let n={skipAnimations:!1,useManualTiming:!1}},1118:function(e,t,r){"use strict";r.d(t,{u:function(){return n}});let n=(e,t,r)=>r>t?t:r!!(e&&"object"==typeof e&&e.mix&&e.toValue),i=e=>(0,n.C)(e)?e[e.length-1]||0:e},4141:function(e,t,r){"use strict";r.d(t,{h:function(){return o}});var n=r(9589);function o(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},8154:function(e,t,r){"use strict";r.d(t,{L:function(){return o}});var n=r(9589);let o=r(5866).j?n.useLayoutEffect:n.useEffect},8813:function(e,t,r){"use strict";r.d(t,{Fq:function(){return i},Rx:function(){return o},bA:function(){return a}});var n=r(1118);let o={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},i={...o,transform:e=>(0,n.u)(0,1,e)},a={...o,default:1}},6167:function(e,t,r){"use strict";r.d(t,{$C:function(){return u},RW:function(){return o},aQ:function(){return i},px:function(){return a},vh:function(){return s},vw:function(){return l}});let n=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),o=n("deg"),i=n("%"),a=n("px"),s=n("vh"),l=n("vw"),u={...i,parse:e=>i.parse(e)/100,transform:e=>i.transform(100*e)}},9596:function(e,t,r){"use strict";r.d(t,{i:function(){return n}});let n=e=>!!(e&&e.getVelocity)},4718:function(e,t,r){"use strict";r.d(t,{b:function(){return i}});var n=r(9281),o=r(9596);function i(e){let t=(0,o.i)(e)?e.get():e;return(0,n.p)(t)?t.toValue():t}},1257:function(e,t,r){"use strict";r.d(t,{K:function(){return o},k:function(){return i}});var n=r(8263);let o=n.Z,i=n.Z},8263:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=e=>e},5386:function(e,t,r){"use strict";r.d(t,{F:function(){return c},f:function(){return d}});var n=r(9589),o=(e,t,r,n,o,i,a,s)=>{let l=document.documentElement,u=["light","dark"];function c(t){(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&i?o.map(e=>i[e]||e):o;r?(l.classList.remove(...n),l.classList.add(t)):l.setAttribute(e,t)}),s&&u.includes(t)&&(l.style.colorScheme=t)}if(n)c(n);else try{let e=localStorage.getItem(t)||r,n=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(n)}catch(e){}},i=["light","dark"],a="(prefers-color-scheme: dark)",s="undefined"==typeof window,l=n.createContext(void 0),u={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=n.useContext(l))?e:u},d=e=>n.useContext(l)?n.createElement(n.Fragment,null,e.children):n.createElement(p,{...e}),f=["light","dark"],p=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:o=!0,storageKey:s="theme",themes:u=f,defaultTheme:c=r?"system":"light",attribute:d="data-theme",value:p,children:b,nonce:y,scriptProps:w})=>{let[_,x]=n.useState(()=>g(s,c)),[E,C]=n.useState(()=>g(s)),S=p?Object.values(p):u,T=n.useCallback(e=>{let n=e;if(!n)return;"system"===e&&r&&(n=v());let a=p?p[n]:n,s=t?m(y):null,l=document.documentElement,u=e=>{"class"===e?(l.classList.remove(...S),a&&l.classList.add(a)):e.startsWith("data-")&&(a?l.setAttribute(e,a):l.removeAttribute(e))};if(Array.isArray(d)?d.forEach(u):u(d),o){let e=i.includes(c)?c:null,t=i.includes(n)?n:e;l.style.colorScheme=t}null==s||s()},[y]),k=n.useCallback(e=>{let t="function"==typeof e?e(_):e;x(t);try{localStorage.setItem(s,t)}catch(e){}},[_]),L=n.useCallback(t=>{C(v(t)),"system"===_&&r&&!e&&T("system")},[_,e]);n.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(L),L(e),()=>e.removeListener(L)},[L]),n.useEffect(()=>{let e=e=>{e.key===s&&(e.newValue?x(e.newValue):k(c))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[k]),n.useEffect(()=>{T(null!=e?e:_)},[e,_]);let M=n.useMemo(()=>({theme:_,setTheme:k,forcedTheme:e,resolvedTheme:"system"===_?E:_,themes:r?[...u,"system"]:u,systemTheme:r?E:void 0}),[_,k,e,E,r,u]);return n.createElement(l.Provider,{value:M},n.createElement(h,{forcedTheme:e,storageKey:s,attribute:d,enableSystem:r,enableColorScheme:o,defaultTheme:c,value:p,themes:u,nonce:y,scriptProps:w}),b)},h=n.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:i,enableColorScheme:a,defaultTheme:s,value:l,themes:u,nonce:c,scriptProps:d})=>{let f=JSON.stringify([r,t,s,e,u,l,i,a]).slice(1,-1);return n.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?c:"",dangerouslySetInnerHTML:{__html:`(${o.toString()})(${f})`}})}),g=(e,t)=>{let r;if(!s){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},m=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},v=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},9362:function(e,t,r){"use strict";let n,o,i,a;r.d(t,{eK:function(){return te}});let s=Object.assign,l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),c=Array.isArray,d=e=>"[object Map]"===y(e),f=e=>"[object Set]"===y(e),p=e=>"function"==typeof e,h=e=>"string"==typeof e,g=e=>"symbol"==typeof e,m=e=>null!==e&&"object"==typeof e,v=e=>(m(e)||p(e))&&p(e.then)&&p(e.catch),b=Object.prototype.toString,y=e=>b.call(e),w=e=>y(e).slice(8,-1),_=e=>"[object Object]"===y(e),x=e=>h(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,E=e=>{let t=Object.create(null);return r=>t[r]||(t[r]=e(r))},C=/-(\w)/g;E(e=>e.replace(C,(e,t)=>t?t.toUpperCase():""));let S=/\B([A-Z])/g;E(e=>e.replace(S,"-$1").toLowerCase());let T=E(e=>e.charAt(0).toUpperCase()+e.slice(1));E(e=>e?`on${T(e)}`:"");let k=(e,t)=>!Object.is(e,t),L=new WeakSet;class M{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,n&&n.active&&n.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,L.has(this)&&(L.delete(this),this.trigger()))}notify(){(!(2&this.flags)||32&this.flags)&&(8&this.flags||function(e,t=!1){if(e.flags|=8,t){e.next=a,a=e;return}e.next=i,i=e}(this))}run(){if(!(1&this.flags))return this.fn();this.flags|=2,D(this),$(this);let e=o,t=A;o=this,A=!0;try{return this.fn()}finally{R(this),o=e,A=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)N(e);this.deps=this.depsTail=void 0,D(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?L.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){j(this)&&this.run()}get dirty(){return j(this)}}let P=0;function O(){let e;if(!(--P>0)){if(a){let e=a;for(a=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}for(;i;){let t=i;for(i=void 0;t;){let r=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=r}}if(e)throw e}}function $(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function R(e){let t;let r=e.depsTail,n=r;for(;n;){let e=n.prevDep;-1===n.version?(n===r&&(r=e),N(n),function(e){let{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=e}e.deps=t,e.depsTail=r}function j(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(function(e){if(4&e.flags&&!(16&e.flags)||(e.flags&=-17,e.globalVersion===z))return;e.globalVersion=z;let t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!j(e)){e.flags&=-3;return}let r=o,n=A;o=e,A=!0;try{$(e);let r=e.fn(e._value);(0===t.version||k(r,e._value))&&(e._value=r,t.version++)}catch(e){throw t.version++,e}finally{o=r,A=n,R(e),e.flags&=-3}}(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function N(e,t=!1){let{dep:r,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let e=r.computed.deps;e;e=e.nextDep)N(e,!0)}t||--r.sc||!r.map||r.map.delete(r.key)}let A=!0,I=[];function D(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=o;o=void 0;try{t()}finally{o=e}}}let z=0;class H{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class F{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!o||!A||o===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==o)t=this.activeLink=new H(o,this),o.deps?(t.prevDep=o.depsTail,o.depsTail.nextDep=t,o.depsTail=t):o.deps=o.depsTail=t,function e(t){if(t.dep.sc++,4&t.sub.flags){let r=t.dep.computed;if(r&&!t.dep.subs){r.flags|=20;for(let t=r.deps;t;t=t.nextDep)e(t)}let n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=o.depsTail,t.nextDep=void 0,o.depsTail.nextDep=t,o.depsTail=t,o.deps===t&&(o.deps=e)}return t}trigger(e){this.version++,z++,this.notify(e)}notify(e){P++;try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{O()}}}let W=new WeakMap,B=Symbol(""),K=Symbol(""),V=Symbol("");function U(e,t,r){if(A&&o){let t=W.get(e);t||W.set(e,t=new Map);let n=t.get(r);n||(t.set(r,n=new F),n.map=t,n.key=r),n.track()}}function J(e,t,r,n,o,i){let a=W.get(e);if(!a){z++;return}let s=e=>{e&&e.trigger()};if(P++,"clear"===t)a.forEach(s);else{let o=c(e),i=o&&x(r);if(o&&"length"===r){let e=Number(n);a.forEach((t,r)=>{("length"===r||r===V||!g(r)&&r>=e)&&s(t)})}else switch((void 0!==r||a.has(void 0))&&s(a.get(r)),i&&s(a.get(V)),t){case"add":o?i&&s(a.get("length")):(s(a.get(B)),d(e)&&s(a.get(K)));break;case"delete":!o&&(s(a.get(B)),d(e)&&s(a.get(K)));break;case"set":d(e)&&s(a.get(B))}}O()}function Y(e){let t=eT(e);return t===e?t:(U(t,"iterate",V),eS(e)?t:t.map(ek))}function Z(e){return U(e=eT(e),"iterate",V),e}let G={__proto__:null,[Symbol.iterator](){return X(this,Symbol.iterator,ek)},concat(...e){return Y(this).concat(...e.map(e=>c(e)?Y(e):e))},entries(){return X(this,"entries",e=>(e[1]=ek(e[1]),e))},every(e,t){return Q(this,"every",e,t,void 0,arguments)},filter(e,t){return Q(this,"filter",e,t,e=>e.map(ek),arguments)},find(e,t){return Q(this,"find",e,t,ek,arguments)},findIndex(e,t){return Q(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Q(this,"findLast",e,t,ek,arguments)},findLastIndex(e,t){return Q(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Q(this,"forEach",e,t,void 0,arguments)},includes(...e){return et(this,"includes",e)},indexOf(...e){return et(this,"indexOf",e)},join(e){return Y(this).join(e)},lastIndexOf(...e){return et(this,"lastIndexOf",e)},map(e,t){return Q(this,"map",e,t,void 0,arguments)},pop(){return er(this,"pop")},push(...e){return er(this,"push",e)},reduce(e,...t){return ee(this,"reduce",e,t)},reduceRight(e,...t){return ee(this,"reduceRight",e,t)},shift(){return er(this,"shift")},some(e,t){return Q(this,"some",e,t,void 0,arguments)},splice(...e){return er(this,"splice",e)},toReversed(){return Y(this).toReversed()},toSorted(e){return Y(this).toSorted(e)},toSpliced(...e){return Y(this).toSpliced(...e)},unshift(...e){return er(this,"unshift",e)},values(){return X(this,"values",ek)}};function X(e,t,r){let n=Z(e),o=n[t]();return n===e||eS(e)||(o._next=o.next,o.next=()=>{let e=o._next();return e.value&&(e.value=r(e.value)),e}),o}let q=Array.prototype;function Q(e,t,r,n,o,i){let a=Z(e),s=a!==e&&!eS(e),l=a[t];if(l!==q[t]){let t=l.apply(e,i);return s?ek(t):t}let u=r;a!==e&&(s?u=function(t,n){return r.call(this,ek(t),n,e)}:r.length>2&&(u=function(t,n){return r.call(this,t,n,e)}));let c=l.call(a,u,n);return s&&o?o(c):c}function ee(e,t,r,n){let o=Z(e),i=r;return o!==e&&(eS(e)?r.length>3&&(i=function(t,n,o){return r.call(this,t,n,o,e)}):i=function(t,n,o){return r.call(this,t,ek(n),o,e)}),o[t](i,...n)}function et(e,t,r){var n;let o=eT(e);U(o,"iterate",V);let i=o[t](...r);return(-1===i||!1===i)&&(n=r[0])&&n.__v_raw?(r[0]=eT(r[0]),o[t](...r)):i}function er(e,t,r=[]){I.push(A),A=!1,P++;let n=eT(e)[t].apply(e,r);return O(),!function(){let e=I.pop();A=void 0===e||e}(),n}let en=function(e){let t=Object.create(null);for(let r of e.split(","))t[r]=1;return e=>e in t}("__proto__,__v_isRef,__isVue"),eo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(g));function ei(e){g(e)||(e=String(e));let t=eT(this);return U(t,"has",e),t.hasOwnProperty(e)}class ea{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if("__v_skip"===t)return e.__v_skip;let n=this._isReadonly,o=this._isShallow;if("__v_isReactive"===t)return!n;if("__v_isReadonly"===t)return n;if("__v_isShallow"===t)return o;if("__v_raw"===t)return r===(n?o?ew:ey:o?eb:ev).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;let i=c(e);if(!n){let e;if(i&&(e=G[t]))return e;if("hasOwnProperty"===t)return ei}let a=Reflect.get(e,t,eM(e)?e:r);return(g(t)?eo.has(t):en(t))?a:(n||U(e,"get",t),o)?a:eM(a)?i&&x(t)?a:a.value:m(a)?n?ex(a):e_(a):a}}class es extends ea{constructor(e=!1){super(!1,e)}set(e,t,r,n){let o=e[t];if(!this._isShallow){let t=eC(o);if(eS(r)||eC(r)||(o=eT(o),r=eT(r)),!c(e)&&eM(o)&&!eM(r))return!t&&(o.value=r,!0)}let i=c(e)&&x(t)?Number(t)e,ef=e=>Reflect.getPrototypeOf(e);function ep(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function eh(e,t){let r=function(e,t){let r={get(r){let n=this.__v_raw,o=eT(n),i=eT(r);e||(k(r,i)&&U(o,"get",r),U(o,"get",i));let{has:a}=ef(o),s=t?ed:e?eL:ek;return a.call(o,r)?s(n.get(r)):a.call(o,i)?s(n.get(i)):void(n!==o&&n.get(r))},get size(){let t=this.__v_raw;return e||U(eT(t),"iterate",B),Reflect.get(t,"size",t)},has(t){let r=this.__v_raw,n=eT(r),o=eT(t);return e||(k(t,o)&&U(n,"has",t),U(n,"has",o)),t===o?r.has(t):r.has(t)||r.has(o)},forEach(r,n){let o=this,i=o.__v_raw,a=eT(i),s=t?ed:e?eL:ek;return e||U(a,"iterate",B),i.forEach((e,t)=>r.call(n,s(e),s(t),o))}};return s(r,e?{add:ep("add"),set:ep("set"),delete:ep("delete"),clear:ep("clear")}:{add(e){t||eS(e)||eC(e)||(e=eT(e));let r=eT(this);return ef(r).has.call(r,e)||(r.add(e),J(r,"add",e,e)),this},set(e,r){t||eS(r)||eC(r)||(r=eT(r));let n=eT(this),{has:o,get:i}=ef(n),a=o.call(n,e);a||(e=eT(e),a=o.call(n,e));let s=i.call(n,e);return n.set(e,r),a?k(r,s)&&J(n,"set",e,r,s):J(n,"add",e,r),this},delete(e){let t=eT(this),{has:r,get:n}=ef(t),o=r.call(t,e);o||(e=eT(e),o=r.call(t,e));let i=n?n.call(t,e):void 0,a=t.delete(e);return o&&J(t,"delete",e,void 0,i),a},clear(){let e=eT(this),t=0!==e.size,r=e.clear();return t&&J(e,"clear",void 0,void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=function(...r){let o=this.__v_raw,i=eT(o),a=d(i),s="entries"===n||n===Symbol.iterator&&a,l=o[n](...r),u=t?ed:e?eL:ek;return e||U(i,"iterate","keys"===n&&a?K:B),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}),r}(e,t);return(t,n,o)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(u(r,n)&&n in t?r:t,n,o)}let eg={get:eh(!1,!1)},em={get:eh(!0,!1)},ev=new WeakMap,eb=new WeakMap,ey=new WeakMap,ew=new WeakMap;function e_(e){return eC(e)?e:eE(e,!1,eu,eg,ev)}function ex(e){return eE(e,!0,ec,em,ey)}function eE(e,t,r,n,o){if(!m(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let i=o.get(e);if(i)return i;let a=e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(w(e));if(0===a)return e;let s=new Proxy(e,2===a?n:r);return o.set(e,s),s}function eC(e){return!!(e&&e.__v_isReadonly)}function eS(e){return!!(e&&e.__v_isShallow)}function eT(e){let t=e&&e.__v_raw;return t?eT(t):e}let ek=e=>m(e)?e_(e):e,eL=e=>m(e)?ex(e):e;function eM(e){return!!e&&!0===e.__v_isRef}let eP={SKIP:"__v_skip"};var eO,e$,eR=r(9589),ej=r(3481);r(3822);let eN="undefined"==typeof window;(eO=e$||(e$={})).$$__ignore__$$="$$__ignore__$$",eO.$$__persist__$$="$$__persist__$$",eO.$$__subscribe__$$="$$__subscribe__$$",eO.$$__redux_dev_tool__$$="$$__redux_dev_tool__$$";let eA=new Set,eI=!1,eD=0,ez=()=>{let e=[...eA.values()].slice(0);for(let t of(eA.clear(),e))t.notify();if(eI=!1,eA.size){if(++eD>20)throw Error(`[reactivity-store] have a infinity update for current store, pendingJobs: ${new Set(eA)}`);ez()}},eH=e=>{eA.add(e),eI||(eI=!0,eD=0,Promise.resolve().then(ez))};class eF extends M{get _isControllerEffect(){return!0}constructor(e){super(e)}}let eW=(e,t)=>()=>{if(t._isActive)try{let t=e();if(v(t))throw Error("[reactivity-store] selector should be a pure function, but current is a async function");return t}catch(e){return null}};class eB{constructor(e,t,r,n,o,i){this._getState=e,this._compare=t,this._lifeCycle=r,this._namespace=o,this._onUpdate=i,this._listeners=new Set,this._updateCount=0,this._isActive=!0,this.notify=()=>{var e;if(this._isActive){this._updateCount++;try{null===(e=this._onUpdate)||void 0===e||e.call(this)}catch(e){this._lifeCycle.canUpdateComponent=!1}this._listeners.forEach(e=>e())}},this._scheduler=()=>{let e=this._effect.run();if(!this._isActive)return;let t=this._compare(this._state,e);this._state=e,!t&&this._lifeCycle.canUpdateComponent&&(this._lifeCycle.syncUpdateComponent?this.notify():eH(this))},this.subscribe=e=>(this._listeners.add(e),()=>this._listeners.delete(e)),this.getState=()=>this._updateCount,this.getEffect=()=>this._effect,this.getSelectorState=()=>this._getStateSafe(),this.getLifeCycle=()=>this._lifeCycle,this._getStateSafe=eW(e,this),this._effect=new eF(this._getStateSafe),this._effect.scheduler=this._scheduler,this._namespace!==e$.$$__persist__$$&&this._namespace!==e$.$$__subscribe__$$&&this._namespace!==e$.$$__redux_dev_tool__$$&&(this._list=n,this._list.add(this))}run(){this._state=this._effect.run()}stop(){var e,t;this._effect.stop(),this._listeners.clear(),null===(t=null===(e=this._list)||void 0===e?void 0:e.delete)||void 0===t||t.call(e,this),this._isActive=!1}inactive(){this._isActive=!1}active(){this._isActive=!0}}"function"==typeof SuppressedError&&SuppressedError;let eK=()=>({onBeforeMount:[],onBeforeUpdate:[],onBeforeUnmount:[],onMounted:[],onUpdated:[],onUnmounted:[],hasHookInstall:!1,canUpdateComponent:!0,syncUpdateComponent:!1});function eV(e){if(!m(e)||e[eP.SKIP]||(0,eR.isValidElement)(e))return e;if(eM(e))e.value;else if(c(e))for(let t=0;t{});else if(_(e))for(let t in e)e[t];return e}function eU(e,t){return function(e,t){if(!m(e)||e[eP.SKIP]||(0,eR.isValidElement)(e)||(t=t||new Set).has(e))return e;if(t.add(e),eM(e))eU(e.value,t);else if(c(e))for(let r=0;r{eU(e,t)});else if(_(e))for(let r in e)eU(e[r],t);return e}(e,t)}let eJ=e=>{let t=(0,eR.useRef)(e);return t.current=e,(0,eR.useCallback)((...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(null,...e)},[])},eY=(e,t)=>{let r=(0,eR.useRef)();return r.current="function"==typeof e?e:null,eJ(e=>{if(!r.current)return t?eU(e):eV(e),e;{let n=r.current(e);return t?eU(n):eV(n),n}})},eZ=e=>{let t=(0,eR.useRef)(e);return(0,eR.useEffect)(()=>{t.current=e},[e]),t.current},eG=(e,t,r,n=!0,o=!1,i,a)=>{let s=new Set,l=!0;i=i||e$.$$__ignore__$$;let u=t=>{let l="default"===t?n:"deep"===t||"deep-stable"===t,u="default"===t?o:"deep-stable"===t||"shallow-stable"===t;return function(t,n){let o=(0,eR.useRef)(),c=eY(t,l),d=eJ(()=>{t?o.current=t(Object.assign(Object.assign({},e),a)):o.current=Object.assign(Object.assign({},e),a)}),f=eJ((e,t)=>!!n&&"function"==typeof n&&n(e,t)),p=u?t:eZ(t),h=(0,eR.useMemo)(()=>new eB(()=>c(e),f,r,s,i,d),[]);return(0,ej.useSyncExternalStore)(h.subscribe,h.getState,h.getState),(0,eR.useMemo)(()=>{h.run(),d()},[h,d]),(0,eR.useMemo)(()=>{p!==t&&(h.run(),d())},[h,p,t]),(0,eR.useEffect)(()=>(h.active(),()=>{h.stop()}),[h]),o.current}},c=u("default"),d=u("deep"),f=u("deep-stable"),p=u("shallow"),h=u("shallow-stable"),g=function(e,t){return c(e,t)};return g.getState=()=>eT(t),g.getLifeCycle=()=>r,g.getActions=()=>a,g.getReactiveState=()=>e,g.getReadonlyState=()=>e,g.useDeepSelector=d,g.useDeepStableSelector=f,g.useShallowSelector=p,g.useShallowStableSelector=h,g.subscribe=(t,n,o)=>{let i=new eB(()=>{let r=t(e);return o?eV(r):eU(r),r},Object.is,r,s,e$.$$__subscribe__$$,()=>n());return i.run(),()=>{i.stop()}},g.cleanReactiveHooks=()=>{s.forEach(e=>e.stop()),l=!1},g.getIsActive=()=>l,g},eX=e=>e(),eq=e=>(...t)=>eX(()=>t.length?e.call(null,...t):e.call(null)),eQ="reactivity-store/persist-",e0=(e,t)=>{let r=null;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.call(null,...n),t)}},e1=e=>Object.keys(e).reduce((t,r)=>(t[r]=eq(e[r]),t),{}),e2=e=>e.$$__state__$$?e.$$__state__$$:e,e9=e=>e.$$__state__$$&&e.$$__middleware__$$||{},e5=e=>e.$$__state__$$&&e.$$__actions__$$||{},e8=e=>e.$$__state__$$&&e.$$__namespace__$$||{},e7=e=>e.$$__state__$$&&e.$$__selectorOptions__$$||{};function e4(e,t){return()=>{let r=e(),n=e2(r),o=e9(r),i=e5(r),a=e8(r),s=e7(r);return o[t.name]=!0,{$$__state__$$:n,$$__actions__$$:i,$$__middleware__$$:o,$$__namespace__$$:a,$$__selectorOptions__$$:s}}}let e3=new Set,e6=()=>!1;function te(e,t){return function(e,t,r){var n,o,i,a,s,l,u,c,d,f;let p=e;(null==r?void 0:r.withPersist)&&(i=p,a="string"==typeof r.withPersist?{key:r.withPersist}:r.withPersist,p=e4(()=>{var e,t,r;let n=i(),o=e2(n),s=e9(n),l=e5(n),u=e8(n),c=e7(n),d=!1;if(s.withPersist&&(d=!0),eN||d)return{$$__state__$$:o,$$__middleware__$$:s,$$__actions__$$:l,$$__namespace__$$:u,$$__selectorOptions__$$:c};try{let n=(null===(e=null==a?void 0:a.getStorage)||void 0===e?void 0:e.call(a))||(null==window?void 0:window.localStorage);if(!n)return{$$__state__$$:o,$$__middleware__$$:s,$$__actions__$$:l,$$__namespace__$$:u,$$__selectorOptions__$$:c};let i=n.getItem(eQ+a.key),d=JSON.parse(i),f=o;if((null==d?void 0:d.version)===(a.version||a.key)&&d.data){let e=(null===(t=null==a?void 0:a.parse)||void 0===t?void 0:t.call(a,d.data))||JSON.parse(d.data);f=(null===(r=null==a?void 0:a.merge)||void 0===r?void 0:r.call(a,o,e))||Object.assign(o,e)}f=e_(f);let p=e0(()=>{var e;try{let t={data:(null===(e=null==a?void 0:a.stringify)||void 0===e?void 0:e.call(a,f))||JSON.stringify(f),version:a.version||a.key};n.setItem(eQ+a.key,JSON.stringify(t))}catch(e){}},a.debounceTime||40);return new eB(()=>{let e=f;"function"==typeof a.listener&&(e=a.listener(f)),a.shallow?eV(e):eU(e)},e6,eK(),e3,e$.$$__persist__$$,p).run(),{$$__state__$$:eT(f),$$__middleware__$$:s,$$__actions__$$:l,$$__namespace__$$:u,$$__selectorOptions__$$:c}}catch(e){return{$$__state__$$:o,$$__middleware__$$:s,$$__actions__$$:l,$$__namespace__$$:u,$$__selectorOptions__$$:c}}},{name:"withPersist"})),(null==r?void 0:r.withActions)&&(s=p,l={generateActions:r.withActions},p=e4(()=>{let e=s(),t=e2(e),r=e9(e),n=e5(e),o=e8(e),i=e7(e),a=e_(t),u=l.generateActions,c=null==u?void 0:u(a),d=!0===l.automaticBatchAction?e1(c):c;return{$$__state__$$:eT(a),$$__actions__$$:Object.assign(Object.assign({},n),d),$$__middleware__$$:r,$$__namespace__$$:o,$$__selectorOptions__$$:i}},{name:"withActions"})),(null==r?void 0:r.withNamespace)&&(u=p,c="string"==typeof r.withNamespace?{namespace:r.withNamespace,reduxDevTool:!0}:r.withNamespace,p=e4(()=>{let e=u(),t=e2(e),r=e9(e),n=e5(e),o=e8(e),i=e7(e);return{$$__state__$$:t,$$__actions__$$:n,$$__middleware__$$:r,$$__namespace__$$:Object.assign(Object.assign({},o),c),$$__selectorOptions__$$:i}},{name:"withNamespace"})),(void 0!==(null==r?void 0:r.withDeepSelector)||void 0!==(null==r?void 0:r.withStableSelector))&&(d=p,f={deepSelector:r.withDeepSelector,stableSelector:r.withStableSelector},p=e4(()=>{let e=d(),t=e2(e),r=e9(e);return{$$__state__$$:t,$$__actions__$$:e5(e),$$__middleware__$$:r,$$__namespace__$$:e8(e),$$__selectorOptions__$$:Object.assign(Object.assign({},e7(e)),f)}},{name:"withSelectorOptions"}));let h=eK(),g=p(),m=e2(g),v=e5(g),b=e8(g),y=e7(g),w=eT(m);b.reduxDevTool;let _=e_(m);return eG(_,w,h,null===(n=null==y?void 0:y.deepSelector)||void 0===n||n,null!==(o=null==y?void 0:y.stableSelector)&&void 0!==o&&o,b.namespace,v)}(e,0,t)}},4153:function(e,t,r){"use strict";r.d(t,{Am:function(){return m},x7:function(){return _}});var n=r(9589),o=r(9297),i=e=>{switch(e){case"success":return l;case"info":return c;case"warning":return u;case"error":return d;default:return null}},a=Array(12).fill(0),s=({visible:e})=>n.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},n.createElement("div",{className:"sonner-spinner"},a.map((e,t)=>n.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),l=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),u=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),c=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),d=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),f=()=>{let[e,t]=n.useState(document.hidden);return n.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e},p=1,h=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,o="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:p++,i=this.toasts.find(e=>e.id===o),a=void 0===e.dismissible||e.dismissible;return i?this.toasts=this.toasts.map(t=>t.id===o?(this.publish({...t,...e,id:o,title:r}),{...t,...e,id:o,dismissible:a,title:r}):t):this.addToast({title:r,...n,dismissible:a,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let r;if(!t)return;void 0!==t.loading&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let n=e instanceof Promise?e:e(),o=void 0!==r;return n.then(async e=>{if(g(e)&&!e.ok){o=!1;let n="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,i="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description;this.create({id:r,type:"error",message:n,description:i})}else if(void 0!==t.success){o=!1;let n="function"==typeof t.success?await t.success(e):t.success,i="function"==typeof t.description?await t.description(e):t.description;this.create({id:r,type:"success",message:n,description:i})}}).catch(async e=>{if(void 0!==t.error){o=!1;let n="function"==typeof t.error?await t.error(e):t.error,i="function"==typeof t.description?await t.description(e):t.description;this.create({id:r,type:"error",message:n,description:i})}}).finally(()=>{var e;o&&(this.dismiss(r),r=void 0),null==(e=t.finally)||e.call(t)}),r},this.custom=(e,t)=>{let r=(null==t?void 0:t.id)||p++;return this.create({jsx:e(r),id:r,...t}),r},this.subscribers=[],this.toasts=[]}},g=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,m=Object.assign((e,t)=>{let r=(null==t?void 0:t.id)||p++;return h.addToast({title:e,...t,id:r}),r},{success:h.success,info:h.info,warning:h.warning,error:h.error,custom:h.custom,message:h.message,promise:h.promise,dismiss:h.dismiss,loading:h.loading},{getHistory:()=>h.toasts});function v(e){return void 0!==e.label}function b(...e){return e.filter(Boolean).join(" ")}!function(e,{insertAt:t}={}){if(!e||"undefined"==typeof document)return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} -`);var y=e=>{var t,r,o,a,l,u,c,d,p,h;let{invert:g,toast:m,unstyled:b,interacting:y,setHeights:w,visibleToasts:_,heights:x,index:E,toasts:C,expanded:S,removeToast:T,defaultRichColors:k,closeButton:L,style:M,cancelButtonStyle:P,actionButtonStyle:O,className:$="",descriptionClassName:R="",duration:j,position:N,gap:A,loadingIcon:I,expandByDefault:D,classNames:z,icons:H,closeButtonAriaLabel:F="Close toast",pauseWhenPageIsHidden:W,cn:B}=e,[K,V]=n.useState(!1),[U,J]=n.useState(!1),[Y,Z]=n.useState(!1),[G,X]=n.useState(!1),[q,Q]=n.useState(0),[ee,et]=n.useState(0),er=n.useRef(null),en=n.useRef(null),eo=0===E,ei=E+1<=_,ea=m.type,es=!1!==m.dismissible,el=m.className||"",eu=m.descriptionClassName||"",ec=n.useMemo(()=>x.findIndex(e=>e.toastId===m.id)||0,[x,m.id]),ed=n.useMemo(()=>{var e;return null!=(e=m.closeButton)?e:L},[m.closeButton,L]),ef=n.useMemo(()=>m.duration||j||4e3,[m.duration,j]),ep=n.useRef(0),eh=n.useRef(0),eg=n.useRef(0),em=n.useRef(null),[ev,eb]=N.split("-"),ey=n.useMemo(()=>x.reduce((e,t,r)=>r>=ec?e:e+t.height,0),[x,ec]),ew=f(),e_=m.invert||g,ex="loading"===ea;eh.current=n.useMemo(()=>ec*A+ey,[ec,ey]),n.useEffect(()=>{V(!0)},[]),n.useLayoutEffect(()=>{if(!K)return;let e=en.current,t=e.style.height;e.style.height="auto";let r=e.getBoundingClientRect().height;e.style.height=t,et(r),w(e=>e.find(e=>e.toastId===m.id)?e.map(e=>e.toastId===m.id?{...e,height:r}:e):[{toastId:m.id,height:r,position:m.position},...e])},[K,m.title,m.description,w,m.id]);let eE=n.useCallback(()=>{J(!0),Q(eh.current),w(e=>e.filter(e=>e.toastId!==m.id)),setTimeout(()=>{T(m)},200)},[m,T,w,eh]);return n.useEffect(()=>{if(m.promise&&"loading"===ea||m.duration===1/0||"loading"===m.type)return;let e,t=ef;return S||y||W&&ew?(()=>{if(eg.current{var e;null==(e=m.onAutoClose)||e.call(m,m),eE()},t)),()=>clearTimeout(e)},[S,y,D,m,ef,eE,m.promise,ea,W,ew]),n.useEffect(()=>{let e=en.current;if(e){let t=e.getBoundingClientRect().height;return et(t),w(e=>[{toastId:m.id,height:t,position:m.position},...e]),()=>w(e=>e.filter(e=>e.toastId!==m.id))}},[w,m.id]),n.useEffect(()=>{m.delete&&eE()},[eE,m.delete]),n.createElement("li",{"aria-live":m.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:en,className:B($,el,null==z?void 0:z.toast,null==(t=null==m?void 0:m.classNames)?void 0:t.toast,null==z?void 0:z.default,null==z?void 0:z[ea],null==(r=null==m?void 0:m.classNames)?void 0:r[ea]),"data-sonner-toast":"","data-rich-colors":null!=(o=m.richColors)?o:k,"data-styled":!(m.jsx||m.unstyled||b),"data-mounted":K,"data-promise":!!m.promise,"data-removed":U,"data-visible":ei,"data-y-position":ev,"data-x-position":eb,"data-index":E,"data-front":eo,"data-swiping":Y,"data-dismissible":es,"data-type":ea,"data-invert":e_,"data-swipe-out":G,"data-expanded":!!(S||D&&K),style:{"--index":E,"--toasts-before":E,"--z-index":C.length-E,"--offset":`${U?q:eh.current}px`,"--initial-height":D?"auto":`${ee}px`,...M,...m.style},onPointerDown:e=>{ex||!es||(er.current=new Date,Q(eh.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(Z(!0),em.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,r,n;if(G||!es)return;em.current=null;let o=Number((null==(e=en.current)?void 0:e.style.getPropertyValue("--swipe-amount").replace("px",""))||0),i=new Date().getTime()-(null==(t=er.current)?void 0:t.getTime());if(Math.abs(o)>=20||Math.abs(o)/i>.11){Q(eh.current),null==(r=m.onDismiss)||r.call(m,m),eE(),X(!0);return}null==(n=en.current)||n.style.setProperty("--swipe-amount","0px"),Z(!1)},onPointerMove:e=>{var t;if(!em.current||!es)return;let r=e.clientY-em.current.y,n=e.clientX-em.current.x,o=("top"===ev?Math.min:Math.max)(0,r),i="touch"===e.pointerType?10:2;Math.abs(o)>i?null==(t=en.current)||t.style.setProperty("--swipe-amount",`${r}px`):Math.abs(n)>i&&(em.current=null)}},ed&&!m.jsx?n.createElement("button",{"aria-label":F,"data-disabled":ex,"data-close-button":!0,onClick:ex||!es?()=>{}:()=>{var e;eE(),null==(e=m.onDismiss)||e.call(m,m)},className:B(null==z?void 0:z.closeButton,null==(a=null==m?void 0:m.classNames)?void 0:a.closeButton)},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},n.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,m.jsx||n.isValidElement(m.title)?m.jsx||m.title:n.createElement(n.Fragment,null,ea||m.icon||m.promise?n.createElement("div",{"data-icon":"",className:B(null==z?void 0:z.icon,null==(l=null==m?void 0:m.classNames)?void 0:l.icon)},m.promise||"loading"===m.type&&!m.icon?m.icon||(null!=H&&H.loading?n.createElement("div",{className:"sonner-loader","data-visible":"loading"===ea},H.loading):I?n.createElement("div",{className:"sonner-loader","data-visible":"loading"===ea},I):n.createElement(s,{visible:"loading"===ea})):null,"loading"!==m.type?m.icon||(null==H?void 0:H[ea])||i(ea):null):null,n.createElement("div",{"data-content":"",className:B(null==z?void 0:z.content,null==(u=null==m?void 0:m.classNames)?void 0:u.content)},n.createElement("div",{"data-title":"",className:B(null==z?void 0:z.title,null==(c=null==m?void 0:m.classNames)?void 0:c.title)},m.title),m.description?n.createElement("div",{"data-description":"",className:B(R,eu,null==z?void 0:z.description,null==(d=null==m?void 0:m.classNames)?void 0:d.description)},m.description):null),n.isValidElement(m.cancel)?m.cancel:m.cancel&&v(m.cancel)?n.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||P,onClick:e=>{var t,r;v(m.cancel)&&es&&(null==(r=(t=m.cancel).onClick)||r.call(t,e),eE())},className:B(null==z?void 0:z.cancelButton,null==(p=null==m?void 0:m.classNames)?void 0:p.cancelButton)},m.cancel.label):null,n.isValidElement(m.action)?m.action:m.action&&v(m.action)?n.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||O,onClick:e=>{var t,r;v(m.action)&&(e.defaultPrevented||(null==(r=(t=m.action).onClick)||r.call(t,e),eE()))},className:B(null==z?void 0:z.actionButton,null==(h=null==m?void 0:m.classNames)?void 0:h.actionButton)},m.action.label):null))};function w(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}var _=e=>{let{invert:t,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:s,className:l,offset:u,theme:c="light",richColors:d,duration:f,style:p,visibleToasts:g=3,toastOptions:m,dir:v=w(),gap:_=14,loadingIcon:x,icons:E,containerAriaLabel:C="Notifications",pauseWhenPageIsHidden:S,cn:T=b}=e,[k,L]=n.useState([]),M=n.useMemo(()=>Array.from(new Set([r].concat(k.filter(e=>e.position).map(e=>e.position)))),[k,r]),[P,O]=n.useState([]),[$,R]=n.useState(!1),[j,N]=n.useState(!1),[A,I]=n.useState("system"!==c?c:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),D=n.useRef(null),z=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),H=n.useRef(null),F=n.useRef(!1),W=n.useCallback(e=>{var t;null!=(t=k.find(t=>t.id===e.id))&&t.delete||h.dismiss(e.id),L(t=>t.filter(({id:t})=>t!==e.id))},[k]);return n.useEffect(()=>h.subscribe(e=>{if(e.dismiss){L(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));return}setTimeout(()=>{o.flushSync(()=>{L(t=>{let r=t.findIndex(t=>t.id===e.id);return -1!==r?[...t.slice(0,r),{...t[r],...e},...t.slice(r+1)]:[e,...t]})})})}),[]),n.useEffect(()=>{if("system"!==c){I(c);return}"system"===c&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?I("dark"):I("light")),"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:e})=>{I(e?"dark":"light")})},[c]),n.useEffect(()=>{k.length<=1&&R(!1)},[k]),n.useEffect(()=>{let e=e=>{var t,r;i.every(t=>e[t]||e.code===t)&&(R(!0),null==(t=D.current)||t.focus()),"Escape"===e.code&&(document.activeElement===D.current||null!=(r=D.current)&&r.contains(document.activeElement))&&R(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i]),n.useEffect(()=>{if(D.current)return()=>{H.current&&(H.current.focus({preventScroll:!0}),H.current=null,F.current=!1)}},[D.current]),k.length?n.createElement("section",{"aria-label":`${C} ${z}`,tabIndex:-1},M.map((e,r)=>{var o;let[i,c]=e.split("-");return n.createElement("ol",{key:e,dir:"auto"===v?w():v,tabIndex:-1,ref:D,className:l,"data-sonner-toaster":!0,"data-theme":A,"data-y-position":i,"data-x-position":c,style:{"--front-toast-height":`${(null==(o=P[0])?void 0:o.height)||0}px`,"--offset":"number"==typeof u?`${u}px`:u||"32px","--width":"356px","--gap":`${_}px`,...p},onBlur:e=>{F.current&&!e.currentTarget.contains(e.relatedTarget)&&(F.current=!1,H.current&&(H.current.focus({preventScroll:!0}),H.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||F.current||(F.current=!0,H.current=e.relatedTarget)},onMouseEnter:()=>R(!0),onMouseMove:()=>R(!0),onMouseLeave:()=>{j||R(!1)},onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||N(!0)},onPointerUp:()=>N(!1)},k.filter(t=>!t.position&&0===r||t.position===e).map((r,o)=>{var i,l;return n.createElement(y,{key:r.id,icons:E,index:o,toast:r,defaultRichColors:d,duration:null!=(i=null==m?void 0:m.duration)?i:f,className:null==m?void 0:m.className,descriptionClassName:null==m?void 0:m.descriptionClassName,invert:t,visibleToasts:g,closeButton:null!=(l=null==m?void 0:m.closeButton)?l:s,interacting:j,position:e,style:null==m?void 0:m.style,unstyled:null==m?void 0:m.unstyled,classNames:null==m?void 0:m.classNames,cancelButtonStyle:null==m?void 0:m.cancelButtonStyle,actionButtonStyle:null==m?void 0:m.actionButtonStyle,removeToast:W,toasts:k.filter(e=>e.position==r.position),heights:P.filter(e=>e.position==r.position),setHeights:O,expandByDefault:a,gap:_,loadingIcon:x,expanded:$,pauseWhenPageIsHidden:S,cn:T})}))})):null}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(7003),t(1823)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/_app-68e7790044220623.js b/_next/static/chunks/pages/_app-68e7790044220623.js new file mode 100644 index 0000000..ca88d4f --- /dev/null +++ b/_next/static/chunks/pages/_app-68e7790044220623.js @@ -0,0 +1,10 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{8039:function(e,t,n){"use strict";n.d(t,{AS7:function(){return P},BGW:function(){return S},FMB:function(){return h},Hf3:function(){return l},NWY:function(){return M},NhS:function(){return c},UG6:function(){return b},VZf:function(){return R},_Ve:function(){return w},kLh:function(){return x},nWS:function(){return m},o1U:function(){return C},veu:function(){return a},xrR:function(){return f}});var r=n(9589);function o(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var i=["color"],a=(0,r.forwardRef)(function(e,t){var n=e.color,a=o(e,i);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),(0,r.createElement)("path",{d:"M7.5 2C7.77614 2 8 2.22386 8 2.5L8 11.2929L11.1464 8.14645C11.3417 7.95118 11.6583 7.95118 11.8536 8.14645C12.0488 8.34171 12.0488 8.65829 11.8536 8.85355L7.85355 12.8536C7.75979 12.9473 7.63261 13 7.5 13C7.36739 13 7.24021 12.9473 7.14645 12.8536L3.14645 8.85355C2.95118 8.65829 2.95118 8.34171 3.14645 8.14645C3.34171 7.95118 3.65829 7.95118 3.85355 8.14645L7 11.2929L7 2.5C7 2.22386 7.22386 2 7.5 2Z",fill:void 0===n?"currentColor":n,fillRule:"evenodd",clipRule:"evenodd"}))}),s=["color"],l=(0,r.forwardRef)(function(e,t){var n=e.color,i=o(e,s);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,r.createElement)("path",{d:"M7.14645 2.14645C7.34171 1.95118 7.65829 1.95118 7.85355 2.14645L11.8536 6.14645C12.0488 6.34171 12.0488 6.65829 11.8536 6.85355C11.6583 7.04882 11.3417 7.04882 11.1464 6.85355L8 3.70711L8 12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 3.70711L3.85355 6.85355C3.65829 7.04882 3.34171 7.04882 3.14645 6.85355C2.95118 6.65829 2.95118 6.34171 3.14645 6.14645L7.14645 2.14645Z",fill:void 0===n?"currentColor":n,fillRule:"evenodd",clipRule:"evenodd"}))}),u=["color"],c=(0,r.forwardRef)(function(e,t){var n=e.color,i=o(e,u);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,r.createElement)("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",fill:void 0===n?"currentColor":n,fillRule:"evenodd",clipRule:"evenodd"}))}),d=["color"],f=(0,r.forwardRef)(function(e,t){var n=e.color,i=o(e,d);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,r.createElement)("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:void 0===n?"currentColor":n,fillRule:"evenodd",clipRule:"evenodd"}))}),p=["color"],h=(0,r.forwardRef)(function(e,t){var n=e.color,i=o(e,p);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,r.createElement)("path",{d:"M7.28856 0.796908C7.42258 0.734364 7.57742 0.734364 7.71144 0.796908L13.7114 3.59691C13.8875 3.67906 14 3.85574 14 4.05V10.95C14 11.1443 13.8875 11.3209 13.7114 11.4031L7.71144 14.2031C7.57742 14.2656 7.42258 14.2656 7.28856 14.2031L1.28856 11.4031C1.11252 11.3209 1 11.1443 1 10.95V4.05C1 3.85574 1.11252 3.67906 1.28856 3.59691L7.28856 0.796908ZM2 4.80578L7 6.93078V12.9649L2 10.6316V4.80578ZM8 12.9649L13 10.6316V4.80578L8 6.93078V12.9649ZM7.5 6.05672L12.2719 4.02866L7.5 1.80176L2.72809 4.02866L7.5 6.05672Z",fill:void 0===n?"currentColor":n,fillRule:"evenodd",clipRule:"evenodd"}))}),g=["color"],m=(0,r.forwardRef)(function(e,t){var n=e.color,i=o(e,g);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,r.createElement)("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:void 0===n?"currentColor":n,fillRule:"evenodd",clipRule:"evenodd"}))}),v=["color"],b=(0,r.forwardRef)(function(e,t){var n=e.color,i=o(e,v);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,r.createElement)("path",{d:"M7.07095 0.650238C6.67391 0.650238 6.32977 0.925096 6.24198 1.31231L6.0039 2.36247C5.6249 2.47269 5.26335 2.62363 4.92436 2.81013L4.01335 2.23585C3.67748 2.02413 3.23978 2.07312 2.95903 2.35386L2.35294 2.95996C2.0722 3.2407 2.0232 3.6784 2.23493 4.01427L2.80942 4.92561C2.62307 5.2645 2.47227 5.62594 2.36216 6.00481L1.31209 6.24287C0.924883 6.33065 0.650024 6.6748 0.650024 7.07183V7.92897C0.650024 8.32601 0.924883 8.67015 1.31209 8.75794L2.36228 8.99603C2.47246 9.375 2.62335 9.73652 2.80979 10.0755L2.2354 10.9867C2.02367 11.3225 2.07267 11.7602 2.35341 12.041L2.95951 12.6471C3.24025 12.9278 3.67795 12.9768 4.01382 12.7651L4.92506 12.1907C5.26384 12.377 5.62516 12.5278 6.0039 12.6379L6.24198 13.6881C6.32977 14.0753 6.67391 14.3502 7.07095 14.3502H7.92809C8.32512 14.3502 8.66927 14.0753 8.75705 13.6881L8.99505 12.6383C9.37411 12.5282 9.73573 12.3773 10.0748 12.1909L10.986 12.7653C11.3218 12.977 11.7595 12.928 12.0403 12.6473L12.6464 12.0412C12.9271 11.7604 12.9761 11.3227 12.7644 10.9869L12.1902 10.076C12.3768 9.73688 12.5278 9.37515 12.638 8.99596L13.6879 8.75794C14.0751 8.67015 14.35 8.32601 14.35 7.92897V7.07183C14.35 6.6748 14.0751 6.33065 13.6879 6.24287L12.6381 6.00488C12.528 5.62578 12.3771 5.26414 12.1906 4.92507L12.7648 4.01407C12.9766 3.6782 12.9276 3.2405 12.6468 2.95975L12.0407 2.35366C11.76 2.07292 11.3223 2.02392 10.9864 2.23565L10.0755 2.80989C9.73622 2.62328 9.37437 2.47229 8.99505 2.36209L8.75705 1.31231C8.66927 0.925096 8.32512 0.650238 7.92809 0.650238H7.07095ZM4.92053 3.81251C5.44724 3.44339 6.05665 3.18424 6.71543 3.06839L7.07095 1.50024H7.92809L8.28355 3.06816C8.94267 3.18387 9.5524 3.44302 10.0794 3.81224L11.4397 2.9547L12.0458 3.56079L11.1882 4.92117C11.5573 5.44798 11.8164 6.0575 11.9321 6.71638L13.5 7.07183V7.92897L11.932 8.28444C11.8162 8.94342 11.557 9.55301 11.1878 10.0798L12.0453 11.4402L11.4392 12.0462L10.0787 11.1886C9.55192 11.5576 8.94241 11.8166 8.28355 11.9323L7.92809 13.5002H7.07095L6.71543 11.932C6.0569 11.8162 5.44772 11.5572 4.92116 11.1883L3.56055 12.046L2.95445 11.4399L3.81213 10.0794C3.4431 9.55266 3.18403 8.94326 3.06825 8.2845L1.50002 7.92897V7.07183L3.06818 6.71632C3.18388 6.05765 3.44283 5.44833 3.81171 4.92165L2.95398 3.561L3.56008 2.95491L4.92053 3.81251ZM9.02496 7.50008C9.02496 8.34226 8.34223 9.02499 7.50005 9.02499C6.65786 9.02499 5.97513 8.34226 5.97513 7.50008C5.97513 6.65789 6.65786 5.97516 7.50005 5.97516C8.34223 5.97516 9.02496 6.65789 9.02496 7.50008ZM9.92496 7.50008C9.92496 8.83932 8.83929 9.92499 7.50005 9.92499C6.1608 9.92499 5.07513 8.83932 5.07513 7.50008C5.07513 6.16084 6.1608 5.07516 7.50005 5.07516C8.83929 5.07516 9.92496 6.16084 9.92496 7.50008Z",fill:void 0===n?"currentColor":n,fillRule:"evenodd",clipRule:"evenodd"}))}),y=["color"],w=(0,r.forwardRef)(function(e,t){var n=e.color,i=o(e,y);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,r.createElement)("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:void 0===n?"currentColor":n,fillRule:"evenodd",clipRule:"evenodd"}))}),_=["color"],x=(0,r.forwardRef)(function(e,t){var n=e.color,i=o(e,_);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,r.createElement)("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:void 0===n?"currentColor":n,fillRule:"evenodd",clipRule:"evenodd"}))}),E=["color"],C=(0,r.forwardRef)(function(e,t){var n=e.color,i=o(e,E);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,r.createElement)("path",{d:"M3.24182 2.32181C3.3919 2.23132 3.5784 2.22601 3.73338 2.30781L12.7334 7.05781C12.8974 7.14436 13 7.31457 13 7.5C13 7.68543 12.8974 7.85564 12.7334 7.94219L3.73338 12.6922C3.5784 12.774 3.3919 12.7687 3.24182 12.6782C3.09175 12.5877 3 12.4252 3 12.25V2.75C3 2.57476 3.09175 2.4123 3.24182 2.32181ZM4 3.57925V11.4207L11.4288 7.5L4 3.57925Z",fill:void 0===n?"currentColor":n,fillRule:"evenodd",clipRule:"evenodd"}))}),T=["color"],S=(0,r.forwardRef)(function(e,t){var n=e.color,i=o(e,T);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,r.createElement)("path",{d:"M1.84998 7.49998C1.84998 4.66458 4.05979 1.84998 7.49998 1.84998C10.2783 1.84998 11.6515 3.9064 12.2367 5H10.5C10.2239 5 10 5.22386 10 5.5C10 5.77614 10.2239 6 10.5 6H13.5C13.7761 6 14 5.77614 14 5.5V2.5C14 2.22386 13.7761 2 13.5 2C13.2239 2 13 2.22386 13 2.5V4.31318C12.2955 3.07126 10.6659 0.849976 7.49998 0.849976C3.43716 0.849976 0.849976 4.18537 0.849976 7.49998C0.849976 10.8146 3.43716 14.15 7.49998 14.15C9.44382 14.15 11.0622 13.3808 12.2145 12.2084C12.8315 11.5806 13.3133 10.839 13.6418 10.0407C13.7469 9.78536 13.6251 9.49315 13.3698 9.38806C13.1144 9.28296 12.8222 9.40478 12.7171 9.66014C12.4363 10.3425 12.0251 10.9745 11.5013 11.5074C10.5295 12.4963 9.16504 13.15 7.49998 13.15C4.05979 13.15 1.84998 10.3354 1.84998 7.49998Z",fill:void 0===n?"currentColor":n,fillRule:"evenodd",clipRule:"evenodd"}))}),k=["color"],M=(0,r.forwardRef)(function(e,t){var n=e.color,i=o(e,k);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,r.createElement)("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:void 0===n?"currentColor":n,fillRule:"evenodd",clipRule:"evenodd"}))}),L=["color"],P=(0,r.forwardRef)(function(e,t){var n=e.color,i=o(e,L);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,r.createElement)("path",{d:"M4 6H11L7.5 10.5L4 6Z",fill:void 0===n?"currentColor":n}))}),O=["color"],R=(0,r.forwardRef)(function(e,t){var n=e.color,i=o(e,O);return(0,r.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,r.createElement)("path",{d:"M6 11L6 4L10.5 7.5L6 11Z",fill:void 0===n?"currentColor":n}))})},3822:function(e,t,n){n(4199)},3617:function(e,t,n){n(9327);var r=n(229),o="undefined"!=typeof WeakMap?WeakMap:function(){var e=[],t=[];return{set:function(n,r){e.push(n),t.push(r)},get:function(n){for(var r=0;r/),o=r?r[0]:" ",i="}"===n[n.length-1]?"}":"";return o.replace(/\r\n|\n/g," ").replace(/\s+/g," ")+" /* ... */ "+i},t.restore=function(e,t){var n=e[0],i=e.slice(1);switch(n){case"$":return r(t,e);case"r":var a=i.indexOf(","),s=i.slice(0,a);return RegExp(i.slice(a+1),s);case"d":return new Date(+i);case"f":var l=function(){throw Error("can't run jsan parsed function")};return l.toString=function(){return i},l;case"u":return;case"e":var u=Error(i);return u.stack="Stack is unavailable for jsan parsed errors",u;case"s":return Symbol(i);case"g":return Symbol.for(i);case"m":return new Map(o.parse(i));case"l":return new Set(o.parse(i));case"n":return NaN;case"i":return 1/0;case"y":return-1/0;default:return console.warn("unknown type",e),e}}},7003:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(1482)}])},1463:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});var r=n(9362),o=n(2825);let i=(0,r.eK)(()=>({state:{}}),{withActions:e=>({add:t=>{e.state[t]?e.state[t]<0?e.state[t]=1:e.state[t]++:e.state[t]=1},remove:t=>{e.state[t]&&(e.state[t]<0?e.state[t]=0:e.state[t]--)},clear:()=>{e.state={}}})});o.s||(window.useActiveNode=i)},9676:function(e,t,n){"use strict";n.d(t,{p:function(){return l}});var r=n(9362),o=n(2825),i=n(8344),a=n(5696),s=n(1773);let l=(0,r.eK)(()=>({nodes:[],list:[]}),{withDeepSelector:!1,withActions:e=>({addNode:t=>{let n=s.O.getReadonlyState().closeList,r=Array.from(a.k.getReadonlyState().filter);e.nodes.find(e=>e.i===t.i)?(e.nodes=e.nodes.map(e=>e.i===t.i?t:e),e.list=e.nodes.map(e=>(0,i.VB)(e,e=>null==n?void 0:n[e.i],e=>r.some(t=>+t&e.t))).flat(1)):(e.nodes=[...e.nodes,t],e.list=[...e.list,...(0,i.VB)(t,e=>null==n?void 0:n[e.i],e=>r.some(t=>+t&e.t))]),s.O.getActions().updateSelectList()},update:()=>{let t=s.O.getReadonlyState().closeList,n=Array.from(a.k.getReadonlyState().filter);e.list=e.nodes.map(e=>(0,i.VB)(e,e=>null==t?void 0:t[e.i],e=>n.some(t=>+t&e.t))).flat(1),s.O.getActions().updateSelectList()},clear:()=>{e.nodes=[],e.list=[]}})});o.s||(window.useAppTree=l)},683:function(e,t,n){"use strict";n.d(t,{Dp:function(){return y},FV:function(){return C},oo:function(){return _}});var r=n(715),o=n(5567),i=n(9589),a=n(1463),s=n(9676),l=n(6721),u=n(4688),c=n(4874),d=n(4115),f=n(3105),p=n(5720),h=n(5993),g=n(4736),m=n(1773),v=n(872),b=n(7160);let y="iframe",w=null,_="@my-react/devtool/bridge",x=e=>{null==w||w.postMessage({from:y,...e,source:_})},E=(0,r.debounce)(x,100),C=()=>{let{query:e,push:t}=(0,o.useRouter)();(0,i.useEffect)(()=>{window!==window.top||(null==e?void 0:e.token)||t({query:{token:Date.now()}})},[null==e?void 0:e.token,t]),(0,i.useEffect)(()=>{let t=window!==window.top;if("undefined"!=typeof BroadcastChannel&&!t&&(null==e?void 0:e.token)){w=new BroadcastChannel("@my-react-"+e.token),console.log("[Dev mode] bridge start");let t=!1,n=null,o=[],i=()=>{t||(x({type:r.MessageWorkerType.init}),x({type:r.MessagePanelType.show}),n=setTimeout(i,1e3))},_=()=>{console.log("[Dev mode] bridge disconnect"),t=!1,n&&clearTimeout(n),o.forEach(e=>e()),c.$.getActions().disconnect(),null==w||w.removeEventListener("message",C),null==w||w.close()},C=e=>{var n,o,i;if((null===(n=e.data)||void 0===n?void 0:n.source)!==b.$6||(null===(o=e.data)||void 0===o?void 0:o.from)===y)return;let w=(null===(i=e.data)||void 0===i?void 0:i.type)==="hook-render"?e.data.data:e.data;w.type===r.DevToolMessageEnum.init&&(0,b.Ws)(()=>{t=!0,c.$.getActions().setRender(w.data)}),w.type===r.DevToolMessageEnum.dir&&(0,b.Ws)(()=>{h.i.getActions().set(w.data)}),w.type===r.DevToolMessageEnum.ready&&(0,b.Ws)(()=>{w.data&&s.p.getActions().addNode(w.data)}),w.type===r.DevToolMessageEnum.unmount&&(0,b.Ws)(()=>{var e,t,n,r,o,i,u,c,p,g,v,b,y,w,_,x,E,C,T,S;null===l.F||void 0===l.F||null===(n=l.F.getActions)||void 0===n||null===(t=n.call(l.F))||void 0===t||null===(e=t.clear)||void 0===e||e.call(t),null===s.p||void 0===s.p||null===(i=s.p.getActions)||void 0===i||null===(o=i.call(s.p))||void 0===o||null===(r=o.clear)||void 0===r||r.call(o),null===h.i||void 0===h.i||null===(p=h.i.getActions)||void 0===p||null===(c=p.call(h.i))||void 0===c||null===(u=c.clear)||void 0===u||u.call(c),null===m.O||void 0===m.O||null===(b=m.O.getActions)||void 0===b||null===(v=b.call(m.O))||void 0===v||null===(g=v.clear)||void 0===g||g.call(v),null===f.K||void 0===f.K||null===(_=f.K.getActions)||void 0===_||null===(w=_.call(f.K))||void 0===w||null===(y=w.clear)||void 0===y||y.call(w),null===a.M||void 0===a.M||null===(E=a.M.getActions())||void 0===E||null===(x=E.clear)||void 0===x||x.call(E),null===d.a||void 0===d.a||null===(S=d.a.getActions)||void 0===S||null===(T=S.call(d.a))||void 0===T||null===(C=T.clear)||void 0===C||C.call(T)}),w.type===r.DevToolMessageEnum.hmr&&(0,b.Ws)(()=>{p.m.getActions().update(w.data)}),w.type===r.DevToolMessageEnum.trigger&&(0,b.Ws)(()=>{v.P.getActions().update(w.data)}),w.type===r.DevToolMessageEnum.run&&(0,b.Ws)(()=>{g.g.getActions().update(w.data)}),w.type===r.DevToolMessageEnum.detail&&(0,b.Ws)(()=>{w.data&&f.K.getActions().addNode(w.data),f.K.getActions().setLoading(!1)}),w.type===r.DevToolMessageEnum.config&&(0,b.Ws)(()=>{var e,t;u.Z.getActions().setEnableHover(null===(e=w.data)||void 0===e?void 0:e.enableHover),u.Z.getActions().setEnableUpdate(null===(t=w.data)||void 0===t?void 0:t.enableUpdate)}),w.type===r.DevToolMessageEnum.chunk&&(0,b.Ws)(()=>{l.F.getActions().setChunk(w.data)})};return w.addEventListener("message",C),console.log("[Dev mode] bridge connect"),c.$.getActions().connect(),i(),o.push(m.O.subscribe(e=>e.select,()=>{let e=m.O.getReadonlyState().select;e?(f.K.getActions().setLoading(!0),x({type:r.MessagePanelType.nodeSelect,data:e})):x({type:r.MessagePanelType.nodeSelect,data:null})})),o.push(m.O.subscribe(e=>e.reload,()=>{let e=m.O.getReadonlyState().select;e&&(f.K.getActions().setLoading(!0),E({type:r.MessagePanelType.nodeSelectForce,data:e}))})),o.push(m.O.subscribe(e=>e.store,()=>{let e=m.O.getReadonlyState().select;e&&E({type:r.MessagePanelType.nodeStore,data:e})})),o.push(m.O.subscribe(e=>e.trigger,()=>{let e=m.O.getReadonlyState().select;e&&E({type:r.MessagePanelType.nodeTrigger,data:e})})),o.push(m.O.subscribe(e=>e.hover,()=>x({type:r.MessagePanelType.nodeHover,data:m.O.getReadonlyState().hover}))),o.push(a.M.subscribe(e=>e.state,(0,r.debounce)(()=>x({type:r.MessagePanelType.nodeSubscriber,data:a.M.getReadonlyState().state}),100))),o.push(u.Z.subscribe(e=>e.state.enableHover,()=>x({type:r.MessagePanelType.enableHover,data:u.Z.getReadonlyState().state.enableHover}))),o.push(u.Z.subscribe(e=>e.state.enableUpdate,()=>x({type:r.MessagePanelType.enableUpdate,data:u.Z.getReadonlyState().state.enableUpdate}))),o.push(l.F.subscribe(e=>e.id,()=>{let e=l.F.getReadonlyState().id;e&&x({type:r.MessagePanelType.chunk,data:e})})),o.push(d.a.subscribe(e=>e.store,()=>{let e=d.a.getReadonlyState().store;e&&x({type:r.MessagePanelType.varStore,data:e})})),()=>{_()}}},[null==e?void 0:e.token])}},6721:function(e,t,n){"use strict";n.d(t,{F:function(){return i}});var r=n(9362),o=n(2825);let i=(0,r.eK)(()=>({id:null,data:{}}),{withActions:e=>({setLoading:t=>{e.id=t},setLoaded:()=>{e.id=null},setChunk:t=>{e.id&&t[e.id]&&(e.id=null),e.data={...e.data,...t}},clear:()=>{e.id=null,e.data={}}}),withDeepSelector:!1,withStableSelector:!0});o.s||(window.useChunk=i)},4688:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9362),o=n(2825);let i=(0,r.eK)(()=>({state:{enableHover:!1,enableUpdate:!1,enableRuntimeCount:!1,enableRuntimeMis:!1}}),{withActions:e=>({setEnableHover(t){e.state.enableHover=t},setEnableUpdate(t){e.state.enableUpdate=t},setEnableRuntimeCount(t){e.state.enableRuntimeCount=t},setEnableRuntimeMis(t){e.state.enableRuntimeMis=t}}),withNamespace:"useConfig",withDeepSelector:!0});o.s||(window.useConfig=i)},4874:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(9362),o=n(2825);let i=(0,r.eK)(()=>({state:!1,render:void 0,error:void 0,cb:null}),{withActions:e=>({connect(){e.state=!0},setRender(t){e.render=t},setError(t){e.error=t},setWebDev(t,n){e.name=t,e.url=n},disconnect(){e.state=!1,e.url=void 0,e.name=void 0},setConnectHandler(t){e.cb=t}}),withDeepSelector:!1});o.s||(window.useConnect=i)},4115:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(9362),o=n(2825);let i=(0,r.eK)(()=>({state:!1,id:0,store:0,position:{x:0,y:0}}),{withActions:e=>({open:t=>{e.state=!0,e.position=t},setId:t=>{e.id=t},setStore:()=>{e.store=e.id,e.id=0},close:()=>{e.id=0,e.store=0,e.state=!1},clear:()=>{e.id=0,e.store=0,e.state=!1,e.position={x:0,y:0}}}),withDeepSelector:!1,withStableSelector:!0});o.s||(window.useContextMenu=i)},3105:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var r=n(9362),o=n(2825);let i=(0,r.eK)(()=>({nodes:[],loading:!1,error:null}),{withActions:e=>({addNode:t=>{let n=e.nodes.filter(e=>e.i!==t.i);n.push(t),e.nodes=n},delNode:t=>{e.nodes=e.nodes.filter(e=>e.i!==t)},setLoading:t=>{e.loading=t},setError:t=>{e.error=t},clear:()=>{e.nodes=[],e.loading=!1,e.error=null}}),withDeepSelector:!1});o.s||(window.useDetailNode=i)},5696:function(e,t,n){"use strict";n.d(t,{k:function(){return s}});var r=n(9870),o=n(9362),i=n(9676);let a=new Set([r.NODE_TYPE.__comment__,r.NODE_TYPE.__initial__,r.NODE_TYPE.__text__,r.NODE_TYPE.__empty__,r.NODE_TYPE.__null__,r.NODE_TYPE.__plain__,r.NODE_TYPE.__fragment__].map(e=>"".concat(e))),s=(0,o.eK)(()=>({filter:a}),{withActions:e=>({onChange:t=>{e.filter=t,i.p.getActions().update()}}),withDeepSelector:!1,withNamespace:"useFilterNode"})},5720:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var r=n(9362),o=n(2825);let i=(0,r.eK)(()=>({state:{}}),{withDeepSelector:!1,withActions:e=>({update:t=>{Object.keys(t).forEach(n=>{e.state[n]=t[n]})},clear:()=>{e.state={}}})});o.s||(window.useHMRNode=i)},4416:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});var r=n(9362),o=n(2825);let i=(0,r.eK)(()=>({state:{},warn:{},error:{}}),{withActions:e=>({highlightNode:(t,n)=>{e.state[t]=n,setTimeout(()=>{delete e.state[t]},3e3)},setError:t=>{Object.keys(t).forEach(n=>{e.error[n]=e.error[n]||[],e.error[n].push(...t[n])})},setWarn:t=>{Object.keys(t).forEach(n=>{e.warn[n]=e.warn[n]||[],e.warn[n].push(...t[n])})},clear:()=>{e.state={},e.warn={},e.error={}}})});o.s||(window.useHighlightNode=i)},5993:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(9362),o=n(2825);let i=(0,r.eK)(()=>({map:{},state:{}}),{withDeepSelector:!1,withActions:e=>({set:t=>{Object.keys(t).forEach(n=>{e.state[n]=t[n],e.map[t[n]]=n})},clear:()=>{e.state={},e.map={}}})});o.s||(window.useNodeName=i)},4736:function(e,t,n){"use strict";n.d(t,{g:function(){return i}});var r=n(9362),o=n(2825);let i=(0,r.eK)(()=>({state:{}}),{withDeepSelector:!1,withActions:e=>({update:t=>{Object.keys(t).forEach(n=>{e.state[n]={...e.state[n],...t[n]}})},clear:()=>{e.state={}}})});o.s||(window.useRunNode=i)},1773:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r=n(715),o=n(9362),i=n(4153),a=n(2825),s=n(8344),l=n(9676),u=n(6721),c=n(3105);let d=u.F.getActions().clear,f=c.K.getActions().delNode,p=(0,o.eK)(()=>({select:null,hover:null,closeList:{},selectList:{},reload:0,store:0,trigger:0}),{withActions:e=>{let t=(0,r.debounce)(()=>{let t=l.p.getReadonlyState().list.find(t=>t.i===e.select);t&&(e.selectList=(0,s.VB)(t,()=>!1,()=>!1).reduce((e,t)=>(e[t.i]=!0,e),{}))},16);return{setSelect:(n,r)=>{n!==e.select||r?(e.select=n,t()):(e.select=null,e.selectList={})},forceReload:()=>{e.select&&(e.reload++,f(e.select)),d()},storeFiber:()=>{e.select&&(e.store++,i.Am.success("store fiber success"))},triggerFiber:()=>{e.select&&(e.trigger++,i.Am.success("trigger fiber success"))},updateSelectList:t,setHover:t=>{t===e.hover?e.hover=null:e.hover=t},setClose:t=>{var n;t&&((null===(n=e.closeList)||void 0===n?void 0:n[t])?e.closeList={...e.closeList,[t]:!1}:e.closeList={...e.closeList,[t]:!0},l.p.getActions().update())},clear:()=>{e.hover=null,e.select=null,e.closeList={},e.selectList={}}}},withDeepSelector:!1});a.s||(window.useTreeNode=p)},872:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(9362),o=n(2825);let i=(0,r.eK)(()=>({state:{}}),{withDeepSelector:!1,withActions:e=>({update:t=>{Object.keys(t).forEach(n=>{e.state[n]=t[n]})},clear:()=>{e.state={}}})});o.s||(window.useTriggerNode=i)},7160:function(e,t,n){"use strict";n.d(t,{$6:function(){return i},Vz:function(){return s},Ws:function(){return a}}),n(715);var r=n(9589);n(1463),n(9676),n(6721),n(4688);var o=n(4874);n(4115),n(3105),n(4416),n(5720),n(5993),n(4736),n(1773),n(872);let i="@my-react/devtool",a=e=>{try{e()}catch(e){o.$.getActions().setError(e.message)}},s=()=>{(0,r.useEffect)(()=>{},[])}},1482:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return el}});var r=n(217),o=n(3760),i=n.n(o),a=n(3443),s=n.n(a),l=n(704),u=n(5278),c=n(3427),d=(0,c.tv)({slots:{base:"inline-flex items-center justify-between h-fit rounded-large gap-2",pre:"bg-transparent text-inherit font-mono font-normal inline-block whitespace-nowrap",content:"flex flex-col",symbol:"select-none",copyButton:["group","relative","z-10","text-large","text-inherit","data-[hover=true]:bg-transparent"],copyIcon:["absolute text-inherit opacity-100 scale-100 group-data-[copied=true]:opacity-0 group-data-[copied=true]:scale-50"],checkIcon:["absolute text-inherit opacity-0 scale-50 group-data-[copied=true]:opacity-100 group-data-[copied=true]:scale-100"]},variants:{variant:{flat:"",solid:"",bordered:"border-medium bg-transparent",shadow:""},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{base:"px-1.5 py-0.5 text-tiny rounded-small"},md:{base:"px-3 py-1.5 text-small rounded-medium"},lg:{base:"px-4 py-2 text-medium rounded-large"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},fullWidth:{true:{base:"w-full"}},disableAnimation:{true:{},false:{copyIcon:"transition-transform-opacity",checkIcon:"transition-transform-opacity"}}},defaultVariants:{color:"default",variant:"flat",size:"md",fullWidth:!1},compoundVariants:[{variant:["solid","shadow"],color:"default",class:{copyButton:"data-[focus-visible]:outline-default-foreground"}},{variant:["solid","shadow"],color:"primary",class:{copyButton:"data-[focus-visible]:outline-primary-foreground"}},{variant:["solid","shadow"],color:"secondary",class:{copyButton:"data-[focus-visible]:outline-secondary-foreground"}},{variant:["solid","shadow"],color:"success",class:{copyButton:"data-[focus-visible]:outline-success-foreground"}},{variant:["solid","shadow"],color:"warning",class:{copyButton:"data-[focus-visible]:outline-warning-foreground"}},{variant:["solid","shadow"],color:"danger",class:{copyButton:"data-[focus-visible]:outline-danger-foreground"}},{variant:"flat",color:"default",class:{base:u.J.flat.default}},{variant:"flat",color:"primary",class:{base:u.J.flat.primary}},{variant:"flat",color:"secondary",class:{base:u.J.flat.secondary}},{variant:"flat",color:"success",class:{base:u.J.flat.success}},{variant:"flat",color:"warning",class:{base:u.J.flat.warning}},{variant:"flat",color:"danger",class:{base:u.J.flat.danger}},{variant:"solid",color:"default",class:{base:u.J.solid.default}},{variant:"solid",color:"primary",class:{base:u.J.solid.primary}},{variant:"solid",color:"secondary",class:{base:u.J.solid.secondary}},{variant:"solid",color:"success",class:{base:u.J.solid.success}},{variant:"solid",color:"warning",class:{base:u.J.solid.warning}},{variant:"solid",color:"danger",class:{base:u.J.solid.danger}},{variant:"shadow",color:"default",class:{base:u.J.shadow.default}},{variant:"shadow",color:"primary",class:{base:u.J.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:u.J.shadow.secondary}},{variant:"shadow",color:"success",class:{base:u.J.shadow.success}},{variant:"shadow",color:"warning",class:{base:u.J.shadow.warning}},{variant:"shadow",color:"danger",class:{base:u.J.shadow.danger}},{variant:"bordered",color:"default",class:{base:u.J.bordered.default}},{variant:"bordered",color:"primary",class:{base:u.J.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:u.J.bordered.secondary}},{variant:"bordered",color:"success",class:{base:u.J.bordered.success}},{variant:"bordered",color:"warning",class:{base:u.J.bordered.warning}},{variant:"bordered",color:"danger",class:{base:u.J.bordered.danger}}]}),f=n(7510),p=n(4189),h=n(4211),g=n(7433),m=n(9077),v=n(1870),b=n(1273),y=n(9589),w=n(709),_=n(6486),x=e=>(0,r.jsxs)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",...e,children:[(0,r.jsx)("path",{d:"M16 17.1c0 3.5-1.4 4.9-4.9 4.9H6.9C3.4 22 2 20.6 2 17.1v-4.2C2 9.4 3.4 8 6.9 8h4.2c3.5 0 4.9 1.4 4.9 4.9Z"}),(0,r.jsx)("path",{d:"M8 8V6.9C8 3.4 9.4 2 12.9 2h4.2C20.6 2 22 3.4 22 6.9v4.2c0 3.5-1.4 4.9-4.9 4.9H16"}),(0,r.jsx)("path",{d:"M16 12.9C16 9.4 14.6 8 11.1 8"})]}),E=e=>(0,r.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...e,children:(0,r.jsx)("polyline",{points:"20 6 9 17 4 12"})}),C=n(3412),T=(0,p.Gp)((e,t)=>{let{Component:n,domRef:o,preRef:i,children:a,slots:s,classNames:l,copied:u,copyIcon:c=(0,r.jsx)(x,{}),checkIcon:T=(0,r.jsx)(E,{}),symbolBefore:S,disableCopy:k,disableTooltip:M,hideSymbol:L,hideCopyButton:P,tooltipProps:O,isMultiLine:R,onCopy:$,getSnippetProps:N,getCopyButtonProps:j}=function(e){var t,n,r,o;let i=(0,f.w)(),[a,s]=(0,p.oe)(e,d.variantKeys),{ref:l,as:u,children:c,symbol:_="$",classNames:x,timeout:E,copyIcon:C,checkIcon:T,codeString:S,disableCopy:k=!1,disableTooltip:M=!1,hideCopyButton:L=!1,autoFocus:P=!1,hideSymbol:O=!1,onCopy:R,tooltipProps:$={},copyButtonProps:N={},className:j,...A}=a,D=u||"div",I="string"==typeof D,z=null!=(n=null!=(t=null==e?void 0:e.disableAnimation)?t:null==i?void 0:i.disableAnimation)&&n,F={offset:15,delay:1e3,content:"Copy to clipboard",color:null!=(o=null==e?void 0:e.color)?o:null==(r=d.defaultVariants)?void 0:r.color,isDisabled:a.disableCopy,...$},H=(0,h.gy)(l),W=(0,y.useRef)(null),{copy:B,copied:K}=function({timeout:e=2e3}={}){let[t,n]=(0,y.useState)(null),[r,o]=(0,y.useState)(!1),[i,a]=(0,y.useState)(null),s=(0,y.useCallback)(()=>{i&&clearTimeout(i)},[i]),l=(0,y.useCallback)(t=>{s(),a(setTimeout(()=>o(!1),e)),o(t)},[s,e]);return{copy:(0,y.useCallback)(e=>{"clipboard"in navigator?navigator.clipboard.writeText(e).then(()=>l(!0)).catch(e=>n(e)):n(Error("useClipboard: navigator.clipboard is not supported"))},[l]),reset:(0,y.useCallback)(()=>{o(!1),n(null),s()},[s]),error:t,copied:r}}({timeout:E}),V=c&&Array.isArray(c),{isFocusVisible:U,isFocused:Y,focusProps:J}=(0,w.F)({autoFocus:P}),Z=(0,y.useMemo)(()=>d({...s,disableAnimation:z}),[(0,m.Xx)(s),z]),G=(0,y.useMemo)(()=>{if(!_||"string"!=typeof _)return _;let e=_.trim();return e?`${e} `:""},[_]),X=(0,v.W)(null==x?void 0:x.base,j),q=(0,y.useCallback)(()=>({className:Z.base({class:X}),...(0,g.z)(A,{enabled:I})}),[Z,X,V,A]),Q=(0,y.useCallback)(()=>{var e;if(k)return;let t="";"string"==typeof c?t=c:Array.isArray(c)&&c.forEach(e=>{var n,r;let o="string"==typeof e?e:null==(r=null==(n=null==e?void 0:e.props)?void 0:n.children)?void 0:r.toString();o&&(t+=o+"\n")});let n=S||t||(null==(e=W.current)?void 0:e.textContent)||"";B(n),null==R||R(n)},[B,S,k,R,c]),ee={"aria-label":"string"==typeof F.content?F.content:"Copy to clipboard",size:"sm",variant:"light",isDisabled:k,onPress:Q,isIconOnly:!0,...N},et=(0,y.useCallback)(()=>({...ee,"data-copied":(0,b.PB)(K),className:Z.copyButton({class:(0,v.W)(null==x?void 0:x.copyButton)})}),[Z,U,Y,k,null==x?void 0:x.copyButton,ee,J]);return{Component:D,as:u,domRef:H,preRef:W,children:c,slots:Z,classNames:x,copied:K,onCopy:Q,copyIcon:C,checkIcon:T,symbolBefore:G,isMultiLine:V,isFocusVisible:U,hideCopyButton:L,disableCopy:k,disableTooltip:M,hideSymbol:O,tooltipProps:F,getSnippetProps:q,getCopyButtonProps:et}}({...e,ref:t}),A=(0,y.useCallback)(({children:e})=>(0,r.jsx)(_.e,{...O,isDisabled:u||O.isDisabled,children:e}),[(0,m.Xx)(O)]),D=(0,y.useMemo)(()=>{if(P)return null;let e=T&&(0,y.cloneElement)(T,{className:s.checkIcon()}),t=c&&(0,y.cloneElement)(c,{className:s.copyIcon()}),n=(0,r.jsxs)(C.A,{...j(),children:[e,t]});return M?n:(0,r.jsx)(A,{children:n})},[s,null==l?void 0:l.copyButton,u,T,c,$,A,k,M,P]),I=(0,y.useMemo)(()=>R&&a&&Array.isArray(a)?(0,r.jsx)("div",{className:s.content({class:null==l?void 0:l.content}),children:a.map((e,t)=>(0,r.jsxs)("pre",{className:s.pre({class:null==l?void 0:l.pre}),children:[!L&&(0,r.jsx)("span",{className:s.symbol({class:null==l?void 0:l.symbol}),children:S}),e]},`${t}-${e}`))}):(0,r.jsxs)("pre",{ref:i,className:s.pre({class:null==l?void 0:l.pre}),children:[!L&&(0,r.jsx)("span",{className:s.symbol({class:null==l?void 0:l.symbol}),children:S}),a]}),[a,L,R,S,null==l?void 0:l.pre,s]);return(0,r.jsxs)(n,{ref:o,...N(),children:[I,D]})});T.displayName="NextUI.Snippet";var S=(0,c.tv)({base:["px-2","py-1","h-fit","font-mono","font-normal","inline-block","whitespace-nowrap"],variants:{color:{default:u.J.flat.default,primary:u.J.flat.primary,secondary:u.J.flat.secondary,success:u.J.flat.success,warning:u.J.flat.warning,danger:u.J.flat.danger},size:{sm:"text-small",md:"text-medium",lg:"text-large"},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"}},defaultVariants:{color:"default",size:"sm",radius:"sm"}}),k=(0,p.Gp)((e,t)=>{let{Component:n,children:o,getCodeProps:i}=function(e){let[t,n]=(0,p.oe)(e,S.variantKeys),{as:r,children:o,className:i,...a}=t,s=(0,y.useMemo)(()=>S({...n,className:i}),[(0,m.Xx)(n),i]);return{Component:r||"code",children:o,getCodeProps:()=>({className:s,...a})}}({...e});return(0,r.jsx)(n,{ref:t,...i(),children:o})});k.displayName="NextUI.Code";var M=n(9272),L=n(2314),P=n(501),O=n(4697),R=n(3376),$=n(5302),N=n(9466),j=n(4141);function A({children:e,isValidProp:t,...n}){t&&(0,N.K)(t),(n={...(0,y.useContext)($._),...n}).isStatic=(0,j.h)(()=>n.isStatic);let o=(0,y.useMemo)(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return(0,r.jsx)($._.Provider,{value:o,children:e})}var D=({children:e,navigate:t,disableAnimation:n,useHref:o,disableRipple:i=!1,skipFramerMotionAnimations:a=n,reducedMotion:s="never",validationBehavior:l,locale:u="en-US",defaultDates:c,createCalendar:d,...p})=>{let h=e;t&&(h=(0,r.jsx)(P.pG,{navigate:t,useHref:o,children:h}));let g=(0,y.useMemo)(()=>(n&&a&&(R.c.skipAnimations=!0),{createCalendar:d,defaultDates:c,disableAnimation:n,disableRipple:i,validationBehavior:l}),[d,null==c?void 0:c.maxDate,null==c?void 0:c.minDate,n,i,l]);return(0,r.jsx)(f.a,{value:g,children:(0,r.jsx)(L.b,{locale:u,children:(0,r.jsx)(A,{reducedMotion:s,children:(0,r.jsx)(O.N3,{...p,children:h})})})})},I=n(8039),z=n(5567),F=n(5386),H=n(683),W=n(4874),B=n(715),K=n(1463),V=n(9676),U=n(6721),Y=n(4688),J=n(4115),Z=n(3105),G=n(5720),X=n(5993),q=n(4736),Q=n(1773),ee=n(872),et=n(7160);let en="iframe",er=e=>{var t;null===(t=window.top)||void 0===t||t.postMessage({from:en,...e,source:et.$6},"*")},eo=(0,B.debounce)(er,100),ei=()=>{(0,y.useEffect)(()=>{let e=window!==window.top;if("/bridge"!==window.location.pathname&&e&&window.top){console.log("[Dev mode] iframe start");let e=!1,t=null,n=[],r=()=>{e||(er({type:B.MessageWorkerType.init}),er({type:B.MessagePanelType.show}),t=setTimeout(r,1e3))},o=()=>{console.log("[Dev mode] iframe disconnect"),e=!1,t&&clearTimeout(t),n.forEach(e=>e()),W.$.getActions().disconnect()};return window.addEventListener("message",t=>{var n,r,o;if(t.source!==window.top||(null===(n=t.data)||void 0===n?void 0:n.source)!==et.$6||(null===(r=t.data)||void 0===r?void 0:r.from)===en)return;let i=(null===(o=t.data)||void 0===o?void 0:o.type)==="hook-render"?t.data.data:t.data;i.type===B.DevToolMessageEnum.init&&(0,et.Ws)(()=>{e=!0,W.$.getActions().setRender(i.data)}),i.type===B.DevToolMessageEnum.dir&&(0,et.Ws)(()=>{X.i.getActions().set(i.data)}),i.type===B.DevToolMessageEnum.ready&&(0,et.Ws)(()=>{i.data&&V.p.getActions().addNode(i.data)}),i.type===B.DevToolMessageEnum.unmount&&(0,et.Ws)(()=>{var e,t,n,r,o,i,a,s,l,u,c,d,f,p,h,g,m,v,b,y;null===U.F||void 0===U.F||null===(n=U.F.getActions)||void 0===n||null===(t=n.call(U.F))||void 0===t||null===(e=t.clear)||void 0===e||e.call(t),null===V.p||void 0===V.p||null===(i=V.p.getActions)||void 0===i||null===(o=i.call(V.p))||void 0===o||null===(r=o.clear)||void 0===r||r.call(o),null===X.i||void 0===X.i||null===(l=X.i.getActions)||void 0===l||null===(s=l.call(X.i))||void 0===s||null===(a=s.clear)||void 0===a||a.call(s),null===Q.O||void 0===Q.O||null===(d=Q.O.getActions)||void 0===d||null===(c=d.call(Q.O))||void 0===c||null===(u=c.clear)||void 0===u||u.call(c),null===Z.K||void 0===Z.K||null===(h=Z.K.getActions)||void 0===h||null===(p=h.call(Z.K))||void 0===p||null===(f=p.clear)||void 0===f||f.call(p),null===K.M||void 0===K.M||null===(m=K.M.getActions())||void 0===m||null===(g=m.clear)||void 0===g||g.call(m),null===J.a||void 0===J.a||null===(y=J.a.getActions)||void 0===y||null===(b=y.call(J.a))||void 0===b||null===(v=b.clear)||void 0===v||v.call(b)}),i.type===B.DevToolMessageEnum.hmr&&(0,et.Ws)(()=>{G.m.getActions().update(i.data)}),i.type===B.DevToolMessageEnum.trigger&&(0,et.Ws)(()=>{ee.P.getActions().update(i.data)}),i.type===B.DevToolMessageEnum.run&&(0,et.Ws)(()=>{q.g.getActions().update(i.data)}),i.type===B.DevToolMessageEnum.detail&&(0,et.Ws)(()=>{i.data&&Z.K.getActions().addNode(i.data),Z.K.getActions().setLoading(!1)}),i.type===B.DevToolMessageEnum.config&&(0,et.Ws)(()=>{var e,t;Y.Z.getActions().setEnableHover(null===(e=i.data)||void 0===e?void 0:e.enableHover),Y.Z.getActions().setEnableUpdate(null===(t=i.data)||void 0===t?void 0:t.enableUpdate)}),i.type===B.DevToolMessageEnum.chunk&&(0,et.Ws)(()=>{U.F.getActions().setChunk(i.data)})}),console.log("[Dev mode] iframe connect"),W.$.getActions().connect(),r(),n.push(Q.O.subscribe(e=>e.select,()=>{let e=Q.O.getReadonlyState().select;e?(Z.K.getActions().setLoading(!0),er({type:B.MessagePanelType.nodeSelect,data:e})):er({type:B.MessagePanelType.nodeSelect,data:null})})),n.push(Q.O.subscribe(e=>e.reload,()=>{let e=Q.O.getReadonlyState().select;e&&(Z.K.getActions().setLoading(!0),eo({type:B.MessagePanelType.nodeSelectForce,data:e}))})),n.push(Q.O.subscribe(e=>e.store,()=>{let e=Q.O.getReadonlyState().select;e&&eo({type:B.MessagePanelType.nodeStore,data:e})})),n.push(Q.O.subscribe(e=>e.trigger,()=>{let e=Q.O.getReadonlyState().select;e&&eo({type:B.MessagePanelType.nodeTrigger,data:e})})),n.push(Q.O.subscribe(e=>e.hover,()=>er({type:B.MessagePanelType.nodeHover,data:Q.O.getReadonlyState().hover}))),n.push(K.M.subscribe(e=>e.state,(0,B.debounce)(()=>er({type:B.MessagePanelType.nodeSubscriber,data:K.M.getReadonlyState().state}),100))),n.push(Y.Z.subscribe(e=>e.state.enableHover,()=>er({type:B.MessagePanelType.enableHover,data:Y.Z.getReadonlyState().state.enableHover}))),n.push(Y.Z.subscribe(e=>e.state.enableUpdate,()=>er({type:B.MessagePanelType.enableUpdate,data:Y.Z.getReadonlyState().state.enableUpdate}))),n.push(U.F.subscribe(e=>e.id,()=>{let e=U.F.getReadonlyState().id;e&&er({type:B.MessagePanelType.chunk,data:e})})),n.push(J.a.subscribe(e=>e.store,()=>{let e=J.a.getReadonlyState().store;e&&er({type:B.MessagePanelType.varStore,data:e})})),()=>{o()}}},[])},ea=()=>{let[e,t]=(0,y.useState)(!1);return(0,y.useEffect)(()=>{t(!0)},[]),e};n(41),n(5988);let es=(e,t)=>'function loadScript(url) {\n const script = document.createElement("script");\n return new Promise((resolve, reject) => {\n script.src = url;\n script.onload = resolve;\n script.onerror = reject;\n document.head.appendChild(script);\n }).finally(() => script.remove());\n}\n\nfunction loadIframe(url) {\n return new Promise((resolve, reject) => {\n const exist = document.getElementById("my-react-bridge-'.concat(t,'");\n if (exist) {\n resolve(exist);\n return;\n }\n const iframe = document.createElement("iframe");\n iframe.src = url;\n iframe.id = "my-react-bridge-').concat(t,'";\n iframe.style = "display: none;";\n iframe.onload = resolve;\n iframe.onerror = reject;\n document.body.appendChild(iframe);\n }).then(() => document.getElementById("my-react-bridge-').concat(t,'"));\n}\n\nasync function init () {\n const from = "hook";\n\n const source = "@my-react/devtool";\n\n let iframe = await loadIframe("').concat(e,"/bridge?token=").concat(t,"\");\n\n if (typeof __MY_REACT_DEVTOOL_RUNTIME__ !== 'function') {\n await loadScript(\"").concat(e,'/bundle/hook.js");\n }\n\n const bridge = iframe.contentWindow;\n\n window.addEventListener(\n "message",\n (e) => {\n if (e.source === window && e.data && e.data.source === source && e.data.from === from) {\n bridge?.postMessage?.(e.data, "*");\n }\n if (e.source === bridge && e.data && e.data.source === source && e.data.from === \'iframe\' && e.data.type === \'bridge-init\') {\n __MY_REACT_DEVTOOL_RUNTIME__?.init?.();\n }\n },\n );\n\n const allDispatch = window["__@my-react/dispatch__"];\n\n allDispatch.forEach((d) => __MY_REACT_DEVTOOL_RUNTIME__?.(d));\n\n __MY_REACT_DEVTOOL_RUNTIME__?.init?.();\n}\n\ninit();\n');function el(e){let{Component:t,pageProps:n,router:o}=e,{render:a,state:u,name:c,url:d,reconnect:f}=(0,W.$)(e=>({render:e.render,state:e.state,name:e.name,url:e.url,reconnect:e.cb})),p=ea(),{query:h}=(0,z.useRouter)(),g="/devTool"===o.pathname,m=(0,r.jsx)(t,{...n});if(g&&"boolean"!=typeof a){let e=p?window.location.origin:"";m=(0,r.jsx)("div",{className:"flex items-center justify-center w-screen h-screen",children:(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)(l.c,{color:"primary",size:"lg"}),(0,r.jsx)("div",{className:"text-center text-[18px] text-red-300 mt-2",children:"Waiting for a DevTool Engine connect..."}),!1,(0,r.jsx)(T,{symbol:"",color:"success",tooltipProps:{content:"copy to console to run"},size:"sm",className:"mt-1 max-w-[80vw] overflow-auto",children:es(e,null==h?void 0:h.token)})]})})}else g&&!a&&(m=(0,r.jsx)("div",{className:"flex items-center justify-center w-screen h-screen",children:(0,r.jsxs)("div",{className:"text-center text-[20px] text-red-400 px-10",children:[(0,r.jsxs)("div",{children:["This ","page"," not render By ",(0,r.jsx)(k,{className:" text-inherit text-[20px] ml-2",children:"@my-react"})]}),(0,r.jsx)(M.q,{className:"my-2"}),(0,r.jsx)(T,{symbol:"",color:"warning",variant:"solid",hideCopyButton:!0,children:"https://github.com/MrWangJustToDo/MyReact"}),(0,r.jsx)("div",{className:"fixed top-4 right-4",children:(0,r.jsx)(_.e,{content:(0,r.jsx)("p",{className:u?"text-green-400":"text-red-400",children:u?"DevTool Connect":"DevTool DisConnect"}),showArrow:!0,placement:"bottom-end",children:(0,r.jsx)(C.A,{isIconOnly:!0,disabled:u,onPress:()=>null==f?void 0:f(),children:u?(0,r.jsx)(I.NhS,{className:"text-green-500"}):(0,r.jsx)(I.xrR,{className:" text-red-500"})})})})]})}));(0,et.Vz)(),ei(),(0,H.FV)();let v=p?m:(0,r.jsx)("div",{className:"fixed w-full h-full flex items-center justify-center",children:(0,r.jsx)(l.c,{color:"primary",size:"lg"})});return(0,r.jsxs)(D,{children:[(0,r.jsx)(s(),{id:"babad980b5499b20",dynamic:[i().style.fontFamily,i().style.fontFamily,i().style.fontFamily],children:"html{font-family:".concat(i().style.fontFamily,"!important;--root-font--:").concat(i().style.fontFamily,"}body{font-family:").concat(i().style.fontFamily,"!important}")}),(0,r.jsx)(F.f,{attribute:"class",defaultTheme:"light",children:v})]})}},2825:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});let r=!1},8344:function(e,t,n){"use strict";n.d(t,{VB:function(){return o},VR:function(){return r}});let r=(e,t)=>t.some(t=>(null==e?void 0:e.t)&t),o=(e,t,n)=>{let r=[],o=[e];for(;o.length;){let e=o.pop();if(e&&(n(e)||r.push(e),e.c&&!t(e)))for(let t=e.c.length-1;t>=0;t--)o.push(e.c[t])}return r}},9068:function(e,t,n){"use strict";var r=n(4675);n(5355);var o=n(9589),i=o&&"object"==typeof o&&"default"in o?o:{default:o},a=void 0!==r&&r.env&&!0,s=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,n=t.name,r=void 0===n?"stylesheet":n,o=t.optimizeForSpeed,i=void 0===o?a:o;u(s(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",u("boolean"==typeof i,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=i,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l=document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(a||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t>>0},d={};function f(e,t){if(!t)return"jsx-"+e;var n=String(t),r=e+n;return d[r]||(d[r]="jsx-"+c(e+"-"+n)),d[r]}function p(e,t){var n=e+t;return d[n]||(d[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[n]}var h=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,o=t.optimizeForSpeed,i=void 0!==o&&o;this._sheet=r||new l({name:"styled-jsx",optimizeForSpeed:i}),this._sheet.inject(),r&&"boolean"==typeof i&&(this._sheet.setOptimizeForSpeed(i),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),r=n.styleId,o=n.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var i=o.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=i,this._instancesCounts[r]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],r=e[1];return i.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,r=e.id;if(n){var o=f(r,n);return{styleId:o,rules:Array.isArray(t)?t.map(function(e){return p(o,e)}):[p(o,t)]}}return{styleId:f(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),g=o.createContext(null);g.displayName="StyleSheetContext";var m=i.default.useInsertionEffect||i.default.useLayoutEffect,v=new h;function b(e){var t=v||o.useContext(g);return t&&m(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}b.dynamic=function(e){return e.map(function(e){return f(e[0],e[1])}).join(" ")},t.style=b},3443:function(e,t,n){"use strict";e.exports=n(9068).style},5355:function(){},5988:function(){},41:function(){},3760:function(e){e.exports={style:{fontFamily:"'__Fira_Code_5c49b7', '__Fira_Code_Fallback_5c49b7'",fontWeight:400,fontStyle:"normal"},className:"__className_5c49b7",variable:"__variable_5c49b7"}},5567:function(e,t,n){e.exports=n(1823)},4675:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n"),e:r};if("Error"===n)return{i:o,t:n,v:e.message,e:r};if("object"==typeof e&&null!==e)return{i:o,t:n,v:Object.prototype.toString.call(e),e:r};return{i:o,t:n,v:String(e),e:r}}catch(e){return{i:NaN,t:"ReadError",v:"Read data error: "+e.message,e:!1}}},E=function(e,t){return void 0===t&&(t=3),b=new WeakMap,x(e,t)},C=function(e){var t=m.get(e);if(t){g=!0;var n=x(t);return g=!1,n}},T=0,S=function(e){this.i=e||"".concat(T++)};(r=l||(l={}))[r.__initial__=0]="__initial__",r[r.__class__=1]="__class__",r[r.__function__=2]="__function__",r[r.__lazy__=4]="__lazy__",r[r.__memo__=8]="__memo__",r[r.__forwardRef__=16]="__forwardRef__",r[r.__provider__=32]="__provider__",r[r.__consumer__=64]="__consumer__",r[r.__portal__=128]="__portal__",r[r.__null__=256]="__null__",r[r.__text__=512]="__text__",r[r.__empty__=1024]="__empty__",r[r.__plain__=2048]="__plain__",r[r.__strict__=4096]="__strict__",r[r.__suspense__=8192]="__suspense__",r[r.__fragment__=16384]="__fragment__",r[r.__keepLive__=32768]="__keepLive__",r[r.__scope__=65536]="__scope__",r[r.__comment__=131072]="__comment__",r[r.__profiler__=262144]="__profiler__",r[r.__compiler__=524288]="__compiler__";var k=new Map,M=new Map,L=new Map,P=new Map,O={},R=0,$=function(e,t){var n=null!==t.key&&void 0!==t.key;n&&!O[t.key]&&(O[t.key]=++R+"");var r=Y(t);O[r]||(O[r]=++R+""),e.k=n?O[t.key]:void 0,e.t=U(t),e.n=O[r]},N=function(e,t,n){$(e,t),e.p=Q(t,n),e._s=G(t),e._t=X(t),e._h=q(t,n),t.type&l.__class__&&(e.s=ee(t,n))},j=function(e,t){if(!e)return null;var n=k.get(e),r=n||new S;return r.c=null,t?(t.c=t.c||[],t.c.push(r),r._d=t._d+1):r._d=0,$(r,e),n||(k.set(e,r),L.set(r.i,e),P.set(r.i,r)),e.child&&j(e.child,r),e.sibling&&j(e.sibling,t),{current:r,directory:O}},A=function(e,t,n){if(!e)return null;t.add(e);var r=k.get(e);if(!r&&!n)return null;var o=r||new S;return o.c=null,n&&(n.c=n.c||[],n.c.push(o),o._d=n._d+1),$(o,e),r||(k.set(e,o),L.set(o.i,e),P.set(o.i,o)),e.child&&A(e.child,t,o),e.sibling&&A(e.sibling,t,n),{current:o,directory:O}},D=function(e){var t=k.get(e);t&&(L.delete(t.i),P.delete(t.i)),k.delete(e),M.delete(e)},I=function(e){return k.get(e)},z=function(e){var t=I(e);return null==t?void 0:t.i},F=function(e){return e?e.parent?F(e.parent):I(e):null},H=function(e){var t=new WeakSet,n=[];return e.listToFoot(function(e){if(!t.has(e)){t.add(e);var r=A(e,t);r&&r.current&&n.push(r.current)}}),{result:n,directory:O}},W=function(e,t){var n=I(e);if(!n)throw Error("plainNode not found, look like a bug for @my-react/devtools");var r=M.get(e);if(r)return N(r,e,t),r;var o=new S(n.i);return N(o,e,t),M.set(e,o),o},B=function(e){return L.get(e)},K=[],V=Symbol.for("react.memo_cache_sentinel");Object.keys(l).forEach(function(e){e.startsWith("__")||K.push(+e)});var U=function(e){var t,n=e.type,r=!1;return null===(t=e.hookList)||void 0===t||t.listToFoot(function(e){var t;!r&&e.type===u.HOOK_TYPE.useMemo&&(null===(t=e.result)||void 0===t?void 0:t[V])&&(r=!0)}),r?u.merge(n,l.__compiler__):n},Y=function(e){if(e.type&l.__provider__){var t=e.elementType,n=t.Context.displayName;return"".concat(n||"Context",".Provider")}if(e.type&l.__consumer__){var t=e.elementType,r=t.Context.displayName;return"".concat(r||"Context",".Consumer")}if(e.type&l.__lazy__){var t=e.elementType,o=null==t?void 0:t.render,i=(null==o?void 0:o.displayName)||(null==o?void 0:o.name)||"",a=e._debugElement,s=null==a?void 0:a.type;return i=(null==s?void 0:s.displayName)||i,"".concat(i||"Anonymous")}if(e.type&l.__portal__)return"Portal";if(e.type&l.__null__)return"Null";if(e.type&l.__empty__)return"Empty";if(e.type&l.__scope__)return"Scope";if(e.type&l.__strict__)return"Strict";if(e.type&l.__profiler__)return"Profiler";if(e.type&l.__suspense__)return"Suspense";if(e.type&l.__comment__)return"Comment";if(e.type&l.__keepLive__)return"KeepAlive";if(e.type&l.__fragment__)return"Fragment";if(e.type&l.__text__)return"text";if("string"==typeof e.elementType)return"".concat(e.elementType);if("function"==typeof e.elementType){var t=e.elementType,u=t.displayName||t.name||"Anonymous",a=e._debugElement,s=null==a?void 0:a.type;return u=(null==s?void 0:s.displayName)||u,"".concat(u)}return"unknown"},J=function(e){switch(e){case u.HOOK_TYPE.useReducer:return"Reducer";case u.HOOK_TYPE.useEffect:return"Effect";case u.HOOK_TYPE.useLayoutEffect:return"LayoutEffect";case u.HOOK_TYPE.useMemo:return"Memo";case u.HOOK_TYPE.useCallback:return"Callback";case u.HOOK_TYPE.useRef:return"Ref";case u.HOOK_TYPE.useImperativeHandle:return"ImperativeHandle";case u.HOOK_TYPE.useDebugValue:return"DebugValue";case u.HOOK_TYPE.useContext:return"Context";case u.HOOK_TYPE.useDeferredValue:return"DeferredValue";case u.HOOK_TYPE.useTransition:return"Transition";case u.HOOK_TYPE.useId:return"Id";case u.HOOK_TYPE.useSyncExternalStore:return"SyncExternalStore";case u.HOOK_TYPE.useInsertionEffect:return"InsertionEffect";case u.HOOK_TYPE.useState:return"State";case u.HOOK_TYPE.useSignal:return"Signal"}},Z=function(e){return e.displayName||"Context"},G=function(e){return e._debugElement?e._debugElement._source:null},X=function(e){for(var t=[],n=e,r=null==n?void 0:n.parent;r;){var o=I(r).i;t.push(o),n=r,r=r.parent}if(n){var i=n.renderDispatch;i&&i.version?t.push("@my-react ".concat(i.version)):t.push("@my-react legacy")}return t},q=function(e,t){var n,r=[],o=e.hookList,i={};return null===(n=null==o?void 0:o.toArray())||void 0===n||n.forEach(function(e,n){var o=e._debugStack;if(o&&Array.isArray(o)&&0!==o.length)for(var a="",s=0;st.left+t.width&&(a=t.left+t.width-i-5),{style:{top:r+="px",left:a+="px"}});es(this.tip.style,l.style)},e}(),ec=function(){function e(e){this.agent=e;var t=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;this.window=t;var n=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;this.tipBoundsWindow=n;var r=t.document;this.container=r.createElement("div"),this.container.style.zIndex="10000000",this.container.setAttribute("data-select","@my-react"),this.tip=new eu(r,this.container),this.rects=[],this.agent=e,r.body.appendChild(this.container)}return e.prototype.remove=function(){this.tip.remove(),this.rects.forEach(function(e){e.remove()}),this.rects.length=0,this.container.parentNode&&this.container.parentNode.removeChild(this.container)},e.prototype.inspect=function(e,t){for(var n=this,r=t.filter(function(e){return e.nodeType===Node.ELEMENT_NODE});this.rects.length>r.length;)this.rects.pop().remove();if(0!==r.length){for(;this.rects.length=0&&o.left>=0&&o.right<=(window.innerWidth||document.documentElement.clientWidth)&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)){var i=o.left-.5,a=o.top-.5,s=o.width+1,l=o.height+1;n.strokeRect(i<0?0:i,a<0?0:a,s>window.innerWidth?window.innerWidth:s,l>window.innerHeight?window.innerHeight:l)}}catch(e){}},this.flashPending=function(){var e=t.mask.getContext("2d"),n=new Set(t.__pendingUpdate__);t.__pendingUpdate__.clear(),e.strokeStyle=ep.update,n.forEach(function(n){return t.processHighlight(n,e)});var r=new Set(t.__pendingAppend__);t.__pendingAppend__.clear(),e.strokeStyle=ep.append,r.forEach(function(n){return t.processHighlight(n,e)});var o=new Set(t.__pendingSetRef__);t.__pendingSetRef__.clear(),e.strokeStyle=ep.setRef,o.forEach(function(n){return t.processHighlight(n,e)});var i=new Set(t.__pendingWarn__);t.__pendingWarn__.clear(),e.strokeStyle=ep.warn,i.forEach(function(n){return t.processHighlight(n,e)}),setTimeout(function(){e.clearRect(0,0,t.width,t.height),t.running=!1,(t.__pendingUpdate__.size||t.__pendingAppend__.size||t.__pendingSetRef__.size)&&(t.running=!0,t.flashPending())},100)}},eg=function(e,t){e.$$hasDevToolInject||(e.$$hasDevToolInject=!0,function(e){if("function"==typeof e.onFiberUnmount)e.onFiberUnmount(D);else{var t=e.patchToFiberUnmount;e.patchToFiberUnmount=function(e){t.call(this,e),D(e)}}}(e),Object.defineProperty(e,"__devtool_runtime__",{value:t}))};t.DevToolMessageEnum=void 0,(o=t.DevToolMessageEnum||(t.DevToolMessageEnum={})).init="init",o.dir="dir",o.config="config",o.ready="ready",o.update="update",o.changed="changed",o.highlight="highlight",o.trigger="trigger",o.hmr="hmr",o.run="run",o.detail="detail",o.unmount="unmount",o.warn="warn",o.error="error",o.chunk="chunk";var em=function(e,t){var n=null;return function(){for(var r=[],o=0;o0}).forEach(function(t){n[t]=e._run[t]}),e._notify({type:t.DevToolMessageEnum.run,data:n})}},100),this.notifyAll=em(function(){e.notifyDetector(),e._needUnmount&&(e._notify({type:t.DevToolMessageEnum.unmount,data:null}),e._needUnmount=!1),e._dispatch.size&&e._dispatch.forEach(function(t){e.notifyDispatch(t)}),e.notifyConfig(),e.notifyDir(),e.notifyTrigger(),e.notifyHMR(),e.notifySelect(),e.notifyWarn(),e.notifyError()},200),this.update=new eh(this)}e.prototype.getDispatch=function(){return Array.from(this._dispatch)},Object.defineProperty(e.prototype,"hasEnable",{get:function(){return this._enabled||this._forceEnable},enumerable:!1,configurable:!0}),e.prototype.setHoverStatus=function(e){this._enableHover=e},e.prototype.setUpdateStatus=function(e){this._enableUpdate=e},e.prototype.addDispatch=function(e){e&&(this._detector=!0),this.hasDispatch(e)||(eg(e,this),this._dispatch.add(e),this.patchDispatch(e))},e.prototype.patchDispatch=function(e){var t,n,r,o,i,a,s,l,d,f,p,h,g,m=this;if(!e.$$hasDevToolPatch){e.$$hasDevToolPatch=!0;var v=ev(function(){m.hasEnable&&(m.notifyDispatch(e),m.notifySelect())},200),b=function(){m._needUnmount=!0,m.delDispatch(e)};if("function"==typeof e.onAfterCommit&&"function"==typeof e.onAfterUpdate)e.onAfterCommit(v),null===(t=e.onAfterUnmount)||void 0===t||t.call(e,b),null===(n=e.onFiberState)||void 0===n||n.call(e,function(e){var t=z(e);t&&(m._state[t]=m._state[t]?m._state[t]+1:1)}),null===(r=e.onFiberTrigger)||void 0===r||r.call(e,function(e){var t=z(e);t&&(m._trigger[t]=m._trigger[t]?m._trigger[t]+1:1,m.hasEnable&&m.notifyTrigger())}),null===(o=e.onPerformanceWarn)||void 0===o||o.call(e,function(e){var t=z(e);t&&(m.hasEnable&&m._enableUpdate&&m.update.highLight(e,"warn"),m.notifyHighlight(t,"performance"))}),null===(i=e.onFiberChange)||void 0===i||i.call(e,function(e){var t=H(e).directory;u.isNormalEquals(m._dir,t)||(m._dir=c({},t),m.notifyDir()),m.notifyChanged(e)}),null===(a=e.onFiberUpdate)||void 0===a||a.call(e,function(e){var t=z(e);t&&m.hasEnable&&t===m._selectId&&m.notifySelect()}),null===(s=e.onFiberHMR)||void 0===s||s.call(e,function(t){var n=z(t);n&&(m._hmr[n]=m._hmr[n]?m._hmr[n]+1:1,m.hasEnable&&(m.notifyHMR(),m.notifyDispatch(e,!0)))}),null===(l=e.onAfterFiberRun)||void 0===l||l.call(e,function(e){var t,n,r=z(e);r&&(m._run[r]?m._run[r]={c:m._run[r].c+1,t:null===(t=e._debugRenderState)||void 0===t?void 0:t.timeForRender}:m._run[r]={c:1,t:null===(n=e._debugRenderState)||void 0===n?void 0:n.timeForRender},m.notifyRun())}),null===(d=e.onDOMUpdate)||void 0===d||d.call(e,function(e){m.hasEnable&&m._enableUpdate&&m.update.highLight(e,"update")}),null===(f=e.onDOMAppend)||void 0===f||f.call(e,function(e){m.hasEnable&&m._enableUpdate&&m.update.highLight(e,"append")}),null===(p=e.onDOMSetRef)||void 0===p||p.call(e,function(e){m.hasEnable&&m._enableUpdate&&m.update.highLight(e,"setRef")}),null===(h=e.onFiberError)||void 0===h||h.call(e,function(e){for(var t=[],n=1;n{let t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(null==t?void 0:t[e])||{}},o=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],i=(e,t)=>{if(t.includes("-")){let[n]=t.split("-");if(n.includes(e))return!1}return!0},a=(e,t)=>{if(t.includes("-")){let[,n]=t.split("-");return`${e}-${n}`}return e}},2920:function(e,t,n){"use strict";n.d(t,{D:function(){return r},M:function(){return o}});var[r,o]=(0,n(4083).k)({name:"ButtonGroupContext",strict:!1})},3412:function(e,t,n){"use strict";n.d(t,{A:function(){return _}});var r=n(2920),o=n(7510),i=n(1273),a=n(9589),s=n(709),l=n(6367),u=n(2014),c=n(4211),d=n(7433),f=n(8762),p=n(7414),h=n(1596),g=n(5867),m=n(704),v=n(6897),b=n(4189),y=n(217),w=(0,b.Gp)((e,t)=>{let{Component:n,domRef:b,children:w,styles:_,spinnerSize:x,spinner:E=(0,y.jsx)(m.c,{color:"current",size:x}),spinnerPlacement:C,startContent:T,endContent:S,isLoading:k,disableRipple:M,getButtonProps:L,getRippleProps:P,isIconOnly:O}=function(e){var t,n,m,v,b,y,w,_,x;let E=(0,r.M)(),C=(0,o.w)(),T=!!E,{ref:S,as:k,children:M,startContent:L,endContent:P,autoFocus:O,className:R,spinner:$,isLoading:N=!1,disableRipple:j=!1,fullWidth:A=null!=(t=null==E?void 0:E.fullWidth)&&t,radius:D=null==E?void 0:E.radius,size:I=null!=(n=null==E?void 0:E.size)?n:"md",color:z=null!=(m=null==E?void 0:E.color)?m:"default",variant:F=null!=(v=null==E?void 0:E.variant)?v:"solid",disableAnimation:H=null!=(y=null!=(b=null==E?void 0:E.disableAnimation)?b:null==C?void 0:C.disableAnimation)&&y,isDisabled:W=null!=(w=null==E?void 0:E.isDisabled)&&w,isIconOnly:B=null!=(_=null==E?void 0:E.isIconOnly)&&_,spinnerPlacement:K="start",onPress:V,onClick:U,...Y}=e,J=k||"button",Z="string"==typeof J,G=(0,c.gy)(S),X=null!=(x=j||(null==C?void 0:C.disableRipple))?x:H,{isFocusVisible:q,isFocused:Q,focusProps:ee}=(0,s.F)({autoFocus:O}),et=W||N,en=(0,a.useMemo)(()=>(0,f.L)({size:I,color:z,variant:F,radius:D,fullWidth:A,isDisabled:et,isInGroup:T,disableAnimation:H,isIconOnly:B,className:R}),[I,z,F,D,A,et,T,B,H,R]),{onPress:er,onClear:eo,ripples:ei}=(0,g.i)(),ea=(0,a.useCallback)(e=>{X||et||H||!G.current||er(e)},[X,et,H,G,er]),{buttonProps:es,isPressed:el}=(0,p.j)({elementType:k,isDisabled:et,onPress:(0,l.t)(V,ea),onClick:U,...Y},G),{isHovered:eu,hoverProps:ec}=(0,h.X)({isDisabled:et}),ed=(0,a.useCallback)((e={})=>({"data-disabled":(0,i.PB)(et),"data-focus":(0,i.PB)(Q),"data-pressed":(0,i.PB)(el),"data-focus-visible":(0,i.PB)(q),"data-hover":(0,i.PB)(eu),"data-loading":(0,i.PB)(N),...(0,u.d)(es,ee,ec,(0,d.z)(Y,{enabled:Z}),(0,d.z)(e))}),[N,et,Q,el,Z,q,eu,es,ee,ec,Y]),ef=e=>(0,a.isValidElement)(e)?(0,a.cloneElement)(e,{"aria-hidden":!0,focusable:!1,tabIndex:-1}):null,ep=ef(L);return{Component:J,children:M,domRef:G,spinner:$,styles:en,startContent:ep,endContent:ef(P),isLoading:N,spinnerPlacement:K,spinnerSize:(0,a.useMemo)(()=>({sm:"sm",md:"sm",lg:"md"})[I],[I]),disableRipple:X,getButtonProps:ed,getRippleProps:(0,a.useCallback)(()=>({ripples:ei,onClear:eo}),[ei,eo]),isIconOnly:B}}({...e,ref:t});return(0,y.jsxs)(n,{ref:b,className:_,...L(),children:[T,k&&"start"===C&&E,k&&O?null:w,k&&"end"===C&&E,S,!M&&(0,y.jsx)(v.L,{...P()})]})});w.displayName="NextUI.Button";var _=w},6737:function(e,t,n){"use strict";n.d(t,{Lj:function(){return r},y7:function(){return o}});var r={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]};r.easeOut,r.easeIn;var o={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:r.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:r.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:r.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:r.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:r.ease}},exit:{opacity:0,transition:{duration:.3,ease:r.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}}},7433:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var r=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),o=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),i=/^(data-.*)$/,a=/^(aria-.*)$/,s=/^(on[A-Z].*)$/;function l(e,t={}){let{labelable:n=!0,enabled:l=!0,propNames:u,omitPropNames:c,omitEventNames:d,omitDataProps:f,omitEventProps:p}=t,h={};if(!l)return e;for(let t in e)!((null==c?void 0:c.has(t))||(null==d?void 0:d.has(t))&&s.test(t)||s.test(t)&&!o.has(t)||f&&i.test(t)||p&&s.test(t))&&(Object.prototype.hasOwnProperty.call(e,t)&&(r.has(t)||n&&a.test(t)||(null==u?void 0:u.has(t))||i.test(t))||s.test(t))&&(h[t]=e[t]);return h}},4083:function(e,t,n){"use strict";n.d(t,{k:function(){return o}});var r=n(9589);function o(e={}){let{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=e,i=r.createContext(void 0);return i.displayName=o,[i.Provider,function e(){var o;let a=r.useContext(i);if(!a&&t){let t=Error(n);throw t.name="ContextError",null==(o=Error.captureStackTrace)||o.call(Error,t,e),t}return a},i]}},7243:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(1273);function o(...e){return t=>{e.forEach(e=>(function(e,t){if(null!=e){if((0,r.mf)(e)){e(t);return}try{e.current=t}catch(n){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}})(e,t))}}},4211:function(e,t,n){"use strict";n.d(t,{fg:function(){return o},gy:function(){return i}});var r=n(9589);function o(e){return{UNSAFE_getDOMNode:()=>e.current}}function i(e){let t=(0,r.useRef)(null);return(0,r.useImperativeHandle)(e,()=>t.current),t}"undefined"!=typeof window&&window.document&&window.document.createElement},5867:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(9077),o=n(9589);function i(e={}){let[t,n]=(0,o.useState)([]),i=(0,o.useCallback)(e=>{let t=e.target,o=Math.max(t.clientWidth,t.clientHeight);n(t=>[...t,{key:(0,r.QI)(t.length.toString()),size:o,x:e.x-o/2,y:e.y-o/2}])},[]);return{ripples:t,onClear:(0,o.useCallback)(e=>{n(t=>t.filter(t=>t.key!==e))},[]),onPress:i,...e}}},6897:function(e,t,n){"use strict";n.d(t,{L:function(){return u}});var r=n(3264),o=n(4111),i=n(2414),a=n(217),s=()=>Promise.all([n.e(425),n.e(965)]).then(n.bind(n,2965)).then(e=>e.default),l=e=>{let{ripples:t=[],motionProps:n,color:l="currentColor",style:u,onClear:c}=e;return(0,a.jsx)(a.Fragment,{children:t.map(e=>{let t=Math.min(Math.max(.01*e.size,.2),e.size>100?.75:.5);return(0,a.jsx)(r.X,{features:s,children:(0,a.jsx)(o.M,{mode:"popLayout",children:(0,a.jsx)(i.m.span,{animate:{transform:"scale(2)",opacity:0},className:"nextui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:l,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:e.y,left:e.x,width:`${e.size}px`,height:`${e.size}px`,...u},transition:{duration:t},onAnimationComplete:()=>{c(e.key)},...n})})},e.key)})})};l.displayName="NextUI.Ripple";var u=l},1870:function(e,t,n){"use strict";function r(...e){for(var t,n,o=0,i="";oe?"true":void 0},9077:function(e,t,n){"use strict";let r,o,i;n.d(t,{kC:function(){return h},QI:function(){return g},Xx:function(){return v},Os:function(){return m}});var a=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t)=>function(){return t||(0,e[u(e)[0]])((t={exports:{}}).exports,t),t.exports},p=f({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var y=b.prototype=new v;y.constructor=b,h(y,m.prototype),y.isPureReactComponent=!0;var w=Array.isArray,_=Object.prototype.hasOwnProperty,x={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(e,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)_.call(n,o)&&!E.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1{if(t&&"object"==typeof t||"function"==typeof t)for(let o of u(t))d.call(e,o)||o===n||s(e,o,{get:()=>t[o],enumerable:!(r=l(t,o))||r.enumerable})})(!o&&r&&r.__esModule?i:s(i,"default",{value:r,enumerable:!0}),r);var h=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"";function g(e){return`${e}-${Math.floor(1e6*Math.random())}`}function m(e){for(let t in e)t.startsWith("on")&&delete e[t];return e}function v(e){if(!e||"object"!=typeof e)return"";try{return JSON.stringify(e)}catch(e){return""}}},4700:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4675),o={};function i(e,t,...n){var a;let s=t?` [${t}]`:" ",l=`[Next UI]${s}: ${e}`;if("undefined"!=typeof console&&!o[l]&&(o[l]=!0,(null==(a=null==r?void 0:r.env)?void 0:a.NODE_ENV)!=="production"))return console.warn(l,n)}},9272:function(e,t,n){"use strict";n.d(t,{q:function(){return p}});var r={px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},o=n(4189),i=(0,n(3427).tv)({base:"w-px h-px inline-block",variants:{isInline:{true:"inline-block",false:"block"}},defaultVariants:{isInline:!1}}),a=n(9077),s=n(1273),l=n(1870),u=n(9589),c=e=>{var t;return null!=(t=r[e])?t:e},d=n(217),f=(0,o.Gp)((e,t)=>{let{Component:n,getSpacerProps:r}=function(e){let[t,n]=(0,o.oe)(e,i.variantKeys),{as:r,className:d,x:f=1,y:p=1,...h}=t,g=(0,u.useMemo)(()=>i({...n,className:d}),[(0,a.Xx)(n),d]),m=c(f),v=c(p);return{Component:r||"span",getSpacerProps:(e={})=>({...e,...h,"aria-hidden":(0,s.PB)(!0),className:(0,l.W)(g,e.className),style:{...e.style,...h.style,marginLeft:m,marginTop:v}})}}({...e});return(0,d.jsx)(n,{ref:t,...r()})});f.displayName="NextUI.Spacer";var p=f},704:function(e,t,n){"use strict";n.d(t,{c:function(){return c}});var r=n(4189),o=(0,n(3427).tv)({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",circle1:["absolute","w-full","h-full","rounded-full","animate-spinner-ease-spin","border-2","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["absolute","w-full","h-full","rounded-full","opacity-75","animate-spinner-linear-spin","border-2","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"],label:"text-foreground dark:text-foreground-dark font-regular"},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current"},white:{circle1:"border-b-white",circle2:"border-b-white"},default:{circle1:"border-b-default",circle2:"border-b-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground"}}),i=n(9077),a=n(1870),s=n(9589),l=n(217),u=(0,r.Gp)((e,t)=>{let{slots:n,classNames:u,label:c,getSpinnerProps:d}=function(e){let[t,n]=(0,r.oe)(e,o.variantKeys),{children:l,className:u,classNames:c,label:d,...f}=t,p=(0,s.useMemo)(()=>o({...n}),[(0,i.Xx)(n)]),h=(0,a.W)(null==c?void 0:c.base,u),g=d||l,m=(0,s.useMemo)(()=>g&&"string"==typeof g?g:f["aria-label"]?"":"Loading",[l,g,f["aria-label"]]),v=(0,s.useCallback)(()=>({"aria-label":m,className:p.base({class:h}),...f}),[m,p,h,f]);return{label:g,slots:p,classNames:c,getSpinnerProps:v}}({...e});return(0,l.jsxs)("div",{ref:t,...d(),children:[(0,l.jsxs)("div",{className:n.wrapper({class:null==u?void 0:u.wrapper}),children:[(0,l.jsx)("i",{className:n.circle1({class:null==u?void 0:u.circle1})}),(0,l.jsx)("i",{className:n.circle2({class:null==u?void 0:u.circle2})})]}),c&&(0,l.jsx)("span",{className:n.label({class:null==u?void 0:u.label}),children:c})]})});u.displayName="NextUI.Spinner";var c=u},4189:function(e,t,n){"use strict";n.d(t,{Gp:function(){return o},oe:function(){return i}});var r=n(9589);function o(e){return(0,r.forwardRef)(e)}var i=(e,t,n=!0)=>{if(!t)return[e,{}];let r=t.reduce((t,n)=>n in e?{...t,[n]:e[n]}:t,{});return n?[Object.keys(e).filter(e=>!t.includes(e)).reduce((t,n)=>({...t,[n]:e[n]}),{}),r]:[e,r]}},7510:function(e,t,n){"use strict";n.d(t,{a:function(){return r},w:function(){return o}});var[r,o]=(0,n(4083).k)({name:"ProviderContext",strict:!1})},5520:function(e,t,n){"use strict";n.d(t,{v:function(){return a}});var r=n(5278),o=n(3427),i=n(3123),a=(0,o.tv)({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...i.Dh],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:r.J.solid.foreground},primary:{base:"before:bg-primary",content:r.J.solid.primary},secondary:{base:"before:bg-secondary",content:r.J.solid.secondary},success:{base:"before:bg-success",content:r.J.solid.success},warning:{base:"before:bg-warning",content:r.J.solid.warning},danger:{base:"before:bg-danger",content:r.J.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]})},8762:function(e,t,n){"use strict";n.d(t,{D:function(){return s},L:function(){return a}});var r=n(5278),o=n(3427),i=n(3123),a=(0,o.tv)({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent","data-[pressed=true]:scale-[0.97]",...i.Dh],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-3 min-w-16 h-8 text-tiny gap-2 rounded-small",md:"px-4 min-w-20 h-10 text-small gap-2 rounded-medium",lg:"px-6 min-w-24 h-12 text-medium gap-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-0 !gap-0",false:"[&>svg]:max-w-[theme(spacing.8)]"},disableAnimation:{true:"!transition-none data-[pressed=true]:scale-100",false:"transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1},compoundVariants:[{variant:"solid",color:"default",class:r.J.solid.default},{variant:"solid",color:"primary",class:r.J.solid.primary},{variant:"solid",color:"secondary",class:r.J.solid.secondary},{variant:"solid",color:"success",class:r.J.solid.success},{variant:"solid",color:"warning",class:r.J.solid.warning},{variant:"solid",color:"danger",class:r.J.solid.danger},{variant:"shadow",color:"default",class:r.J.shadow.default},{variant:"shadow",color:"primary",class:r.J.shadow.primary},{variant:"shadow",color:"secondary",class:r.J.shadow.secondary},{variant:"shadow",color:"success",class:r.J.shadow.success},{variant:"shadow",color:"warning",class:r.J.shadow.warning},{variant:"shadow",color:"danger",class:r.J.shadow.danger},{variant:"bordered",color:"default",class:r.J.bordered.default},{variant:"bordered",color:"primary",class:r.J.bordered.primary},{variant:"bordered",color:"secondary",class:r.J.bordered.secondary},{variant:"bordered",color:"success",class:r.J.bordered.success},{variant:"bordered",color:"warning",class:r.J.bordered.warning},{variant:"bordered",color:"danger",class:r.J.bordered.danger},{variant:"flat",color:"default",class:r.J.flat.default},{variant:"flat",color:"primary",class:r.J.flat.primary},{variant:"flat",color:"secondary",class:r.J.flat.secondary},{variant:"flat",color:"success",class:r.J.flat.success},{variant:"flat",color:"warning",class:r.J.flat.warning},{variant:"flat",color:"danger",class:r.J.flat.danger},{variant:"faded",color:"default",class:r.J.faded.default},{variant:"faded",color:"primary",class:r.J.faded.primary},{variant:"faded",color:"secondary",class:r.J.faded.secondary},{variant:"faded",color:"success",class:r.J.faded.success},{variant:"faded",color:"warning",class:r.J.faded.warning},{variant:"faded",color:"danger",class:r.J.faded.danger},{variant:"light",color:"default",class:[r.J.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[r.J.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[r.J.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[r.J.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[r.J.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[r.J.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:[r.J.ghost.default,"data-[hover=true]:!bg-default"]},{variant:"ghost",color:"primary",class:[r.J.ghost.primary,"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"]},{variant:"ghost",color:"secondary",class:[r.J.ghost.secondary,"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"]},{variant:"ghost",color:"success",class:[r.J.ghost.success,"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"]},{variant:"ghost",color:"warning",class:[r.J.ghost.warning,"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"]},{variant:"ghost",color:"danger",class:[r.J.ghost.danger,"data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground"]},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:i.Zs.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:i.Zs.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:i.Zs.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:i.Zs.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:i.Zs.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:i.Zs.danger},{isIconOnly:!0,size:"sm",class:"min-w-8 w-8 h-8"},{isIconOnly:!0,size:"md",class:"min-w-10 w-10 h-10"},{isIconOnly:!0,size:"lg",class:"min-w-12 w-12 h-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]}),s=(0,o.tv)({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}})},3123:function(e,t,n){"use strict";n.d(t,{Dh:function(){return r},ID:function(){return o},PZ:function(){return s},Zs:function(){return a},jR:function(){return i}});var r=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],o=["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],i=["outline-none","ring-2","ring-focus","ring-offset-2","ring-offset-background"],a={default:["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]},s=["[--cursor-hit-x:8px]","font-inherit","text-[100%]","leading-[1.15]","m-0","p-0","overflow-visible","box-border","absolute","top-0","start-[calc(var(--cursor-hit-x)*-1)]","w-[calc(100%+var(--cursor-hit-x)*2)]","h-full","opacity-[0.0001]","z-[1]","cursor-pointer","disabled:cursor-default"]},5278:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});var r={solid:{default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},shadow:{default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},bordered:{default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},flat:{default:"bg-default/40 text-default-700",primary:"bg-primary/20 text-primary-600",secondary:"bg-secondary/20 text-secondary-600",success:"bg-success/20 text-success-700 dark:text-success",warning:"bg-warning/20 text-warning-700 dark:text-warning",danger:"bg-danger/20 text-danger-600 dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},faded:{default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},light:{default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},ghost:{default:"border-default text-default-foreground",primary:"border-primary text-primary",secondary:"border-secondary text-secondary",success:"border-success text-success",warning:"border-warning text-warning",danger:"border-danger text-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"}}},3427:function(e,t,n){"use strict";n.d(t,{tv:function(){return en}});var r=["small","medium","large"],o={theme:{opacity:["disabled"],spacing:["divider"],borderWidth:r,borderRadius:r},classGroups:{shadow:[{shadow:r}],"font-size":[{text:["tiny",...r]}],"bg-image":["bg-stripe-gradient-default","bg-stripe-gradient-primary","bg-stripe-gradient-secondary","bg-stripe-gradient-success","bg-stripe-gradient-warning","bg-stripe-gradient-danger"]}},i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=e=>!e||"object"!=typeof e||0===Object.keys(e).length,s=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function l(e){let t=[];return function e(t,n){t.forEach(function(t){Array.isArray(t)?e(t,n):n.push(t)})}(e,t),t}var u=(...e)=>l(e).filter(Boolean),c=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let r=e[i],o=t[i];"object"==typeof r&&"object"==typeof o?n[i]=c(r,o):Array.isArray(r)||Array.isArray(o)?n[i]=u(o,r):n[i]=o+" "+r}else n[i]=e[i];for(let e of o)r.includes(e)||(n[e]=t[e]);return n},d=e=>e&&"string"==typeof e?e.replace(/\s+/g," ").trim():e,f=/^\[(.+)\]$/;function p(e,t){var n=e;return t.split("-").forEach(function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n}var h=/\s+/;function g(){for(var e,t,n=0,r="";ne&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):o(e,t)}}}(e.cacheSize),splitModifiers:(n=1===(t=e.separator||":").length,r=t[0],o=t.length,function(e){for(var i,a=[],s=0,l=0,u=0;ul?i-l:void 0}}),...(l=e.theme,u=e.prefix,c={nextPart:new Map,validators:[]},(d=Object.entries(e.classGroups),u?d.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?u+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[u+e[0],e[1]]})):e})]}):d).forEach(function(e){var t=e[0];(function e(t,n,r,o){t.forEach(function(t){if("string"==typeof t){(""===t?n:p(n,t)).classGroupId=r;return}if("function"==typeof t){if(t.isThemeGetter){e(t(o),n,r,o);return}n.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(function(t){var i=t[0];e(t[1],p(n,i),r,o)})})})(e[1],c,t,l)}),i=e.conflictingClassGroups,s=void 0===(a=e.conflictingClassGroupModifiers)?{}:a,{getClassGroupId:function(e){var t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),function e(t,n){if(0===t.length)return n.classGroupId;var r=t[0],o=n.nextPart.get(r),i=o?e(t.slice(1),o):void 0;if(i)return i;if(0!==n.validators.length){var a=t.join("-");return n.validators.find(function(e){return(0,e.validator)(a)})?.classGroupId}}(t,c)||function(e){if(f.test(e)){var t=f.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){var n=i[e]||[];return t&&s[e]?[].concat(n,s[e]):n}})}}(o.slice(1).reduce(function(e,t){return t(e)},i()))).cache.get,n=e.cache.set,a=s,s(r)};function s(r){var o,i,a,s,l,u=t(r);if(u)return u;var c=(i=(o=e).splitModifiers,a=o.getClassGroupId,s=o.getConflictingClassGroupIds,l=new Set,r.trim().split(h).map(function(e){var t=i(e),n=t.modifiers,r=t.hasImportantModifier,o=t.baseClassName,s=t.maybePostfixModifierPosition,l=a(s?o.substring(0,s):o),u=!!s;if(!l){if(!s||!(l=a(o)))return{isTailwindClass:!1,originalClassName:e};u=!1}var c=(function(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(e){"["===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)}),t.push.apply(t,n.sort()),t})(n).join(":");return{isTailwindClass:!0,modifierId:r?c+"!":c,classGroupId:l,originalClassName:e,hasPostfixModifier:u}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,o=t+n;return!l.has(o)&&(l.add(o),s(n,r).forEach(function(e){return l.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return n(r,c),c}return function(){return a(g.apply(null,arguments))}}function v(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var b=/^\[(?:([a-z-]+):)?(.+)\]$/i,y=/^\d+\/\d+$/,w=new Set(["px","full","screen"]),_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,x=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,E=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function C(e){return P(e)||w.has(e)||y.test(e)||T(e)}function T(e){return D(e,"length",I)}function S(e){return D(e,"size",z)}function k(e){return D(e,"position",z)}function M(e){return D(e,"url",F)}function L(e){return D(e,"number",P)}function P(e){return!Number.isNaN(Number(e))}function O(e){return e.endsWith("%")&&P(e.slice(0,-1))}function R(e){return H(e)||D(e,"number",H)}function $(e){return b.test(e)}function N(){return!0}function j(e){return _.test(e)}function A(e){return D(e,"",W)}function D(e,t,n){var r=b.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function I(e){return x.test(e)}function z(){return!1}function F(e){return e.startsWith("url(")}function H(e){return Number.isInteger(Number(e))}function W(e){return E.test(e)}function B(){var e=v("colors"),t=v("spacing"),n=v("blur"),r=v("brightness"),o=v("borderColor"),i=v("borderRadius"),a=v("borderSpacing"),s=v("borderWidth"),l=v("contrast"),u=v("grayscale"),c=v("hueRotate"),d=v("invert"),f=v("gap"),p=v("gradientColorStops"),h=v("gradientColorStopPositions"),g=v("inset"),m=v("margin"),b=v("opacity"),y=v("padding"),w=v("saturate"),_=v("scale"),x=v("sepia"),E=v("skew"),D=v("space"),I=v("translate"),z=function(){return["auto","contain","none"]},F=function(){return["auto","hidden","clip","visible","scroll"]},H=function(){return["auto",$,t]},W=function(){return[$,t]},B=function(){return["",C]},K=function(){return["auto",P,$]},V=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},U=function(){return["solid","dashed","dotted","double","none"]},Y=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},J=function(){return["start","end","center","between","around","evenly","stretch"]},Z=function(){return["","0",$]},G=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},X=function(){return[P,L]},q=function(){return[P,$]};return{cacheSize:500,theme:{colors:[N],spacing:[C],blur:["none","",j,$],brightness:X(),borderColor:[e],borderRadius:["none","","full",j,$],borderSpacing:W(),borderWidth:B(),contrast:X(),grayscale:Z(),hueRotate:q(),invert:Z(),gap:W(),gradientColorStops:[e],gradientColorStopPositions:[O,T],inset:H(),margin:H(),opacity:X(),padding:W(),saturate:X(),scale:X(),sepia:Z(),skew:q(),space:W(),translate:W()},classGroups:{aspect:[{aspect:["auto","square","video",$]}],container:["container"],columns:[{columns:[j]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(V(),[$])}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",R]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",R]}],"grid-cols":[{"grid-cols":[N]}],"col-start-end":[{col:["auto",{span:["full",R]},$]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[N]}],"row-start-end":[{row:["auto",{span:[R]},$]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(J())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(J(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(J(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",$,t]}],"min-w":[{"min-w":["min","max","fit",$,C]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[j]},j,$]}],h:[{h:[$,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",$,C]}],"max-h":[{"max-h":[$,t,"min","max","fit"]}],"font-size":[{text:["base",j,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",L]}],"font-family":[{font:[N]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",$]}],"line-clamp":[{"line-clamp":["none",P,L]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$,C]}],"list-image":[{"list-image":["none",$]}],"list-style-type":[{list:["none","disc","decimal",$]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(U(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",C]}],"underline-offset":[{"underline-offset":["auto",$,C]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(V(),[k])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",S]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},M]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[].concat(U(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:U()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(U())}],"outline-offset":[{"outline-offset":[$,C]}],"outline-w":[{outline:[C]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[C]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",j,A]}],"shadow-color":[{shadow:[N]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":Y()}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",j,$]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",$]}],duration:[{duration:q()}],ease:[{ease:["linear","in","out","in-out",$]}],delay:[{delay:q()}],animate:[{animate:["none","spin","ping","pulse","bounce",$]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[R,$]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[C,L]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var K=m(B),V=Object.prototype.hasOwnProperty,U=new Set(["string","number","boolean"]),Y={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},J=e=>e||void 0,Z=(...e)=>J(l(e).filter(Boolean).join(" ")),G=null,X={},q=!1,Q=(...e)=>t=>t.twMerge?((!G||q)&&(q=!1,G=a(X)?K:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{for(let n in t)e.hasOwnProperty(n)?e[n]=Z(e[n],t[n]):e[n]=t[n];return e},et=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:l=[],compoundSlots:f=[],defaultVariants:p={}}=e,h={...Y,...t},g=null!=n&&n.base?Z(n.base,null==e?void 0:e.base):null==e?void 0:e.base,m=null!=n&&n.variants&&!a(n.variants)?c(o,n.variants):o,v=null!=n&&n.defaultVariants&&!a(n.defaultVariants)?{...n.defaultVariants,...p}:p;a(h.twMergeConfig)||s(h.twMergeConfig,X)||(q=!0,X=h.twMergeConfig);let b=a(null==n?void 0:n.slots),y=a(r)?{}:{base:Z(null==e?void 0:e.base,b&&(null==n?void 0:n.base)),...r},w=b?y:ee({...null==n?void 0:n.slots},a(y)?{base:null==e?void 0:e.base}:y),_=e=>{if(a(m)&&a(r)&&b)return Q(g,null==e?void 0:e.class,null==e?void 0:e.className)(h);if(l&&!Array.isArray(l))throw TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof l}`);if(f&&!Array.isArray(f))throw TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);let t=(e,t,n=[],r)=>{let o=n;if("string"==typeof t)o=o.concat(d(t).split(" ").map(t=>`${e}:${t}`));else if(Array.isArray(t))o=o.concat(t.reduce((t,n)=>t.concat(`${e}:${n}`),[]));else if("object"==typeof t&&"string"==typeof r){for(let n in t)if(t.hasOwnProperty(n)&&n===r){let i=t[n];if(i&&"string"==typeof i){let t=d(i);o[r]?o[r]=o[r].concat(t.split(" ").map(t=>`${e}:${t}`)):o[r]=t.split(" ").map(t=>`${e}:${t}`)}else Array.isArray(i)&&i.length>0&&(o[r]=i.reduce((t,n)=>t.concat(`${e}:${n}`),[]))}}return o},o=(n,r=m,o=null,s=null)=>{var l;let u=r[n];if(!u||a(u))return null;let c=null!=(l=null==s?void 0:s[n])?l:null==e?void 0:e[n];if(null===c)return null;let d=i(c),f=Array.isArray(h.responsiveVariants)&&h.responsiveVariants.length>0||!0===h.responsiveVariants,p=null==v?void 0:v[n],g=[];if("object"==typeof d&&f)for(let[e,n]of Object.entries(d)){let r=u[n];if("initial"===e){p=n;continue}Array.isArray(h.responsiveVariants)&&!h.responsiveVariants.includes(e)||(g=t(e,r,g,o))}let b=u[d]||u[i(p)];return"object"==typeof g&&"string"==typeof o&&g[o]?ee(g,b):g.length>0?(g.push(b),g):b},s=(e,t)=>{if(!m||"object"!=typeof m)return null;let n=[];for(let r in m){let i=o(r,m,e,t),a="base"===e&&"string"==typeof i?i:i&&i[e];a&&(n[n.length]=a)}return n},c={};for(let t in e)void 0!==e[t]&&(c[t]=e[t]);let p=(t,n)=>{var r;let o="object"==typeof(null==e?void 0:e[t])?{[t]:null==(r=e[t])?void 0:r.initial}:{};return{...v,...c,...o,...n}},y=(e=[],t)=>{let n=[];for(let{class:r,className:o,...i}of e){let e=!0;for(let[n,r]of Object.entries(i)){let o=p(n,t);if(Array.isArray(r)){if(!r.includes(o[n])){e=!1;break}}else if(o[n]!==r){e=!1;break}}e&&(r&&n.push(r),o&&n.push(o))}return n},_=e=>{let t=y(l,e);return u(y(null==n?void 0:n.compoundVariants,e),t)},x=e=>{let t=_(e);if(!Array.isArray(t))return t;let n={};for(let e of t)if("string"==typeof e&&(n.base=Q(n.base,e)(h)),"object"==typeof e)for(let[t,r]of Object.entries(e))n[t]=Q(n[t],r)(h);return n},E=e=>{if(f.length<1)return null;let t={};for(let{slots:n=[],class:r,className:o,...i}of f){if(!a(i)){let t=!0;for(let n of Object.keys(i)){let r=p(n,e)[n];if(void 0===r||(Array.isArray(i[n])?!i[n].includes(r):i[n]!==r)){t=!1;break}}if(!t)continue}for(let e of n)t[e]=t[e]||[],t[e].push([r,o])}return t};if(!a(r)||!b){let e={};if("object"==typeof w&&!a(w))for(let t of Object.keys(w))e[t]=e=>{var n,r;return Q(w[t],s(t,e),(null!=(n=x(e))?n:[])[t],(null!=(r=E(e))?r:[])[t],null==e?void 0:e.class,null==e?void 0:e.className)(h)};return e}return Q(g,m?Object.keys(m).map(e=>o(e,m)):null,_(),null==e?void 0:e.class,null==e?void 0:e.className)(h)};return _.variantKeys=(()=>{if(!(!m||"object"!=typeof m))return Object.keys(m)})(),_.extend=n,_.base=g,_.slots=w,_.variants=m,_.defaultVariants=v,_.compoundSlots=f,_.compoundVariants=l,_},en=(e,t)=>{var n,r,i;return et(e,{...t,twMerge:null==(n=null==t?void 0:t.twMerge)||n,twMergeConfig:{...null==t?void 0:t.twMergeConfig,theme:{...null==(r=null==t?void 0:t.twMergeConfig)?void 0:r.theme,...o.theme},classGroups:{...null==(i=null==t?void 0:t.twMergeConfig)?void 0:i.classGroups,...o.classGroups}}})}},6486:function(e,t,n){"use strict";n.d(t,{e:function(){return D}});var r=n(9589),o=n(8215);let i={},a=0,s=!1,l=null,u=null;var c=n(2014),d=n(7654),f=n(1596),p=n(6176),h=n(1771),g=n(341),m=n(8390),v=n(1699),b=n(7510),y=n(4189),w=n(5520),_=n(9077),x=n(1273),E=n(1870),C=n(7243),T=n(4211),S=n(6594),k=n(2110),M=n(4697),L=n(3264),P=n(2414),O=n(4111),R=n(6737),$=n(4700),N=n(217),j=()=>Promise.all([n.e(425),n.e(965)]).then(n.bind(n,2965)).then(e=>e.default),A=(0,y.Gp)((e,t)=>{let n;let{Component:A,children:D,content:I,isOpen:z,portalContainer:F,placement:H,disableAnimation:W,motionProps:B,getTriggerProps:K,getTooltipProps:V,getTooltipContentProps:U}=function(e){var t,n;let M=(0,b.w)(),[L,P]=(0,y.oe)(e,w.v.variantKeys),{ref:O,as:R,isOpen:$,content:N,children:j,defaultOpen:A,onOpenChange:D,isDisabled:I,trigger:z,shouldFlip:F=!0,containerPadding:H=12,placement:W="top",delay:B=0,closeDelay:K=500,showArrow:V=!1,offset:U=7,crossOffset:Y=0,isDismissable:J,shouldCloseOnBlur:Z=!0,portalContainer:G,isKeyboardDismissDisabled:X=!1,updatePositionDeps:q=[],shouldCloseOnInteractOutside:Q,className:ee,onClose:et,motionProps:en,classNames:er,...eo}=L,ei=null!=(n=null!=(t=null==e?void 0:e.disableAnimation)?t:null==M?void 0:M.disableAnimation)&&n,ea=function(e={}){let{delay:t=1500,closeDelay:n=500}=e,{isOpen:c,open:d,close:f}=(0,o.d)(e),p=(0,r.useMemo)(()=>`${++a}`,[]),h=(0,r.useRef)(null),g=(0,r.useRef)(f),m=()=>{i[p]=y},v=()=>{for(let e in i)e!==p&&(i[e](!0),delete i[e])},b=()=>{h.current&&clearTimeout(h.current),h.current=null,v(),m(),s=!0,d(),l&&(clearTimeout(l),l=null),u&&(clearTimeout(u),u=null)},y=e=>{e||n<=0?(h.current&&clearTimeout(h.current),h.current=null,g.current()):h.current||(h.current=setTimeout(()=>{h.current=null,g.current()},n)),l&&(clearTimeout(l),l=null),s&&(u&&clearTimeout(u),u=setTimeout(()=>{delete i[p],u=null,s=!1},Math.max(500,n)))},w=()=>{v(),m(),c||l||s?c||b():l=setTimeout(()=>{l=null,s=!0,b()},t)};return(0,r.useEffect)(()=>{g.current=f},[f]),(0,r.useEffect)(()=>()=>{h.current&&clearTimeout(h.current),i[p]&&delete i[p]},[p]),{isOpen:c,open:e=>{e||!(t>0)||h.current?b():w()},close:y}}({delay:B,closeDelay:K,isDisabled:I,defaultOpen:A,isOpen:$,onOpenChange:e=>{null==D||D(e),e||null==et||et()}}),es=(0,r.useRef)(null),el=(0,r.useRef)(null),eu=(0,r.useId)(),ec=ea.isOpen&&!I;(0,r.useImperativeHandle)(O,()=>(0,T.fg)(el));let{triggerProps:ed,tooltipProps:ef}=function(e,t,n){let{isDisabled:o,trigger:i}=e,a=(0,p.Me)(),s=(0,r.useRef)(!1),l=(0,r.useRef)(!1),u=()=>{(s.current||l.current)&&t.open(l.current)},g=e=>{s.current||l.current||t.close(e)};(0,r.useEffect)(()=>{let e=e=>{n&&n.current&&"Escape"===e.key&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}},[n,t]);let m=()=>{l.current=!1,s.current=!1,g(!0)},{hoverProps:v}=(0,f.X)({isDisabled:o,onHoverStart:()=>{"focus"!==i&&("pointer"===(0,d.Jz)()?s.current=!0:s.current=!1,u())},onHoverEnd:()=>{"focus"!==i&&(l.current=!1,s.current=!1,g())}}),{focusableProps:b}=(0,h.k)({isDisabled:o,onFocus:()=>{(0,d.E)()&&(l.current=!0,u())},onBlur:()=>{l.current=!1,s.current=!1,g(!0)}},n);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...(0,c.d)(b,v,{onPointerDown:m,onKeyDown:m})},tooltipProps:{id:a}}}({isDisabled:I,trigger:z},ea,es),{tooltipProps:ep}=function(e,t){let n=(0,g.z)(e,{labelable:!0}),{hoverProps:r}=(0,f.X)({onHoverStart:()=>null==t?void 0:t.open(!0),onHoverEnd:()=>null==t?void 0:t.close()});return{tooltipProps:(0,c.d)(n,r,{role:"tooltip"})}}({isOpen:ec,...(0,c.d)(L,ef)},ea),{overlayProps:eh,placement:eg,updatePosition:em}=(0,m.t)({isOpen:ec,targetRef:es,placement:(0,S.Yx)(W),overlayRef:el,offset:V?U+3:U,crossOffset:Y,shouldFlip:F,containerPadding:H});(0,k.G)(()=>{q.length&&em()},q);let{overlayProps:ev}=(0,v.I)({isOpen:ec,onClose:ea.close,isDismissable:J,shouldCloseOnBlur:Z,isKeyboardDismissDisabled:X,shouldCloseOnInteractOutside:Q},el),eb=(0,r.useMemo)(()=>{var t,n,r;return(0,w.v)({...P,disableAnimation:ei,radius:null!=(t=null==e?void 0:e.radius)?t:"md",size:null!=(n=null==e?void 0:e.size)?n:"md",shadow:null!=(r=null==e?void 0:e.shadow)?r:"sm"})},[(0,_.Xx)(P),ei,null==e?void 0:e.radius,null==e?void 0:e.size,null==e?void 0:e.shadow]),ey=(0,r.useCallback)((e={},t=null)=>({...(0,c.d)(ed,e),ref:(0,C.l)(t,es),"aria-describedby":ec?eu:void 0}),[ed,ec,eu,ea]),ew=(0,r.useCallback)(()=>({ref:el,"data-slot":"base","data-open":(0,x.PB)(ec),"data-arrow":(0,x.PB)(V),"data-disabled":(0,x.PB)(I),"data-placement":(0,S.sK)(eg||"top",W),...(0,c.d)(ep,ev,eo),style:(0,c.d)(eh.style,eo.style,L.style),className:eb.base({class:null==er?void 0:er.base}),id:eu}),[eb,ec,V,I,eg,W,ep,ev,eo,eh,L,eu]),e_=(0,r.useCallback)(()=>({"data-slot":"content","data-open":(0,x.PB)(ec),"data-arrow":(0,x.PB)(V),"data-disabled":(0,x.PB)(I),"data-placement":(0,S.sK)(eg||"top",W),className:eb.content({class:(0,E.W)(null==er?void 0:er.content,ee)})}),[eb,ec,V,I,eg,W,er]);return{Component:R||"div",content:N,children:j,isOpen:ec,triggerRef:es,showArrow:V,portalContainer:G,placement:W,disableAnimation:ei,isDisabled:I,motionProps:en,getTooltipContentProps:e_,getTriggerProps:ey,getTooltipProps:ew}}({...e,ref:t});try{let e=r.Children.count(D);if(1!==e)throw Error();n=(0,r.isValidElement)(D)?(0,r.cloneElement)(D,K(D.props,D.ref)):(0,N.jsx)("p",{...K(),children:D})}catch(e){n=(0,N.jsx)("span",{}),(0,$.Z)("Tooltip must have only one child node. Please, check your code.")}let{ref:Y,id:J,style:Z,...G}=V(),X=(0,N.jsx)("div",{ref:Y,id:J,style:Z,children:(0,N.jsx)(L.X,{features:j,children:(0,N.jsx)(P.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:R.y7.scaleSpring,...(0,c.d)(B,G),style:{...(0,S.VS)(H)},children:(0,N.jsx)(A,{...U(),children:I})})})});return(0,N.jsxs)(N.Fragment,{children:[n,W&&z?(0,N.jsx)(M.Xj,{portalContainer:F,children:(0,N.jsx)("div",{ref:Y,id:J,style:Z,...G,children:(0,N.jsx)(A,{...U(),children:I})})}):(0,N.jsx)(O.M,{children:z?(0,N.jsx)(M.Xj,{portalContainer:F,children:X}):null})]})});A.displayName="NextUI.Tooltip";var D=A},7414:function(e,t,n){"use strict";n.d(t,{j:function(){return u}});var r=n(4700),o=n(7894),i=n(2014),a=n(341),s=n(1771),l=n(9762);function u(e,t){let n,{elementType:u="button",isDisabled:c,onPress:d,onPressStart:f,onPressEnd:p,onPressChange:h,preventFocusOnPress:g,allowFocusWhenDisabled:m,onClick:v,href:b,target:y,rel:w,type:_="button",allowTextSelectionOnPress:x}=e;n="button"===u?{type:_,disabled:c}:{role:"button",tabIndex:c?void 0:0,href:"a"!==u||c?void 0:b,target:"a"===u?y:void 0,type:"input"===u?_:void 0,disabled:"input"===u?c:void 0,"aria-disabled":c&&"input"!==u?c:void 0,rel:"a"===u?w:void 0};let E=(0,o.gn)()||(0,o.Dt)();v&&"function"==typeof v&&(0,r.Z)("onClick is deprecated, please use onPress instead. See: https://github.com/nextui-org/nextui/issues/4292","useButton");let{pressProps:C,isPressed:T}=(0,l.r)({onPressStart:f,onPressEnd:p,onPressChange:h,onPress:e=>{E&&(null==v||v(e)),null==d||d(e)},isDisabled:c,preventFocusOnPress:g,allowTextSelectionOnPress:x,ref:t}),{focusableProps:S}=(0,s.k)(e,t);m&&(S.tabIndex=c?-1:S.tabIndex);let k=(0,i.d)(S,C,(0,a.z)(e,{labelable:!0}));return{isPressed:T,buttonProps:(0,i.d)(n,k,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{"button"===_&&E||null==v||v(e)}})}}},2110:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(9589),o=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:r.useEffect},7599:function(e,t,n){"use strict";n.d(t,{MT:function(){return c},QL:function(){return T},cW:function(){return b}});var r=n(6814),o=n(4229),i=n(1841),a=n(9589);let s=a.createContext(null),l="react-aria-focus-scope-restore",u=null;function c(e){let t,n,{children:r,contain:c,restoreFocus:d,autoFocus:f}=e,p=(0,a.useRef)(null),b=(0,a.useRef)(null),S=(0,a.useRef)([]),{parentNode:L}=(0,a.useContext)(s)||{},P=(0,a.useMemo)(()=>new k({scopeRef:S}),[S]);(0,i.b)(()=>{let e=L||M.root;if(M.getTreeNode(e.scopeRef)&&u&&!y(u,e.scopeRef)){let t=M.getTreeNode(u);t&&(e=t)}e.addChild(P),M.addNode(P)},[P,L]),(0,i.b)(()=>{let e=M.getTreeNode(S);e&&(e.contain=!!c)},[c]),(0,i.b)(()=>{var e;let t=null===(e=p.current)||void 0===e?void 0:e.nextSibling,n=[],r=e=>e.stopPropagation();for(;t&&t!==b.current;)n.push(t),t.addEventListener(l,r),t=t.nextSibling;return S.current=n,()=>{for(let e of n)e.removeEventListener(l,r)}},[r]),(0,i.b)(()=>{if(d||c)return;let e=S.current,t=(0,o.r)(e?e[0]:void 0),n=e=>{let t=e.target;m(t,S.current)?u=S:v(t)||(u=null)};return t.addEventListener("focusin",n,!1),null==e||e.forEach(e=>e.addEventListener("focusin",n,!1)),()=>{t.removeEventListener("focusin",n,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",n,!1))}},[S,d,c]),t=(0,a.useRef)(void 0),n=(0,a.useRef)(void 0),(0,i.b)(()=>{let e=S.current;if(!c){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let r=(0,o.r)(e?e[0]:void 0),i=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!g(S)||e.isComposing)return;let t=r.activeElement,n=S.current;if(!n||!m(t,n))return;let o=T(h(n),{tabbable:!0},n);if(!t)return;o.currentNode=t;let i=e.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=e.shiftKey?n[n.length-1].nextElementSibling:n[0].previousElementSibling,i=e.shiftKey?o.previousNode():o.nextNode()),e.preventDefault(),i&&w(i,!0)},a=e=>{(!u||y(u,S))&&m(e.target,S.current)?(u=S,t.current=e.target):g(S)&&!v(e.target,S)?t.current?t.current.focus():u&&u.current&&x(u.current):g(S)&&(t.current=e.target)},s=e=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{if(r.activeElement&&g(S)&&!v(r.activeElement,S)){if(u=S,r.body.contains(e.target)){var n;t.current=e.target,null===(n=t.current)||void 0===n||n.focus()}else u.current&&x(u.current)}})};return r.addEventListener("keydown",i,!1),r.addEventListener("focusin",a,!1),null==e||e.forEach(e=>e.addEventListener("focusin",a,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",s,!1)),()=>{r.removeEventListener("keydown",i,!1),r.removeEventListener("focusin",a,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",a,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",s,!1))}},[S,c]),(0,i.b)(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n]),function(e,t,n){let r=(0,a.useRef)("undefined"!=typeof document?(0,o.r)(e.current?e.current[0]:void 0).activeElement:null);(0,i.b)(()=>{let r=e.current,i=(0,o.r)(r?r[0]:void 0);if(!t||n)return;let a=()=>{(!u||y(u,e))&&m(i.activeElement,e.current)&&(u=e)};return i.addEventListener("focusin",a,!1),null==r||r.forEach(e=>e.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),null==r||r.forEach(e=>e.removeEventListener("focusin",a,!1))}},[e,n]),(0,i.b)(()=>{let r=(0,o.r)(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!g(e)||t.isComposing)return;let n=r.activeElement;if(!v(n,e)||!E(e))return;let o=M.getTreeNode(e);if(!o)return;let i=o.nodeToRestore,a=T(r.body,{tabbable:!0});a.currentNode=n;let s=t.shiftKey?a.previousNode():a.nextNode();if(i&&r.body.contains(i)&&i!==r.body||(i=void 0,o.nodeToRestore=void 0),(!s||!v(s,e))&&i){a.currentNode=i;do s=t.shiftKey?a.previousNode():a.nextNode();while(v(s,e));(t.preventDefault(),t.stopPropagation(),s)?w(s,!0):v(i)?w(i,!0):n.blur()}};return n||r.addEventListener("keydown",i,!0),()=>{n||r.removeEventListener("keydown",i,!0)}},[e,t,n]),(0,i.b)(()=>{var n;let i=(0,o.r)(e.current?e.current[0]:void 0);if(!t)return;let a=M.getTreeNode(e);if(a)return a.nodeToRestore=null!==(n=r.current)&&void 0!==n?n:void 0,()=>{let n=M.getTreeNode(e);if(!n)return;let r=n.nodeToRestore;if(t&&r&&(i.activeElement&&v(i.activeElement,e)||i.activeElement===i.body&&E(e))){let t=M.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){C(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&M.getTreeNode(n.scopeRef)){C(_(n.scopeRef.current,!0));return}n=n.parent}}})}}},[e,t])}(S,d,c),function(e,t){let n=a.useRef(t);(0,a.useEffect)(()=>{n.current&&(u=e,!m((0,o.r)(e.current?e.current[0]:void 0).activeElement,u.current)&&e.current&&x(e.current)),n.current=!1},[e])}(S,f),(0,a.useEffect)(()=>{let e=(0,o.r)(S.current?S.current[0]:void 0).activeElement,t=null;if(m(e,S.current)){for(let n of M.traverse())n.scopeRef&&m(e,n.scopeRef.current)&&(t=n);t===M.getTreeNode(S)&&(u=t.scopeRef)}},[S]),(0,i.b)(()=>()=>{var e,t,n;let r=null!==(n=null===(t=M.getTreeNode(S))||void 0===t?void 0:null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;(S===u||y(S,u))&&(!r||M.getTreeNode(r))&&(u=r),M.removeTreeNode(S)},[S]);let O=(0,a.useMemo)(()=>({focusNext(e={}){let t=S.current,{from:n,tabbable:r,wrap:i,accept:a}=e,s=n||(0,o.r)(t[0]).activeElement,l=t[0].previousElementSibling,u=T(h(t),{tabbable:r,accept:a},t);u.currentNode=m(s,t)?s:l;let c=u.nextNode();return!c&&i&&(u.currentNode=l,c=u.nextNode()),c&&w(c,!0),c},focusPrevious(e={}){let t=S.current,{from:n,tabbable:r,wrap:i,accept:a}=e,s=n||(0,o.r)(t[0]).activeElement,l=t[t.length-1].nextElementSibling,u=T(h(t),{tabbable:r,accept:a},t);u.currentNode=m(s,t)?s:l;let c=u.previousNode();return!c&&i&&(u.currentNode=l,c=u.previousNode()),c&&w(c,!0),c},focusFirst(e={}){let t=S.current,{tabbable:n,accept:r}=e,o=T(h(t),{tabbable:n,accept:r},t);o.currentNode=t[0].previousElementSibling;let i=o.nextNode();return i&&w(i,!0),i},focusLast(e={}){let t=S.current,{tabbable:n,accept:r}=e,o=T(h(t),{tabbable:n,accept:r},t);o.currentNode=t[t.length-1].nextElementSibling;let i=o.previousNode();return i&&w(i,!0),i}}),[]),R=(0,a.useMemo)(()=>({focusManager:O,parentNode:P}),[P,O]);return a.createElement(s.Provider,{value:R},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:p}),r,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:b}))}let d=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],f=d.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";d.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let p=d.join(':not([hidden]):not([tabindex="-1"]),');function h(e){return e[0].parentElement}function g(e){let t=M.getTreeNode(u);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function m(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function v(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of M.traverse(M.getTreeNode(t)))if(n&&m(e,n.current))return!0;return!1}function b(e){return v(e,u)}function y(e,t){var n;let r=null===(n=M.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function w(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{(0,r.e)(e)}catch{}}function _(e,t=!0){let n=e[0].previousElementSibling,r=h(e),o=T(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&((o=T(r=h(e),{tabbable:!1},e)).currentNode=n,i=o.nextNode()),i}function x(e,t=!0){w(_(e,t))}function E(e){let t=M.getTreeNode(u);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function C(e){e.dispatchEvent(new CustomEvent(l,{bubbles:!0,cancelable:!0}))&&w(e)}function T(e,t,n){let r=(null==t?void 0:t.tabbable)?p:f,i=(0,o.r)(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return(null==t?void 0:null===(i=t.from)||void 0===i?void 0:i.contains(e))?NodeFilter.FILTER_REJECT:e.matches(r)&&function e(t,n){return"#comment"!==t.nodeName&&function(e){let t=(0,o.k)(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i="none"!==n&&"hidden"!==r&&"collapse"!==r;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);i="none"!==n&&"hidden"!==r&&"collapse"!==r}return i}(t)&&!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==t.nodeName||!n||"SUMMARY"===n.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(e)&&(!n||m(e,n))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(i.currentNode=t.from),i}class S{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let o=new k({scopeRef:e});r.addChild(o),o.parent=r,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&m(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let n=new S;for(let r of this.traverse())n.addTreeNode(r.scopeRef,null!==(t=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,r.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new k({scopeRef:null}),this.fastMap.set(null,this.root)}}class k{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let M=new S},6814:function(e,t,n){"use strict";n.d(t,{e:function(){return s}});var r=n(4229),o=n(2097),i=n(1723),a=n(7654);function s(e){let t=(0,r.r)(e);if("virtual"===(0,a.Jz)()){let n=t.activeElement;(0,o.Q)(()=>{t.activeElement===n&&e.isConnected&&(0,i.A)(e)})}else(0,i.A)(e)}},709:function(e,t,n){"use strict";n.d(t,{F:function(){return s}});var r=n(7654),o=n(4098),i=n(4915),a=n(9589);function s(e={}){let{autoFocus:t=!1,isTextInput:n,within:s}=e,l=(0,a.useRef)({isFocused:!1,isFocusVisible:t||(0,r.E)()}),[u,c]=(0,a.useState)(!1),[d,f]=(0,a.useState)(()=>l.current.isFocused&&l.current.isFocusVisible),p=(0,a.useCallback)(()=>f(l.current.isFocused&&l.current.isFocusVisible),[]),h=(0,a.useCallback)(e=>{l.current.isFocused=e,c(e),p()},[p]);(0,r.mG)(e=>{l.current.isFocusVisible=e,p()},[],{isTextInput:n});let{focusProps:g}=(0,o.K)({isDisabled:s,onFocusChange:h}),{focusWithinProps:m}=(0,i.L)({isDisabled:!s,onFocusWithinChange:h});return{isFocused:u,isFocusVisible:d,focusProps:s?m:g}}},1771:function(e,t,n){"use strict";n.d(t,{k:function(){return c}});var r=n(6814),o=n(5362),i=n(2014),a=n(9589),s=n(4098);function l(e){if(!e)return;let t=!0;return n=>{e({...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}}),t&&n.stopPropagation()}}let u=a.createContext(null);function c(e,t){let{focusProps:n}=(0,s.K)(e),{keyboardProps:c}={keyboardProps:e.isDisabled?{}:{onKeyDown:l(e.onKeyDown),onKeyUp:l(e.onKeyUp)}},d=(0,i.d)(n,c),f=function(e){let t=(0,a.useContext)(u)||{};(0,o.l)(t,e);let{ref:n,...r}=t;return r}(t),p=e.isDisabled?{}:f,h=(0,a.useRef)(e.autoFocus);return(0,a.useEffect)(()=>{h.current&&t.current&&(0,r.e)(t.current),h.current=!1},[t]),{focusableProps:(0,i.d)({...d,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},p)}}},2314:function(e,t,n){"use strict";n.d(t,{b:function(){return g},j:function(){return m}});let r=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function i(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return r.has(t.script)}let t=e.split("-")[0];return o.has(t)}var a=n(9589),s=n(6717);let l=Symbol.for("react-aria.i18n.locale");function u(){let e="undefined"!=typeof window&&window[l]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:i(e)?"rtl":"ltr"}}let c=u(),d=new Set;function f(){for(let e of(c=u(),d))e(c)}function p(){let e=(0,s.Av)(),[t,n]=(0,a.useState)(c);return((0,a.useEffect)(()=>(0===d.size&&window.addEventListener("languagechange",f),d.add(n),()=>{d.delete(n),0===d.size&&window.removeEventListener("languagechange",f)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}let h=a.createContext(null);function g(e){let{locale:t,children:n}=e,r=p(),o=a.useMemo(()=>t?{locale:t,direction:i(t)?"rtl":"ltr"}:r,[r,t]);return a.createElement(h.Provider,{value:o},n)}function m(){let e=p();return(0,a.useContext)(h)||e}},9096:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});let r=n(9589).createContext({register:()=>{}});r.displayName="PressResponderContext"},4098:function(e,t,n){"use strict";n.d(t,{K:function(){return a}});var r=n(3100),o=n(9589),i=n(4229);function a(e){let{isDisabled:t,onFocus:n,onBlur:a,onFocusChange:s}=e,l=(0,o.useCallback)(e=>{if(e.target===e.currentTarget)return a&&a(e),s&&s(!1),!0},[a,s]),u=(0,r.d)(l),c=(0,o.useCallback)(e=>{let t=(0,i.r)(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),s&&s(!0),u(e))},[s,n,u]);return{focusProps:{onFocus:!t&&(n||s||a)?c:void 0,onBlur:!t&&(a||s)?l:void 0}}}},7654:function(e,t,n){"use strict";n.d(t,{E:function(){return x},Jz:function(){return E},Kf:function(){return T},_w:function(){return C},mG:function(){return k}});var r=n(7894),o=n(7248),i=n(4229),a=n(9589),s=n(6717);let l=null,u=new Set,c=new Map,d=!1,f=!1,p={Tab:!0,Escape:!0};function h(e,t){for(let n of u)n(e,t)}function g(e){d=!0,e.metaKey||!(0,r.V5)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(l="keyboard",h("keyboard",e))}function m(e){l="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(d=!0,h("pointer",e))}function v(e){(0,o.Z)(e)&&(d=!0,l="virtual")}function b(e){e.target!==window&&e.target!==document&&(d||f||(l="virtual",h("virtual",e)),d=!1,f=!1)}function y(){d=!1,f=!0}function w(e){if("undefined"==typeof window||c.get((0,i.k)(e)))return;let t=(0,i.k)(e),n=(0,i.r)(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){d=!0,r.apply(this,arguments)},n.addEventListener("keydown",g,!0),n.addEventListener("keyup",g,!0),n.addEventListener("click",v,!0),t.addEventListener("focus",b,!0),t.addEventListener("blur",y,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",m,!0),n.addEventListener("pointermove",m,!0),n.addEventListener("pointerup",m,!0)):(n.addEventListener("mousedown",m,!0),n.addEventListener("mousemove",m,!0),n.addEventListener("mouseup",m,!0)),t.addEventListener("beforeunload",()=>{_(e)},{once:!0}),c.set(t,{focus:r})}let _=(e,t)=>{let n=(0,i.k)(e),r=(0,i.r)(e);t&&r.removeEventListener("DOMContentLoaded",t),c.has(n)&&(n.HTMLElement.prototype.focus=c.get(n).focus,r.removeEventListener("keydown",g,!0),r.removeEventListener("keyup",g,!0),r.removeEventListener("click",v,!0),n.removeEventListener("focus",b,!0),n.removeEventListener("blur",y,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",m,!0),r.removeEventListener("pointermove",m,!0),r.removeEventListener("pointerup",m,!0)):(r.removeEventListener("mousedown",m,!0),r.removeEventListener("mousemove",m,!0),r.removeEventListener("mouseup",m,!0)),c.delete(n))};function x(){return"pointer"!==l}function E(){return l}function C(e){l=e,h(e,null)}function T(){w();let[e,t]=(0,a.useState)(l);return(0,a.useEffect)(()=>{let e=()=>{t(l)};return u.add(e),()=>{u.delete(e)}},[]),(0,s.Av)()?null:e}"undefined"!=typeof document&&function(e){let t;let n=(0,i.r)(void 0);"loading"!==n.readyState?w(void 0):(t=()=>{w(void 0)},n.addEventListener("DOMContentLoaded",t)),()=>_(e,t)}();let S=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function k(e,t,n){w(),(0,a.useEffect)(()=>{let t=(t,r)=>{(function(e,t,n){var r;let o="undefined"!=typeof window?(0,i.k)(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,a="undefined"!=typeof window?(0,i.k)(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s="undefined"!=typeof window?(0,i.k)(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?(0,i.k)(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof o&&!S.has(null==n?void 0:null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof a||(null==n?void 0:n.target)instanceof s&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof l&&!p[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(x())};return u.add(t),()=>{u.delete(t)}},t)}},4915:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(3100),o=n(9589);function i(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:a}=e,s=(0,o.useRef)({isFocusWithin:!1}),l=(0,o.useCallback)(e=>{s.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(s.current.isFocusWithin=!1,n&&n(e),a&&a(!1))},[n,a,s]),u=(0,r.d)(l),c=(0,o.useCallback)(e=>{s.current.isFocusWithin||document.activeElement!==e.target||(i&&i(e),a&&a(!0),s.current.isFocusWithin=!0,u(e))},[i,a,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}},1596:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var r=n(9589);let o=!1,i=0;function a(){o=!0,setTimeout(()=>{o=!1},50)}function s(e){"touch"===e.pointerType&&a()}function l(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",s):document.addEventListener("touchend",a),i++,()=>{--i>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",s):document.removeEventListener("touchend",a))}}function u(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:a}=e,[s,u]=(0,r.useState)(!1),c=(0,r.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,r.useEffect)(l,[]);let{hoverProps:d,triggerHoverEnd:f}=(0,r.useMemo)(()=>{let e=(e,r)=>{if(c.pointerType=r,a||"touch"===r||c.isHovered||!e.currentTarget.contains(e.target))return;c.isHovered=!0;let o=e.currentTarget;c.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),u(!0)},r=(e,t)=>{if(c.pointerType="",c.target=null,"touch"===t||!c.isHovered)return;c.isHovered=!1;let r=e.currentTarget;i&&i({type:"hoverend",target:r,pointerType:t}),n&&n(!1),u(!1)},s={};return"undefined"!=typeof PointerEvent?(s.onPointerEnter=t=>{o&&"mouse"===t.pointerType||e(t,t.pointerType)},s.onPointerLeave=e=>{!a&&e.currentTarget.contains(e.target)&&r(e,e.pointerType)}):(s.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},s.onMouseEnter=t=>{c.ignoreEmulatedMouseEvents||o||e(t,"mouse"),c.ignoreEmulatedMouseEvents=!1},s.onMouseLeave=e=>{!a&&e.currentTarget.contains(e.target)&&r(e,"mouse")}),{hoverProps:s,triggerHoverEnd:r}},[t,n,i,a,c]);return(0,r.useEffect)(()=>{a&&f({currentTarget:c.target},c.pointerType)},[a]),{hoverProps:d,isHovered:s}}},9762:function(e,t,n){"use strict";n.d(t,{r:function(){return S}});var r=n(7894),o=n(4229),i=n(2097);let a="default",s="",l=new WeakMap;function u(e){if((0,r.gn)()){if("default"===a){let t=(0,o.r)(e);s=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}a="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(l.set(e,e.style.userSelect),e.style.userSelect="none")}function c(e){if((0,r.gn)())"disabled"===a&&(a="restoring",setTimeout(()=>{(0,i.Q)(()=>{if("restoring"===a){let t=(0,o.r)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=s||""),s="",a="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&l.has(e)){let t=l.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),l.delete(e)}}var d=n(9096);function f(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function p(e,t,n){var r=f(e,t,"set");return!function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=n}}(e,r,n),n}var h=n(2014),g=n(5362),m=n(7278),v=n(2013),b=n(6367),y=n(501),w=n(7248),_=n(1723),x=n(9589),E=new WeakMap;class C{continuePropagation(){p(this,E,!1)}get shouldStopPropagation(){var e;return(e=f(this,E,"get")).get?e.get.call(this):e.value}constructor(e,t,n,r){var o,i;i={writable:!0,value:void 0},function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(this,E),E.set(this,i),p(this,E,!0);let a=null!==(o=null==r?void 0:r.target)&&void 0!==o?o:n.currentTarget,s=null==a?void 0:a.getBoundingClientRect(),l,u=0,c,d=null;null!=n.clientX&&null!=n.clientY&&(c=n.clientX,d=n.clientY),s&&(null!=c&&null!=d?(l=c-s.left,u=d-s.top):(l=s.width/2,u=s.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=u}}let T=Symbol("linkClicked");function S(e){let{onPress:t,onPressChange:n,onPressStart:i,onPressEnd:a,onPressUp:s,isDisabled:l,isPressed:f,preventFocusOnPress:p,shouldCancelOnPointerExit:E,allowTextSelectionOnPress:S,ref:A,...D}=function(e){let t=(0,x.useContext)(d.O);if(t){let{register:n,...r}=t;e=(0,h.d)(r,e),n()}return(0,g.l)(t,e.ref),e}(e),[I,z]=(0,x.useState)(!1),F=(0,x.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:H,removeAllGlobalListeners:W}=(0,m.x)(),B=(0,v.i)((e,t)=>{let r=F.current;if(l||r.didFirePressStart)return!1;let o=!0;if(r.isTriggeringEvent=!0,i){let n=new C("pressstart",t,e);i(n),o=n.shouldStopPropagation}return n&&n(!0),r.isTriggeringEvent=!1,r.didFirePressStart=!0,z(!0),o}),K=(0,v.i)((e,r,o=!0)=>{let i=F.current;if(!i.didFirePressStart)return!1;i.ignoreClickAfterPress=!0,i.didFirePressStart=!1,i.isTriggeringEvent=!0;let s=!0;if(a){let t=new C("pressend",r,e);a(t),s=t.shouldStopPropagation}if(n&&n(!1),z(!1),t&&o&&!l){let n=new C("press",r,e);t(n),s&&(s=n.shouldStopPropagation)}return i.isTriggeringEvent=!1,s}),V=(0,v.i)((e,t)=>{let n=F.current;if(l)return!1;if(s){n.isTriggeringEvent=!0;let r=new C("pressup",t,e);return s(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),U=(0,v.i)(e=>{let t=F.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&K(O(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,W(),S||c(t.target))}),Y=(0,v.i)(e=>{E&&U(e)}),J=(0,x.useMemo)(()=>{let e=F.current,t={onKeyDown(t){if(M(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var i;j(t.target,t.key)&&t.preventDefault();let a=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,a=B(t,"keyboard");let r=t.currentTarget;H((0,o.r)(t.currentTarget),"keyup",(0,b.t)(t=>{M(t,r)&&!t.repeat&&r.contains(t.target)&&e.target&&V(O(e.target,t),"keyboard")},n),!0)}a&&t.stopPropagation(),t.metaKey&&(0,r.V5)()&&(null===(i=e.metaKeyEvents)||void 0===i||i.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!y.nG.isOpening){let n=!0;if(l&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||(0,w.Z)(t.nativeEvent))){l||p||(0,_.A)(t.currentTarget);let e=B(t,"virtual"),r=V(t,"virtual"),o=K(t,"virtual");n=e&&r&&o}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n,r,o;if(e.isPressed&&e.target&&M(t,e.target)){j(t.target,t.key)&&t.preventDefault();let n=t.target;K(O(e.target,t),"keyboard",e.target.contains(n)),W(),"Enter"!==t.key&&k(e.target)&&e.target.contains(n)&&!t[T]&&(t[T]=!0,(0,y.nG)(e.target,t,!1)),e.isPressed=!1,null===(r=e.metaKeyEvents)||void 0===r||r.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){let t=e.metaKeyEvents;for(let n of(e.metaKeyEvents=void 0,t.values()))null===(o=e.target)||void 0===o||o.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if((0,w.c)(t.nativeEvent)){e.pointerType="virtual";return}$(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let i=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,l||p||(0,_.A)(t.currentTarget),S||u(e.target),i=B(t,e.pointerType),H((0,o.r)(t.currentTarget),"pointermove",n,!1),H((0,o.r)(t.currentTarget),"pointerup",r,!1),H((0,o.r)(t.currentTarget),"pointercancel",a,!1)),i&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&($(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&R(t,t.currentTarget)&&V(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&R(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,B(O(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,K(O(e.target,t),e.pointerType,!1),Y(t)))},r=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(R(t,e.target)&&null!=e.pointerType?K(O(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&K(O(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,W(),S||c(e.target),"ontouchend"in e.target&&"mouse"!==t.pointerType&&H(e.target,"touchend",i,{once:!0}))},i=e=>{N(e.currentTarget)&&e.preventDefault()},a=e=>{U(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&U(e)}}else{t.onMouseDown=t=>{if(0===t.button&&t.currentTarget.contains(t.target)){if($(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents){t.stopPropagation();return}e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=(0,w.Z)(t.nativeEvent)?"virtual":"mouse",l||p||(0,_.A)(t.currentTarget),B(t,e.pointerType)&&t.stopPropagation(),H((0,o.r)(t.currentTarget),"mouseup",n,!1)}},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=B(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=K(t,e.pointerType,!1),Y(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&!e.ignoreEmulatedMouseEvents&&0===t.button&&V(t,e.pointerType||"mouse")};let n=t=>{if(0===t.button){if(e.isPressed=!1,W(),e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=!1;return}e.target&&R(t,e.target)&&null!=e.pointerType?K(O(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&K(O(e.target,t),e.pointerType,!1),e.isOverTarget=!1}};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){let{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",l||p||(0,_.A)(t.currentTarget),S||u(e.target),B(P(e.target,t),e.pointerType)&&t.stopPropagation(),H((0,o.k)(t.currentTarget),"scroll",r,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let n=L(t.nativeEvent,e.activePointerId),r=!0;n&&R(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=B(P(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=K(P(e.target,t),e.pointerType,!1),Y(P(e.target,t))),r&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let n=L(t.nativeEvent,e.activePointerId),r=!0;n&&R(n,t.currentTarget)&&null!=e.pointerType?(V(P(e.target,t),e.pointerType),r=K(P(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=K(P(e.target,t),e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!S&&c(e.target),W()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&U(P(e.target,t)))};let r=t=>{e.isPressed&&t.target.contains(e.target)&&U({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&U(e)}}return t},[H,l,p,W,S,U,Y,K,B,V]);return(0,x.useEffect)(()=>()=>{var e;S||c(null!==(e=F.current.target)&&void 0!==e?e:void 0)},[S]),{isPressed:f||I,pressProps:(0,h.d)(D,J)}}function k(e){return"A"===e.tagName&&e.hasAttribute("href")}function M(e,t){let{key:n,code:r}=e,i=t.getAttribute("role");return("Enter"===n||" "===n||"Spacebar"===n||"Space"===r)&&!(t instanceof(0,o.k)(t).HTMLInputElement&&!D(t,n)||t instanceof(0,o.k)(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===i||!i&&k(t))&&"Enter"!==n)}function L(e,t){let n=e.changedTouches;for(let e=0;ei.right)&&!(i.left>o.right)&&!(o.top>i.bottom)&&!(i.top>o.bottom)}function $(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function N(e){return!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!k(e))}function j(e,t){return e instanceof HTMLInputElement?!D(e,t):N(e)}let A=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function D(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:A.has(e.type)}},3100:function(e,t,n){"use strict";n.d(t,{d:function(){return s}});var r=n(9589),o=n(1841),i=n(2013);class a{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function s(e){let t=(0,r.useRef)({isFocused:!1,observer:null});(0,o.b)(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=(0,i.i)(t=>{null==e||e(t)});return(0,r.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{t.current.isFocused=!1,r.disabled&&n(new a("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}},5663:function(e,t,n){"use strict";n.d(t,{O:function(){return i},v:function(){return o}});var r=n(9589);let o=new WeakMap;function i(e){let{triggerRef:t,isOpen:n,onClose:i}=e;(0,r.useEffect)(()=>{if(!n||null===i)return;let e=e=>{let n=e.target;if(!t.current||n instanceof Node&&!n.contains(t.current)||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let r=i||o.get(t.current);r&&r()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[n,i,t])}},4697:function(e,t,n){"use strict";n.d(t,{N3:function(){return u},Xj:function(){return c}});var r=n(9589),o=n(9297),i=n(6717);let a=r.createContext(null);function s(e){let{children:t}=e,n=(0,r.useContext)(a),[o,i]=(0,r.useState)(0),s=(0,r.useMemo)(()=>({parent:n,modalCount:o,addModal(){i(e=>e+1),n&&n.addModal()},removeModal(){i(e=>e-1),n&&n.removeModal()}}),[n,o]);return r.createElement(a.Provider,{value:s},t)}function l(e){let t;let{modalProviderProps:n}={modalProviderProps:{"aria-hidden":!!(t=(0,r.useContext)(a))&&t.modalCount>0||void 0}};return r.createElement("div",{"data-overlay-container":!0,...e,...n})}function u(e){return r.createElement(s,null,r.createElement(l,e))}function c(e){let t=(0,i.Av)(),{portalContainer:n=t?null:document.body,...a}=e;if(r.useEffect(()=>{if(null==n?void 0:n.closest("[data-overlay-container]"))throw Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let s=r.createElement(u,a);return o.createPortal(s,n)}},1699:function(e,t,n){"use strict";n.d(t,{I:function(){return c}});var r=n(7599),o=n(9589),i=n(2013),a=n(4229);function s(e,t){if(e.button>0)return!1;if(e.target){let t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}var l=n(4915);let u=[];function c(e,t){let{onClose:n,shouldCloseOnBlur:c,isOpen:d,isDismissable:f=!1,isKeyboardDismissDisabled:p=!1,shouldCloseOnInteractOutside:h}=e;(0,o.useEffect)(()=>(d&&u.push(t),()=>{let e=u.indexOf(t);e>=0&&u.splice(e,1)}),[d,t]);let g=()=>{u[u.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:l}=e,u=(0,o.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),c=(0,i.i)(e=>{n&&s(e,t)&&(l&&l(e),u.current.isPointerDown=!0)}),d=(0,i.i)(e=>{n&&n(e)});(0,o.useEffect)(()=>{let e=u.current;if(r)return;let n=t.current,o=(0,a.r)(n);if("undefined"!=typeof PointerEvent){let n=n=>{e.isPointerDown&&s(n,t)&&d(n),e.isPointerDown=!1};return o.addEventListener("pointerdown",c,!0),o.addEventListener("pointerup",n,!0),()=>{o.removeEventListener("pointerdown",c,!0),o.removeEventListener("pointerup",n,!0)}}{let n=n=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&s(n,t)&&d(n),e.isPointerDown=!1},r=n=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&s(n,t)&&d(n),e.isPointerDown=!1};return o.addEventListener("mousedown",c,!0),o.addEventListener("mouseup",n,!0),o.addEventListener("touchstart",c,!0),o.addEventListener("touchend",r,!0),()=>{o.removeEventListener("mousedown",c,!0),o.removeEventListener("mouseup",n,!0),o.removeEventListener("touchstart",c,!0),o.removeEventListener("touchend",r,!0)}}},[t,r,c,d])}({ref:t,onInteractOutside:f&&d?e=>{(!h||h(e.target))&&(u[u.length-1]===t&&(e.stopPropagation(),e.preventDefault()),g())}:void 0,onInteractOutsideStart:e=>{(!h||h(e.target))&&u[u.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:m}=(0,l.L)({isDisabled:!c,onBlurWithin:e=>{!(!e.relatedTarget||(0,r.cW)(e.relatedTarget))&&(!h||h(e.relatedTarget))&&(null==n||n())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||p||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),g())},...m},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}},8390:function(e,t,n){"use strict";n.d(t,{t:function(){return S}});var r=n(7894);function o(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}let i={top:"top",bottom:"top",left:"left",right:"left"},a={top:"bottom",bottom:"top",left:"right",right:"left"},s={top:"left",left:"top"},l={top:"height",left:"width"},u={width:"totalWidth",height:"totalHeight"},c={},d="undefined"!=typeof document?window.visualViewport:null;function f(e){var t,n,o,i,a;let s=0,l=0,u=0,c=0,f=0,p=0,h={},g=(null!==(t=null==d?void 0:d.scale)&&void 0!==t?t:1)>1;if("BODY"===e.tagName){let t=document.documentElement;u=t.clientWidth,c=t.clientHeight,s=null!==(n=null==d?void 0:d.width)&&void 0!==n?n:u,l=null!==(o=null==d?void 0:d.height)&&void 0!==o?o:c,h.top=t.scrollTop||e.scrollTop,h.left=t.scrollLeft||e.scrollLeft,d&&(f=d.offsetTop,p=d.offsetLeft)}else({width:s,height:l,top:f,left:p}=v(e)),h.top=e.scrollTop,h.left=e.scrollLeft,u=s,c=l;return(0,r.Pf)()&&("BODY"===e.tagName||"HTML"===e.tagName)&&g&&(h.top=0,h.left=0,f=null!==(i=null==d?void 0:d.pageTop)&&void 0!==i?i:0,p=null!==(a=null==d?void 0:d.pageLeft)&&void 0!==a?a:0),{width:s,height:l,totalWidth:u,totalHeight:c,scroll:h,top:f,left:p}}function p(e,t,n,r,o,a,s){var u;let c=null!==(u=o.scroll[e])&&void 0!==u?u:0,d=r[l[e]],f=r.scroll[i[e]]+a,p=d+r.scroll[i[e]]-a,h=t-c+s[e]-r[i[e]],g=t-c+n+s[e]-r[i[e]];return hp?Math.max(p-g,f-h):0}function h(e){if(c[e])return c[e];let[t,n]=e.split(" "),r=i[t]||"right",o=s[r];i[n]||(n="center");let a=l[r],u=l[o];return c[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:a,crossSize:u},c[e]}function g(e,t,n,r,i,s,l,c,d,f){var p,h,g,m,v;let{placement:b,crossPlacement:y,axis:w,crossAxis:_,size:x,crossSize:E}=r,C={};C[_]=null!==(p=e[_])&&void 0!==p?p:0,"center"===y?C[_]+=((null!==(h=e[E])&&void 0!==h?h:0)-(null!==(g=n[E])&&void 0!==g?g:0))/2:y!==_&&(C[_]+=(null!==(m=e[E])&&void 0!==m?m:0)-(null!==(v=n[E])&&void 0!==v?v:0)),C[_]+=s;let T=e[_]-n[E]+d+f,S=e[_]+e[E]-d-f;if(C[_]=o(C[_],T,S),b===w){let n=c?l[x]:t[u[x]];C[a[w]]=Math.floor(n-e[w]+i)}else C[w]=Math.floor(e[w]+e[x]+i);return C}function m(e,t,n,r,o,i){var s,l,u;let{placement:c,axis:d,size:f}=i;return c===d?Math.max(0,n[d]-e[d]-(null!==(s=e.scroll[d])&&void 0!==s?s:0)+t[d]-(null!==(l=r[d])&&void 0!==l?l:0)-r[a[d]]-o):Math.max(0,e[f]+e[d]+e.scroll[d]-t[d]-n[d]-n[f]-(null!==(u=r[d])&&void 0!==u?u:0)-r[a[d]]-o)}function v(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:a,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+i-s,left:n+a-l,width:r,height:o}}function b(e,t){let n,r=window.getComputedStyle(e);if("fixed"===r.position){let{top:t,left:r,width:o,height:i}=e.getBoundingClientRect();n={top:t,left:r,width:o,height:i}}else{n=v(e);let r=v(t),o=window.getComputedStyle(t);r.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,r.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=r.top,n.left-=r.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function y(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}var w=n(5663),_=n(9589),x=n(1841);function E(e){let{ref:t,box:n,onResize:r}=e;(0,_.useEffect)(()=>{let e=null==t?void 0:t.current;if(e){if(!(void 0!==window.ResizeObserver))return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)};{let t=new window.ResizeObserver(e=>{e.length&&r()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}}},[r,t,n])}var C=n(2314);let T="undefined"!=typeof document?window.visualViewport:null;function S(e){var t,n;let{direction:r}=(0,C.j)(),{arrowSize:s=0,targetRef:l,overlayRef:c,scrollRef:d=c,placement:S="bottom",containerPadding:k=12,shouldFlip:M=!0,boundaryElement:L="undefined"!=typeof document?document.body:null,offset:P=0,crossOffset:O=0,shouldUpdatePosition:R=!0,isOpen:$=!0,onClose:N,maxHeight:j,arrowBoundaryOffset:A=0}=e,[D,I]=(0,_.useState)(null),z=[R,S,c.current,l.current,d.current,k,M,L,P,O,$,r,j,A,s],F=(0,_.useRef)(null==T?void 0:T.scale);(0,_.useEffect)(()=>{$&&(F.current=null==T?void 0:T.scale)},[$]);let H=(0,_.useCallback)(()=>{var e,t,n,w,_;if(!1===R||!$||!c.current||!l.current||!L||(null==T?void 0:T.scale)!==F.current)return;let x=null;if(d.current&&d.current.contains(document.activeElement)){let r=null===(e=document.activeElement)||void 0===e?void 0:e.getBoundingClientRect(),o=d.current.getBoundingClientRect();(x={type:"top",offset:(null!==(t=null==r?void 0:r.top)&&void 0!==t?t:0)-o.top}).offset>o.height/2&&(x.type="bottom",x.offset=(null!==(n=null==r?void 0:r.bottom)&&void 0!==n?n:0)-o.bottom)}let E=c.current;!j&&c.current&&(E.style.top="0px",E.style.bottom="",E.style.maxHeight=(null!==(_=null===(w=window.visualViewport)||void 0===w?void 0:w.height)&&void 0!==_?_:window.innerHeight)+"px");let C=function(e){var t,n,r,s;let l;let{placement:c,targetNode:d,overlayNode:w,scrollNode:_,padding:x,shouldFlip:E,boundaryElement:C,offset:T,crossOffset:S,maxHeight:k,arrowSize:M=0,arrowBoundaryOffset:L=0}=e,P=w instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!y(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!y(t);)t=t.parentElement;return t||document.documentElement}(w):document.documentElement,O=P===document.documentElement,R=window.getComputedStyle(P).position,$=O?v(d):b(d,P);if(!O){let{marginTop:e,marginLeft:t}=window.getComputedStyle(d);$.top+=parseInt(e,10)||0,$.left+=parseInt(t,10)||0}let N=v(w),j={top:parseInt((l=window.getComputedStyle(w)).marginTop,10)||0,bottom:parseInt(l.marginBottom,10)||0,left:parseInt(l.marginLeft,10)||0,right:parseInt(l.marginRight,10)||0};N.width+=(null!==(t=j.left)&&void 0!==t?t:0)+(null!==(n=j.right)&&void 0!==n?n:0),N.height+=(null!==(r=j.top)&&void 0!==r?r:0)+(null!==(s=j.bottom)&&void 0!==s?s:0);let A={top:_.scrollTop,left:_.scrollLeft,width:_.scrollWidth,height:_.scrollHeight},D=f(C),I=f(P),z="BODY"===C.tagName?v(P):b(P,C);return"HTML"===P.tagName&&"BODY"===C.tagName&&(I.scroll.top=0,I.scroll.left=0),function(e,t,n,r,s,l,c,d,f,v,b,y,w,_,x,E){var C,T,S,k;let M=h(e),{size:L,crossAxis:P,crossSize:O,placement:R,crossPlacement:$}=M,N=g(t,d,n,M,b,y,v,w,x,E),j=b,A=m(d,v,t,s,l+b,M);if(c&&r[L]>A){let e=h(`${a[R]} ${$}`),r=g(t,d,n,e,b,y,v,w,x,E);m(d,v,t,s,l+b,e)>A&&(M=e,N=r,j=b)}let D="bottom";"top"===M.axis?"top"===M.placement?D="top":"bottom"===M.placement&&(D="bottom"):"top"===M.crossAxis&&("top"===M.crossPlacement?D="bottom":"bottom"===M.crossPlacement&&(D="top"));let I=p(P,N[P],n[O],d,f,l,v);N[P]+=I;let z=function(e,t,n,r,o,i,a,s){var l,c,d,f,p,h,g;let m=r?n.height:t[u.height],v=null!=e.top?n.top+e.top:n.top+(m-(null!==(l=e.bottom)&&void 0!==l?l:0)-a),b="top"!==s?Math.max(0,t.height+t.top+(null!==(c=t.scroll.top)&&void 0!==c?c:0)-v-((null!==(d=o.top)&&void 0!==d?d:0)+(null!==(f=o.bottom)&&void 0!==f?f:0)+i)):Math.max(0,v+a-(t.top+(null!==(p=t.scroll.top)&&void 0!==p?p:0))-((null!==(h=o.top)&&void 0!==h?h:0)+(null!==(g=o.bottom)&&void 0!==g?g:0)+i));return Math.min(t.height-2*i,b)}(N,d,v,w,s,l,n.height,D);_&&_E.style[e]=C.position[e]+"px"),E.style.maxHeight=null!=C.maxHeight?C.maxHeight+"px":"",x&&document.activeElement&&d.current){let e=document.activeElement.getBoundingClientRect(),t=d.current.getBoundingClientRect(),n=e[x.type]-t[x.type];d.current.scrollTop+=n-x.offset}I(C)}},z);(0,x.b)(H,z),(0,x.b)(()=>(window.addEventListener("resize",H,!1),()=>{window.removeEventListener("resize",H,!1)}),[H]),E({ref:c,onResize:H}),E({ref:l,onResize:H});let W=(0,_.useRef)(!1);(0,x.b)(()=>{let e;let t=()=>{W.current=!0,clearTimeout(e),e=setTimeout(()=>{W.current=!1},500),H()},n=()=>{W.current&&t()};return null==T||T.addEventListener("resize",t),null==T||T.addEventListener("scroll",n),()=>{null==T||T.removeEventListener("resize",t),null==T||T.removeEventListener("scroll",n)}},[H]);let B=(0,_.useCallback)(()=>{W.current||null==N||N()},[N,W]);return(0,w.O)({triggerRef:l,isOpen:$,onClose:N&&B}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...null==D?void 0:D.position,maxHeight:null!==(t=null==D?void 0:D.maxHeight)&&void 0!==t?t:"100vh"}},placement:null!==(n=null==D?void 0:D.placement)&&void 0!==n?n:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:null==D?void 0:D.arrowOffsetLeft,top:null==D?void 0:D.arrowOffsetTop}},updatePosition:H}}},6717:function(e,t,n){"use strict";n.d(t,{Av:function(){return p},gP:function(){return u}});var r=n(9589);let o={prefix:String(Math.round(1e10*Math.random())),current:0},i=r.createContext(o),a=r.createContext(!1),s=!!("undefined"!=typeof window&&window.document&&window.document.createElement),l=new WeakMap,u="function"==typeof r.useId?function(e){let t=r.useId(),[n]=(0,r.useState)(p()),i=n?"react-aria":`react-aria${o.prefix}`;return e||`${i}-${t}`}:function(e){let t=(0,r.useContext)(i);t!==o||s||console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=function(e=!1){let t=(0,r.useContext)(i),n=(0,r.useRef)(null);if(null===n.current&&!e){var o,a;let e=null===(a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===a?void 0:null===(o=a.ReactCurrentOwner)||void 0===o?void 0:o.current;if(e){let n=l.get(e);null==n?l.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,l.delete(e))}n.current=++t.current}return n.current}(!!e),a=`react-aria${t.prefix}`;return e||`${a}-${n}`};function c(){return!1}function d(){return!0}function f(e){return()=>{}}function p(){return"function"==typeof r.useSyncExternalStore?r.useSyncExternalStore(f,c,d):(0,r.useContext)(a)}},6367:function(e,t,n){"use strict";function r(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}n.d(t,{t:function(){return r}})},4229:function(e,t,n){"use strict";n.d(t,{k:function(){return o},r:function(){return r}});let r=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},o=e=>e&&"window"in e&&e.window===e?e:r(e).defaultView||window},341:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});let r=new Set(["id"]),o=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),i=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),a=/^(data-.*)$/;function s(e,t={}){let{labelable:n,isLink:s,propNames:l}=t,u={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r.has(t)||n&&o.has(t)||s&&i.has(t)||(null==l?void 0:l.has(t))||a.test(t))&&(u[t]=e[t]);return u}},1723:function(e,t,n){"use strict";function r(e){if(function(){if(null==o){o=!1;try{document.createElement("div").focus({get preventScroll(){return o=!0,!0}})}catch{}}return o}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight=65&&90>=e.charCodeAt(2)?t[e]=(0,r.t)(n,s):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof s?t[e]=i(n,s):"id"===e&&n&&s?t.id=(0,o.ur)(n,s):t[e]=void 0!==s?s:n}}return t}},501:function(e,t,n){"use strict";n.d(t,{eY:function(){return d},nG:function(){return u},pG:function(){return s},tv:function(){return l}});var r=n(1723),o=n(7894),i=n(9589);let a=(0,i.createContext)({isNative:!0,open:function(e,t){c(e,e=>u(e,t))},useHref:e=>e});function s(e){let{children:t,navigate:n,useHref:r}=e,o=(0,i.useMemo)(()=>({isNative:!1,open:(e,t,r,o)=>{c(e,e=>{let i;(i=e.getAttribute("target"))&&"_self"!==i||e.origin!==location.origin||e.hasAttribute("download")||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey?u(e,t):n(r,o)})},useHref:r||(e=>e)}),[n,r]);return i.createElement(a.Provider,{value:o},t)}function l(){return(0,i.useContext)(a)}function u(e,t,n=!0){var i,a;let{metaKey:s,ctrlKey:l,altKey:c,shiftKey:d}=t;(0,o.vU)()&&(null===(a=window.event)||void 0===a?void 0:null===(i=a.type)||void 0===i?void 0:i.startsWith("key"))&&"_blank"===e.target&&((0,o.V5)()?s=!0:l=!0);let f=(0,o.Pf)()&&(0,o.V5)()&&!(0,o.zc)()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:l,altKey:c,shiftKey:d}):new MouseEvent("click",{metaKey:s,ctrlKey:l,altKey:c,shiftKey:d,bubbles:!0,cancelable:!0});u.isOpening=n,(0,r.A)(e),e.dispatchEvent(f),u.isOpening=!1}function c(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function d(e){var t;let n=l().useHref(null!==(t=null==e?void 0:e.href)&&void 0!==t?t:"");return{href:(null==e?void 0:e.href)?n:void 0,target:null==e?void 0:e.target,rel:null==e?void 0:e.rel,download:null==e?void 0:e.download,ping:null==e?void 0:e.ping,referrerPolicy:null==e?void 0:e.referrerPolicy}}u.isOpening=!1},7894:function(e,t,n){"use strict";function r(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function o(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function i(e){let t=null;return()=>(null==t&&(t=e()),t)}n.d(t,{Dt:function(){return p},Pf:function(){return d},V5:function(){return a},ad:function(){return c},gn:function(){return u},vU:function(){return h},zc:function(){return l}});let a=i(function(){return o(/^Mac/i)}),s=i(function(){return o(/^iPhone/i)}),l=i(function(){return o(/^iPad/i)||a()&&navigator.maxTouchPoints>1}),u=i(function(){return s()||l()}),c=i(function(){return a()||u()}),d=i(function(){return r(/AppleWebKit/i)&&!f()}),f=i(function(){return r(/Chrome/i)}),p=i(function(){return r(/Android/i)}),h=i(function(){return r(/Firefox/i)})},2097:function(e,t,n){"use strict";n.d(t,{Q:function(){return a}});let r=new Map,o=new Set;function i(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let i=r.get(n.target);if(i&&(i.delete(n.propertyName),0===i.size&&(n.target.removeEventListener("transitioncancel",t),r.delete(n.target)),0===r.size)){for(let e of o)e();o.clear()}};document.body.addEventListener("transitionrun",n=>{if(!e(n)||!n.target)return;let o=r.get(n.target);o||(o=new Set,r.set(n.target,o),n.target.addEventListener("transitioncancel",t,{once:!0})),o.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}function a(e){requestAnimationFrame(()=>{0===r.size?e():o.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?i():document.addEventListener("DOMContentLoaded",i))},2013:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(1841),o=n(9589);function i(e){let t=(0,o.useRef)(null);return(0,r.b)(()=>{t.current=e},[e]),(0,o.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}},7278:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var r=n(9589);function o(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,r,o)},[]),n=(0,r.useCallback)((t,n,r,o)=>{var i;let a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)},[]),o=(0,r.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,r.useEffect)(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:o}}},6176:function(e,t,n){"use strict";n.d(t,{ur:function(){return c},Me:function(){return u},mp:function(){return d}});var r=n(1841),o=n(2013),i=n(9589),a=n(6717);let s=!!("undefined"!=typeof window&&window.document&&window.document.createElement),l=new Map;function u(e){let[t,n]=(0,i.useState)(e),o=(0,i.useRef)(null),u=(0,a.gP)(t),c=(0,i.useCallback)(e=>{o.current=e},[]);return s&&(l.has(u)&&!l.get(u).includes(c)?l.set(u,[...l.get(u),c]):l.set(u,[c])),(0,r.b)(()=>()=>{l.delete(u)},[u]),(0,i.useEffect)(()=>{let e=o.current;e&&(o.current=null,n(e))}),u}function c(e,t){if(e===t)return e;let n=l.get(e);if(n)return n.forEach(e=>e(t)),t;let r=l.get(t);return r?(r.forEach(t=>t(e)),e):t}function d(e=[]){let t=u(),[n,a]=function(e){let[t,n]=(0,i.useState)(e),a=(0,i.useRef)(null),s=(0,o.i)(()=>{if(!a.current)return;let e=a.current.next();if(e.done){a.current=null;return}t===e.value?s():n(e.value)});(0,r.b)(()=>{a.current&&s()});let l=(0,o.i)(e=>{a.current=e(t),s()});return[t,l]}(t),s=(0,i.useCallback)(()=>{a(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,a]);return(0,r.b)(s,[t,s,...e]),n}},1841:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(9589);let o="undefined"!=typeof document?r.useLayoutEffect:()=>{}},5362:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(1841);function o(e,t){(0,r.b)(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}},8215:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(9589),o=n(125);function i(e){let[t,n]=(0,o.z)(e.isOpen,e.defaultOpen||!1,e.onOpenChange),i=(0,r.useCallback)(()=>{n(!0)},[n]),a=(0,r.useCallback)(()=>{n(!1)},[n]),s=(0,r.useCallback)(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:i,close:a,toggle:s}}},125:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(9589);function o(e,t,n){let[o,i]=(0,r.useState)(e||t),a=(0,r.useRef)(void 0!==e),s=void 0!==e;(0,r.useEffect)(()=>{let e=a.current;e!==s&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let l=s?e:o,u=(0,r.useCallback)((e,...t)=>{let r=(e,...t)=>{n&&!Object.is(l,e)&&n(e,...t),s||(l=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((n,...o)=>{let i=e(s?l:n,...o);return(r(i,...t),s)?n:i})):(s||i(e),r(e,...t))},[s,l,n]);return[l,u]}},3276:function(e,t,n){"use strict";n.d(t,{M:function(){return r}});let r="data-"+(0,n(26).D)("framerAppearId")},5150:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}n.d(t,{H:function(){return r}})},3666:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});let r=e=>Array.isArray(e)},4111:function(e,t,n){"use strict";n.d(t,{M:function(){return v}});var r=n(217),o=n(9589),i=n(6526),a=n(4141),s=n(5302);class l extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u({children:e,isPresent:t}){let n=(0,o.useId)(),i=(0,o.useRef)(null),a=(0,o.useRef)({width:0,height:0,top:0,left:0}),{nonce:u}=(0,o.useContext)(s._);return(0,o.useInsertionEffect)(()=>{let{width:e,height:r,top:o,left:s}=a.current;if(t||!i.current||!e||!r)return;i.current.dataset.motionPopId=n;let l=document.createElement("style");return u&&(l.nonce=u),document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${e}px !important; + height: ${r}px !important; + top: ${o}px !important; + left: ${s}px !important; + } + `),()=>{document.head.removeChild(l)}},[t]),(0,r.jsx)(l,{isPresent:t,childRef:i,sizeRef:a,children:o.cloneElement(e,{ref:i})})}let c=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:l,presenceAffectsLayout:c,mode:f})=>{let p=(0,a.h)(d),h=(0,o.useId)(),g=(0,o.useCallback)(e=>{for(let t of(p.set(e,!0),p.values()))if(!t)return;s&&s()},[p,s]),m=(0,o.useMemo)(()=>({id:h,initial:t,isPresent:n,custom:l,onExitComplete:g,register:e=>(p.set(e,!1),()=>p.delete(e))}),c?[Math.random(),g]:[n,g]);return(0,o.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[n]),o.useEffect(()=>{n||p.size||!s||s()},[n]),"popLayout"===f&&(e=(0,r.jsx)(u,{isPresent:n,children:e})),(0,r.jsx)(i.O.Provider,{value:m,children:e})};function d(){return new Map}var f=n(6502),p=n(1257);let h=e=>e.key||"";function g(e){let t=[];return o.Children.forEach(e,e=>{(0,o.isValidElement)(e)&&t.push(e)}),t}var m=n(8154);let v=({children:e,exitBeforeEnter:t,custom:n,initial:i=!0,onExitComplete:s,presenceAffectsLayout:l=!0,mode:u="sync"})=>{(0,p.k)(!t,"Replace exitBeforeEnter with mode='wait'");let d=(0,o.useMemo)(()=>g(e),[e]),v=d.map(h),b=(0,o.useRef)(!0),y=(0,o.useRef)(d),w=(0,a.h)(()=>new Map),[_,x]=(0,o.useState)(d),[E,C]=(0,o.useState)(d);(0,m.L)(()=>{b.current=!1,y.current=d;for(let e=0;e{let t=h(e),o=d===E||v.includes(t);return(0,r.jsx)(c,{isPresent:o,initial:(!b.current||!!i)&&void 0,custom:o?void 0:n,presenceAffectsLayout:l,mode:u,onExitComplete:o?void 0:()=>{if(!w.has(t))return;w.set(t,!0);let e=!0;w.forEach(t=>{t||(e=!1)}),e&&(null==S||S(),C(y.current),s&&s())},children:e},t)})})}},3264:function(e,t,n){"use strict";n.d(t,{X:function(){return s}});var r=n(217),o=n(9589),i=n(2015),a=n(1615);function s({children:e,features:t,strict:n=!1}){let[,s]=(0,o.useState)(!l(t)),u=(0,o.useRef)(void 0);if(!l(t)){let{renderer:e,...n}=t;u.current=e,(0,a.K)(n)}return(0,o.useEffect)(()=>{l(t)&&t().then(({renderer:e,...t})=>{(0,a.K)(t),u.current=e,s(!0)})},[]),(0,r.jsx)(i.u.Provider,{value:{renderer:u.current,strict:n},children:e})}function l(e){return"function"==typeof e}},6502:function(e,t,n){"use strict";n.d(t,{p:function(){return r}});let r=(0,n(9589).createContext)({})},2015:function(e,t,n){"use strict";n.d(t,{u:function(){return r}});let r=(0,n(9589).createContext)({strict:!1})},5302:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});let r=(0,n(9589).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},6526:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});let r=(0,n(9589).createContext)(null)},6458:function(e,t,n){"use strict";n.d(t,{g:function(){return r}});let r=(0,n(9589).createContext)({})},5678:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(3376);let o=["read","resolveKeyframes","update","preRender","render","postRender"];function i(e,t){let n=!1,i=!0,a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=o.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1,i=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}let l={schedule:(e,o=!1,a=!1)=>{let s=a&&r?t:n;return o&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{if(a=e,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,o&&(o=!1,l.process(e))}};return l}(s),e),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:p,postRender:h}=l,g=()=>{let o=r.c.useManualTiming?a.timestamp:performance.now();n=!1,a.delta=i?1e3/60:Math.max(Math.min(o-a.timestamp,40),1),a.timestamp=o,a.isProcessing=!0,u.process(a),c.process(a),d.process(a),f.process(a),p.process(a),h.process(a),a.isProcessing=!1,n&&t&&(i=!1,e(g))},m=()=>{n=!0,i=!0,a.isProcessing||e(g)};return{schedule:o.reduce((e,t)=>{let r=l[t];return e[t]=(e,t=!1,o=!1)=>(n||m(),r.schedule(e,t,o)),e},{}),cancel:e=>{for(let t=0;tr[e].some(e=>!!t[e])}},1615:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(3971);function o(e){for(let t in e)r.featureDefinitions[t]={...r.featureDefinitions[t],...e[t]}}},2393:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});var r=n(8866),o=n(1389);function i(e,{layout:t,layoutId:n}){return o.G.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!r.P[e]||"opacity"===e)}},8866:function(e,t,n){"use strict";n.d(t,{B:function(){return o},P:function(){return r}});let r={};function o(e){Object.assign(r,e)}},1530:function(e,t,n){"use strict";n.d(t,{x:function(){return W}});var r=n(217),o=n(9589),i=n(5302);let a=(0,o.createContext)({});var s=n(6526),l=n(8154),u=n(2015),c=n(3276),d=n(817),f=n(790),p=n(6458),h=n(6315),g=n(1574);function m(e){return Array.isArray(e)?e.join(" "):e}var v=n(1615),b=n(5866),y=n(6502);let w=Symbol.for("motionComponentSymbol");var _=n(3971),x=n(8316),E=n(6745),C=n(5603),T=n(5150),S=n(9174),k=n(4141),M=n(4718);let L=e=>(t,n)=>{let r=(0,o.useContext)(a),i=(0,o.useContext)(s.O),l=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){let a={latestValues:function(e,t,n,r){let o={},i=r(e,{});for(let e in i)o[e]=(0,M.b)(i[e]);let{initial:a,animate:s}=e,l=(0,g.G)(e),u=(0,g.M)(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===a)?s:a;if(d&&"boolean"!=typeof d&&!(0,T.H)(d)){let t=Array.isArray(d)?d:[d];for(let n=0;nn(r,e,a)),a})(e,t,r,i);return n?l():(0,k.h)(l)},P=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),O=()=>({...P(),attrs:{}});var R=n(889),$=n(1176),N=n(1282);let j={useVisualState:L({scrapeMotionValuesFromProps:C.U,createRenderState:O,onMount:(e,t,{renderState:n,latestValues:r})=>{N.Wi.read(()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}}),N.Wi.render(()=>{(0,R.i)(n,r,(0,$.a)(t.tagName),e.transformTemplate),(0,E.K)(t,n)})}})},A={useVisualState:L({scrapeMotionValuesFromProps:n(1310).U,createRenderState:P})};var D=n(2393),I=n(9596),z=n(7436);function F(e,t,n){for(let r in t)(0,I.i)(t[r])||(0,D.j)(r,n)||(e[r]=t[r])}var H=n(9466);function W(e,t){return function(n,{forwardMotionProps:E}={forwardMotionProps:!1}){return function({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:x,Component:E}){e&&(0,v.K)(e);let C=(0,o.forwardRef)(function(e,v){var w;let C;let T={...(0,o.useContext)(i._),...e,layoutId:function({layoutId:e}){let t=(0,o.useContext)(y.p).id;return t&&void 0!==e?t+"-"+e:e}(e)},{isStatic:S}=T,k=function(e){let{initial:t,animate:n}=function(e,t){if((0,g.G)(e)){let{initial:t,animate:n}=e;return{initial:!1===t||(0,h.$)(t)?t:void 0,animate:(0,h.$)(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(a));return(0,o.useMemo)(()=>({initial:t,animate:n}),[m(t),m(n)])}(e),M=x(e,S);if(!S&&b.j){(0,o.useContext)(u.u).strict;let e=function(e){let{drag:t,layout:n}=_.featureDefinitions;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(T);C=e.MeasureLayout,k.visualElement=function(e,t,n,r,h){var g,m;let{visualElement:v}=(0,o.useContext)(a),b=(0,o.useContext)(u.u),y=(0,o.useContext)(s.O),w=(0,o.useContext)(i._).reducedMotion,_=(0,o.useRef)(null);r=r||b.renderer,!_.current&&r&&(_.current=r(e,{visualState:t,parent:v,props:n,presenceContext:y,blockInitialAnimation:!!y&&!1===y.initial,reducedMotionConfig:w}));let x=_.current,E=(0,o.useContext)(p.g);x&&!x.projection&&h&&("html"===x.type||"svg"===x.type)&&function(e,t,n,r){let{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!a||s&&(0,f.I)(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(_.current,n,h,E);let C=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{x&&C.current&&x.update(n,y)});let T=n[c.M],S=(0,o.useRef)(!!T&&!(null===(g=window.MotionHandoffIsComplete)||void 0===g?void 0:g.call(window,T))&&(null===(m=window.MotionHasOptimisedAnimation)||void 0===m?void 0:m.call(window,T)));return(0,l.L)(()=>{x&&(C.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),d.g.render(x.render),S.current&&x.animationState&&x.animationState.animateChanges())}),(0,o.useEffect)(()=>{x&&(!S.current&&x.animationState&&x.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,T)}),S.current=!1))}),x}(E,M,T,t,e.ProjectionNode)}return(0,r.jsxs)(a.Provider,{value:k,children:[C&&k.visualElement?(0,r.jsx)(C,{visualElement:k.visualElement,...T}):null,n(E,e,(w=k.visualElement,(0,o.useCallback)(e=>{e&&M.mount&&M.mount(e),w&&(e?w.mount(e):w.unmount()),v&&("function"==typeof v?v(e):(0,f.I)(v)&&(v.current=e))},[w])),M,S,k.visualElement)]})});return C[w]=E,C}({...(0,x.q)(n)?j:A,preloadedFeatures:e,useRender:function(e=!1){return(t,n,r,{latestValues:i},a)=>{let s=((0,x.q)(t)?function(e,t,n,r){let i=(0,o.useMemo)(()=>{let n=O();return(0,R.i)(n,t,(0,$.a)(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};F(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return F(r,n,e),Object.assign(r,function({transformTemplate:e},t){return(0,o.useMemo)(()=>{let n=P();return(0,z.r)(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(n,i,a,t),l=(0,H.L)(n,"string"==typeof t,e),u=t!==o.Fragment?{...l,...s,ref:r}:{},{children:c}=n,d=(0,o.useMemo)(()=>(0,I.i)(c)?c.get():c,[c]);return(0,o.createElement)(t,{...u,children:d})}}(E),createVisualElement:t,Component:n})}}},9170:function(e,t,n){"use strict";function r(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}n.d(t,{c:function(){return r}})},2414:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var r=n(9170);let o=(0,n(1530).x)(),i=(0,r.c)(o)},26:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});let r=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},9466:function(e,t,n){"use strict";n.d(t,{L:function(){return s},K:function(){return a}});let r=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function o(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||r.has(e)}let i=e=>!o(e);function a(e){e&&(i=t=>t.startsWith("on")?!o(t):e(t))}try{a(require("@emotion/is-prop-valid").default)}catch(e){}function s(e,t,n){let r={};for(let a in e)("values"!==a||"object"!=typeof e.values)&&(i(a)||!0===n&&o(a)||!t&&!o(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}},6849:function(e,t,n){"use strict";n.d(t,{f:function(){return o},t:function(){return a}});let r=e=>t=>"string"==typeof t&&t.startsWith(e),o=r("--"),i=r("var(--"),a=e=>!!i(e)&&s.test(e.split("/*")[0].trim()),s=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},8316:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});let r=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function o(e){if("string"!=typeof e||e.includes("-"));else if(r.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}},8188:function(e,t,n){"use strict";n.d(t,{j:function(){return l}});var r=n(8813),o=n(6167);let i={borderWidth:o.px,borderTopWidth:o.px,borderRightWidth:o.px,borderBottomWidth:o.px,borderLeftWidth:o.px,borderRadius:o.px,radius:o.px,borderTopLeftRadius:o.px,borderTopRightRadius:o.px,borderBottomRightRadius:o.px,borderBottomLeftRadius:o.px,width:o.px,maxWidth:o.px,height:o.px,maxHeight:o.px,top:o.px,right:o.px,bottom:o.px,left:o.px,padding:o.px,paddingTop:o.px,paddingRight:o.px,paddingBottom:o.px,paddingLeft:o.px,margin:o.px,marginTop:o.px,marginRight:o.px,marginBottom:o.px,marginLeft:o.px,backgroundPositionX:o.px,backgroundPositionY:o.px},a={rotate:o.RW,rotateX:o.RW,rotateY:o.RW,rotateZ:o.RW,scale:r.bA,scaleX:r.bA,scaleY:r.bA,scaleZ:r.bA,skew:o.RW,skewX:o.RW,skewY:o.RW,distance:o.px,translateX:o.px,translateY:o.px,translateZ:o.px,x:o.px,y:o.px,z:o.px,perspective:o.px,transformPerspective:o.px,opacity:r.Fq,originX:o.$C,originY:o.$C,originZ:o.px},s={...r.Rx,transform:Math.round},l={...i,...a,zIndex:s,size:o.px,fillOpacity:r.Fq,strokeOpacity:r.Fq,numOctaves:s}},7436:function(e,t,n){"use strict";n.d(t,{r:function(){return u}});var r=n(1389);let o=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var i=n(8188);let a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},s=r._.length;var l=n(6849);function u(e,t,n){let{style:u,vars:c,transformOrigin:d}=e,f=!1,p=!1;for(let e in t){let n=t[e];if(r.G.has(e)){f=!0;continue}if((0,l.f)(e)){c[e]=n;continue}{let t=o(n,i.j[e]);e.startsWith("origin")?(p=!0,d[e]=t):u[e]=t}}if(!t.transform&&(f||n?u.transform=function(e,t,n){let l="",u=!0;for(let c=0;c"string"==typeof e&&"svg"===e.toLowerCase()},6745:function(e,t,n){"use strict";n.d(t,{K:function(){return a}});var r=n(26),o=n(3676),i=n(5030);function a(e,t,n,a){for(let n in(0,o.N)(e,t,void 0,a),t.attrs)e.setAttribute(i.s.has(n)?n:(0,r.D)(n),t.attrs[n])}},5603:function(e,t,n){"use strict";n.d(t,{U:function(){return a}});var r=n(9596),o=n(1310),i=n(1389);function a(e,t,n){let a=(0,o.U)(e,t,n);for(let n in e)((0,r.i)(e[n])||(0,r.i)(t[n]))&&(a[-1!==i._.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return a}},1574:function(e,t,n){"use strict";n.d(t,{G:function(){return a},M:function(){return s}});var r=n(5150),o=n(6315),i=n(899);function a(e){return(0,r.H)(e.animate)||i.V.some(t=>(0,o.$)(e[t]))}function s(e){return!!(a(e)||e.variants)}},6315:function(e,t,n){"use strict";function r(e){return"string"==typeof e||Array.isArray(e)}n.d(t,{$:function(){return r}})},9174:function(e,t,n){"use strict";function r(e){let t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function o(e,t,n,o){if("function"==typeof t){let[i,a]=r(o);t=t(void 0!==n?n:e.custom,i,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,a]=r(o);t=t(void 0!==n?n:e.custom,i,a)}return t}n.d(t,{o:function(){return o}})},899:function(e,t,n){"use strict";n.d(t,{V:function(){return o},e:function(){return r}});let r=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],o=["initial",...r]},3376:function(e,t,n){"use strict";n.d(t,{c:function(){return r}});let r={skipAnimations:!1,useManualTiming:!1}},1118:function(e,t,n){"use strict";n.d(t,{u:function(){return r}});let r=(e,t,n)=>n>t?t:n!!(e&&"object"==typeof e&&e.mix&&e.toValue),i=e=>(0,r.C)(e)?e[e.length-1]||0:e},4141:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(9589);function o(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},8154:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(9589);let o=n(5866).j?r.useLayoutEffect:r.useEffect},8813:function(e,t,n){"use strict";n.d(t,{Fq:function(){return i},Rx:function(){return o},bA:function(){return a}});var r=n(1118);let o={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},i={...o,transform:e=>(0,r.u)(0,1,e)},a={...o,default:1}},6167:function(e,t,n){"use strict";n.d(t,{$C:function(){return u},RW:function(){return o},aQ:function(){return i},px:function(){return a},vh:function(){return s},vw:function(){return l}});let r=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),o=r("deg"),i=r("%"),a=r("px"),s=r("vh"),l=r("vw"),u={...i,parse:e=>i.parse(e)/100,transform:e=>i.transform(100*e)}},9596:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});let r=e=>!!(e&&e.getVelocity)},4718:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(9281),o=n(9596);function i(e){let t=(0,o.i)(e)?e.get():e;return(0,r.p)(t)?t.toValue():t}},1257:function(e,t,n){"use strict";n.d(t,{K:function(){return o},k:function(){return i}});var r=n(8263);let o=r.Z,i=r.Z},8263:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=e=>e},5386:function(e,t,n){"use strict";n.d(t,{F:function(){return c},f:function(){return d}});var r=n(9589),o=(e,t,n,r,o,i,a,s)=>{let l=document.documentElement,u=["light","dark"];function c(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&i?o.map(e=>i[e]||e):o;n?(l.classList.remove(...r),l.classList.add(t)):l.setAttribute(e,t)}),s&&u.includes(t)&&(l.style.colorScheme=t)}if(r)c(r);else try{let e=localStorage.getItem(t)||n,r=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(r)}catch(e){}},i=["light","dark"],a="(prefers-color-scheme: dark)",s="undefined"==typeof window,l=r.createContext(void 0),u={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=r.useContext(l))?e:u},d=e=>r.useContext(l)?r.createElement(r.Fragment,null,e.children):r.createElement(p,{...e}),f=["light","dark"],p=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:s="theme",themes:u=f,defaultTheme:c=n?"system":"light",attribute:d="data-theme",value:p,children:b,nonce:y,scriptProps:w})=>{let[_,x]=r.useState(()=>g(s,c)),[E,C]=r.useState(()=>g(s)),T=p?Object.values(p):u,S=r.useCallback(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=v());let a=p?p[r]:r,s=t?m(y):null,l=document.documentElement,u=e=>{"class"===e?(l.classList.remove(...T),a&&l.classList.add(a)):e.startsWith("data-")&&(a?l.setAttribute(e,a):l.removeAttribute(e))};if(Array.isArray(d)?d.forEach(u):u(d),o){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[y]),k=r.useCallback(e=>{let t="function"==typeof e?e(_):e;x(t);try{localStorage.setItem(s,t)}catch(e){}},[_]),M=r.useCallback(t=>{C(v(t)),"system"===_&&n&&!e&&S("system")},[_,e]);r.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(M),M(e),()=>e.removeListener(M)},[M]),r.useEffect(()=>{let e=e=>{e.key===s&&(e.newValue?x(e.newValue):k(c))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[k]),r.useEffect(()=>{S(null!=e?e:_)},[e,_]);let L=r.useMemo(()=>({theme:_,setTheme:k,forcedTheme:e,resolvedTheme:"system"===_?E:_,themes:n?[...u,"system"]:u,systemTheme:n?E:void 0}),[_,k,e,E,n,u]);return r.createElement(l.Provider,{value:L},r.createElement(h,{forcedTheme:e,storageKey:s,attribute:d,enableSystem:n,enableColorScheme:o,defaultTheme:c,value:p,themes:u,nonce:y,scriptProps:w}),b)},h=r.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:i,enableColorScheme:a,defaultTheme:s,value:l,themes:u,nonce:c,scriptProps:d})=>{let f=JSON.stringify([n,t,s,e,u,l,i,a]).slice(1,-1);return r.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?c:"",dangerouslySetInnerHTML:{__html:`(${o.toString()})(${f})`}})}),g=(e,t)=>{let n;if(!s){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},m=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},v=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},9362:function(e,t,n){"use strict";let r,o,i,a;n.d(t,{eK:function(){return te}});let s=Object.assign,l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),c=Array.isArray,d=e=>"[object Map]"===y(e),f=e=>"[object Set]"===y(e),p=e=>"function"==typeof e,h=e=>"string"==typeof e,g=e=>"symbol"==typeof e,m=e=>null!==e&&"object"==typeof e,v=e=>(m(e)||p(e))&&p(e.then)&&p(e.catch),b=Object.prototype.toString,y=e=>b.call(e),w=e=>y(e).slice(8,-1),_=e=>"[object Object]"===y(e),x=e=>h(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,E=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},C=/-(\w)/g;E(e=>e.replace(C,(e,t)=>t?t.toUpperCase():""));let T=/\B([A-Z])/g;E(e=>e.replace(T,"-$1").toLowerCase());let S=E(e=>e.charAt(0).toUpperCase()+e.slice(1));E(e=>e?`on${S(e)}`:"");let k=(e,t)=>!Object.is(e,t),M=new WeakSet;class L{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,r&&r.active&&r.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,M.has(this)&&(M.delete(this),this.trigger()))}notify(){(!(2&this.flags)||32&this.flags)&&(8&this.flags||function(e,t=!1){if(e.flags|=8,t){e.next=a,a=e;return}e.next=i,i=e}(this))}run(){if(!(1&this.flags))return this.fn();this.flags|=2,I(this),R(this);let e=o,t=A;o=this,A=!0;try{return this.fn()}finally{$(this),o=e,A=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)j(e);this.deps=this.depsTail=void 0,I(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?M.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){N(this)&&this.run()}get dirty(){return N(this)}}let P=0;function O(){let e;if(!(--P>0)){if(a){let e=a;for(a=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}for(;i;){let t=i;for(i=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}}function R(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function $(e){let t;let n=e.depsTail,r=n;for(;r;){let e=r.prevDep;-1===r.version?(r===n&&(n=e),j(r),function(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function N(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(function(e){if(4&e.flags&&!(16&e.flags)||(e.flags&=-17,e.globalVersion===z))return;e.globalVersion=z;let t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!N(e)){e.flags&=-3;return}let n=o,r=A;o=e,A=!0;try{R(e);let n=e.fn(e._value);(0===t.version||k(n,e._value))&&(e._value=n,t.version++)}catch(e){throw t.version++,e}finally{o=n,A=r,$(e),e.flags&=-3}}(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function j(e,t=!1){let{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)j(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}let A=!0,D=[];function I(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=o;o=void 0;try{t()}finally{o=e}}}let z=0;class F{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class H{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!o||!A||o===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==o)t=this.activeLink=new F(o,this),o.deps?(t.prevDep=o.depsTail,o.depsTail.nextDep=t,o.depsTail=t):o.deps=o.depsTail=t,function e(t){if(t.dep.sc++,4&t.sub.flags){let n=t.dep.computed;if(n&&!t.dep.subs){n.flags|=20;for(let t=n.deps;t;t=t.nextDep)e(t)}let r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}}(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=o.depsTail,t.nextDep=void 0,o.depsTail.nextDep=t,o.depsTail=t,o.deps===t&&(o.deps=e)}return t}trigger(e){this.version++,z++,this.notify(e)}notify(e){P++;try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{O()}}}let W=new WeakMap,B=Symbol(""),K=Symbol(""),V=Symbol("");function U(e,t,n){if(A&&o){let t=W.get(e);t||W.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new H),r.map=t,r.key=n),r.track()}}function Y(e,t,n,r,o,i){let a=W.get(e);if(!a){z++;return}let s=e=>{e&&e.trigger()};if(P++,"clear"===t)a.forEach(s);else{let o=c(e),i=o&&x(n);if(o&&"length"===n){let e=Number(r);a.forEach((t,n)=>{("length"===n||n===V||!g(n)&&n>=e)&&s(t)})}else switch((void 0!==n||a.has(void 0))&&s(a.get(n)),i&&s(a.get(V)),t){case"add":o?i&&s(a.get("length")):(s(a.get(B)),d(e)&&s(a.get(K)));break;case"delete":!o&&(s(a.get(B)),d(e)&&s(a.get(K)));break;case"set":d(e)&&s(a.get(B))}}O()}function J(e){let t=eS(e);return t===e?t:(U(t,"iterate",V),eT(e)?t:t.map(ek))}function Z(e){return U(e=eS(e),"iterate",V),e}let G={__proto__:null,[Symbol.iterator](){return X(this,Symbol.iterator,ek)},concat(...e){return J(this).concat(...e.map(e=>c(e)?J(e):e))},entries(){return X(this,"entries",e=>(e[1]=ek(e[1]),e))},every(e,t){return Q(this,"every",e,t,void 0,arguments)},filter(e,t){return Q(this,"filter",e,t,e=>e.map(ek),arguments)},find(e,t){return Q(this,"find",e,t,ek,arguments)},findIndex(e,t){return Q(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Q(this,"findLast",e,t,ek,arguments)},findLastIndex(e,t){return Q(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Q(this,"forEach",e,t,void 0,arguments)},includes(...e){return et(this,"includes",e)},indexOf(...e){return et(this,"indexOf",e)},join(e){return J(this).join(e)},lastIndexOf(...e){return et(this,"lastIndexOf",e)},map(e,t){return Q(this,"map",e,t,void 0,arguments)},pop(){return en(this,"pop")},push(...e){return en(this,"push",e)},reduce(e,...t){return ee(this,"reduce",e,t)},reduceRight(e,...t){return ee(this,"reduceRight",e,t)},shift(){return en(this,"shift")},some(e,t){return Q(this,"some",e,t,void 0,arguments)},splice(...e){return en(this,"splice",e)},toReversed(){return J(this).toReversed()},toSorted(e){return J(this).toSorted(e)},toSpliced(...e){return J(this).toSpliced(...e)},unshift(...e){return en(this,"unshift",e)},values(){return X(this,"values",ek)}};function X(e,t,n){let r=Z(e),o=r[t]();return r===e||eT(e)||(o._next=o.next,o.next=()=>{let e=o._next();return e.value&&(e.value=n(e.value)),e}),o}let q=Array.prototype;function Q(e,t,n,r,o,i){let a=Z(e),s=a!==e&&!eT(e),l=a[t];if(l!==q[t]){let t=l.apply(e,i);return s?ek(t):t}let u=n;a!==e&&(s?u=function(t,r){return n.call(this,ek(t),r,e)}:n.length>2&&(u=function(t,r){return n.call(this,t,r,e)}));let c=l.call(a,u,r);return s&&o?o(c):c}function ee(e,t,n,r){let o=Z(e),i=n;return o!==e&&(eT(e)?n.length>3&&(i=function(t,r,o){return n.call(this,t,r,o,e)}):i=function(t,r,o){return n.call(this,t,ek(r),o,e)}),o[t](i,...r)}function et(e,t,n){var r;let o=eS(e);U(o,"iterate",V);let i=o[t](...n);return(-1===i||!1===i)&&(r=n[0])&&r.__v_raw?(n[0]=eS(n[0]),o[t](...n)):i}function en(e,t,n=[]){D.push(A),A=!1,P++;let r=eS(e)[t].apply(e,n);return O(),!function(){let e=D.pop();A=void 0===e||e}(),r}let er=function(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return e=>e in t}("__proto__,__v_isRef,__isVue"),eo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(g));function ei(e){g(e)||(e=String(e));let t=eS(this);return U(t,"has",e),t.hasOwnProperty(e)}class ea{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;let r=this._isReadonly,o=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return o;if("__v_raw"===t)return n===(r?o?ew:ey:o?eb:ev).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let i=c(e);if(!r){let e;if(i&&(e=G[t]))return e;if("hasOwnProperty"===t)return ei}let a=Reflect.get(e,t,eL(e)?e:n);return(g(t)?eo.has(t):er(t))?a:(r||U(e,"get",t),o)?a:eL(a)?i&&x(t)?a:a.value:m(a)?r?ex(a):e_(a):a}}class es extends ea{constructor(e=!1){super(!1,e)}set(e,t,n,r){let o=e[t];if(!this._isShallow){let t=eC(o);if(eT(n)||eC(n)||(o=eS(o),n=eS(n)),!c(e)&&eL(o)&&!eL(n))return!t&&(o.value=n,!0)}let i=c(e)&&x(t)?Number(t)e,ef=e=>Reflect.getPrototypeOf(e);function ep(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function eh(e,t){let n=function(e,t){let n={get(n){let r=this.__v_raw,o=eS(r),i=eS(n);e||(k(n,i)&&U(o,"get",n),U(o,"get",i));let{has:a}=ef(o),s=t?ed:e?eM:ek;return a.call(o,n)?s(r.get(n)):a.call(o,i)?s(r.get(i)):void(r!==o&&r.get(n))},get size(){let t=this.__v_raw;return e||U(eS(t),"iterate",B),Reflect.get(t,"size",t)},has(t){let n=this.__v_raw,r=eS(n),o=eS(t);return e||(k(t,o)&&U(r,"has",t),U(r,"has",o)),t===o?n.has(t):n.has(t)||n.has(o)},forEach(n,r){let o=this,i=o.__v_raw,a=eS(i),s=t?ed:e?eM:ek;return e||U(a,"iterate",B),i.forEach((e,t)=>n.call(r,s(e),s(t),o))}};return s(n,e?{add:ep("add"),set:ep("set"),delete:ep("delete"),clear:ep("clear")}:{add(e){t||eT(e)||eC(e)||(e=eS(e));let n=eS(this);return ef(n).has.call(n,e)||(n.add(e),Y(n,"add",e,e)),this},set(e,n){t||eT(n)||eC(n)||(n=eS(n));let r=eS(this),{has:o,get:i}=ef(r),a=o.call(r,e);a||(e=eS(e),a=o.call(r,e));let s=i.call(r,e);return r.set(e,n),a?k(n,s)&&Y(r,"set",e,n,s):Y(r,"add",e,n),this},delete(e){let t=eS(this),{has:n,get:r}=ef(t),o=n.call(t,e);o||(e=eS(e),o=n.call(t,e));let i=r?r.call(t,e):void 0,a=t.delete(e);return o&&Y(t,"delete",e,void 0,i),a},clear(){let e=eS(this),t=0!==e.size,n=e.clear();return t&&Y(e,"clear",void 0,void 0,void 0),n}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=function(...n){let o=this.__v_raw,i=eS(o),a=d(i),s="entries"===r||r===Symbol.iterator&&a,l=o[r](...n),u=t?ed:e?eM:ek;return e||U(i,"iterate","keys"===r&&a?K:B),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}),n}(e,t);return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(u(n,r)&&r in t?n:t,r,o)}let eg={get:eh(!1,!1)},em={get:eh(!0,!1)},ev=new WeakMap,eb=new WeakMap,ey=new WeakMap,ew=new WeakMap;function e_(e){return eC(e)?e:eE(e,!1,eu,eg,ev)}function ex(e){return eE(e,!0,ec,em,ey)}function eE(e,t,n,r,o){if(!m(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let i=o.get(e);if(i)return i;let a=e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(w(e));if(0===a)return e;let s=new Proxy(e,2===a?r:n);return o.set(e,s),s}function eC(e){return!!(e&&e.__v_isReadonly)}function eT(e){return!!(e&&e.__v_isShallow)}function eS(e){let t=e&&e.__v_raw;return t?eS(t):e}let ek=e=>m(e)?e_(e):e,eM=e=>m(e)?ex(e):e;function eL(e){return!!e&&!0===e.__v_isRef}let eP={SKIP:"__v_skip"};var eO,eR,e$=n(9589),eN=n(3481);n(3822);let ej="undefined"==typeof window;(eO=eR||(eR={})).$$__ignore__$$="$$__ignore__$$",eO.$$__persist__$$="$$__persist__$$",eO.$$__subscribe__$$="$$__subscribe__$$",eO.$$__redux_dev_tool__$$="$$__redux_dev_tool__$$";let eA=new Set,eD=!1,eI=0,ez=()=>{let e=[...eA.values()].slice(0);for(let t of(eA.clear(),e))t.notify();if(eD=!1,eA.size){if(++eI>20)throw Error(`[reactivity-store] have a infinity update for current store, pendingJobs: ${new Set(eA)}`);ez()}},eF=e=>{eA.add(e),eD||(eD=!0,eI=0,Promise.resolve().then(ez))};class eH extends L{get _isControllerEffect(){return!0}constructor(e){super(e)}}let eW=(e,t)=>()=>{if(t._isActive)try{let t=e();if(v(t))throw Error("[reactivity-store] selector should be a pure function, but current is a async function");return t}catch(e){return null}};class eB{constructor(e,t,n,r,o,i){this._getState=e,this._compare=t,this._lifeCycle=n,this._namespace=o,this._onUpdate=i,this._listeners=new Set,this._updateCount=0,this._isActive=!0,this.notify=()=>{var e;if(this._isActive){this._updateCount++;try{null===(e=this._onUpdate)||void 0===e||e.call(this)}catch(e){this._lifeCycle.canUpdateComponent=!1}this._listeners.forEach(e=>e())}},this._scheduler=()=>{let e=this._effect.run();if(!this._isActive)return;let t=this._compare(this._state,e);this._state=e,!t&&this._lifeCycle.canUpdateComponent&&(this._lifeCycle.syncUpdateComponent?this.notify():eF(this))},this.subscribe=e=>(this._listeners.add(e),()=>this._listeners.delete(e)),this.getState=()=>this._updateCount,this.getEffect=()=>this._effect,this.getSelectorState=()=>this._getStateSafe(),this.getLifeCycle=()=>this._lifeCycle,this._getStateSafe=eW(e,this),this._effect=new eH(this._getStateSafe),this._effect.scheduler=this._scheduler,this._namespace!==eR.$$__persist__$$&&this._namespace!==eR.$$__subscribe__$$&&this._namespace!==eR.$$__redux_dev_tool__$$&&(this._list=r,this._list.add(this))}run(){this._state=this._effect.run()}stop(){var e,t;this._effect.stop(),this._listeners.clear(),null===(t=null===(e=this._list)||void 0===e?void 0:e.delete)||void 0===t||t.call(e,this),this._isActive=!1}inactive(){this._isActive=!1}active(){this._isActive=!0}}"function"==typeof SuppressedError&&SuppressedError;let eK=()=>({onBeforeMount:[],onBeforeUpdate:[],onBeforeUnmount:[],onMounted:[],onUpdated:[],onUnmounted:[],hasHookInstall:!1,canUpdateComponent:!0,syncUpdateComponent:!1});function eV(e){if(!m(e)||e[eP.SKIP]||(0,e$.isValidElement)(e))return e;if(eL(e))e.value;else if(c(e))for(let t=0;t{});else if(_(e))for(let t in e)e[t];return e}function eU(e,t){return function(e,t){if(!m(e)||e[eP.SKIP]||(0,e$.isValidElement)(e)||(t=t||new Set).has(e))return e;if(t.add(e),eL(e))eU(e.value,t);else if(c(e))for(let n=0;n{eU(e,t)});else if(_(e))for(let n in e)eU(e[n],t);return e}(e,t)}let eY=e=>{let t=(0,e$.useRef)(e);return t.current=e,(0,e$.useCallback)((...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(null,...e)},[])},eJ=(e,t)=>{let n=(0,e$.useRef)();return n.current="function"==typeof e?e:null,eY(e=>{if(!n.current)return t?eU(e):eV(e),e;{let r=n.current(e);return t?eU(r):eV(r),r}})},eZ=e=>{let t=(0,e$.useRef)(e);return(0,e$.useEffect)(()=>{t.current=e},[e]),t.current},eG=(e,t,n,r=!0,o=!1,i,a)=>{let s=new Set,l=!0;i=i||eR.$$__ignore__$$;let u=t=>{let l="default"===t?r:"deep"===t||"deep-stable"===t,u="default"===t?o:"deep-stable"===t||"shallow-stable"===t;return function(t,r){let o=(0,e$.useRef)(),c=eJ(t,l),d=eY(()=>{t?o.current=t(Object.assign(Object.assign({},e),a)):o.current=Object.assign(Object.assign({},e),a)}),f=eY((e,t)=>!!r&&"function"==typeof r&&r(e,t)),p=u?t:eZ(t),h=(0,e$.useMemo)(()=>new eB(()=>c(e),f,n,s,i,d),[]);return(0,eN.useSyncExternalStore)(h.subscribe,h.getState,h.getState),(0,e$.useMemo)(()=>{h.run(),d()},[h,d]),(0,e$.useMemo)(()=>{p!==t&&(h.run(),d())},[h,p,t]),(0,e$.useEffect)(()=>(h.active(),()=>{h.stop()}),[h]),o.current}},c=u("default"),d=u("deep"),f=u("deep-stable"),p=u("shallow"),h=u("shallow-stable"),g=function(e,t){return c(e,t)};return g.getState=()=>eS(t),g.getLifeCycle=()=>n,g.getActions=()=>a,g.getReactiveState=()=>e,g.getReadonlyState=()=>e,g.useDeepSelector=d,g.useDeepStableSelector=f,g.useShallowSelector=p,g.useShallowStableSelector=h,g.subscribe=(t,r,o)=>{let i=new eB(()=>{let n=t(e);return o?eV(n):eU(n),n},Object.is,n,s,eR.$$__subscribe__$$,()=>r());return i.run(),()=>{i.stop()}},g.cleanReactiveHooks=()=>{s.forEach(e=>e.stop()),l=!1},g.getIsActive=()=>l,g},eX=e=>e(),eq=e=>(...t)=>eX(()=>t.length?e.call(null,...t):e.call(null)),eQ="reactivity-store/persist-",e0=(e,t)=>{let n=null;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e.call(null,...r),t)}},e1=e=>Object.keys(e).reduce((t,n)=>(t[n]=eq(e[n]),t),{}),e2=e=>e.$$__state__$$?e.$$__state__$$:e,e9=e=>e.$$__state__$$&&e.$$__middleware__$$||{},e5=e=>e.$$__state__$$&&e.$$__actions__$$||{},e8=e=>e.$$__state__$$&&e.$$__namespace__$$||{},e7=e=>e.$$__state__$$&&e.$$__selectorOptions__$$||{};function e4(e,t){return()=>{let n=e(),r=e2(n),o=e9(n),i=e5(n),a=e8(n),s=e7(n);return o[t.name]=!0,{$$__state__$$:r,$$__actions__$$:i,$$__middleware__$$:o,$$__namespace__$$:a,$$__selectorOptions__$$:s}}}let e3=new Set,e6=()=>!1;function te(e,t){return function(e,t,n){var r,o,i,a,s,l,u,c,d,f;let p=e;(null==n?void 0:n.withPersist)&&(i=p,a="string"==typeof n.withPersist?{key:n.withPersist}:n.withPersist,p=e4(()=>{var e,t,n;let r=i(),o=e2(r),s=e9(r),l=e5(r),u=e8(r),c=e7(r),d=!1;if(s.withPersist&&(d=!0),ej||d)return{$$__state__$$:o,$$__middleware__$$:s,$$__actions__$$:l,$$__namespace__$$:u,$$__selectorOptions__$$:c};try{let r=(null===(e=null==a?void 0:a.getStorage)||void 0===e?void 0:e.call(a))||(null==window?void 0:window.localStorage);if(!r)return{$$__state__$$:o,$$__middleware__$$:s,$$__actions__$$:l,$$__namespace__$$:u,$$__selectorOptions__$$:c};let i=r.getItem(eQ+a.key),d=JSON.parse(i),f=o;if((null==d?void 0:d.version)===(a.version||a.key)&&d.data){let e=(null===(t=null==a?void 0:a.parse)||void 0===t?void 0:t.call(a,d.data))||JSON.parse(d.data);f=(null===(n=null==a?void 0:a.merge)||void 0===n?void 0:n.call(a,o,e))||Object.assign(o,e)}f=e_(f);let p=e0(()=>{var e;try{let t={data:(null===(e=null==a?void 0:a.stringify)||void 0===e?void 0:e.call(a,f))||JSON.stringify(f),version:a.version||a.key};r.setItem(eQ+a.key,JSON.stringify(t))}catch(e){}},a.debounceTime||40);return new eB(()=>{let e=f;"function"==typeof a.listener&&(e=a.listener(f)),a.shallow?eV(e):eU(e)},e6,eK(),e3,eR.$$__persist__$$,p).run(),{$$__state__$$:eS(f),$$__middleware__$$:s,$$__actions__$$:l,$$__namespace__$$:u,$$__selectorOptions__$$:c}}catch(e){return{$$__state__$$:o,$$__middleware__$$:s,$$__actions__$$:l,$$__namespace__$$:u,$$__selectorOptions__$$:c}}},{name:"withPersist"})),(null==n?void 0:n.withActions)&&(s=p,l={generateActions:n.withActions},p=e4(()=>{let e=s(),t=e2(e),n=e9(e),r=e5(e),o=e8(e),i=e7(e),a=e_(t),u=l.generateActions,c=null==u?void 0:u(a),d=!0===l.automaticBatchAction?e1(c):c;return{$$__state__$$:eS(a),$$__actions__$$:Object.assign(Object.assign({},r),d),$$__middleware__$$:n,$$__namespace__$$:o,$$__selectorOptions__$$:i}},{name:"withActions"})),(null==n?void 0:n.withNamespace)&&(u=p,c="string"==typeof n.withNamespace?{namespace:n.withNamespace,reduxDevTool:!0}:n.withNamespace,p=e4(()=>{let e=u(),t=e2(e),n=e9(e),r=e5(e),o=e8(e),i=e7(e);return{$$__state__$$:t,$$__actions__$$:r,$$__middleware__$$:n,$$__namespace__$$:Object.assign(Object.assign({},o),c),$$__selectorOptions__$$:i}},{name:"withNamespace"})),(void 0!==(null==n?void 0:n.withDeepSelector)||void 0!==(null==n?void 0:n.withStableSelector))&&(d=p,f={deepSelector:n.withDeepSelector,stableSelector:n.withStableSelector},p=e4(()=>{let e=d(),t=e2(e),n=e9(e);return{$$__state__$$:t,$$__actions__$$:e5(e),$$__middleware__$$:n,$$__namespace__$$:e8(e),$$__selectorOptions__$$:Object.assign(Object.assign({},e7(e)),f)}},{name:"withSelectorOptions"}));let h=eK(),g=p(),m=e2(g),v=e5(g),b=e8(g),y=e7(g),w=eS(m);b.reduxDevTool;let _=e_(m);return eG(_,w,h,null===(r=null==y?void 0:y.deepSelector)||void 0===r||r,null!==(o=null==y?void 0:y.stableSelector)&&void 0!==o&&o,b.namespace,v)}(e,0,t)}},4153:function(e,t,n){"use strict";n.d(t,{Am:function(){return m},x7:function(){return _}});var r=n(9589),o=n(9297),i=e=>{switch(e){case"success":return l;case"info":return c;case"warning":return u;case"error":return d;default:return null}},a=Array(12).fill(0),s=({visible:e})=>r.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},r.createElement("div",{className:"sonner-spinner"},a.map((e,t)=>r.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),l=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),u=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),c=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),d=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),f=()=>{let[e,t]=r.useState(document.hidden);return r.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e},p=1,h=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:p++,i=this.toasts.find(e=>e.id===o),a=void 0===e.dismissible||e.dismissible;return i?this.toasts=this.toasts.map(t=>t.id===o?(this.publish({...t,...e,id:o,title:n}),{...t,...e,id:o,dismissible:a,title:n}):t):this.addToast({title:n,...r,dismissible:a,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let n;if(!t)return;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let r=e instanceof Promise?e:e(),o=void 0!==n;return r.then(async e=>{if(g(e)&&!e.ok){o=!1;let r="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,i="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description;this.create({id:n,type:"error",message:r,description:i})}else if(void 0!==t.success){o=!1;let r="function"==typeof t.success?await t.success(e):t.success,i="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"success",message:r,description:i})}}).catch(async e=>{if(void 0!==t.error){o=!1;let r="function"==typeof t.error?await t.error(e):t.error,i="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"error",message:r,description:i})}}).finally(()=>{var e;o&&(this.dismiss(n),n=void 0),null==(e=t.finally)||e.call(t)}),n},this.custom=(e,t)=>{let n=(null==t?void 0:t.id)||p++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},g=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,m=Object.assign((e,t)=>{let n=(null==t?void 0:t.id)||p++;return h.addToast({title:e,...t,id:n}),n},{success:h.success,info:h.info,warning:h.warning,error:h.error,custom:h.custom,message:h.message,promise:h.promise,dismiss:h.dismiss,loading:h.loading},{getHistory:()=>h.toasts});function v(e){return void 0!==e.label}function b(...e){return e.filter(Boolean).join(" ")}!function(e,{insertAt:t}={}){if(!e||"undefined"==typeof document)return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} +`);var y=e=>{var t,n,o,a,l,u,c,d,p,h;let{invert:g,toast:m,unstyled:b,interacting:y,setHeights:w,visibleToasts:_,heights:x,index:E,toasts:C,expanded:T,removeToast:S,defaultRichColors:k,closeButton:M,style:L,cancelButtonStyle:P,actionButtonStyle:O,className:R="",descriptionClassName:$="",duration:N,position:j,gap:A,loadingIcon:D,expandByDefault:I,classNames:z,icons:F,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:W,cn:B}=e,[K,V]=r.useState(!1),[U,Y]=r.useState(!1),[J,Z]=r.useState(!1),[G,X]=r.useState(!1),[q,Q]=r.useState(0),[ee,et]=r.useState(0),en=r.useRef(null),er=r.useRef(null),eo=0===E,ei=E+1<=_,ea=m.type,es=!1!==m.dismissible,el=m.className||"",eu=m.descriptionClassName||"",ec=r.useMemo(()=>x.findIndex(e=>e.toastId===m.id)||0,[x,m.id]),ed=r.useMemo(()=>{var e;return null!=(e=m.closeButton)?e:M},[m.closeButton,M]),ef=r.useMemo(()=>m.duration||N||4e3,[m.duration,N]),ep=r.useRef(0),eh=r.useRef(0),eg=r.useRef(0),em=r.useRef(null),[ev,eb]=j.split("-"),ey=r.useMemo(()=>x.reduce((e,t,n)=>n>=ec?e:e+t.height,0),[x,ec]),ew=f(),e_=m.invert||g,ex="loading"===ea;eh.current=r.useMemo(()=>ec*A+ey,[ec,ey]),r.useEffect(()=>{V(!0)},[]),r.useLayoutEffect(()=>{if(!K)return;let e=er.current,t=e.style.height;e.style.height="auto";let n=e.getBoundingClientRect().height;e.style.height=t,et(n),w(e=>e.find(e=>e.toastId===m.id)?e.map(e=>e.toastId===m.id?{...e,height:n}:e):[{toastId:m.id,height:n,position:m.position},...e])},[K,m.title,m.description,w,m.id]);let eE=r.useCallback(()=>{Y(!0),Q(eh.current),w(e=>e.filter(e=>e.toastId!==m.id)),setTimeout(()=>{S(m)},200)},[m,S,w,eh]);return r.useEffect(()=>{if(m.promise&&"loading"===ea||m.duration===1/0||"loading"===m.type)return;let e,t=ef;return T||y||W&&ew?(()=>{if(eg.current{var e;null==(e=m.onAutoClose)||e.call(m,m),eE()},t)),()=>clearTimeout(e)},[T,y,I,m,ef,eE,m.promise,ea,W,ew]),r.useEffect(()=>{let e=er.current;if(e){let t=e.getBoundingClientRect().height;return et(t),w(e=>[{toastId:m.id,height:t,position:m.position},...e]),()=>w(e=>e.filter(e=>e.toastId!==m.id))}},[w,m.id]),r.useEffect(()=>{m.delete&&eE()},[eE,m.delete]),r.createElement("li",{"aria-live":m.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:er,className:B(R,el,null==z?void 0:z.toast,null==(t=null==m?void 0:m.classNames)?void 0:t.toast,null==z?void 0:z.default,null==z?void 0:z[ea],null==(n=null==m?void 0:m.classNames)?void 0:n[ea]),"data-sonner-toast":"","data-rich-colors":null!=(o=m.richColors)?o:k,"data-styled":!(m.jsx||m.unstyled||b),"data-mounted":K,"data-promise":!!m.promise,"data-removed":U,"data-visible":ei,"data-y-position":ev,"data-x-position":eb,"data-index":E,"data-front":eo,"data-swiping":J,"data-dismissible":es,"data-type":ea,"data-invert":e_,"data-swipe-out":G,"data-expanded":!!(T||I&&K),style:{"--index":E,"--toasts-before":E,"--z-index":C.length-E,"--offset":`${U?q:eh.current}px`,"--initial-height":I?"auto":`${ee}px`,...L,...m.style},onPointerDown:e=>{ex||!es||(en.current=new Date,Q(eh.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(Z(!0),em.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n,r;if(G||!es)return;em.current=null;let o=Number((null==(e=er.current)?void 0:e.style.getPropertyValue("--swipe-amount").replace("px",""))||0),i=new Date().getTime()-(null==(t=en.current)?void 0:t.getTime());if(Math.abs(o)>=20||Math.abs(o)/i>.11){Q(eh.current),null==(n=m.onDismiss)||n.call(m,m),eE(),X(!0);return}null==(r=er.current)||r.style.setProperty("--swipe-amount","0px"),Z(!1)},onPointerMove:e=>{var t;if(!em.current||!es)return;let n=e.clientY-em.current.y,r=e.clientX-em.current.x,o=("top"===ev?Math.min:Math.max)(0,n),i="touch"===e.pointerType?10:2;Math.abs(o)>i?null==(t=er.current)||t.style.setProperty("--swipe-amount",`${n}px`):Math.abs(r)>i&&(em.current=null)}},ed&&!m.jsx?r.createElement("button",{"aria-label":H,"data-disabled":ex,"data-close-button":!0,onClick:ex||!es?()=>{}:()=>{var e;eE(),null==(e=m.onDismiss)||e.call(m,m)},className:B(null==z?void 0:z.closeButton,null==(a=null==m?void 0:m.classNames)?void 0:a.closeButton)},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},r.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,m.jsx||r.isValidElement(m.title)?m.jsx||m.title:r.createElement(r.Fragment,null,ea||m.icon||m.promise?r.createElement("div",{"data-icon":"",className:B(null==z?void 0:z.icon,null==(l=null==m?void 0:m.classNames)?void 0:l.icon)},m.promise||"loading"===m.type&&!m.icon?m.icon||(null!=F&&F.loading?r.createElement("div",{className:"sonner-loader","data-visible":"loading"===ea},F.loading):D?r.createElement("div",{className:"sonner-loader","data-visible":"loading"===ea},D):r.createElement(s,{visible:"loading"===ea})):null,"loading"!==m.type?m.icon||(null==F?void 0:F[ea])||i(ea):null):null,r.createElement("div",{"data-content":"",className:B(null==z?void 0:z.content,null==(u=null==m?void 0:m.classNames)?void 0:u.content)},r.createElement("div",{"data-title":"",className:B(null==z?void 0:z.title,null==(c=null==m?void 0:m.classNames)?void 0:c.title)},m.title),m.description?r.createElement("div",{"data-description":"",className:B($,eu,null==z?void 0:z.description,null==(d=null==m?void 0:m.classNames)?void 0:d.description)},m.description):null),r.isValidElement(m.cancel)?m.cancel:m.cancel&&v(m.cancel)?r.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||P,onClick:e=>{var t,n;v(m.cancel)&&es&&(null==(n=(t=m.cancel).onClick)||n.call(t,e),eE())},className:B(null==z?void 0:z.cancelButton,null==(p=null==m?void 0:m.classNames)?void 0:p.cancelButton)},m.cancel.label):null,r.isValidElement(m.action)?m.action:m.action&&v(m.action)?r.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||O,onClick:e=>{var t,n;v(m.action)&&(e.defaultPrevented||(null==(n=(t=m.action).onClick)||n.call(t,e),eE()))},className:B(null==z?void 0:z.actionButton,null==(h=null==m?void 0:m.classNames)?void 0:h.actionButton)},m.action.label):null))};function w(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}var _=e=>{let{invert:t,position:n="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:s,className:l,offset:u,theme:c="light",richColors:d,duration:f,style:p,visibleToasts:g=3,toastOptions:m,dir:v=w(),gap:_=14,loadingIcon:x,icons:E,containerAriaLabel:C="Notifications",pauseWhenPageIsHidden:T,cn:S=b}=e,[k,M]=r.useState([]),L=r.useMemo(()=>Array.from(new Set([n].concat(k.filter(e=>e.position).map(e=>e.position)))),[k,n]),[P,O]=r.useState([]),[R,$]=r.useState(!1),[N,j]=r.useState(!1),[A,D]=r.useState("system"!==c?c:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),I=r.useRef(null),z=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),F=r.useRef(null),H=r.useRef(!1),W=r.useCallback(e=>{var t;null!=(t=k.find(t=>t.id===e.id))&&t.delete||h.dismiss(e.id),M(t=>t.filter(({id:t})=>t!==e.id))},[k]);return r.useEffect(()=>h.subscribe(e=>{if(e.dismiss){M(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));return}setTimeout(()=>{o.flushSync(()=>{M(t=>{let n=t.findIndex(t=>t.id===e.id);return -1!==n?[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]:[e,...t]})})})}),[]),r.useEffect(()=>{if("system"!==c){D(c);return}"system"===c&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?D("dark"):D("light")),"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:e})=>{D(e?"dark":"light")})},[c]),r.useEffect(()=>{k.length<=1&&$(!1)},[k]),r.useEffect(()=>{let e=e=>{var t,n;i.every(t=>e[t]||e.code===t)&&($(!0),null==(t=I.current)||t.focus()),"Escape"===e.code&&(document.activeElement===I.current||null!=(n=I.current)&&n.contains(document.activeElement))&&$(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i]),r.useEffect(()=>{if(I.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,H.current=!1)}},[I.current]),k.length?r.createElement("section",{"aria-label":`${C} ${z}`,tabIndex:-1},L.map((e,n)=>{var o;let[i,c]=e.split("-");return r.createElement("ol",{key:e,dir:"auto"===v?w():v,tabIndex:-1,ref:I,className:l,"data-sonner-toaster":!0,"data-theme":A,"data-y-position":i,"data-x-position":c,style:{"--front-toast-height":`${(null==(o=P[0])?void 0:o.height)||0}px`,"--offset":"number"==typeof u?`${u}px`:u||"32px","--width":"356px","--gap":`${_}px`,...p},onBlur:e=>{H.current&&!e.currentTarget.contains(e.relatedTarget)&&(H.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||H.current||(H.current=!0,F.current=e.relatedTarget)},onMouseEnter:()=>$(!0),onMouseMove:()=>$(!0),onMouseLeave:()=>{N||$(!1)},onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||j(!0)},onPointerUp:()=>j(!1)},k.filter(t=>!t.position&&0===n||t.position===e).map((n,o)=>{var i,l;return r.createElement(y,{key:n.id,icons:E,index:o,toast:n,defaultRichColors:d,duration:null!=(i=null==m?void 0:m.duration)?i:f,className:null==m?void 0:m.className,descriptionClassName:null==m?void 0:m.descriptionClassName,invert:t,visibleToasts:g,closeButton:null!=(l=null==m?void 0:m.closeButton)?l:s,interacting:N,position:e,style:null==m?void 0:m.style,unstyled:null==m?void 0:m.unstyled,classNames:null==m?void 0:m.classNames,cancelButtonStyle:null==m?void 0:m.cancelButtonStyle,actionButtonStyle:null==m?void 0:m.actionButtonStyle,removeToast:W,toasts:k.filter(e=>e.position==n.position),heights:P.filter(e=>e.position==n.position),setHeights:O,expandByDefault:a,gap:_,loadingIcon:x,expanded:R,pauseWhenPageIsHidden:T,cn:S})}))})):null}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(7003),t(1823)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/bridge-b71b18e1f5beff7c.js b/_next/static/chunks/pages/bridge-b71b18e1f5beff7c.js new file mode 100644 index 0000000..eff97bb --- /dev/null +++ b/_next/static/chunks/pages/bridge-b71b18e1f5beff7c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[869],{8713:function(e,n,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/bridge",function(){return o(3583)}])},3583:function(e,n,o){"use strict";o.r(n),o.d(n,{default:function(){return c}});var t=o(5567),d=o(9589),i=o(683),s=o(7160);let l=null,r=e=>{var n;null===(n=window.top)||void 0===n||n.postMessage({from:i.Dp,...e,source:s.$6},"*")},u=e=>{null==l||l.postMessage({...e,source:s.$6})},a=()=>{let{query:e}=(0,t.useRouter)();(0,d.useEffect)(()=>{if(window!==window.top&&window.top&&(null==e?void 0:e.token)){l=new BroadcastChannel("@my-react-"+(null==e?void 0:e.token));let n=e=>{var n;console.log("[Dev mode] bridge message to bridge",e.data),(null===(n=e.data)||void 0===n?void 0:n.source)===s.$6&&u(e.data)},o=e=>{var n;console.log("[Dev mode] bridge message to app",e.data),(null===(n=e.data)||void 0===n?void 0:n.source)===i.oo&&r(e.data)},t=()=>{console.log("[Dev mode] bridge disconnect"),window.removeEventListener("message",n),null==l||l.removeEventListener("message",o),null==l||l.close()};return console.log("[Dev mode] bridge connect"),window.addEventListener("message",n),null==l||l.addEventListener("message",o),r({type:"bridge-init"}),u({type:"bridge-init"}),()=>{t()}}},[null==e?void 0:e.token])};function c(){return a(),null}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=8713)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/index-4e89f5089f13e7f4.js b/_next/static/chunks/pages/index-4e89f5089f13e7f4.js new file mode 100644 index 0000000..287ffa7 --- /dev/null +++ b/_next/static/chunks/pages/index-4e89f5089f13e7f4.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{9141:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(5068)}])},5068:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return o}});var e=t(5567),f=t(9589);function o(){let n=(0,e.useRouter)();return(0,f.useEffect)(()=>{n.push("/devTool")},[n]),null}}},function(n){n.O(0,[774,888,179],function(){return n(n.s=9141)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/index-bbddece009a94be7.js b/_next/static/chunks/pages/index-bbddece009a94be7.js deleted file mode 100644 index d06ce7e..0000000 --- a/_next/static/chunks/pages/index-bbddece009a94be7.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{9141:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(5068)}])},5068:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return f}});var e=t(5567),o=t(9589);function f(){let n=(0,e.useRouter)();return(0,o.useEffect)(()=>{n.push("/devTool")},[n]),null}},5567:function(n,u,t){n.exports=t(1823)}},function(n){n.O(0,[774,888,179],function(){return n(n.s=9141)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/webpack-e8760bc9f5f33cf4.js b/_next/static/chunks/webpack-fa42c012c47fec19.js similarity index 96% rename from _next/static/chunks/webpack-e8760bc9f5f33cf4.js rename to _next/static/chunks/webpack-fa42c012c47fec19.js index 9e67781..d6a6606 100644 --- a/_next/static/chunks/webpack-e8760bc9f5f33cf4.js +++ b/_next/static/chunks/webpack-fa42c012c47fec19.js @@ -1 +1 @@ -!function(){"use strict";var e,t,n,r,o,u,i,c={},a={};function f(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}},r=!0;try{c[e](n,n.exports,f),r=!1}finally{r&&delete a[e]}return n.exports}f.m=c,e=[],f.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(f.O).every(function(e){return f.O[e](n[a])})?n.splice(a--,1):(c=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(f.O).every(function(e){return f.O[e](n[a])})?n.splice(a--,1):(c=!1,o
\ No newline at end of file diff --git a/bundle/detector.js b/bundle/detector.js index 4536f35..f171cc6 100644 --- a/bundle/detector.js +++ b/bundle/detector.js @@ -2460,6 +2460,7 @@ sourceFrom["panel"] = "panel"; sourceFrom["worker"] = "worker"; sourceFrom["iframe"] = "iframe"; + sourceFrom["bridge"] = "bridge"; sourceFrom["detector"] = "detector"; })(sourceFrom || (sourceFrom = {})); diff --git a/bundle/hook.js b/bundle/hook.js index 3cd3bfb..e05b397 100644 --- a/bundle/hook.js +++ b/bundle/hook.js @@ -2533,6 +2533,7 @@ sourceFrom["panel"] = "panel"; sourceFrom["worker"] = "worker"; sourceFrom["iframe"] = "iframe"; + sourceFrom["bridge"] = "bridge"; sourceFrom["detector"] = "detector"; })(sourceFrom || (sourceFrom = {})); @@ -2571,43 +2572,44 @@ } }; var onMessage = function (message) { - var _a, _b, _c, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r; + var _a, _b, _c, _d, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s; // allow iframe dev - if (message.source !== window && ((_a = message.data) === null || _a === void 0 ? void 0 : _a.from) !== sourceFrom.iframe) + // allow bridge dev + if (message.source !== window && ((_a = message.data) === null || _a === void 0 ? void 0 : _a.from) !== sourceFrom.iframe && ((_b = message.data) === null || _b === void 0 ? void 0 : _b.from) !== sourceFrom.bridge) return; - if (((_b = message.data) === null || _b === void 0 ? void 0 : _b.source) !== DevToolSource) + if (((_c = message.data) === null || _c === void 0 ? void 0 : _c.source) !== DevToolSource) return; - if (((_c = message.data) === null || _c === void 0 ? void 0 : _c.from) === sourceFrom.hook) + if (((_d = message.data) === null || _d === void 0 ? void 0 : _d.from) === sourceFrom.hook) return; - if (!detectorReady && ((_e = message.data) === null || _e === void 0 ? void 0 : _e.type) === coreExports.MessageDetectorType.init) { + if (!detectorReady && ((_f = message.data) === null || _f === void 0 ? void 0 : _f.type) === coreExports.MessageDetectorType.init) { detectorReady = true; } - if (((_f = message.data) === null || _f === void 0 ? void 0 : _f.type) === coreExports.MessageWorkerType.init) { + if (((_g = message.data) === null || _g === void 0 ? void 0 : _g.type) === coreExports.MessageWorkerType.init) { core.connect(); core.notifyAll(); } - if (((_g = message.data) === null || _g === void 0 ? void 0 : _g.type) === coreExports.MessagePanelType.show) { + if (((_h = message.data) === null || _h === void 0 ? void 0 : _h.type) === coreExports.MessagePanelType.show) { core.connect(); core.notifyAll(); } // 主动关闭panel / 或者worker失活 - if (((_h = message.data) === null || _h === void 0 ? void 0 : _h.type) === coreExports.MessagePanelType.hide || ((_j = message.data) === null || _j === void 0 ? void 0 : _j.type) === coreExports.MessageWorkerType.close) { + if (((_j = message.data) === null || _j === void 0 ? void 0 : _j.type) === coreExports.MessagePanelType.hide || ((_k = message.data) === null || _k === void 0 ? void 0 : _k.type) === coreExports.MessageWorkerType.close) { core.disconnect(); } - if (((_k = message.data) === null || _k === void 0 ? void 0 : _k.type) === coreExports.MessagePanelType.enableHover) { + if (((_l = message.data) === null || _l === void 0 ? void 0 : _l.type) === coreExports.MessagePanelType.enableHover) { core.setHoverStatus(message.data.data); } - if (((_l = message.data) === null || _l === void 0 ? void 0 : _l.type) === coreExports.MessagePanelType.enableUpdate) { + if (((_m = message.data) === null || _m === void 0 ? void 0 : _m.type) === coreExports.MessagePanelType.enableUpdate) { core.setUpdateStatus(message.data.data); } - if (((_m = message.data) === null || _m === void 0 ? void 0 : _m.type) === coreExports.MessagePanelType.nodeSelect) { + if (((_o = message.data) === null || _o === void 0 ? void 0 : _o.type) === coreExports.MessagePanelType.nodeSelect) { core.setSelect(message.data.data); core.notifySelect(); } - if (((_o = message.data) === null || _o === void 0 ? void 0 : _o.type) === coreExports.MessagePanelType.nodeSelectForce) { + if (((_p = message.data) === null || _p === void 0 ? void 0 : _p.type) === coreExports.MessagePanelType.nodeSelectForce) { core.notifySelect(true); } - if (((_p = message.data) === null || _p === void 0 ? void 0 : _p.type) === coreExports.MessagePanelType.nodeTrigger) { + if (((_q = message.data) === null || _q === void 0 ? void 0 : _q.type) === coreExports.MessagePanelType.nodeTrigger) { var id_1 = message.data.data; var f = coreExports.getFiberNodeById(id_1); if (f) { @@ -2617,7 +2619,7 @@ console.error("[@my-react-devtool/hook] fiber node not found", id_1); } } - if (((_q = message.data) === null || _q === void 0 ? void 0 : _q.type) === coreExports.MessagePanelType.nodeStore) { + if (((_r = message.data) === null || _r === void 0 ? void 0 : _r.type) === coreExports.MessagePanelType.nodeStore) { var id_2 = message.data.data; var f = coreExports.getFiberNodeById(id_2); if (f) { @@ -2627,7 +2629,7 @@ console.error("[@my-react-devtool/hook] fiber node not found", id_2); } } - if (((_r = message.data) === null || _r === void 0 ? void 0 : _r.type) === coreExports.MessagePanelType.nodeHover) { + if (((_s = message.data) === null || _s === void 0 ? void 0 : _s.type) === coreExports.MessagePanelType.nodeHover) { core.setHover(message.data.data); core.showHover(); } @@ -2640,7 +2642,7 @@ } if (message.data.type === coreExports.MessagePanelType.varStore) { var id_3 = message.data.data; - var _s = coreExports.getValueById(id_3), f = _s.f, varStore = _s.v; + var _t = coreExports.getValueById(id_3), f = _t.f, varStore = _t.v; if (f) { var varName = getValidGlobalVarName(); globalThis[varName] = varStore; diff --git a/bundle/panel.js b/bundle/panel.js index 53d8b59..15f5bf1 100644 --- a/bundle/panel.js +++ b/bundle/panel.js @@ -2530,6 +2530,7 @@ sourceFrom["panel"] = "panel"; sourceFrom["worker"] = "worker"; sourceFrom["iframe"] = "iframe"; + sourceFrom["bridge"] = "bridge"; sourceFrom["detector"] = "detector"; })(sourceFrom || (sourceFrom = {})); diff --git a/bundle/proxy.js b/bundle/proxy.js index 7f75a62..3ec6131 100644 --- a/bundle/proxy.js +++ b/bundle/proxy.js @@ -2460,6 +2460,7 @@ sourceFrom["panel"] = "panel"; sourceFrom["worker"] = "worker"; sourceFrom["iframe"] = "iframe"; + sourceFrom["bridge"] = "bridge"; sourceFrom["detector"] = "detector"; })(sourceFrom || (sourceFrom = {})); diff --git a/bundle/service-worker.js b/bundle/service-worker.js index e7fe539..1a8cec0 100644 --- a/bundle/service-worker.js +++ b/bundle/service-worker.js @@ -2459,6 +2459,7 @@ sourceFrom["panel"] = "panel"; sourceFrom["worker"] = "worker"; sourceFrom["iframe"] = "iframe"; + sourceFrom["bridge"] = "bridge"; sourceFrom["detector"] = "detector"; })(sourceFrom || (sourceFrom = {})); diff --git a/devTool.html b/devTool.html index fd2ac62..4e137b6 100644 --- a/devTool.html +++ b/devTool.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/disablePopup.html b/disablePopup.html index eb4cb8b..fd81cb2 100644 --- a/disablePopup.html +++ b/disablePopup.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/enablePopup.html b/enablePopup.html index b54a6bd..e1d2eb4 100644 --- a/enablePopup.html +++ b/enablePopup.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/index.html b/index.html index 6a0adfc..f3e6f69 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file