diff --git a/xiaomusic/static/soundSpace/assets/features-animation-d7XZ5Dr3.js b/xiaomusic/static/soundSpace/assets/features-animation-BRiA9rfd.js similarity index 99% rename from xiaomusic/static/soundSpace/assets/features-animation-d7XZ5Dr3.js rename to xiaomusic/static/soundSpace/assets/features-animation-BRiA9rfd.js index c87bc19..7b23428 100644 --- a/xiaomusic/static/soundSpace/assets/features-animation-d7XZ5Dr3.js +++ b/xiaomusic/static/soundSpace/assets/features-animation-BRiA9rfd.js @@ -1 +1 @@ -import{n as _,T as Rt,U as It,a as Q,N as Ot,f as D,V as Ln,h as R,O as _n,W as Ie,X as Kt,b as G,p as be,Y as kn,d as Bt,Z as Oe,_ as Un,$ as Gn,a0 as jn,c as Te,v as re,a1 as Nt,a2 as Lt,a3 as _t,a4 as Xe,a5 as kt,R as Wn,a6 as zn,a7 as qn,a8 as Ye,a9 as Hn,aa as $n,ab as Xn,ac as Yn,w as Zn,ad as Jn,ae as Qn,af as es,ag as ts,ah as ns,ai as ss,r as is}from"./index-BlfQbszy.js";let Nr=_,Ut=_;function Ke(t){let e;return()=>(e===void 0&&(e=t()),e)}const Be=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},I=t=>t*1e3,O=t=>t/1e3;function Gt(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;swindow.ScrollTimeline!==void 0);class os{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s{if(rs()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{s.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;nn[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class as extends os{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function jt(t,e){return t?t[e]||t.default||t:void 0}const Ae=2e4;function Wt(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e=Ae?1/0:e}function Ne(t){return typeof t=="function"}function Ze(t,e){t.timeline=e,t.onfinish=null}const Le=t=>Array.isArray(t)&&typeof t[0]=="number",ls={linearEasing:void 0};function us(t,e){const n=Ke(t);return()=>{var s;return(s=ls[e])!==null&&s!==void 0?s:n()}}const ee=us(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),zt=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Ve={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:q([0,.65,.55,1]),circOut:q([.55,0,1,.45]),backIn:q([.31,.01,.66,-.59]),backOut:q([.33,1.53,.69,.99])};function Ht(t,e){if(t)return typeof t=="function"&&ee()?zt(t,e):Le(t)?q(t):Array.isArray(t)?t.map(n=>Ht(n,e)||Ve.easeOut):Ve[t]}const Je={x:!1,y:!1};function $t(){return Je.x||Je.y}function cs(t,e,n){var s;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;e&&(i=e.current);const r=(s=n?.[t])!==null&&s!==void 0?s:i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}function Xt(t,e){const n=cs(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Qe(t){return e=>{e.pointerType==="touch"||$t()||t(e)}}function hs(t,e,n={}){const[s,i,r]=Xt(t,n),o=Qe(a=>{const{target:l}=a,u=e(a);if(typeof u!="function"||!l)return;const c=Qe(h=>{u(h),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return s.forEach(a=>{a.addEventListener("pointerenter",o,i)}),r}const Yt=(t,e)=>e?t===e?!0:Yt(t,e.parentElement):!1,Zt=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,fs=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ds(t){return fs.has(t.tagName)||t.tabIndex!==-1}const H=new WeakSet;function et(t){return e=>{e.key==="Enter"&&t(e)}}function fe(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ps=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=et(()=>{if(H.has(n))return;fe(n,"down");const i=et(()=>{fe(n,"up")}),r=()=>fe(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function tt(t){return Zt(t)&&!$t()}function ms(t,e,n={}){const[s,i,r]=Xt(t,n),o=a=>{const l=a.currentTarget;if(!tt(a)||H.has(l))return;H.add(l);const u=e(a),c=(d,b)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!tt(d)||!H.has(l))&&(H.delete(l),typeof u=="function"&&u(d,{success:b}))},h=d=>{c(d,n.useGlobalTarget||Yt(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{!ds(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a.addEventListener("focus",u=>ps(u,i),i)}),r}const Jt=new Set(["width","height","top","left","right","bottom",...It]);let J;function gs(){J=void 0}const K={now:()=>(J===void 0&&K.set(Q.isProcessing||Ot.useManualTiming?Q.timestamp:performance.now()),J),set:t=>{J=t,queueMicrotask(gs)}};function ys(t,e){t.indexOf(e)===-1&&t.push(e)}function vs(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function Lr([...t],e,n){const s=e<0?t.length+e:e;if(s>=0&&svs(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r!isNaN(parseFloat(t)),st={current:void 0};class Ts{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=K.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=K.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=bs(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Qt);const s=this.events[e].add(n);return e==="change"?()=>{s(),D.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return st.current&&st.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=K.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>nt)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nt);return en(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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 te(t,e){return new Ts(t,e)}function As(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,te(n))}function Vs(t,e){const n=oe(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Ln(r[o]);As(t,o,a)}}function Ss(t){return!!(R(t)&&t.add)}function xs(t,e){const n=t.getValue("willChange");if(Ss(n))return n.add(e)}function ws(t){return t.props[_n]}const tn={current:!1},nn=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Ps=1e-7,Ms=12;function Cs(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=nn(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>Ps&&++aCs(r,0,1,t,n);return r=>r===0||r===1?r:nn(i(r),e,s)}const sn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,rn=t=>e=>1-t(1-e),on=Y(.33,1.53,.69,.99),_e=rn(on),an=sn(_e),ln=t=>(t*=2)<1?.5*_e(t):.5*(2-Math.pow(2,-10*(t-1))),ke=t=>1-Math.sin(Math.acos(t)),Fs=rn(ke),un=sn(ke),cn=t=>/^0[^.\s]+$/u.test(t);function Ds(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||cn(t):!0}const $=t=>Math.round(t*1e5)/1e5,Ue=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Es(t){return t==null}const Rs=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ge=(t,e)=>n=>!!(typeof n=="string"&&Rs.test(n)&&n.startsWith(t)||e&&!Es(n)&&Object.prototype.hasOwnProperty.call(n,e)),hn=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(Ue);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Is=t=>G(0,255,t),de={...Ie,transform:t=>Math.round(Is(t))},N={test:Ge("rgb","red"),parse:hn("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+de.transform(t)+", "+de.transform(e)+", "+de.transform(n)+", "+$(Kt.transform(s))+")"};function Os(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Se={test:Ge("#"),parse:Os,transform:N.transform},U={test:Ge("hsl","hue"),parse:hn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+be.transform($(e))+", "+be.transform($(n))+", "+$(Kt.transform(s))+")"},w={test:t=>N.test(t)||Se.test(t)||U.test(t),parse:t=>N.test(t)?N.parse(t):U.test(t)?U.parse(t):Se.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?N.transform(t):U.transform(t)},Ks=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Bs(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ue))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Ks))===null||n===void 0?void 0:n.length)||0)>0}const fn="number",dn="color",Ns="var",Ls="var(",it="${}",_s=/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 X(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(_s,l=>(w.test(l)?(s.color.push(r),i.push(dn),n.push(w.parse(l))):l.startsWith(Ls)?(s.var.push(r),i.push(Ns),n.push(l)):(s.number.push(r),i.push(fn),n.push(parseFloat(l))),++r,it)).split(it);return{values:n,split:a,indexes:s,types:i}}function pn(t){return X(t).values}function mn(t){const{split:e,types:n}=X(t),s=e.length;return i=>{let r="";for(let o=0;otypeof t=="number"?0:t;function Us(t){const e=pn(t);return mn(t)(e.map(ks))}const W={test:Bs,parse:pn,createTransformer:mn,getAnimatableNone:Us},Gs=new Set(["brightness","contrast","saturate","opacity"]);function js(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Ue)||[];if(!s)return t;const i=n.replace(s,"");let r=Gs.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Ws=/\b([a-z-]*)\(.*?\)/gu,xe={...W,getAnimatableNone:t=>{const e=t.match(Ws);return e?e.map(js).join(" "):t}},zs={...kn,color:w,backgroundColor:w,outlineColor:w,fill:w,stroke:w,borderColor:w,borderTopColor:w,borderRightColor:w,borderBottomColor:w,borderLeftColor:w,filter:xe,WebkitFilter:xe},je=t=>zs[t];function gn(t,e){let n=je(t);return n!==xe&&(n=W),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const qs=new Set(["auto","none","0"]);function Hs(t,e,n){let s=0,i;for(;st===Ie||t===Bt,ot=(t,e)=>parseFloat(t.split(", ")[e]),at=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return ot(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?ot(r[1],t):0}},$s=new Set(["x","y","z"]),Xs=It.filter(t=>!$s.has(t));function Ys(t){const e=[];return Xs.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const j={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:at(4,13),y:at(5,14)};j.translateX=j.x;j.translateY=j.y;const L=new Set;let we=!1,Pe=!1;function yn(){if(Pe){const t=Array.from(L).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Ys(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Pe=!1,we=!1,L.forEach(t=>t.complete()),L.clear()}function vn(){L.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Pe=!0)})}function Zs(){vn(),yn()}class We{constructor(e,n,s,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(L.add(this),we||(we=!0,D.read(vn),D.resolveKeyframes(yn))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;r/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Js=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Qs(t){const e=Js.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Tn(t,e,n=1){const[s,i]=Qs(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return bn(o)?parseFloat(o):o}return Oe(i)?Tn(i,e,n+1):i}const An=t=>e=>e.test(t),ei={test:t=>t==="auto",parse:t=>t},Vn=[Ie,Bt,be,Un,Gn,jn,ei],lt=t=>Vn.find(An(t));class Sn extends We{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const ut=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(W.test(t)||t==="0")&&!t.startsWith("url("));function ti(t){const e=t[0];if(t.length===1)return!0;for(let n=0;nt!==null;function ae(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(si),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}const ii=40;class xn{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=K.now(),this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>ii?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Zs(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=K.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!ni(e,s,i,r))if(tn.current||!o){l&&l(ae(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}else this.options.duration=0;const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Z=(t,e,n)=>t+(e-t)*n;function pe(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function ri({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=pe(l,a,t+1/3),r=pe(l,a,t),o=pe(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function ne(t,e){return n=>n>0?e:t}const me=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},oi=[Se,N,U],ai=t=>oi.find(e=>e.test(t));function ct(t){const e=ai(t);if(!e)return!1;let n=e.parse(t);return e===U&&(n=ri(n)),n}const ht=(t,e)=>{const n=ct(t),s=ct(e);if(!n||!s)return ne(t,e);const i={...n};return r=>(i.red=me(n.red,s.red,r),i.green=me(n.green,s.green,r),i.blue=me(n.blue,s.blue,r),i.alpha=Z(n.alpha,s.alpha,r),N.transform(i))},li=(t,e)=>n=>e(t(n)),le=(...t)=>t.reduce(li),Me=new Set(["none","hidden"]);function ui(t,e){return Me.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ci(t,e){return n=>Z(t,e,n)}function ze(t){return typeof t=="number"?ci:typeof t=="string"?Oe(t)?ne:w.test(t)?ht:di:Array.isArray(t)?wn:typeof t=="object"?w.test(t)?ht:hi:ne}function wn(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>ze(r)(r,e[o]));return r=>{for(let o=0;o{for(const r in s)n[r]=s[r](i);return n}}function fi(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r{const n=W.createTransformer(e),s=X(t),i=X(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Me.has(t)&&!i.values.length||Me.has(e)&&!s.values.length?ui(t,e):le(wn(fi(s,i),i.values),n):ne(t,e)};function Pn(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Z(t,e,n):ze(t)(t,e)}const pi=5;function Mn(t,e,n){const s=Math.max(e-pi,0);return en(n-t(s),e-s)}const S={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ge=.001;function mi({duration:t=S.duration,bounce:e=S.bounce,velocity:n=S.velocity,mass:s=S.mass}){let i,r,o=1-e;o=G(S.minDamping,S.maxDamping,o),t=G(S.minDuration,S.maxDuration,O(t)),o<1?(i=u=>{const c=u*o,h=c*t,f=c-n,d=Ce(u,o),b=Math.exp(-h);return ge-f/d*b},r=u=>{const h=u*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(u,2)*t,b=Math.exp(-h),y=Ce(Math.pow(u,2),o);return(-i(u)+ge>0?-1:1)*((f-d)*b)/y}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-ge+c*h},r=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=yi(i,r,a);if(t=I(t),isNaN(l))return{stiffness:S.stiffness,damping:S.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const gi=12;function yi(t,e,n){let s=n;for(let i=1;it[n]!==void 0)}function Ti(t){let e={velocity:S.velocity,stiffness:S.stiffness,damping:S.damping,mass:S.mass,isResolvedFromDuration:!1,...t};if(!ft(t,bi)&&ft(t,vi))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*G(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:S.mass,stiffness:i,damping:r}}else{const n=mi(t);e={...e,...n,mass:S.mass},e.isResolvedFromDuration=!0}return e}function Cn(t=S.visualDuration,e=S.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=Ti({...n,velocity:-O(n.velocity||0)}),b=f||0,y=u/(2*Math.sqrt(l*c)),v=o-r,g=O(Math.sqrt(l/c)),T=Math.abs(v)<5;s||(s=T?S.restSpeed.granular:S.restSpeed.default),i||(i=T?S.restDelta.granular:S.restDelta.default);let A;if(y<1){const m=Ce(g,y);A=V=>{const x=Math.exp(-y*g*V);return o-x*((b+y*g*v)/m*Math.sin(m*V)+v*Math.cos(m*V))}}else if(y===1)A=m=>o-Math.exp(-g*m)*(v+(b+g*v)*m);else{const m=g*Math.sqrt(y*y-1);A=V=>{const x=Math.exp(-y*g*V),p=Math.min(m*V,300);return o-x*((b+y*g*v)*Math.sinh(p)+m*v*Math.cosh(p))/m}}const C={calculatedDuration:d&&h||null,next:m=>{const V=A(m);if(d)a.done=m>=h;else{let x=0;y<1&&(x=m===0?I(b):Mn(A,m,V));const p=Math.abs(x)<=s,M=Math.abs(o-V)<=i;a.done=p&&M}return a.value=a.done?o:V,a},toString:()=>{const m=Math.min(Wt(C),Ae),V=zt(x=>C.next(m*x).value,m,30);return m+"ms "+V}};return C}function dt({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=p=>a!==void 0&&pl,b=p=>a===void 0?l:l===void 0||Math.abs(a-p)-y*Math.exp(-p/s),A=p=>g+T(p),C=p=>{const M=T(p),F=A(p);f.done=Math.abs(M)<=u,f.value=f.done?g:F};let m,V;const x=p=>{d(f.value)&&(m=p,V=Cn({keyframes:[f.value,b(f.value)],velocity:Mn(A,p,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return x(0),{calculatedDuration:null,next:p=>{let M=!1;return!V&&m===void 0&&(M=!0,C(p),x(p)),m!==void 0&&p>=m?V.next(p-m):(!M&&C(p),f)}}}const Ai=Y(.42,0,1,1),Vi=Y(0,0,.58,1),Fn=Y(.42,0,.58,1),Si=t=>Array.isArray(t)&&typeof t[0]!="number",xi={linear:_,easeIn:Ai,easeInOut:Fn,easeOut:Vi,circIn:ke,circInOut:un,circOut:Fs,backIn:_e,backInOut:an,backOut:on,anticipate:ln},pt=t=>{if(Le(t)){Ut(t.length===4);const[e,n,s,i]=t;return Y(e,n,s,i)}else if(typeof t=="string")return xi[t];return t};function wi(t,e,n){const s=[],i=n||Pn,r=t.length-1;for(let o=0;oe[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=wi(e,s,i),l=a.length,u=c=>{if(o&&c1)for(;hu(G(t[0],t[r-1],c)):u}function Mi(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Be(0,e,s);t.push(Z(n,1,i))}}function Ci(t){const e=[0];return Mi(e,t.length-1),e}function Fi(t,e){return t.map(n=>n*e)}function Di(t,e){return t.map(()=>e||Fn).splice(0,t.length-1)}function se({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Si(s)?s.map(pt):pt(s),r={done:!1,value:e[0]},o=Fi(n&&n.length===e.length?n:Ci(e),t),a=Pi(o,e,{ease:Array.isArray(i)?i:Di(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const Ei=t=>{const e=({timestamp:n})=>t(n);return{start:()=>D.update(e,!0),stop:()=>Te(e),now:()=>Q.isProcessing?Q.timestamp:K.now()}},Ri={decay:dt,inertia:dt,tween:se,keyframes:se,spring:Cn},Ii=t=>t/100;class ue extends xn{constructor(e){super(e),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,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:r}=this.options,o=i?.KeyframeResolver||We,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(r,a,n,s,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,a=Ne(n)?n:Ri[n]||se;let l,u;a!==se&&typeof e[0]!="number"&&(l=le(Ii,Pn(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});r==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Wt(c));const{calculatedDuration:h}=c,f=h+i,d=f*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:p}=this.options;return{done:!0,value:p[p.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;if(this.startTime===null)return r.next(0);const{delay:f,repeat:d,repeatType:b,repeatDelay:y,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),T=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let A=this.currentTime,C=r;if(d){const p=Math.min(this.currentTime,c)/h;let M=Math.floor(p),F=p%1;!F&&p>=1&&(F=1),F===1&&M--,M=Math.min(M,d+1),!!(M%2)&&(b==="reverse"?(F=1-F,y&&(F-=y/h)):b==="mirror"&&(C=o)),A=G(0,1,F)*h}const m=T?{done:!1,value:l[0]}:C.next(A);a&&(m.value=a(m.value));let{done:V}=m;!T&&u!==null&&(V=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const x=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return x&&i!==void 0&&(m.value=ae(l,this.options,i)),v&&v(m.value),x&&this.finish(),m}get duration(){const{resolved:e}=this;return e?O(e.calculatedDuration):0}get time(){return O(this.currentTime)}set time(e){e=I(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=O(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Ei,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&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(e){return this.startTime=0,this.tick(e,!0)}}function _r(t){return new ue(t)}const Oi=new Set(["opacity","clipPath","filter","transform"]);function Ki(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Ht(a,i);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}const Bi=Ke(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ie=10,Ni=2e4;function Li(t){return Ne(t.type)||t.type==="spring"||!qt(t.ease)}function _i(t,e){const n=new ue({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let r=0;for(;!s.done&&rthis.onKeyframesResolved(o,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:s=300,times:i,ease:r,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof r=="string"&&ee()&&ki(r)&&(r=Dn[r]),Li(this.options)){const{onComplete:h,onUpdate:f,motionValue:d,element:b,...y}=this.options,v=_i(e,y);e=v.keyframes,e.length===1&&(e[1]=e[0]),s=v.duration,i=v.times,r=v.ease,o="keyframes"}const c=Ki(a.owner.current,l,e,{...this.options,duration:s,times:i,ease:r});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(Ze(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:h}=this.options;a.set(ae(e,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:s,times:i,type:o,ease:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return O(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return O(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=I(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return _;const{animation:s}=n;Ze(s,e)}return _}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:r,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,element:f,...d}=this.options,b=new ue({...d,keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0}),y=I(this.time);u.setWithVelocity(b.sample(y-ie).value,b.sample(y).value,ie)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:r,damping:o,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return Bi()&&s&&Oi.has(s)&&!l&&!u&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}const Ui={type:"spring",stiffness:500,damping:25,restSpeed:10},Gi=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ji={type:"keyframes",duration:.8},Wi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zi=(t,{keyframes:e})=>e.length>2?ji:re.has(t)?t.startsWith("scale")?Gi(e[1]):Ui:Wi;function qi({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Hi=(t,e,n,s={},i,r)=>o=>{const a=jt(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-I(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};qi(a)||(c={...c,...zi(t,c)}),c.duration&&(c.duration=I(c.duration)),c.repeatDelay&&(c.repeatDelay=I(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),(tn.current||Ot.skipAnimations)&&(h=!0,c.duration=0,c.delay=0),h&&!r&&e.get()!==void 0){const f=ae(c.keyframes,a);if(f!==void 0)return D.update(()=>{c.onUpdate(f),c.onComplete()}),new as([])}return!r&&mt.supports(c)?new mt(c):new ue(c)};function $i({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function En(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const f=t.getValue(h,(r=t.latestValues[h])!==null&&r!==void 0?r:null),d=l[h];if(d===void 0||c&&$i(c,h))continue;const b={delay:n,...jt(o||{},h)};let y=!1;if(window.MotionHandoffAnimation){const g=ws(t);if(g){const T=window.MotionHandoffAnimation(g,h,D);T!==null&&(b.startTime=T,y=!0)}}xs(t,h),f.start(Hi(h,f,d,t.shouldReduceMotion&&Jt.has(h)?{type:!1}:b,t,y));const v=f.animation;v&&u.push(v)}return a&&Promise.all(u).then(()=>{D.update(()=>{a&&Vs(t,a)})}),u}function Fe(t,e,n={}){var s;const i=oe(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const o=i?()=>Promise.all(En(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=r;return Xi(t,e,c+u,h,f,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function Xi(t,e,n=0,s=0,i=1,r){const o=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(Yi).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(Fe(u,e,{...r,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function Yi(t,e){return t.sortNodePosition(e)}function Zi(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Fe(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Fe(t,e,n);else{const i=typeof e=="function"?oe(t,e,n.custom):e;s=Promise.all(En(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Ji=Lt.length;function Rn(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Rn(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;nPromise.all(e.map(({animation:n,options:s})=>Zi(t,n,s)))}function nr(t){let e=tr(t),n=gt(),s=!0;const i=l=>(u,c)=>{var h;const f=oe(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:b,...y}=f;u={...u,...y,...b}}return u};function r(l){e=l(t)}function o(l){const{props:u}=t,c=Rn(t.parent)||{},h=[],f=new Set;let d={},b=1/0;for(let v=0;vb&&C,M=!1;const F=Array.isArray(A)?A:[A];let k=F.reduce(i(g),{});m===!1&&(k={});const{prevResolvedValues:He={}}=T,Nn={...He,...k},$e=P=>{p=!0,f.has(P)&&(M=!0,f.delete(P)),T.needsAnimating[P]=!0;const E=t.getValue(P);E&&(E.liveStyle=!1)};for(const P in Nn){const E=k[P],ce=He[P];if(d.hasOwnProperty(P))continue;let he=!1;Xe(E)&&Xe(ce)?he=!Gt(E,ce):he=E!==ce,he?E!=null?$e(P):f.add(P):E!==void 0&&f.has(P)?$e(P):T.protectedKeys[P]=!0}T.prevProp=A,T.prevResolvedValues=k,T.isActive&&(d={...d,...k}),s&&t.blockInitialAnimation&&(p=!1),p&&(!(V&&x)||M)&&h.push(...F.map(P=>({animation:P,options:{type:g}})))}if(f.size){const v={};f.forEach(g=>{const T=t.getBaseTarget(g),A=t.getValue(g);A&&(A.liveStyle=!0),v[g]=T??null}),h.push({animation:v})}let y=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,y?e(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(l,u)}),n[l].isActive=u;const h=o(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=gt(),s=!0}}}function sr(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Gt(e,t):!1}function B(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gt(){return{animate:B(!0),whileInView:B(),whileHover:B(),whileTap:B(),whileDrag:B(),whileFocus:B(),exit:B()}}class z{constructor(e){this.isMounted=!1,this.node=e}update(){}}class ir extends z{constructor(e){super(e),e.animationState||(e.animationState=nr(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();_t(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let rr=0;class or extends z{constructor(){super(...arguments),this.id=rr++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const ar={animation:{Feature:ir},exit:{Feature:or}};function yt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function qe(t){return{point:{x:t.pageX,y:t.pageY}}}const kr=t=>e=>Zt(e)&&t(e,qe(e)),vt=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ur=()=>({x:vt(),y:vt()}),bt=()=>({min:0,max:0}),In=()=>({x:bt(),y:bt()});function lr({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Gr({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function ur(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ye(t){return t===void 0||t===1}function cr({scale:t,scaleX:e,scaleY:n}){return!ye(t)||!ye(e)||!ye(n)}function hr(t){return cr(t)||fr(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function fr(t){return Tt(t.x)||Tt(t.y)}function Tt(t){return t&&t!=="0%"}function At(t,e,n){const s=t-n,i=e*s;return n+i}function Vt(t,e,n,s,i){return i!==void 0&&(t=At(t,i,s)),At(t,n,s)+e}function De(t,e=0,n=1,s,i){t.min=Vt(t.min,e,n,s,i),t.max=Vt(t.max,e,n,s,i)}function dr(t,{x:e,y:n}){De(t.x,e.translate,e.scale,e.originPoint),De(t.y,n.translate,n.scale,n.originPoint)}const St=.999999999999,xt=1.0000000000001;function jr(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;aSt&&(e.x=1),e.ySt&&(e.y=1)}function wt(t,e){t.min=t.min+e,t.max=t.max+e}function Pt(t,e,n,s,i=.5){const r=Z(t.min,t.max,i);De(t,e,n,r,s)}function Mt(t,e){Pt(t.x,e.x,e.scaleX,e.scale,e.originX),Pt(t.y,e.y,e.scaleY,e.scale,e.originY)}function On(t,e){return lr(ur(t.getBoundingClientRect(),e))}function Wr(t,e,n){const s=On(t,n),{scroll:i}=e;return i&&(wt(s.x,i.offset.x),wt(s.y,i.offset.y)),s}function Ct(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&D.postRender(()=>r(e,qe(e)))}class pr extends z{mount(){const{current:e}=this.node;e&&(this.unmount=hs(e,n=>(Ct(this.node,n,"Start"),s=>Ct(this.node,s,"End"))))}unmount(){}}class mr extends z{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=le(yt(this.node.current,"focus",()=>this.onFocus()),yt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ft(t,e,n){const{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&D.postRender(()=>r(e,qe(e)))}class gr extends z{mount(){const{current:e}=this.node;e&&(this.unmount=ms(e,n=>(Ft(this.node,n,"Start"),(s,{success:i})=>Ft(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ee=new WeakMap,ve=new WeakMap,yr=t=>{const e=Ee.get(t.target);e&&e(t)},vr=t=>{t.forEach(yr)};function br({root:t,...e}){const n=t||document;ve.has(n)||ve.set(n,{});const s=ve.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(vr,{root:t,...e})),s[i]}function Tr(t,e,n){const s=br(e);return Ee.set(t,n),s.observe(t),()=>{Ee.delete(t),s.unobserve(t)}}const Ar={some:0,all:1};class Vr extends z{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Ar[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return Tr(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Sr(e,n))&&this.startObserver()}unmount(){}}function Sr({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const xr={inView:{Feature:Vr},tap:{Feature:gr},focus:{Feature:mr},hover:{Feature:pr}},Re={current:null},Kn={current:!1};function wr(){if(Kn.current=!0,!!Wn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Re.current=t.matches;t.addListener(e),e()}else Re.current=!1}const Pr=[...Vn,w,W],Mr=t=>Pr.find(An(t)),Dt=new WeakMap;function Cr(t,e,n){for(const s in e){const i=e[s],r=n[s];if(R(i))t.addValue(s,i);else if(R(r))t.addValue(s,te(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,te(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Et=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Fr{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=We,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=()=>{const d=K.now();this.renderScheduledAtthis.bindToMotionValue(s,n)),Kn.current||wr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Re.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Dt.delete(this.current),this.projection&&this.projection.unmount(),Te(this.notifyUpdate),Te(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=re.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&D.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Ye){const n=Ye[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):In()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;sn.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=te(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(bn(i)||cn(i))?i=parseFloat(i):!Mr(i)&&W.test(n)&&(i=gn(e,n)),this.setBaseTarget(e,R(i)?i.get():i)),R(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const o=Rt(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!R(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Qt),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Bn extends Fr{constructor(){super(...arguments),this.KeyframeResolver=Sn}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;R(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Dr(t){return window.getComputedStyle(t)}class Er extends Bn{constructor(){super(...arguments),this.type="html",this.renderInstance=Hn}readValueFromInstance(e,n){if(re.has(n)){const s=je(n);return s&&s.default||0}else{const s=Dr(e),i=($n(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return On(e,n)}build(e,n,s){Xn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Yn(e,n,s)}}class Rr extends Bn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=In}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(re.has(n)){const s=je(n);return s&&s.default||0}return n=Jn.has(n)?n:Zn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Qn(e,n,s)}build(e,n,s){es(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){ts(e,n,s,i)}mount(e){this.isSVGTag=ns(e.tagName),super.mount(e)}}const Ir=(t,e)=>ss(t)?new Rr(e):new Er(e,{allowProjection:t!==is.Fragment}),zr={renderer:Ir,...ar,...xr};export{wr as $,jt as A,hr as B,wt as C,Mt as D,cr as E,z as F,dr as G,fr as H,jr as I,Ur as J,ws as K,ar as L,Ir as M,xr as N,zr as O,cs as P,en as Q,Pi as R,Qt as S,Ci as T,rs as U,Nr as V,_r as W,st as X,Oi as Y,Ts as Z,Kn as _,O as a,Re as a0,Zi as a1,Vs as a2,Si as a3,Mi as a4,Ne as a5,Fr as a6,Rr as a7,Er as a8,Dt as a9,Ai as aA,Fn as aB,Vi as aC,sn as aD,rn as aE,En as aa,Cn as ab,as as ac,Ke as ad,Ut as ae,ee as af,Bi as ag,Ki as ah,ae as ai,tn as aj,Lr as ak,pt as al,mt as am,w as an,mi as ao,$t as ap,dt as aq,se as ar,Pn as as,ln as at,_e as au,an as av,on as aw,ke as ax,un as ay,Y as az,Ze as b,Wt as c,yt as d,kr as e,Zt as f,qe as g,Z as h,Je as i,Be as j,In as k,Wr as l,Ae as m,Gr as n,lr as o,le as p,xs as q,Hi as r,I as s,W as t,te as u,ys as v,vs as w,K as x,Fs as y,At as z}; +import{n as _,T as Rt,U as It,a as Q,N as Ot,f as D,V as Ln,h as R,O as _n,W as Ie,X as Kt,b as G,p as be,Y as kn,d as Bt,Z as Oe,_ as Un,$ as Gn,a0 as jn,c as Te,v as re,a1 as Nt,a2 as Lt,a3 as _t,a4 as Xe,a5 as kt,R as Wn,a6 as zn,a7 as qn,a8 as Ye,a9 as Hn,aa as $n,ab as Xn,ac as Yn,w as Zn,ad as Jn,ae as Qn,af as es,ag as ts,ah as ns,ai as ss,r as is}from"./index-ihgeXEwv.js";let Nr=_,Ut=_;function Ke(t){let e;return()=>(e===void 0&&(e=t()),e)}const Be=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},I=t=>t*1e3,O=t=>t/1e3;function Gt(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;swindow.ScrollTimeline!==void 0);class os{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s{if(rs()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{s.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;nn[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class as extends os{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function jt(t,e){return t?t[e]||t.default||t:void 0}const Ae=2e4;function Wt(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e=Ae?1/0:e}function Ne(t){return typeof t=="function"}function Ze(t,e){t.timeline=e,t.onfinish=null}const Le=t=>Array.isArray(t)&&typeof t[0]=="number",ls={linearEasing:void 0};function us(t,e){const n=Ke(t);return()=>{var s;return(s=ls[e])!==null&&s!==void 0?s:n()}}const ee=us(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),zt=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Ve={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:q([0,.65,.55,1]),circOut:q([.55,0,1,.45]),backIn:q([.31,.01,.66,-.59]),backOut:q([.33,1.53,.69,.99])};function Ht(t,e){if(t)return typeof t=="function"&&ee()?zt(t,e):Le(t)?q(t):Array.isArray(t)?t.map(n=>Ht(n,e)||Ve.easeOut):Ve[t]}const Je={x:!1,y:!1};function $t(){return Je.x||Je.y}function cs(t,e,n){var s;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;e&&(i=e.current);const r=(s=n?.[t])!==null&&s!==void 0?s:i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}function Xt(t,e){const n=cs(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Qe(t){return e=>{e.pointerType==="touch"||$t()||t(e)}}function hs(t,e,n={}){const[s,i,r]=Xt(t,n),o=Qe(a=>{const{target:l}=a,u=e(a);if(typeof u!="function"||!l)return;const c=Qe(h=>{u(h),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return s.forEach(a=>{a.addEventListener("pointerenter",o,i)}),r}const Yt=(t,e)=>e?t===e?!0:Yt(t,e.parentElement):!1,Zt=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,fs=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ds(t){return fs.has(t.tagName)||t.tabIndex!==-1}const H=new WeakSet;function et(t){return e=>{e.key==="Enter"&&t(e)}}function fe(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ps=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=et(()=>{if(H.has(n))return;fe(n,"down");const i=et(()=>{fe(n,"up")}),r=()=>fe(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function tt(t){return Zt(t)&&!$t()}function ms(t,e,n={}){const[s,i,r]=Xt(t,n),o=a=>{const l=a.currentTarget;if(!tt(a)||H.has(l))return;H.add(l);const u=e(a),c=(d,b)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!tt(d)||!H.has(l))&&(H.delete(l),typeof u=="function"&&u(d,{success:b}))},h=d=>{c(d,n.useGlobalTarget||Yt(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{!ds(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a.addEventListener("focus",u=>ps(u,i),i)}),r}const Jt=new Set(["width","height","top","left","right","bottom",...It]);let J;function gs(){J=void 0}const K={now:()=>(J===void 0&&K.set(Q.isProcessing||Ot.useManualTiming?Q.timestamp:performance.now()),J),set:t=>{J=t,queueMicrotask(gs)}};function ys(t,e){t.indexOf(e)===-1&&t.push(e)}function vs(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function Lr([...t],e,n){const s=e<0?t.length+e:e;if(s>=0&&svs(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r!isNaN(parseFloat(t)),st={current:void 0};class Ts{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=K.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=K.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=bs(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Qt);const s=this.events[e].add(n);return e==="change"?()=>{s(),D.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return st.current&&st.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=K.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>nt)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nt);return en(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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 te(t,e){return new Ts(t,e)}function As(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,te(n))}function Vs(t,e){const n=oe(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Ln(r[o]);As(t,o,a)}}function Ss(t){return!!(R(t)&&t.add)}function xs(t,e){const n=t.getValue("willChange");if(Ss(n))return n.add(e)}function ws(t){return t.props[_n]}const tn={current:!1},nn=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Ps=1e-7,Ms=12;function Cs(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=nn(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>Ps&&++aCs(r,0,1,t,n);return r=>r===0||r===1?r:nn(i(r),e,s)}const sn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,rn=t=>e=>1-t(1-e),on=Y(.33,1.53,.69,.99),_e=rn(on),an=sn(_e),ln=t=>(t*=2)<1?.5*_e(t):.5*(2-Math.pow(2,-10*(t-1))),ke=t=>1-Math.sin(Math.acos(t)),Fs=rn(ke),un=sn(ke),cn=t=>/^0[^.\s]+$/u.test(t);function Ds(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||cn(t):!0}const $=t=>Math.round(t*1e5)/1e5,Ue=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Es(t){return t==null}const Rs=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ge=(t,e)=>n=>!!(typeof n=="string"&&Rs.test(n)&&n.startsWith(t)||e&&!Es(n)&&Object.prototype.hasOwnProperty.call(n,e)),hn=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(Ue);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Is=t=>G(0,255,t),de={...Ie,transform:t=>Math.round(Is(t))},N={test:Ge("rgb","red"),parse:hn("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+de.transform(t)+", "+de.transform(e)+", "+de.transform(n)+", "+$(Kt.transform(s))+")"};function Os(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Se={test:Ge("#"),parse:Os,transform:N.transform},U={test:Ge("hsl","hue"),parse:hn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+be.transform($(e))+", "+be.transform($(n))+", "+$(Kt.transform(s))+")"},w={test:t=>N.test(t)||Se.test(t)||U.test(t),parse:t=>N.test(t)?N.parse(t):U.test(t)?U.parse(t):Se.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?N.transform(t):U.transform(t)},Ks=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Bs(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ue))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Ks))===null||n===void 0?void 0:n.length)||0)>0}const fn="number",dn="color",Ns="var",Ls="var(",it="${}",_s=/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 X(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(_s,l=>(w.test(l)?(s.color.push(r),i.push(dn),n.push(w.parse(l))):l.startsWith(Ls)?(s.var.push(r),i.push(Ns),n.push(l)):(s.number.push(r),i.push(fn),n.push(parseFloat(l))),++r,it)).split(it);return{values:n,split:a,indexes:s,types:i}}function pn(t){return X(t).values}function mn(t){const{split:e,types:n}=X(t),s=e.length;return i=>{let r="";for(let o=0;otypeof t=="number"?0:t;function Us(t){const e=pn(t);return mn(t)(e.map(ks))}const W={test:Bs,parse:pn,createTransformer:mn,getAnimatableNone:Us},Gs=new Set(["brightness","contrast","saturate","opacity"]);function js(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Ue)||[];if(!s)return t;const i=n.replace(s,"");let r=Gs.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Ws=/\b([a-z-]*)\(.*?\)/gu,xe={...W,getAnimatableNone:t=>{const e=t.match(Ws);return e?e.map(js).join(" "):t}},zs={...kn,color:w,backgroundColor:w,outlineColor:w,fill:w,stroke:w,borderColor:w,borderTopColor:w,borderRightColor:w,borderBottomColor:w,borderLeftColor:w,filter:xe,WebkitFilter:xe},je=t=>zs[t];function gn(t,e){let n=je(t);return n!==xe&&(n=W),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const qs=new Set(["auto","none","0"]);function Hs(t,e,n){let s=0,i;for(;st===Ie||t===Bt,ot=(t,e)=>parseFloat(t.split(", ")[e]),at=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return ot(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?ot(r[1],t):0}},$s=new Set(["x","y","z"]),Xs=It.filter(t=>!$s.has(t));function Ys(t){const e=[];return Xs.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const j={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:at(4,13),y:at(5,14)};j.translateX=j.x;j.translateY=j.y;const L=new Set;let we=!1,Pe=!1;function yn(){if(Pe){const t=Array.from(L).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Ys(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Pe=!1,we=!1,L.forEach(t=>t.complete()),L.clear()}function vn(){L.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Pe=!0)})}function Zs(){vn(),yn()}class We{constructor(e,n,s,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(L.add(this),we||(we=!0,D.read(vn),D.resolveKeyframes(yn))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;r/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Js=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Qs(t){const e=Js.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Tn(t,e,n=1){const[s,i]=Qs(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return bn(o)?parseFloat(o):o}return Oe(i)?Tn(i,e,n+1):i}const An=t=>e=>e.test(t),ei={test:t=>t==="auto",parse:t=>t},Vn=[Ie,Bt,be,Un,Gn,jn,ei],lt=t=>Vn.find(An(t));class Sn extends We{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const ut=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(W.test(t)||t==="0")&&!t.startsWith("url("));function ti(t){const e=t[0];if(t.length===1)return!0;for(let n=0;nt!==null;function ae(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(si),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}const ii=40;class xn{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=K.now(),this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>ii?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Zs(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=K.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!ni(e,s,i,r))if(tn.current||!o){l&&l(ae(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}else this.options.duration=0;const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Z=(t,e,n)=>t+(e-t)*n;function pe(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function ri({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=pe(l,a,t+1/3),r=pe(l,a,t),o=pe(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function ne(t,e){return n=>n>0?e:t}const me=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},oi=[Se,N,U],ai=t=>oi.find(e=>e.test(t));function ct(t){const e=ai(t);if(!e)return!1;let n=e.parse(t);return e===U&&(n=ri(n)),n}const ht=(t,e)=>{const n=ct(t),s=ct(e);if(!n||!s)return ne(t,e);const i={...n};return r=>(i.red=me(n.red,s.red,r),i.green=me(n.green,s.green,r),i.blue=me(n.blue,s.blue,r),i.alpha=Z(n.alpha,s.alpha,r),N.transform(i))},li=(t,e)=>n=>e(t(n)),le=(...t)=>t.reduce(li),Me=new Set(["none","hidden"]);function ui(t,e){return Me.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ci(t,e){return n=>Z(t,e,n)}function ze(t){return typeof t=="number"?ci:typeof t=="string"?Oe(t)?ne:w.test(t)?ht:di:Array.isArray(t)?wn:typeof t=="object"?w.test(t)?ht:hi:ne}function wn(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>ze(r)(r,e[o]));return r=>{for(let o=0;o{for(const r in s)n[r]=s[r](i);return n}}function fi(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r{const n=W.createTransformer(e),s=X(t),i=X(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Me.has(t)&&!i.values.length||Me.has(e)&&!s.values.length?ui(t,e):le(wn(fi(s,i),i.values),n):ne(t,e)};function Pn(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Z(t,e,n):ze(t)(t,e)}const pi=5;function Mn(t,e,n){const s=Math.max(e-pi,0);return en(n-t(s),e-s)}const S={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ge=.001;function mi({duration:t=S.duration,bounce:e=S.bounce,velocity:n=S.velocity,mass:s=S.mass}){let i,r,o=1-e;o=G(S.minDamping,S.maxDamping,o),t=G(S.minDuration,S.maxDuration,O(t)),o<1?(i=u=>{const c=u*o,h=c*t,f=c-n,d=Ce(u,o),b=Math.exp(-h);return ge-f/d*b},r=u=>{const h=u*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(u,2)*t,b=Math.exp(-h),y=Ce(Math.pow(u,2),o);return(-i(u)+ge>0?-1:1)*((f-d)*b)/y}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-ge+c*h},r=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=yi(i,r,a);if(t=I(t),isNaN(l))return{stiffness:S.stiffness,damping:S.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const gi=12;function yi(t,e,n){let s=n;for(let i=1;it[n]!==void 0)}function Ti(t){let e={velocity:S.velocity,stiffness:S.stiffness,damping:S.damping,mass:S.mass,isResolvedFromDuration:!1,...t};if(!ft(t,bi)&&ft(t,vi))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*G(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:S.mass,stiffness:i,damping:r}}else{const n=mi(t);e={...e,...n,mass:S.mass},e.isResolvedFromDuration=!0}return e}function Cn(t=S.visualDuration,e=S.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=Ti({...n,velocity:-O(n.velocity||0)}),b=f||0,y=u/(2*Math.sqrt(l*c)),v=o-r,g=O(Math.sqrt(l/c)),T=Math.abs(v)<5;s||(s=T?S.restSpeed.granular:S.restSpeed.default),i||(i=T?S.restDelta.granular:S.restDelta.default);let A;if(y<1){const m=Ce(g,y);A=V=>{const x=Math.exp(-y*g*V);return o-x*((b+y*g*v)/m*Math.sin(m*V)+v*Math.cos(m*V))}}else if(y===1)A=m=>o-Math.exp(-g*m)*(v+(b+g*v)*m);else{const m=g*Math.sqrt(y*y-1);A=V=>{const x=Math.exp(-y*g*V),p=Math.min(m*V,300);return o-x*((b+y*g*v)*Math.sinh(p)+m*v*Math.cosh(p))/m}}const C={calculatedDuration:d&&h||null,next:m=>{const V=A(m);if(d)a.done=m>=h;else{let x=0;y<1&&(x=m===0?I(b):Mn(A,m,V));const p=Math.abs(x)<=s,M=Math.abs(o-V)<=i;a.done=p&&M}return a.value=a.done?o:V,a},toString:()=>{const m=Math.min(Wt(C),Ae),V=zt(x=>C.next(m*x).value,m,30);return m+"ms "+V}};return C}function dt({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=p=>a!==void 0&&pl,b=p=>a===void 0?l:l===void 0||Math.abs(a-p)-y*Math.exp(-p/s),A=p=>g+T(p),C=p=>{const M=T(p),F=A(p);f.done=Math.abs(M)<=u,f.value=f.done?g:F};let m,V;const x=p=>{d(f.value)&&(m=p,V=Cn({keyframes:[f.value,b(f.value)],velocity:Mn(A,p,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return x(0),{calculatedDuration:null,next:p=>{let M=!1;return!V&&m===void 0&&(M=!0,C(p),x(p)),m!==void 0&&p>=m?V.next(p-m):(!M&&C(p),f)}}}const Ai=Y(.42,0,1,1),Vi=Y(0,0,.58,1),Fn=Y(.42,0,.58,1),Si=t=>Array.isArray(t)&&typeof t[0]!="number",xi={linear:_,easeIn:Ai,easeInOut:Fn,easeOut:Vi,circIn:ke,circInOut:un,circOut:Fs,backIn:_e,backInOut:an,backOut:on,anticipate:ln},pt=t=>{if(Le(t)){Ut(t.length===4);const[e,n,s,i]=t;return Y(e,n,s,i)}else if(typeof t=="string")return xi[t];return t};function wi(t,e,n){const s=[],i=n||Pn,r=t.length-1;for(let o=0;oe[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=wi(e,s,i),l=a.length,u=c=>{if(o&&c1)for(;hu(G(t[0],t[r-1],c)):u}function Mi(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Be(0,e,s);t.push(Z(n,1,i))}}function Ci(t){const e=[0];return Mi(e,t.length-1),e}function Fi(t,e){return t.map(n=>n*e)}function Di(t,e){return t.map(()=>e||Fn).splice(0,t.length-1)}function se({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Si(s)?s.map(pt):pt(s),r={done:!1,value:e[0]},o=Fi(n&&n.length===e.length?n:Ci(e),t),a=Pi(o,e,{ease:Array.isArray(i)?i:Di(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const Ei=t=>{const e=({timestamp:n})=>t(n);return{start:()=>D.update(e,!0),stop:()=>Te(e),now:()=>Q.isProcessing?Q.timestamp:K.now()}},Ri={decay:dt,inertia:dt,tween:se,keyframes:se,spring:Cn},Ii=t=>t/100;class ue extends xn{constructor(e){super(e),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,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:r}=this.options,o=i?.KeyframeResolver||We,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(r,a,n,s,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,a=Ne(n)?n:Ri[n]||se;let l,u;a!==se&&typeof e[0]!="number"&&(l=le(Ii,Pn(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});r==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Wt(c));const{calculatedDuration:h}=c,f=h+i,d=f*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:p}=this.options;return{done:!0,value:p[p.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;if(this.startTime===null)return r.next(0);const{delay:f,repeat:d,repeatType:b,repeatDelay:y,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),T=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let A=this.currentTime,C=r;if(d){const p=Math.min(this.currentTime,c)/h;let M=Math.floor(p),F=p%1;!F&&p>=1&&(F=1),F===1&&M--,M=Math.min(M,d+1),!!(M%2)&&(b==="reverse"?(F=1-F,y&&(F-=y/h)):b==="mirror"&&(C=o)),A=G(0,1,F)*h}const m=T?{done:!1,value:l[0]}:C.next(A);a&&(m.value=a(m.value));let{done:V}=m;!T&&u!==null&&(V=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const x=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return x&&i!==void 0&&(m.value=ae(l,this.options,i)),v&&v(m.value),x&&this.finish(),m}get duration(){const{resolved:e}=this;return e?O(e.calculatedDuration):0}get time(){return O(this.currentTime)}set time(e){e=I(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=O(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Ei,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&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(e){return this.startTime=0,this.tick(e,!0)}}function _r(t){return new ue(t)}const Oi=new Set(["opacity","clipPath","filter","transform"]);function Ki(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Ht(a,i);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}const Bi=Ke(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ie=10,Ni=2e4;function Li(t){return Ne(t.type)||t.type==="spring"||!qt(t.ease)}function _i(t,e){const n=new ue({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let r=0;for(;!s.done&&rthis.onKeyframesResolved(o,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:s=300,times:i,ease:r,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof r=="string"&&ee()&&ki(r)&&(r=Dn[r]),Li(this.options)){const{onComplete:h,onUpdate:f,motionValue:d,element:b,...y}=this.options,v=_i(e,y);e=v.keyframes,e.length===1&&(e[1]=e[0]),s=v.duration,i=v.times,r=v.ease,o="keyframes"}const c=Ki(a.owner.current,l,e,{...this.options,duration:s,times:i,ease:r});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(Ze(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:h}=this.options;a.set(ae(e,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:s,times:i,type:o,ease:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return O(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return O(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=I(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return _;const{animation:s}=n;Ze(s,e)}return _}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:r,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,element:f,...d}=this.options,b=new ue({...d,keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0}),y=I(this.time);u.setWithVelocity(b.sample(y-ie).value,b.sample(y).value,ie)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:r,damping:o,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return Bi()&&s&&Oi.has(s)&&!l&&!u&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}const Ui={type:"spring",stiffness:500,damping:25,restSpeed:10},Gi=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ji={type:"keyframes",duration:.8},Wi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zi=(t,{keyframes:e})=>e.length>2?ji:re.has(t)?t.startsWith("scale")?Gi(e[1]):Ui:Wi;function qi({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Hi=(t,e,n,s={},i,r)=>o=>{const a=jt(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-I(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};qi(a)||(c={...c,...zi(t,c)}),c.duration&&(c.duration=I(c.duration)),c.repeatDelay&&(c.repeatDelay=I(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),(tn.current||Ot.skipAnimations)&&(h=!0,c.duration=0,c.delay=0),h&&!r&&e.get()!==void 0){const f=ae(c.keyframes,a);if(f!==void 0)return D.update(()=>{c.onUpdate(f),c.onComplete()}),new as([])}return!r&&mt.supports(c)?new mt(c):new ue(c)};function $i({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function En(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const f=t.getValue(h,(r=t.latestValues[h])!==null&&r!==void 0?r:null),d=l[h];if(d===void 0||c&&$i(c,h))continue;const b={delay:n,...jt(o||{},h)};let y=!1;if(window.MotionHandoffAnimation){const g=ws(t);if(g){const T=window.MotionHandoffAnimation(g,h,D);T!==null&&(b.startTime=T,y=!0)}}xs(t,h),f.start(Hi(h,f,d,t.shouldReduceMotion&&Jt.has(h)?{type:!1}:b,t,y));const v=f.animation;v&&u.push(v)}return a&&Promise.all(u).then(()=>{D.update(()=>{a&&Vs(t,a)})}),u}function Fe(t,e,n={}){var s;const i=oe(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const o=i?()=>Promise.all(En(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=r;return Xi(t,e,c+u,h,f,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function Xi(t,e,n=0,s=0,i=1,r){const o=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(Yi).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(Fe(u,e,{...r,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function Yi(t,e){return t.sortNodePosition(e)}function Zi(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Fe(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Fe(t,e,n);else{const i=typeof e=="function"?oe(t,e,n.custom):e;s=Promise.all(En(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Ji=Lt.length;function Rn(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Rn(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;nPromise.all(e.map(({animation:n,options:s})=>Zi(t,n,s)))}function nr(t){let e=tr(t),n=gt(),s=!0;const i=l=>(u,c)=>{var h;const f=oe(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:b,...y}=f;u={...u,...y,...b}}return u};function r(l){e=l(t)}function o(l){const{props:u}=t,c=Rn(t.parent)||{},h=[],f=new Set;let d={},b=1/0;for(let v=0;vb&&C,M=!1;const F=Array.isArray(A)?A:[A];let k=F.reduce(i(g),{});m===!1&&(k={});const{prevResolvedValues:He={}}=T,Nn={...He,...k},$e=P=>{p=!0,f.has(P)&&(M=!0,f.delete(P)),T.needsAnimating[P]=!0;const E=t.getValue(P);E&&(E.liveStyle=!1)};for(const P in Nn){const E=k[P],ce=He[P];if(d.hasOwnProperty(P))continue;let he=!1;Xe(E)&&Xe(ce)?he=!Gt(E,ce):he=E!==ce,he?E!=null?$e(P):f.add(P):E!==void 0&&f.has(P)?$e(P):T.protectedKeys[P]=!0}T.prevProp=A,T.prevResolvedValues=k,T.isActive&&(d={...d,...k}),s&&t.blockInitialAnimation&&(p=!1),p&&(!(V&&x)||M)&&h.push(...F.map(P=>({animation:P,options:{type:g}})))}if(f.size){const v={};f.forEach(g=>{const T=t.getBaseTarget(g),A=t.getValue(g);A&&(A.liveStyle=!0),v[g]=T??null}),h.push({animation:v})}let y=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,y?e(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(l,u)}),n[l].isActive=u;const h=o(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=gt(),s=!0}}}function sr(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Gt(e,t):!1}function B(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gt(){return{animate:B(!0),whileInView:B(),whileHover:B(),whileTap:B(),whileDrag:B(),whileFocus:B(),exit:B()}}class z{constructor(e){this.isMounted=!1,this.node=e}update(){}}class ir extends z{constructor(e){super(e),e.animationState||(e.animationState=nr(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();_t(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let rr=0;class or extends z{constructor(){super(...arguments),this.id=rr++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const ar={animation:{Feature:ir},exit:{Feature:or}};function yt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function qe(t){return{point:{x:t.pageX,y:t.pageY}}}const kr=t=>e=>Zt(e)&&t(e,qe(e)),vt=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ur=()=>({x:vt(),y:vt()}),bt=()=>({min:0,max:0}),In=()=>({x:bt(),y:bt()});function lr({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Gr({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function ur(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ye(t){return t===void 0||t===1}function cr({scale:t,scaleX:e,scaleY:n}){return!ye(t)||!ye(e)||!ye(n)}function hr(t){return cr(t)||fr(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function fr(t){return Tt(t.x)||Tt(t.y)}function Tt(t){return t&&t!=="0%"}function At(t,e,n){const s=t-n,i=e*s;return n+i}function Vt(t,e,n,s,i){return i!==void 0&&(t=At(t,i,s)),At(t,n,s)+e}function De(t,e=0,n=1,s,i){t.min=Vt(t.min,e,n,s,i),t.max=Vt(t.max,e,n,s,i)}function dr(t,{x:e,y:n}){De(t.x,e.translate,e.scale,e.originPoint),De(t.y,n.translate,n.scale,n.originPoint)}const St=.999999999999,xt=1.0000000000001;function jr(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;aSt&&(e.x=1),e.ySt&&(e.y=1)}function wt(t,e){t.min=t.min+e,t.max=t.max+e}function Pt(t,e,n,s,i=.5){const r=Z(t.min,t.max,i);De(t,e,n,r,s)}function Mt(t,e){Pt(t.x,e.x,e.scaleX,e.scale,e.originX),Pt(t.y,e.y,e.scaleY,e.scale,e.originY)}function On(t,e){return lr(ur(t.getBoundingClientRect(),e))}function Wr(t,e,n){const s=On(t,n),{scroll:i}=e;return i&&(wt(s.x,i.offset.x),wt(s.y,i.offset.y)),s}function Ct(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&D.postRender(()=>r(e,qe(e)))}class pr extends z{mount(){const{current:e}=this.node;e&&(this.unmount=hs(e,n=>(Ct(this.node,n,"Start"),s=>Ct(this.node,s,"End"))))}unmount(){}}class mr extends z{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=le(yt(this.node.current,"focus",()=>this.onFocus()),yt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ft(t,e,n){const{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&D.postRender(()=>r(e,qe(e)))}class gr extends z{mount(){const{current:e}=this.node;e&&(this.unmount=ms(e,n=>(Ft(this.node,n,"Start"),(s,{success:i})=>Ft(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ee=new WeakMap,ve=new WeakMap,yr=t=>{const e=Ee.get(t.target);e&&e(t)},vr=t=>{t.forEach(yr)};function br({root:t,...e}){const n=t||document;ve.has(n)||ve.set(n,{});const s=ve.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(vr,{root:t,...e})),s[i]}function Tr(t,e,n){const s=br(e);return Ee.set(t,n),s.observe(t),()=>{Ee.delete(t),s.unobserve(t)}}const Ar={some:0,all:1};class Vr extends z{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Ar[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return Tr(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Sr(e,n))&&this.startObserver()}unmount(){}}function Sr({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const xr={inView:{Feature:Vr},tap:{Feature:gr},focus:{Feature:mr},hover:{Feature:pr}},Re={current:null},Kn={current:!1};function wr(){if(Kn.current=!0,!!Wn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Re.current=t.matches;t.addListener(e),e()}else Re.current=!1}const Pr=[...Vn,w,W],Mr=t=>Pr.find(An(t)),Dt=new WeakMap;function Cr(t,e,n){for(const s in e){const i=e[s],r=n[s];if(R(i))t.addValue(s,i);else if(R(r))t.addValue(s,te(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,te(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Et=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Fr{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=We,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=()=>{const d=K.now();this.renderScheduledAtthis.bindToMotionValue(s,n)),Kn.current||wr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Re.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Dt.delete(this.current),this.projection&&this.projection.unmount(),Te(this.notifyUpdate),Te(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=re.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&D.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Ye){const n=Ye[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):In()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;sn.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=te(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(bn(i)||cn(i))?i=parseFloat(i):!Mr(i)&&W.test(n)&&(i=gn(e,n)),this.setBaseTarget(e,R(i)?i.get():i)),R(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const o=Rt(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!R(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Qt),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Bn extends Fr{constructor(){super(...arguments),this.KeyframeResolver=Sn}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;R(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Dr(t){return window.getComputedStyle(t)}class Er extends Bn{constructor(){super(...arguments),this.type="html",this.renderInstance=Hn}readValueFromInstance(e,n){if(re.has(n)){const s=je(n);return s&&s.default||0}else{const s=Dr(e),i=($n(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return On(e,n)}build(e,n,s){Xn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Yn(e,n,s)}}class Rr extends Bn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=In}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(re.has(n)){const s=je(n);return s&&s.default||0}return n=Jn.has(n)?n:Zn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Qn(e,n,s)}build(e,n,s){es(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){ts(e,n,s,i)}mount(e){this.isSVGTag=ns(e.tagName),super.mount(e)}}const Ir=(t,e)=>ss(t)?new Rr(e):new Er(e,{allowProjection:t!==is.Fragment}),zr={renderer:Ir,...ar,...xr};export{wr as $,jt as A,hr as B,wt as C,Mt as D,cr as E,z as F,dr as G,fr as H,jr as I,Ur as J,ws as K,ar as L,Ir as M,xr as N,zr as O,cs as P,en as Q,Pi as R,Qt as S,Ci as T,rs as U,Nr as V,_r as W,st as X,Oi as Y,Ts as Z,Kn as _,O as a,Re as a0,Zi as a1,Vs as a2,Si as a3,Mi as a4,Ne as a5,Fr as a6,Rr as a7,Er as a8,Dt as a9,Ai as aA,Fn as aB,Vi as aC,sn as aD,rn as aE,En as aa,Cn as ab,as as ac,Ke as ad,Ut as ae,ee as af,Bi as ag,Ki as ah,ae as ai,tn as aj,Lr as ak,pt as al,mt as am,w as an,mi as ao,$t as ap,dt as aq,se as ar,Pn as as,ln as at,_e as au,an as av,on as aw,ke as ax,un as ay,Y as az,Ze as b,Wt as c,yt as d,kr as e,Zt as f,qe as g,Z as h,Je as i,Be as j,In as k,Wr as l,Ae as m,Gr as n,lr as o,le as p,xs as q,Hi as r,I as s,W as t,te as u,ys as v,vs as w,K as x,Fs as y,At as z}; diff --git a/xiaomusic/static/soundSpace/assets/index-BTt_FDEC.js b/xiaomusic/static/soundSpace/assets/index-BTt_FDEC.js deleted file mode 100644 index 2b28020..0000000 --- a/xiaomusic/static/soundSpace/assets/index-BTt_FDEC.js +++ /dev/null @@ -1 +0,0 @@ -import{O as a}from"./features-animation-d7XZ5Dr3.js";import"./index-BlfQbszy.js";var i=a;export{i as default}; diff --git a/xiaomusic/static/soundSpace/assets/index-DSAAAm0Q.js b/xiaomusic/static/soundSpace/assets/index-DSAAAm0Q.js new file mode 100644 index 0000000..20db8ed --- /dev/null +++ b/xiaomusic/static/soundSpace/assets/index-DSAAAm0Q.js @@ -0,0 +1 @@ +import{O as a}from"./features-animation-BRiA9rfd.js";import"./index-ihgeXEwv.js";var i=a;export{i as default}; diff --git a/xiaomusic/static/soundSpace/assets/index-BlfQbszy.js b/xiaomusic/static/soundSpace/assets/index-ihgeXEwv.js similarity index 99% rename from xiaomusic/static/soundSpace/assets/index-BlfQbszy.js rename to xiaomusic/static/soundSpace/assets/index-ihgeXEwv.js index 982ce76..dabe34f 100644 --- a/xiaomusic/static/soundSpace/assets/index-BlfQbszy.js +++ b/xiaomusic/static/soundSpace/assets/index-ihgeXEwv.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BTt_FDEC.js","assets/features-animation-d7XZ5Dr3.js","assets/src-UW24ZMRV-BgSHC2q0.js","assets/index-B2IsL-Au.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DSAAAm0Q.js","assets/features-animation-BRiA9rfd.js","assets/src-UW24ZMRV-VnAVJcYj.js","assets/index-lQterTXP.js"])))=>i.map(i=>d[i]); (function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))l(i);new MutationObserver(i=>{for(const u of i)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function r(i){const u={};return i.integrity&&(u.integrity=i.integrity),i.referrerPolicy&&(u.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?u.credentials="include":i.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(i){if(i.ep)return;i.ep=!0;const u=r(i);fetch(i.href,u)}})();function Gy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Np={exports:{}},Ni={};/** * @license React * react-jsx-runtime.production.js @@ -55,7 +55,7 @@ Error generating stack: `+s.message+` top: ${b}px !important; left: ${m}px !important; } - `),()=>{document.head.removeChild($)}},[n]),T.jsx(cw,{isPresent:n,childRef:l,sizeRef:i,children:v.cloneElement(e,{ref:l})})}const fw=({children:e,initial:n,isPresent:r,onExitComplete:l,custom:i,presenceAffectsLayout:u,mode:d})=>{const p=sd(pw),b=v.useId(),m=v.useCallback(x=>{p.set(x,!0);for(const S of p.values())if(!S)return;l&&l()},[p,l]),$=v.useMemo(()=>({id:b,initial:n,isPresent:r,custom:i,onExitComplete:m,register:x=>(p.set(x,!1),()=>p.delete(x))}),u?[Math.random(),m]:[r,m]);return v.useMemo(()=>{p.forEach((x,S)=>p.set(S,!1))},[r]),v.useEffect(()=>{!r&&!p.size&&l&&l()},[r]),d==="popLayout"&&(e=T.jsx(dw,{isPresent:r,children:e})),T.jsx(Ss.Provider,{value:$,children:e})};function pw(){return new Map}function bw(e=!0){const n=v.useContext(Ss);if(n===null)return[!0,null];const{isPresent:r,onExitComplete:l,register:i}=n,u=v.useId();v.useEffect(()=>{e&&i(u)},[e]);const d=v.useCallback(()=>e&&l&&l(u),[u,l,e]);return!r&&l?[!1,d]:[!0]}function vO(){return vw(v.useContext(Ss))}function vw(e){return e===null?!0:e.isPresent}const Yu=e=>e.key||"";function V1(e){const n=[];return v.Children.forEach(e,r=>{v.isValidElement(r)&&n.push(r)}),n}const s2=typeof window<"u",u2=s2?v.useLayoutEffect:v.useEffect,ud=({children:e,custom:n,initial:r=!0,onExitComplete:l,presenceAffectsLayout:i=!0,mode:u="sync",propagate:d=!1})=>{const[p,b]=bw(d),m=v.useMemo(()=>V1(e),[e]),$=d&&!p?[]:m.map(Yu),x=v.useRef(!0),S=v.useRef(m),C=sd(()=>new Map),[A,w]=v.useState(m),[L,P]=v.useState(m);u2(()=>{x.current=!1,S.current=m;for(let H=0;H{const I=Yu(H),G=d&&!p?!1:m===L||$.includes(I),J=()=>{if(C.has(I))C.set(I,!0);else return;let W=!0;C.forEach(ne=>{ne||(W=!1)}),W&&(B?.(),P(S.current),d&&b?.(),l&&l())};return T.jsx(fw,{isPresent:G,initial:!x.current||r?void 0:!1,custom:G?void 0:n,presenceAffectsLayout:i,mode:u,onExitComplete:G?void 0:J,children:H},I)})})},mw=e=>e,c2={skipAnimations:!1,useManualTiming:!1};function gw(e){let n=new Set,r=new Set,l=!1,i=!1;const u=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function p(m){u.has(m)&&(b.schedule(m),e()),m(d)}const b={schedule:(m,$=!1,x=!1)=>{const C=x&&l?n:r;return $&&u.add(m),C.has(m)||C.add(m),m},cancel:m=>{r.delete(m),u.delete(m)},process:m=>{if(d=m,l){i=!0;return}l=!0,[n,r]=[r,n],n.forEach(p),n.clear(),l=!1,i&&(i=!1,b.process(m))}};return b}const Wu=["read","resolveKeyframes","update","preRender","render","postRender"],hw=40;function d2(e,n){let r=!1,l=!0;const i={delta:0,timestamp:0,isProcessing:!1},u=()=>r=!0,d=Wu.reduce((P,N)=>(P[N]=gw(u),P),{}),{read:p,resolveKeyframes:b,update:m,preRender:$,render:x,postRender:S}=d,C=()=>{const P=c2.useManualTiming?i.timestamp:performance.now();r=!1,i.delta=l?1e3/60:Math.max(Math.min(P-i.timestamp,hw),1),i.timestamp=P,i.isProcessing=!0,p.process(i),b.process(i),m.process(i),$.process(i),x.process(i),S.process(i),i.isProcessing=!1,r&&n&&(l=!1,e(C))},A=()=>{r=!0,l=!0,i.isProcessing||e(C)};return{schedule:Wu.reduce((P,N)=>{const B=d[N];return P[N]=(H,I=!1,G=!1)=>(r||A(),B.schedule(H,I,G)),P},{}),cancel:P=>{for(let N=0;NU1[e].some(r=>!!n[r])};function Pb(e){for(const n in e)Nc[n]={...Nc[n],...e[n]}}function cd({children:e,features:n,strict:r=!1}){const[,l]=v.useState(!Fp(n)),i=v.useRef(void 0);if(!Fp(n)){const{renderer:u,...d}=n;i.current=u,Pb(d)}return v.useEffect(()=>{Fp(n)&&n().then(({renderer:u,...d})=>{Pb(d),i.current=u,l(!0)})},[]),T.jsx(Iv.Provider,{value:{renderer:i.current,strict:r},children:e})}function Fp(e){return typeof e=="function"}const $w=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 jc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||$w.has(e)}let f2=e=>!jc(e);function p2(e){e&&(f2=n=>n.startsWith("on")?!jc(n):e(n))}try{p2(require("@emotion/is-prop-valid").default)}catch{}function yw(e,n,r){const l={};for(const i in e)i==="values"&&typeof e.values=="object"||(f2(i)||r===!0&&jc(i)||!n&&!jc(i)||e.draggable&&i.startsWith("onDrag"))&&(l[i]=e[i]);return l}function xw({children:e,isValidProp:n,...r}){n&&p2(n),r={...v.useContext(us),...r},r.isStatic=sd(()=>r.isStatic);const l=v.useMemo(()=>r,[JSON.stringify(r.transition),r.transformPagePoint,r.reducedMotion]);return T.jsx(us.Provider,{value:l,children:e})}function Ew(e){if(typeof Proxy>"u")return e;const n=new Map,r=(...l)=>e(...l);return new Proxy(r,{get:(l,i)=>i==="create"?e:(n.has(i)||n.set(i,e(i)),n.get(i))})}const dd=v.createContext({});function Ab(e){return typeof e=="string"||Array.isArray(e)}function b2(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ww=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Tw=["initial",...ww];function qv(e){return b2(e.animate)||Tw.some(n=>Ab(e[n]))}function Sw(e){return!!(qv(e)||e.variants)}function Cw(e,n){if(qv(e)){const{initial:r,animate:l}=e;return{initial:r===!1||Ab(r)?r:void 0,animate:Ab(l)?l:void 0}}return e.inherit!==!1?n:{}}function Mw(e){const{initial:n,animate:r}=Cw(e,v.useContext(dd));return v.useMemo(()=>({initial:n,animate:r}),[F1(n),F1(r)])}function F1(e){return Array.isArray(e)?e.join(" "):e}const Lw=Symbol.for("motionComponentSymbol");function v2(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Pw(e,n,r){return v.useCallback(l=>{l&&e.onMount&&e.onMount(l),n&&(l?n.mount(l):n.unmount()),r&&(typeof r=="function"?r(l):v2(r)&&(r.current=l))},[n])}const m2=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Aw="framerAppearId",kw="data-"+m2(Aw),{schedule:Dw}=d2(queueMicrotask,!1),zw=v.createContext({});function Ow(e,n,r,l,i){var u,d;const{visualElement:p}=v.useContext(dd),b=v.useContext(Iv),m=v.useContext(Ss),$=v.useContext(us).reducedMotion,x=v.useRef(null);l=l||b.renderer,!x.current&&l&&(x.current=l(e,{visualState:n,parent:p,props:r,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:$}));const S=x.current,C=v.useContext(zw);S&&!S.projection&&i&&(S.type==="html"||S.type==="svg")&&Nw(x.current,r,i,C);const A=v.useRef(!1);v.useInsertionEffect(()=>{S&&A.current&&S.update(r,m)});const w=r[kw],L=v.useRef(!!w&&!(!((u=window.MotionHandoffIsComplete)===null||u===void 0)&&u.call(window,w))&&((d=window.MotionHasOptimisedAnimation)===null||d===void 0?void 0:d.call(window,w)));return u2(()=>{S&&(A.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),Dw.render(S.render),L.current&&S.animationState&&S.animationState.animateChanges())}),v.useEffect(()=>{S&&(!L.current&&S.animationState&&S.animationState.animateChanges(),L.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)===null||P===void 0||P.call(window,w)}),L.current=!1))}),S}function Nw(e,n,r,l){const{layoutId:i,layout:u,drag:d,dragConstraints:p,layoutScroll:b,layoutRoot:m}=n;e.projection=new r(e.latestValues,n["data-framer-portal-id"]?void 0:g2(e.parent)),e.projection.setOptions({layoutId:i,layout:u,alwaysMeasureLayout:!!d||p&&v2(p),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:l,layoutScroll:b,layoutRoot:m})}function g2(e){if(e)return e.options.allowProjection!==!1?e.projection:g2(e.parent)}function jw({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:l,Component:i}){var u,d;e&&Pb(e);function p(m,$){let x;const S={...v.useContext(us),...m,layoutId:Rw(m)},{isStatic:C}=S,A=Mw(m),w=l(m,C);if(!C&&s2){Hw();const L=_w(S);x=L.MeasureLayout,A.visualElement=Ow(i,w,S,n,L.ProjectionNode)}return T.jsxs(dd.Provider,{value:A,children:[x&&A.visualElement?T.jsx(x,{visualElement:A.visualElement,...S}):null,r(i,m,Pw(w,A.visualElement,$),w,C,A.visualElement)]})}p.displayName=`motion.${typeof i=="string"?i:`create(${(d=(u=i.displayName)!==null&&u!==void 0?u:i.name)!==null&&d!==void 0?d:""})`}`;const b=v.forwardRef(p);return b[Lw]=i,b}function Rw({layoutId:e}){const n=v.useContext(i2).id;return n&&e!==void 0?n+"-"+e:e}function Hw(e,n){v.useContext(Iv).strict}function _w(e){const{drag:n,layout:r}=Nc;if(!n&&!r)return{};const l={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?l.MeasureLayout:void 0,ProjectionNode:l.ProjectionNode}}const Vw=["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 h2(e){return typeof e!="string"||e.includes("-")?!1:!!(Vw.indexOf(e)>-1||/[A-Z]/u.test(e))}function G1(e){const n=[{},{}];return e?.values.forEach((r,l)=>{n[0][l]=r.get(),n[1][l]=r.getVelocity()}),n}function Bw(e,n,r,l){if(typeof n=="function"){const[i,u]=G1(l);n=n(r!==void 0?r:e.custom,i,u)}if(typeof n=="string"&&(n=e.variants&&e.variants[n]),typeof n=="function"){const[i,u]=G1(l);n=n(r!==void 0?r:e.custom,i,u)}return n}const Uw=e=>Array.isArray(e),Fw=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),$O=e=>Uw(e)?e[e.length-1]||0:e,al=e=>!!(e&&e.getVelocity);function Gw(e){const n=al(e)?e.get():e;return Fw(n)?n.toValue():n}function Kw({scrapeMotionValuesFromProps:e,createRenderState:n,onUpdate:r},l,i,u){const d={latestValues:Iw(l,i,u,e),renderState:n()};return r&&(d.onMount=p=>r({props:l,current:p,...d}),d.onUpdate=p=>r(p)),d}const $2=e=>(n,r)=>{const l=v.useContext(dd),i=v.useContext(Ss),u=()=>Kw(e,n,l,i);return r?u():sd(u)};function Iw(e,n,r,l){const i={},u=l(e,{});for(const S in u)i[S]=Gw(u[S]);let{initial:d,animate:p}=e;const b=qv(e),m=Sw(e);n&&m&&!b&&e.inherit!==!1&&(d===void 0&&(d=n.initial),p===void 0&&(p=n.animate));let $=r?r.initial===!1:!1;$=$||d===!1;const x=$?p:d;if(x&&typeof x!="boolean"&&!b2(x)){const S=Array.isArray(x)?x:[x];for(let C=0;Cn=>typeof n=="string"&&n.startsWith(e),qw=y2("--"),Yw=y2("var(--"),yO=e=>Yw(e)?Ww.test(e.split("/*")[0].trim()):!1,Ww=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,x2=(e,n)=>n&&typeof e=="number"?n.transform(e):e,Xw=(e,n,r)=>r>n?n:rtypeof e=="number",parse:parseFloat,transform:e=>e},kb={...Wv,transform:e=>Xw(0,1,e)},Xu={...Wv,default:1},Cs=e=>({test:n=>typeof n=="string"&&n.endsWith(e)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${e}`}),Gr=Cs("deg"),Gp=Cs("%"),Se=Cs("px"),xO=Cs("vh"),EO=Cs("vw"),K1={...Gp,parse:e=>Gp.parse(e)/100,transform:e=>Gp.transform(e*100)},Zw={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,backgroundPositionX:Se,backgroundPositionY:Se},Qw={rotate:Gr,rotateX:Gr,rotateY:Gr,rotateZ:Gr,scale:Xu,scaleX:Xu,scaleY:Xu,scaleZ:Xu,skew:Gr,skewX:Gr,skewY:Gr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:kb,originX:K1,originY:K1,originZ:Se},I1={...Wv,transform:Math.round},E2={...Zw,...Qw,zIndex:I1,size:Se,fillOpacity:kb,strokeOpacity:kb,numOctaves:I1},Jw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},e8=fd.length;function t8(e,n,r){let l="",i=!0;for(let u=0;u({style:{},transform:{},transformOrigin:{},vars:{}}),S2=()=>({...Xv(),attrs:{}}),C2=e=>typeof e=="string"&&e.toLowerCase()==="svg";function o8(e,{style:n,vars:r},l,i){Object.assign(e.style,n,i&&i.getProjectionStyles(l));for(const u in r)e.style.setProperty(u,r[u])}const i8=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function s8(e,n,r,l){o8(e,n,void 0,l);for(const i in n.attrs)e.setAttribute(i8.has(i)?i:m2(i),n.attrs[i])}const M2={};function wO(e){Object.assign(M2,e)}function L2(e,{layout:n,layoutId:r}){return Yv.has(e)||e.startsWith("origin")||(n||r!==void 0)&&(!!M2[e]||e==="opacity")}function P2(e,n,r){var l;const{style:i}=e,u={};for(const d in i)(al(i[d])||n.style&&al(n.style[d])||L2(d,e)||((l=r?.getValue(d))===null||l===void 0?void 0:l.liveStyle)!==void 0)&&(u[d]=i[d]);return u}function u8(e,n,r){const l=P2(e,n,r);for(const i in e)if(al(e[i])||al(n[i])){const u=fd.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;l[u]=e[i]}return l}function c8(e,n){try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}const Y1=["x","y","width","height","cx","cy","r"],d8={useVisualState:$2({scrapeMotionValuesFromProps:u8,createRenderState:S2,onUpdate:({props:e,prevProps:n,current:r,renderState:l,latestValues:i})=>{if(!r)return;let u=!!e.drag;if(!u){for(const p in i)if(Yv.has(p)){u=!0;break}}if(!u)return;let d=!n;if(n)for(let p=0;p{c8(r,l),B1.render(()=>{T2(l,i,C2(r.tagName),e.transformTemplate),s8(r,l)})})}})},f8={useVisualState:$2({scrapeMotionValuesFromProps:P2,createRenderState:Xv})};function A2(e,n,r){for(const l in n)!al(n[l])&&!L2(l,r)&&(e[l]=n[l])}function p8({transformTemplate:e},n){return v.useMemo(()=>{const r=Xv();return w2(r,n,e),Object.assign({},r.vars,r.style)},[n])}function b8(e,n){const r=e.style||{},l={};return A2(l,r,e),Object.assign(l,p8(e,n)),l}function v8(e,n){const r={},l=b8(e,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,l.userSelect=l.WebkitUserSelect=l.WebkitTouchCallout="none",l.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=l,r}function m8(e,n,r,l){const i=v.useMemo(()=>{const u=S2();return T2(u,n,C2(l),e.transformTemplate),{...u.attrs,style:{...u.style}}},[n]);if(e.style){const u={};A2(u,e.style,e),i.style={...u,...i.style}}return i}function g8(e=!1){return(r,l,i,{latestValues:u},d)=>{const b=(h2(r)?m8:v8)(l,u,d,r),m=yw(l,typeof r=="string",e),$=r!==v.Fragment?{...m,...b,ref:i}:{},{children:x}=l,S=v.useMemo(()=>al(x)?x.get():x,[x]);return v.createElement(r,{...$,children:S})}}function h8(e,n){return function(l,{forwardMotionProps:i}={forwardMotionProps:!1}){const d={...h2(l)?d8:f8,preloadedFeatures:e,useRender:g8(i),createVisualElement:n,Component:l};return jw(d)}}const $8=h8(),pd=Ew($8);function y8(e,n){return n.get?n.get.call(e):n.value}function k2(e,n,r){if(!n.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return n.get(e)}function Ms(e,n){var r=k2(e,n,"get");return y8(e,r)}function x8(e,n,r){if(n.set)n.set.call(e,r);else{if(!n.writable)throw new TypeError("attempted to set read only private field");n.value=r}}function la(e,n,r){var l=k2(e,n,"set");return x8(e,l,r),r}const Db=ie.createContext(null);function E8(e){let{children:n}=e,r=v.useContext(Db),[l,i]=v.useState(0),u=v.useMemo(()=>({parent:r,modalCount:l,addModal(){i(d=>d+1),r&&r.addModal()},removeModal(){i(d=>d-1),r&&r.removeModal()}}),[r,l]);return ie.createElement(Db.Provider,{value:u},n)}function w8(){let e=v.useContext(Db);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function T8(e){let{modalProviderProps:n}=w8();return ie.createElement("div",{"data-overlay-container":!0,...e,...n})}function S8(e){return ie.createElement(E8,null,ie.createElement(T8,e))}var C8=({children:e,navigate:n,disableAnimation:r,useHref:l,disableRipple:i=!1,skipFramerMotionAnimations:u=r,reducedMotion:d="never",validationBehavior:p,locale:b="en-US",labelPlacement:m,defaultDates:$,createCalendar:x,spinnerVariant:S,...C})=>{let A=e;n&&(A=T.jsx(nw,{navigate:n,useHref:l,children:A}));const w=v.useMemo(()=>(r&&u&&(c2.skipAnimations=!0),{createCalendar:x,defaultDates:$,disableAnimation:r,disableRipple:i,validationBehavior:p,labelPlacement:m,spinnerVariant:S}),[x,$?.maxDate,$?.minDate,r,i,p,m,S]);return T.jsx(SE,{value:w,children:T.jsx(_E,{locale:b,children:T.jsx(xw,{reducedMotion:d,children:T.jsx(S8,{...C,children:A})})})})};function M8(e){const n=oa(),r=n?.labelPlacement;return v.useMemo(()=>{var l,i;const u=(i=(l=e.labelPlacement)!=null?l:r)!=null?i:"inside";return u==="inside"&&!e.label?"outside":u},[e.labelPlacement,r,e.label])}function ja(e){return v.forwardRef(e)}var Ho=(e,n,r=!0)=>{if(!n)return[e,{}];const l=n.reduce((i,u)=>u in e?{...i,[u]:e[u]}:i,{});return r?[Object.keys(e).filter(u=>!n.includes(u)).reduce((u,d)=>({...u,[d]:e[d]}),{}),l]:[e,l]},L8={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"},P8={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"},A8={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"},k8={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"},D8={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"},z8={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"},O8={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"},ye={solid:L8,shadow:P8,bordered:A8,flat:k8,faded:D8,light:z8,ghost:O8},N8={".spinner-bar-animation":{"animation-delay":"calc(-1.2s + (0.1s * var(--bar-index)))",transform:"rotate(calc(30deg * var(--bar-index)))translate(140%)"},".spinner-dot-animation":{"animation-delay":"calc(250ms * var(--dot-index))"},".spinner-dot-blink-animation":{"animation-delay":"calc(200ms * var(--dot-index))"}},j8={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"},".input-search-cancel-button-none":{"&::-webkit-search-cancel-button":{"-webkit-appearance":"none"}}},R8={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}},H8={".text-tiny":{"font-size":"var(--heroui-font-size-tiny)","line-height":"var(--heroui-line-height-tiny)"},".text-small":{"font-size":"var(--heroui-font-size-small)","line-height":"var(--heroui-line-height-small)"},".text-medium":{"font-size":"var(--heroui-font-size-medium)","line-height":"var(--heroui-line-height-medium)"},".text-large":{"font-size":"var(--heroui-font-size-large)","line-height":"var(--heroui-line-height-large)"}},ea="250ms",_8={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":ea},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ea},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":ea},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":ea},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":ea},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":ea},".transition-transform-opacity":{"transition-property":"transform, scale, opacity rotate","transition-timing-function":"ease","transition-duration":ea},".transition-transform-background":{"transition-property":"transform, scale, background","transition-timing-function":"ease","transition-duration":ea},".transition-transform-colors":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":ea},".transition-transform-colors-opacity":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ea}},V8={...j8,..._8,...R8,...H8,...N8},Zu=["small","medium","large"],W1={theme:{spacing:["divider"],radius:Zu},classGroups:{shadow:[{shadow:Zu}],opacity:[{opacity:["disabled"]}],"font-size":[{text:["tiny",...Zu]}],"border-w":[{border:Zu}],"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"],transition:Object.keys(V8).filter(e=>e.includes(".transition")).map(e=>e.replace(".",""))}},B8=/\s+/g,zb=e=>typeof e!="string"||!e?e:e.replace(B8," ").trim(),Rc=(...e)=>{let n=[],r=l=>{if(!l&&l!==0&&l!==0n)return;if(Array.isArray(l)){for(let u=0,d=l.length;u0?zb(n.join(" ")):void 0},X1=e=>e===!1?"false":e===!0?"true":e===0?"0":e,sn=e=>{if(!e||typeof e!="object")return!0;for(let n in e)return!1;return!0},U8=(e,n)=>{if(e===n)return!0;if(!e||!n)return!1;let r=Object.keys(e),l=Object.keys(n);if(r.length!==l.length)return!1;for(let i=0;i{for(let r in n)if(Object.prototype.hasOwnProperty.call(n,r)){let l=n[r];r in e?e[r]=Rc(e[r],l):e[r]=l}return e},D2=(e,n)=>{for(let r=0;r{let n=[];D2(e,n);let r=[];for(let l=0;l{let r={};for(let l in e){let i=e[l];if(l in n){let u=n[l];Array.isArray(i)||Array.isArray(u)?r[l]=z2(u,i):typeof i=="object"&&typeof u=="object"&&i&&u?r[l]=Ob(i,u):r[l]=u+" "+i}else r[l]=i}for(let l in n)l in e||(r[l]=n[l]);return r},F8={twMerge:!0,twMergeConfig:{},responsiveVariants:!1};function G8(){let e=null,n={},r=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(l){e=l},get cachedTwMergeConfig(){return n},set cachedTwMergeConfig(l){n=l},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(l){r=l},reset(){e=null,n={},r=!1}}}var za=G8(),K8=e=>{let n=(r,l)=>{let{extend:i=null,slots:u={},variants:d={},compoundVariants:p=[],compoundSlots:b=[],defaultVariants:m={}}=r,$={...F8,...l},x=i?.base?Rc(i.base,r?.base):r?.base,S=i?.variants&&!sn(i.variants)?Ob(d,i.variants):d,C=i?.defaultVariants&&!sn(i.defaultVariants)?{...i.defaultVariants,...m}:m;!sn($.twMergeConfig)&&!U8($.twMergeConfig,za.cachedTwMergeConfig)&&(za.didTwMergeConfigChange=!0,za.cachedTwMergeConfig=$.twMergeConfig);let A=sn(i?.slots),w=sn(u)?{}:{base:Rc(r?.base,A&&i?.base),...u},L=A?w:Z1({...i?.slots},sn(w)?{base:r?.base}:w),P=sn(i?.compoundVariants)?p:z2(i?.compoundVariants,p),N=H=>{if(sn(S)&&sn(u)&&A)return e(x,H?.class,H?.className)($);if(P&&!Array.isArray(P))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof P}`);if(b&&!Array.isArray(b))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof b}`);let I=(E,_,h=[],D)=>{let O=h;if(typeof _=="string"){let q=zb(_).split(" ");for(let re=0;re0){let re=[];for(let z=0;z{let O=_[E];if(!O||sn(O))return null;let q=D?.[E]??H?.[E];if(q===null)return null;let re=X1(q),z=Array.isArray($.responsiveVariants)&&$.responsiveVariants.length>0||$.responsiveVariants===!0,j=C?.[E],Z=[];if(typeof re=="object"&&z)for(let[oe,ce]of Object.entries(re)){let we=O[ce];if(oe==="initial"){j=ce;continue}Array.isArray($.responsiveVariants)&&!$.responsiveVariants.includes(oe)||(Z=I(oe,we,Z,h))}let K=re!=null&&typeof re!="object"?re:X1(j),se=O[K||"false"];return typeof Z=="object"&&typeof h=="string"&&Z[h]?Z1(Z,se):Z.length>0?(Z.push(se),h==="base"?Z.join(" "):Z):se},J=()=>{if(!S)return null;let E=Object.keys(S),_=[];for(let h=0;h{if(!S||typeof S!="object")return null;let h=[];for(let D in S){let O=G(D,S,E,_),q=E==="base"&&typeof O=="string"?O:O&&O[E];q&&h.push(q)}return h},ne={};for(let E in H){let _=H[E];_!==void 0&&(ne[E]=_)}let ue=(E,_)=>{let h=typeof H?.[E]=="object"?{[E]:H[E]?.initial}:{};return{...C,...ne,...h,..._}},g=(E=[],_)=>{let h=[],D=E.length;for(let O=0;O{let _=g(P,E);if(!Array.isArray(_))return _;let h={},D=e;for(let O=0;O<_.length;O++){let q=_[O];if(typeof q=="string")h.base=D(h.base,q)($);else if(typeof q=="object")for(let re in q)h[re]=D(h[re],q[re])($)}return h},U=E=>{if(b.length<1)return null;let _={},h=ue(null,E);for(let D=0;D{let O=k(D),q=U(D);return _(L[h],W(h,D),O?O[h]:void 0,q?q[h]:void 0,D?.class,D?.className)($)}}return E}return e(x,J(),g(P),H?.class,H?.className)($)},B=()=>{if(!(!S||typeof S!="object"))return Object.keys(S)};return N.variantKeys=B(),N.extend=i,N.base=x,N.slots=L,N.variants=S,N.defaultVariants=C,N.compoundSlots=b,N.compoundVariants=P,N};return{tv:n,createTV:r=>(l,i)=>n(l,i?Ob(r,i):r)}};const Zv="-",I8=e=>{const n=Y8(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:l}=e;return{getClassGroupId:d=>{const p=d.split(Zv);return p[0]===""&&p.length!==1&&p.shift(),O2(p,n)||q8(d)},getConflictingClassGroupIds:(d,p)=>{const b=r[d]||[];return p&&l[d]?[...b,...l[d]]:b}}},O2=(e,n)=>{if(e.length===0)return n.classGroupId;const r=e[0],l=n.nextPart.get(r),i=l?O2(e.slice(1),l):void 0;if(i)return i;if(n.validators.length===0)return;const u=e.join(Zv);return n.validators.find(({validator:d})=>d(u))?.classGroupId},Q1=/^\[(.+)\]$/,q8=e=>{if(Q1.test(e)){const n=Q1.exec(e)[1],r=n?.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},Y8=e=>{const{theme:n,classGroups:r}=e,l={nextPart:new Map,validators:[]};for(const i in r)Nb(r[i],l,i,n);return l},Nb=(e,n,r,l)=>{e.forEach(i=>{if(typeof i=="string"){const u=i===""?n:J1(n,i);u.classGroupId=r;return}if(typeof i=="function"){if(W8(i)){Nb(i(l),n,r,l);return}n.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([u,d])=>{Nb(d,J1(n,u),r,l)})})},J1=(e,n)=>{let r=e;return n.split(Zv).forEach(l=>{r.nextPart.has(l)||r.nextPart.set(l,{nextPart:new Map,validators:[]}),r=r.nextPart.get(l)}),r},W8=e=>e.isThemeGetter,X8=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,l=new Map;const i=(u,d)=>{r.set(u,d),n++,n>e&&(n=0,l=r,r=new Map)};return{get(u){let d=r.get(u);if(d!==void 0)return d;if((d=l.get(u))!==void 0)return i(u,d),d},set(u,d){r.has(u)?r.set(u,d):i(u,d)}}},jb="!",Rb=":",Z8=Rb.length,Q8=e=>{const{prefix:n,experimentalParseClassName:r}=e;let l=i=>{const u=[];let d=0,p=0,b=0,m;for(let A=0;Ab?m-b:void 0;return{modifiers:u,hasImportantModifier:S,baseClassName:x,maybePostfixModifierPosition:C}};if(n){const i=n+Rb,u=l;l=d=>d.startsWith(i)?u(d.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:d,maybePostfixModifierPosition:void 0}}if(r){const i=l;l=u=>r({className:u,parseClassName:i})}return l},J8=e=>e.endsWith(jb)?e.substring(0,e.length-1):e.startsWith(jb)?e.substring(1):e,eT=e=>{const n=Object.fromEntries(e.orderSensitiveModifiers.map(l=>[l,!0]));return l=>{if(l.length<=1)return l;const i=[];let u=[];return l.forEach(d=>{d[0]==="["||n[d]?(i.push(...u.sort(),d),u=[]):u.push(d)}),i.push(...u.sort()),i}},tT=e=>({cache:X8(e.cacheSize),parseClassName:Q8(e),sortModifiers:eT(e),...I8(e)}),nT=/\s+/,aT=(e,n)=>{const{parseClassName:r,getClassGroupId:l,getConflictingClassGroupIds:i,sortModifiers:u}=n,d=[],p=e.trim().split(nT);let b="";for(let m=p.length-1;m>=0;m-=1){const $=p[m],{isExternal:x,modifiers:S,hasImportantModifier:C,baseClassName:A,maybePostfixModifierPosition:w}=r($);if(x){b=$+(b.length>0?" "+b:b);continue}let L=!!w,P=l(L?A.substring(0,w):A);if(!P){if(!L){b=$+(b.length>0?" "+b:b);continue}if(P=l(A),!P){b=$+(b.length>0?" "+b:b);continue}L=!1}const N=u(S).join(":"),B=C?N+jb:N,H=B+P;if(d.includes(H))continue;d.push(H);const I=i(P,L);for(let G=0;G0?" "+b:b)}return b};function rT(){let e=0,n,r,l="";for(;e{if(typeof e=="string")return e;let n,r="";for(let l=0;lx($),e());return r=tT(m),l=r.cache.get,i=r.cache.set,u=p,p(b)}function p(b){const m=l(b);if(m)return m;const $=aT(b,r);return i(b,$),$}return function(){return u(rT.apply(null,arguments))}}const Tt=e=>{const n=r=>r[e]||[];return n.isThemeGetter=!0,n},j2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,R2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lT=/^\d+\/\d+$/,oT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,iT=/\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$/,sT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,io=e=>lT.test(e),Pe=e=>!!e&&!Number.isNaN(Number(e)),ur=e=>!!e&&Number.isInteger(Number(e)),Kp=e=>e.endsWith("%")&&Pe(e.slice(0,-1)),Aa=e=>oT.test(e),dT=()=>!0,fT=e=>iT.test(e)&&!sT.test(e),H2=()=>!1,pT=e=>uT.test(e),bT=e=>cT.test(e),vT=e=>!fe(e)&&!pe(e),mT=e=>_o(e,B2,H2),fe=e=>j2.test(e),Kr=e=>_o(e,U2,fT),Ip=e=>_o(e,xT,Pe),e$=e=>_o(e,_2,H2),gT=e=>_o(e,V2,bT),Qu=e=>_o(e,F2,pT),pe=e=>R2.test(e),Ri=e=>Vo(e,U2),hT=e=>Vo(e,ET),t$=e=>Vo(e,_2),$T=e=>Vo(e,B2),yT=e=>Vo(e,V2),Ju=e=>Vo(e,F2,!0),_o=(e,n,r)=>{const l=j2.exec(e);return l?l[1]?n(l[1]):r(l[2]):!1},Vo=(e,n,r=!1)=>{const l=R2.exec(e);return l?l[1]?n(l[1]):r:!1},_2=e=>e==="position"||e==="percentage",V2=e=>e==="image"||e==="url",B2=e=>e==="length"||e==="size"||e==="bg-size",U2=e=>e==="length",xT=e=>e==="number",ET=e=>e==="family-name",F2=e=>e==="shadow",_b=()=>{const e=Tt("color"),n=Tt("font"),r=Tt("text"),l=Tt("font-weight"),i=Tt("tracking"),u=Tt("leading"),d=Tt("breakpoint"),p=Tt("container"),b=Tt("spacing"),m=Tt("radius"),$=Tt("shadow"),x=Tt("inset-shadow"),S=Tt("text-shadow"),C=Tt("drop-shadow"),A=Tt("blur"),w=Tt("perspective"),L=Tt("aspect"),P=Tt("ease"),N=Tt("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...H(),pe,fe],G=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],W=()=>[pe,fe,b],ne=()=>[io,"full","auto",...W()],ue=()=>[ur,"none","subgrid",pe,fe],g=()=>["auto",{span:["full",ur,pe,fe]},ur,pe,fe],k=()=>[ur,"auto",pe,fe],U=()=>["auto","min","max","fr",pe,fe],E=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],h=()=>["auto",...W()],D=()=>[io,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...W()],O=()=>[e,pe,fe],q=()=>[...H(),t$,e$,{position:[pe,fe]}],re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",$T,mT,{size:[pe,fe]}],j=()=>[Kp,Ri,Kr],Z=()=>["","none","full",m,pe,fe],K=()=>["",Pe,Ri,Kr],se=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[Pe,Kp,t$,e$],we=()=>["","none",A,pe,fe],he=()=>["none",Pe,pe,fe],me=()=>["none",Pe,pe,fe],nt=()=>[Pe,pe,fe],Ke=()=>[io,"full",...W()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Aa],breakpoint:[Aa],color:[dT],container:[Aa],"drop-shadow":[Aa],ease:["in","out","in-out"],font:[vT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Aa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Aa],shadow:[Aa],spacing:["px",Pe],text:[Aa],"text-shadow":[Aa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",io,fe,pe,L]}],container:["container"],columns:[{columns:[Pe,fe,pe,p]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"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"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:I()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ne()}],"inset-x":[{"inset-x":ne()}],"inset-y":[{"inset-y":ne()}],start:[{start:ne()}],end:[{end:ne()}],top:[{top:ne()}],right:[{right:ne()}],bottom:[{bottom:ne()}],left:[{left:ne()}],visibility:["visible","invisible","collapse"],z:[{z:[ur,"auto",pe,fe]}],basis:[{basis:[io,"full","auto",p,...W()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,io,"auto","initial","none",fe]}],grow:[{grow:["",Pe,pe,fe]}],shrink:[{shrink:["",Pe,pe,fe]}],order:[{order:[ur,"first","last","none",pe,fe]}],"grid-cols":[{"grid-cols":ue()}],"col-start-end":[{col:g()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":ue()}],"row-start-end":[{row:g()}],"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":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:W()}],"gap-x":[{"gap-x":W()}],"gap-y":[{"gap-y":W()}],"justify-content":[{justify:[...E(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...E()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:W()}],px:[{px:W()}],py:[{py:W()}],ps:[{ps:W()}],pe:[{pe:W()}],pt:[{pt:W()}],pr:[{pr:W()}],pb:[{pb:W()}],pl:[{pl:W()}],m:[{m:h()}],mx:[{mx:h()}],my:[{my:h()}],ms:[{ms:h()}],me:[{me:h()}],mt:[{mt:h()}],mr:[{mr:h()}],mb:[{mb:h()}],ml:[{ml:h()}],"space-x":[{"space-x":W()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":W()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],w:[{w:[p,"screen",...D()]}],"min-w":[{"min-w":[p,"screen","none",...D()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[d]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",r,Ri,Kr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,pe,Ip]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Kp,fe]}],"font-family":[{font:[hT,fe,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-fractions"],tracking:[{tracking:[i,pe,fe]}],"line-clamp":[{"line-clamp":[Pe,"none",pe,Ip]}],leading:[{leading:[u,...W()]}],"list-image":[{"list-image":["none",pe,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",pe,Kr]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[Pe,"auto",pe,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ur,pe,fe],radial:["",pe,fe],conic:[ur,pe,fe]},yT,gT]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:Z()}],"rounded-s":[{"rounded-s":Z()}],"rounded-e":[{"rounded-e":Z()}],"rounded-t":[{"rounded-t":Z()}],"rounded-r":[{"rounded-r":Z()}],"rounded-b":[{"rounded-b":Z()}],"rounded-l":[{"rounded-l":Z()}],"rounded-ss":[{"rounded-ss":Z()}],"rounded-se":[{"rounded-se":Z()}],"rounded-ee":[{"rounded-ee":Z()}],"rounded-es":[{"rounded-es":Z()}],"rounded-tl":[{"rounded-tl":Z()}],"rounded-tr":[{"rounded-tr":Z()}],"rounded-br":[{"rounded-br":Z()}],"rounded-bl":[{"rounded-bl":Z()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":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:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,pe,fe]}],"outline-w":[{outline:["",Pe,Ri,Kr]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",$,Ju,Qu]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",x,Ju,Qu]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[Pe,Kr]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",S,Ju,Qu]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[Pe,pe,fe]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[pe,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":H()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,fe]}],filter:[{filter:["","none",pe,fe]}],blur:[{blur:we()}],brightness:[{brightness:[Pe,pe,fe]}],contrast:[{contrast:[Pe,pe,fe]}],"drop-shadow":[{"drop-shadow":["","none",C,Ju,Qu]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",Pe,pe,fe]}],"hue-rotate":[{"hue-rotate":[Pe,pe,fe]}],invert:[{invert:["",Pe,pe,fe]}],saturate:[{saturate:[Pe,pe,fe]}],sepia:[{sepia:["",Pe,pe,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,fe]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,pe,fe]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,pe,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,pe,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,pe,fe]}],"backdrop-invert":[{"backdrop-invert":["",Pe,pe,fe]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,pe,fe]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,pe,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,pe,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":W()}],"border-spacing-x":[{"border-spacing-x":W()}],"border-spacing-y":[{"border-spacing-y":W()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",pe,fe]}],ease:[{ease:["linear","initial",P,pe,fe]}],delay:[{delay:[Pe,pe,fe]}],animate:[{animate:["none",N,pe,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,pe,fe]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":["scale-3d"],skew:[{skew:nt()}],"skew-x":[{"skew-x":nt()}],"skew-y":[{"skew-y":nt()}],transform:[{transform:[pe,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ke()}],"translate-x":[{"translate-x":Ke()}],"translate-y":[{"translate-y":Ke()}],"translate-z":[{"translate-z":Ke()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",pe,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],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","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,fe]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[Pe,Ri,Kr,Ip]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},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"],size:["w","h"],"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"],"line-clamp":["display","overflow"],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-x","border-w-y","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-x","border-color-y","border-color-s","border-color-e","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},wT=(e,{cacheSize:n,prefix:r,experimentalParseClassName:l,extend:i={},override:u={}})=>(Fi(e,"cacheSize",n),Fi(e,"prefix",r),Fi(e,"experimentalParseClassName",l),ec(e.theme,u.theme),ec(e.classGroups,u.classGroups),ec(e.conflictingClassGroups,u.conflictingClassGroups),ec(e.conflictingClassGroupModifiers,u.conflictingClassGroupModifiers),Fi(e,"orderSensitiveModifiers",u.orderSensitiveModifiers),tc(e.theme,i.theme),tc(e.classGroups,i.classGroups),tc(e.conflictingClassGroups,i.conflictingClassGroups),tc(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),G2(e,i,"orderSensitiveModifiers"),e),Fi=(e,n,r)=>{r!==void 0&&(e[n]=r)},ec=(e,n)=>{if(n)for(const r in n)Fi(e,r,n[r])},tc=(e,n)=>{if(n)for(const r in n)G2(e,n,r)},G2=(e,n,r)=>{const l=n[r];l!==void 0&&(e[r]=e[r]?e[r].concat(l):l)},TT=(e,...n)=>typeof e=="function"?Hb(_b,e,...n):Hb(()=>wT(_b(),e),...n),ST=Hb(_b);var CT=e=>sn(e)?ST:TT({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),MT=(...e)=>n=>{let r=Rc(e);return!r||!n.twMerge?r:((!za.cachedTwMerge||za.didTwMergeConfigChange)&&(za.didTwMergeConfigChange=!1,za.cachedTwMerge=CT(za.cachedTwMergeConfig)),za.cachedTwMerge(r)||void 0)},{tv:LT}=K8(MT),ia=(e,n)=>{var r,l,i;return LT(e,{...n,twMerge:(r=void 0)!=null?r:!0,twMergeConfig:{theme:{...(l=void 0)==null?void 0:l.theme,...W1.theme},classGroups:{...(i=void 0)==null?void 0:i.classGroups,...W1.classGroups}}})},n$=ia({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",label:"text-foreground dark:text-foreground-dark font-regular",circle1:"absolute w-full h-full rounded-full",circle2:"absolute w-full h-full rounded-full",dots:"relative rounded-full mx-auto",spinnerBars:["absolute","animate-fade-out","rounded-full","w-[25%]","h-[8%]","left-[calc(37.5%)]","top-[calc(46%)]","spinner-bar-animation"]},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",dots:"size-1",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",dots:"size-1.5",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",dots:"size-2",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current",dots:"bg-current",spinnerBars:"bg-current"},white:{circle1:"border-b-white",circle2:"border-b-white",dots:"bg-white",spinnerBars:"bg-white"},default:{circle1:"border-b-default",circle2:"border-b-default",dots:"bg-default",spinnerBars:"bg-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary",dots:"bg-primary",spinnerBars:"bg-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary",dots:"bg-secondary",spinnerBars:"bg-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success",dots:"bg-success",spinnerBars:"bg-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning",dots:"bg-warning",spinnerBars:"bg-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger",dots:"bg-danger",spinnerBars:"bg-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"}},variant:{default:{circle1:["animate-spinner-ease-spin","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["opacity-75","animate-spinner-linear-spin","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"]},gradient:{circle1:["border-0","bg-gradient-to-b","from-transparent","via-transparent","to-primary","animate-spinner-linear-spin","[animation-duration:1s]","[-webkit-mask:radial-gradient(closest-side,rgba(0,0,0,0.0)calc(100%-3px),rgba(0,0,0,1)calc(100%-3px))]"],circle2:["hidden"]},wave:{wrapper:"translate-y-3/4",dots:["animate-sway","spinner-dot-animation"]},dots:{wrapper:"translate-y-2/4",dots:["animate-blink","spinner-dot-blink-animation"]},spinner:{},simple:{wrapper:"text-foreground h-5 w-5 animate-spin",circle1:"opacity-25",circle2:"opacity-75"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground",variant:"default"},compoundVariants:[{variant:"gradient",color:"current",class:{circle1:"to-current"}},{variant:"gradient",color:"white",class:{circle1:"to-white"}},{variant:"gradient",color:"default",class:{circle1:"to-default"}},{variant:"gradient",color:"primary",class:{circle1:"to-primary"}},{variant:"gradient",color:"secondary",class:{circle1:"to-secondary"}},{variant:"gradient",color:"success",class:{circle1:"to-success"}},{variant:"gradient",color:"warning",class:{circle1:"to-warning"}},{variant:"gradient",color:"danger",class:{circle1:"to-danger"}},{variant:"wave",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"wave",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"wave",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"dots",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"dots",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"dots",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"simple",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"simple",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",color:"current",class:{wrapper:"text-current"}},{variant:"simple",color:"white",class:{wrapper:"text-white"}},{variant:"simple",color:"default",class:{wrapper:"text-default"}},{variant:"simple",color:"primary",class:{wrapper:"text-primary"}},{variant:"simple",color:"secondary",class:{wrapper:"text-secondary"}},{variant:"simple",color:"success",class:{wrapper:"text-success"}},{variant:"simple",color:"warning",class:{wrapper:"text-warning"}},{variant:"simple",color:"danger",class:{wrapper:"text-danger"}}]}),bd=["outline-solid outline-transparent","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"],K2=["outline-solid outline-transparent","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"],so={default:["[&+.border-medium.border-default]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(var(--heroui-border-width-medium)*-1)]"]},PT=["font-inherit","text-[100%]","leading-[1.15]","m-0","p-0","overflow-visible","box-border","absolute","top-0","w-full","h-full","opacity-[0.0001]","z-[1]","cursor-pointer","disabled:cursor-default"],AT=ia({slots:{base:"relative z-[100]"},variants:{disableAnimation:{false:{base:""},true:{base:["data-[placement=bottom-right]:bottom-0 data-[placement=bottom-right]:right-0 w-full px-2 sm:w-auto sm:px-0 data-[placement=bottom-right]:fixed data-[placement=bottom-right]:flex data-[placement=bottom-right]:flex-col","data-[placement=bottom-left]:bottom-0 data-[placement=bottom-left]:left-0 w-full px-2 sm:w-auto sm:px-0 data-[placement=bottom-left]:fixed data-[placement=bottom-left]:flex data-[placement=bottom-left]:flex-col","data-[placement=bottom-center]:bottom-0 data-[placement=bottom-center]:fixed w-full px-2 sm:w-auto sm:px-0 data-[placement=bottom-center]:flex data-[placement=bottom-center]:flex-col data-[placement=bottom-center]:left-1/2 data-[placement=bottom-center]:-translate-x-1/2","data-[placement=top-right]:top-0 data-[placement=top-right]:right-0 w-full px-2 sm:w-auto sm:px-0 data-[placement=top-right]:fixed data-[placement=top-right]:flex data-[placement=top-right]:flex-col","data-[placement=top-left]:top-0 data-[placement=top-left]:left-0 w-full px-2 sm:w-auto sm:px-0 data-[placement=top-left]:fixed data-[placement=top-left]:flex data-[placement=top-left]:flex-col","data-[placement=top-center]:top-0 data-[placement=top-center]:fixed w-full px-2 sm:w-auto sm:px-0 data-[placement=top-center]:flex data-[placement=top-center]:flex-col data-[placement=top-center]:left-1/2 data-[placement=top-center]:-translate-x-1/2"]}}},defaultVariants:{disableAnimation:!1}}),a$=ia({slots:{base:["flex gap-x-4 items-center","group","cursor-pointer","relative","z-50","box-border","outline-solid outline-transparent","p-3 sm:mx-1","my-1","w-full sm:w-[356px]","min-h-4","before:content-['']","before:absolute","before:left-0","before:right-0","data-[placement=bottom-right]:before:h-[var(--top-extension,16px)]","data-[placement=bottom-left]:before:h-[var(--top-extension,16px)]","data-[placement=bottom-center]:before:h-[var(--top-extension,16px)]","data-[placement=bottom-right]:before:top-[calc(-1*var(--top-extension,16px))]","data-[placement=bottom-left]:before:top-[calc(-1*var(--top-extension,16px))]","data-[placement=bottom-center]:before:top-[calc(-1*var(--top-extension,16px))]","before:z-[-1]","before:pointer-events-auto","before:bg-transparent","after:content-['']","after:absolute","after:left-0","after:right-0","data-[placement=bottom-right]:after:h-[var(--bottom-extension,16px)]","data-[placement=bottom-left]:after:h-[var(--bottom-extension,16px)]","data-[placement=bottom-center]:after:h-[var(--bottom-extension,16px)]","data-[placement=bottom-right]:after:bottom-[calc(-1*var(--bottom-extension,16px))]","data-[placement=bottom-left]:after:bottom-[calc(-1*var(--bottom-extension,16px))]","data-[placement=bottom-center]:after:bottom-[calc(-1*var(--bottom-extension,16px))]","after:z-[-1]","after:pointer-events-auto","after:bg-transparent","transform-gpu","will-change-transform","backface-visibility-hidden"],wrapper:["flex flex-col gap-y-0"],title:["text-sm","me-4","font-medium","text-foreground"],description:["text-sm","me-4","text-default-500"],icon:["w-6 h-6 flex-none fill-current"],loadingComponent:["w-6 h-6 flex-none fill-current"],content:["flex flex-grow flex-row gap-x-4 items-center relative"],progressTrack:["absolute inset-0 pointer-events-none bg-transparent overflow-hidden"],progressIndicator:["h-full bg-default-400 opacity-20"],motionDiv:["fixed","px-4 sm:px-0","data-[placement=bottom-right]:bottom-0 data-[placement=bottom-right]:right-0 data-[placement=bottom-right]:mx-auto w-full sm:data-[placement=bottom-right]:w-max mb-1 sm:data-[placement=bottom-right]:mr-2","data-[placement=bottom-left]:bottom-0 data-[placement=bottom-left]:left-0 data-[placement=bottom-left]:mx-auto w-full sm:data-[placement=bottom-left]:w-max mb-1 sm:data-[placement=bottom-left]:ml-2","data-[placement=bottom-center]:bottom-0 data-[placement=bottom-center]:left-0 data-[placement=bottom-center]:right-0 w-full sm:data-[placement=bottom-center]:w-max sm:data-[placement=bottom-center]:mx-auto","data-[placement=top-right]:top-0 data-[placement=top-right]:right-0 data-[placement=top-right]:mx-auto w-full sm:data-[placement=top-right]:w-max sm:data-[placement=top-right]:mr-2","data-[placement=top-left]:top-0 data-[placement=top-left]:left-0 data-[placement=top-left]:mx-auto w-full sm:data-[placement=top-left]:w-max sm:data-[placement=top-left]:ml-2","data-[placement=top-center]:top-0 data-[placement=top-center]:left-0 data-[placement=top-center]:right-0 w-full sm:data-[placement=top-center]:w-max sm:data-[placement=top-center]:mx-auto"],closeButton:["opacity-0 group-hover:opacity-100","transform-gpu","transition-all duration-200 ease-out","will-change-opacity will-change-transform","p-0 group-hover:pointer-events-auto w-6 h-6 min-w-4 absolute -right-2 -top-2 items-center justify-center bg-transparent text-default-400 hover:text-default-600 border border-3 border-transparent","data-[hidden=true]:hidden"],closeIcon:["rounded-full w-full h-full p-0.5 border border-default-400 bg-default-100"]},variants:{size:{sm:{icon:"w-5 h-5",loadingComponent:"w-5 h-5"},md:{},lg:{}},variant:{flat:"bg-content1 border border-default-100",solid:ye.solid.default,bordered:"bg-background border border-default-200"},color:{default:"",foreground:{progressIndicator:"h-full opacity-20 bg-foreground-400"},primary:{progressIndicator:"h-full opacity-20 bg-primary-400"},secondary:{progressIndicator:"h-full opacity-20 bg-secondary-400"},success:{progressIndicator:"h-full opacity-20 bg-success-400"},warning:{progressIndicator:"h-full opacity-20 bg-warning-400"},danger:{progressIndicator:"h-full opacity-20 bg-danger-400"}},radius:{none:{base:"rounded-none",progressTrack:"rounded-none"},sm:{base:"rounded-small",progressTrack:"rounded-small"},md:{base:"rounded-medium",progressTrack:"rounded-medium"},lg:{base:"rounded-large",progressTrack:"rounded-large"},full:{base:"rounded-full",closeButton:"-top-px -right-px",progressTrack:"rounded-full"}},disableAnimation:{true:{closeButton:"transition-none",base:"data-[animation=exiting]:opacity-0 transition-none"},false:{closeButton:"transition-all ease-out duration-200",base:["data-[toast-exiting=true]:transform-gpu","data-[toast-exiting=true]:will-change-transform","data-[toast-exiting=true]:transition-all","data-[toast-exiting=true]:ease-out","data-[toast-exiting=true]:data-[placement=bottom-right]:translate-x-full","data-[toast-exiting=true]:data-[placement=bottom-left]:-translate-x-full","data-[toast-exiting=true]:data-[placement=bottom-center]:translate-y-full","data-[toast-exiting=true]:data-[placement=top-right]:translate-x-full","data-[toast-exiting=true]:data-[placement=top-left]:-translate-x-full","data-[toast-exiting=true]:data-[placement=top-center]:-translate-y-full","data-[toast-exiting=true]:opacity-0","data-[toast-exiting=true]:duration-300","data-[toast-exiting=true]:ease-out"]}},shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}}},defaultVariants:{size:"md",variant:"flat",radius:"md",shadow:"sm"},compoundVariants:[{variant:"flat",color:"foreground",class:{base:"bg-foreground text-background",closeButton:"text-foreground-400 hover:text-foreground-600",closeIcon:"border border-foreground-400 bg-foreground-100",title:"text-background-600",description:"text-background-500"}},{variant:"flat",color:"primary",class:{base:"bg-primary-50 text-primary-600 border-primary-100",closeButton:"text-primary-400 hover:text-primary-600",closeIcon:"border border-primary-400 bg-primary-100",title:"text-primary-600",description:"text-primary-500"}},{variant:"flat",color:"secondary",class:{base:"bg-secondary-50 text-secondary-600 border-secondary-100",closeButton:"text-secondary-400 hover:text-secondary-600",closeIcon:"border border-secondary-400 bg-secondary-100",title:"text-secondary-600",description:"text-secondary-500"}},{variant:"flat",color:"success",class:{base:"bg-success-50 text-success-600 border-success-100",closeButton:"text-success-400 hover:text-success-600",closeIcon:"border border-success-400 bg-success-100",title:"text-success-600",description:"text-success-500"}},{variant:"flat",color:"warning",class:{base:"bg-warning-50 text-warning-600 border-warning-100",closeButton:"text-warning-400 hover:text-warning-600",closeIcon:"border border-warning-400 bg-warning-100",title:"text-warning-600",description:"text-warning-500"}},{variant:"flat",color:"danger",class:{base:"bg-danger-50 text-danger-600 border-danger-100",closeButton:"text-danger-400 hover:text-danger-600",closeIcon:"border border-danger-400 bg-danger-100",title:"text-danger-600",description:"text-danger-500"}},{variant:"bordered",color:"foreground",class:{base:"bg-foreground border-foreground-400 text-background",closeButton:"text-foreground-400 hover:text-foreground-600",closeIcon:"border border-foreground-400 bg-foreground-100",title:"text-background-600",description:"text-background-500"}},{variant:"bordered",color:"primary",class:{base:"border-primary-400 text-primary-600",closeButton:"text-primary-400 hover:text-primary-600",closeIcon:"border border-primary-400 bg-primary-100",title:"text-primary-600",description:"text-primary-500"}},{variant:"bordered",color:"secondary",class:{base:"border-secondary-400 text-secondary-600",closeButton:"text-secondary-400 hover:text-secondary-600",closeIcon:"border border-secondary-400 bg-secondary-100",title:"text-secondary-600",description:"text-secondary-500"}},{variant:"bordered",color:"success",class:{base:"border-success-400 text-success-600",closeButton:"text-success-400 hover:text-success-600",closeIcon:"border border-success-400 bg-success-100",title:"text-success-600",description:"text-success-500"}},{variant:"bordered",color:"warning",class:{base:"border-warning-400 text-warning-600",closeButton:"text-warning-400 hover:text-warning-600",closeIcon:"border border-warning-400 bg-warning-100",title:"text-warning-600",description:"text-warning-500"}},{variant:"bordered",color:"danger",class:{base:"border-danger-400 text-danger-600",closeButton:"text-danger-400 hover:text-danger-600",closeIcon:"border border-danger-400 bg-danger-100",title:"text-danger-600",description:"text-danger-500"}},{variant:"solid",color:"foreground",class:{base:ye.solid.foreground,closeButton:"text-foreground-400 hover:text-foreground-600",closeIcon:"border border-foreground-400 bg-foreground-100",title:"text-background",description:"text-background"}},{variant:"solid",color:"primary",class:{base:ye.solid.primary,closeButton:"text-primary-400 hover:text-primary-600",closeIcon:"border border-primary-400 bg-primary-100",title:"text-primary-foreground",description:"text-primary-foreground"}},{variant:"solid",color:"secondary",class:{base:ye.solid.secondary,closeButton:"text-secondary-400 hover:text-secondary-600",closeIcon:"border border-secondary-400 bg-secondary-100",title:"text-secondary-foreground",description:"text-secondary-foreground"}},{variant:"solid",color:"success",class:{base:ye.solid.success,closeButton:"text-success-400 hover:text-success-600",closeIcon:"border border-success-400 bg-success-100",title:"text-success-foreground",description:"text-success-foreground"}},{variant:"solid",color:"warning",class:{base:ye.solid.warning,closeButton:"text-warning-400 hover:text-warning-600",closeIcon:"border border-warning-400 bg-warning-100",title:"text-warning-foreground",description:"text-warning-foreground"}},{variant:"solid",color:"danger",class:{base:ye.solid.danger,closeButton:"text-danger-400 hover:text-danger-600",closeIcon:"border border-danger-400 bg-danger-100",title:"text-danger-foreground",description:"text-danger-foreground"}}]}),r$=ia({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent select-none",wrapper:["px-1","relative","inline-flex","items-center","justify-start","shrink-0","overflow-hidden","bg-default-200","rounded-full",...K2],thumb:["z-10","flex","items-center","justify-center","bg-white","shadow-small","rounded-full","origin-right","pointer-events-none"],hiddenInput:PT,startContent:"z-0 absolute start-1.5 text-current",endContent:"z-0 absolute end-1.5 text-default-600",thumbIcon:"text-black",label:"relative text-foreground select-none ms-2"},variants:{color:{default:{wrapper:["group-data-[selected=true]:bg-default-400","group-data-[selected=true]:text-default-foreground"]},primary:{wrapper:["group-data-[selected=true]:bg-primary","group-data-[selected=true]:text-primary-foreground"]},secondary:{wrapper:["group-data-[selected=true]:bg-secondary","group-data-[selected=true]:text-secondary-foreground"]},success:{wrapper:["group-data-[selected=true]:bg-success","group-data-[selected=true]:text-success-foreground"]},warning:{wrapper:["group-data-[selected=true]:bg-warning","group-data-[selected=true]:text-warning-foreground"]},danger:{wrapper:["group-data-[selected=true]:bg-danger","data-[selected=true]:text-danger-foreground"]}},size:{sm:{wrapper:"w-10 h-6",thumb:["w-4 h-4 text-tiny","group-data-[selected=true]:ms-4"],endContent:"text-tiny",startContent:"text-tiny",label:"text-small"},md:{wrapper:"w-12 h-7",thumb:["w-5 h-5 text-small","group-data-[selected=true]:ms-5"],endContent:"text-small",startContent:"text-small",label:"text-medium"},lg:{wrapper:"w-14 h-8",thumb:["w-6 h-6 text-medium","group-data-[selected=true]:ms-6"],endContent:"text-medium",startContent:"text-medium",label:"text-large"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{wrapper:"transition-none",thumb:"transition-none"},false:{wrapper:"transition-background",thumb:"transition-all",startContent:["opacity-0","scale-50","transition-transform-opacity","group-data-[selected=true]:scale-100","group-data-[selected=true]:opacity-100"],endContent:["opacity-100","transition-transform-opacity","group-data-[selected=true]:translate-x-3","group-data-[selected=true]:opacity-0"]}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1},compoundVariants:[{disableAnimation:!1,size:"sm",class:{thumb:["group-data-[pressed=true]:w-5","group-data-[selected]:group-data-[pressed]:ml-3"]}},{disableAnimation:!1,size:"md",class:{thumb:["group-data-[pressed=true]:w-6","group-data-[selected]:group-data-[pressed]:ml-4"]}},{disableAnimation:!1,size:"lg",class:{thumb:["group-data-[pressed=true]:w-7","group-data-[selected]:group-data-[pressed]:ml-5"]}}]}),l$=ia({slots:{base:["z-0","relative","bg-transparent","[transform-origin:var(--trigger-anchor-point)]","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",...bd],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-solid outline-transparent","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:ye.solid.foreground},primary:{base:"before:bg-primary",content:ye.solid.primary},secondary:{base:"before:bg-secondary",content:ye.solid.secondary},success:{base:"before:bg-success",content:ye.solid.success},warning:{base:"before:bg-warning",content:ye.solid.warning},danger:{base:"before:bg-danger",content:ye.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{none:{content:"shadow-none"},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"}}]}),qp=ia({slots:{base:"flex flex-col w-full gap-1",labelWrapper:"w-full flex justify-between items-center",label:"",value:"",step:["h-1.5","w-1.5","absolute","rounded-full","bg-default-300/50","data-[in-range=true]:bg-background/50"],mark:["absolute","text-small","cursor-default","opacity-50","data-[in-range=true]:opacity-100"],trackWrapper:"relative flex gap-2",track:["flex","w-full","relative","rounded-full","bg-default-300/50"],filler:"h-full absolute",thumb:["flex","justify-center","items-center","before:absolute","before:w-11","before:h-11","before:rounded-full","after:shadow-small","after:shadow-small","after:bg-background","data-[focused=true]:z-10",bd],startContent:[],endContent:[]},variants:{size:{sm:{label:"text-small",value:"text-small",thumb:"w-5 h-5 after:w-4 after:h-4",step:"data-[in-range=false]:bg-default-200"},md:{thumb:"w-6 h-6 after:w-5 after:h-5",label:"text-small",value:"text-small"},lg:{thumb:"h-7 w-7 after:w-5 after:h-5",step:"w-2 h-2",label:"text-medium",value:"text-medium",mark:"mt-2"}},radius:{none:{thumb:"rounded-none after:rounded-none"},sm:{thumb:"rounded-[calc(var(--heroui-radius-small)/2)] after:rounded-[calc(var(--heroui-radius-small)/3)]"},md:{thumb:"rounded-[calc(var(--heroui-radius-medium)/2)] after:rounded-[calc(var(--heroui-radius-medium)/3)]"},lg:{thumb:"rounded-[calc(var(--heroui-radius-large)/1.5)] after:rounded-[calc(var(--heroui-radius-large)/2)]"},full:{thumb:"rounded-full after:rounded-full"}},color:{foreground:{filler:"bg-foreground",thumb:"bg-foreground"},primary:{filler:"bg-primary",thumb:"bg-primary"},secondary:{filler:"bg-secondary",thumb:"bg-secondary"},success:{filler:"bg-success",thumb:"bg-success"},warning:{filler:"bg-warning",thumb:"bg-warning"},danger:{filler:"bg-danger",thumb:"bg-danger"}},isVertical:{true:{base:"w-auto h-full flex-col-reverse items-center",trackWrapper:"flex-col h-full justify-center items-center",filler:"w-full h-auto",thumb:"left-1/2",track:"h-full border-y-transparent",labelWrapper:"flex-col justify-center items-center",step:["left-1/2","-translate-x-1/2","translate-y-1/2"],mark:["left-1/2","ml-1","translate-x-1/2","translate-y-1/2"]},false:{thumb:"top-1/2",trackWrapper:"items-center",track:"border-x-transparent",step:["top-1/2","-translate-x-1/2","-translate-y-1/2"],mark:["top-1/2","mt-1","-translate-x-1/2","translate-y-1/2"]}},isDisabled:{false:{thumb:["cursor-grab","data-[dragging=true]:cursor-grabbing"]},true:{base:"opacity-disabled",thumb:"cursor-default"}},hasMarks:{true:{base:"mb-5",mark:"cursor-pointer"},false:{}},showOutline:{true:{thumb:"ring-2 ring-background"},false:{thumb:"ring-transparent border-0"}},hideValue:{true:{value:"sr-only"}},hideThumb:{true:{thumb:"sr-only",track:"cursor-pointer"}},hasSingleThumb:{true:{},false:{}},disableAnimation:{true:{thumb:"data-[dragging=true]:after:scale-100"},false:{thumb:"after:transition-all motion-reduce:after:transition-none",mark:"transition-opacity motion-reduce:transition-none"}},disableThumbScale:{true:{},false:{thumb:"data-[dragging=true]:after:scale-80"}}},compoundVariants:[{size:["sm","md"],showOutline:!1,class:{thumb:"shadow-small"}},{size:"sm",color:"foreground",class:{step:"data-[in-range=true]:bg-foreground"}},{size:"sm",color:"primary",class:{step:"data-[in-range=true]:bg-primary"}},{size:"sm",color:"secondary",class:{step:"data-[in-range=true]:bg-secondary"}},{size:"sm",color:"success",class:{step:"data-[in-range=true]:bg-success"}},{size:"sm",color:"warning",class:{step:"data-[in-range=true]:bg-warning"}},{size:"sm",color:"danger",class:{step:"data-[in-range=true]:bg-danger"}},{size:"sm",isVertical:!1,class:{track:"h-1 my-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-x-[calc(theme(spacing.5)/2)]"}},{size:"md",isVertical:!1,class:{track:"h-3 my-[calc((theme(spacing.6)-theme(spacing.3))/2)] border-x-[calc(theme(spacing.6)/2)]"}},{size:"lg",isVertical:!1,class:{track:"h-7 my-[calc((theme(spacing.7)-theme(spacing.5))/2)] border-x-[calc(theme(spacing.7)/2)]"}},{size:"sm",isVertical:!0,class:{track:"w-1 mx-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-y-[calc(theme(spacing.5)/2)]"}},{size:"md",isVertical:!0,class:{track:"w-3 mx-[calc((theme(spacing.6)-theme(spacing.3))/2)] border-y-[calc(theme(spacing.6)/2)]"}},{size:"lg",isVertical:!0,class:{track:"w-7 mx-[calc((theme(spacing.7)-theme(spacing.5))/2)] border-y-[calc(theme(spacing.7)/2)]"}},{color:"foreground",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-foreground data-[fill-end=true]:border-e-foreground"}},{color:"primary",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-primary data-[fill-end=true]:border-e-primary"}},{color:"secondary",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-secondary data-[fill-end=true]:border-e-secondary"}},{color:"success",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-success data-[fill-end=true]:border-e-success"}},{color:"warning",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-warning data-[fill-end=true]:border-e-warning"}},{color:"danger",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-danger data-[fill-end=true]:border-e-danger"}},{color:"foreground",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-foreground data-[fill-end=true]:border-t-foreground"}},{color:"primary",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-primary data-[fill-end=true]:border-t-primary"}},{color:"secondary",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-secondary data-[fill-end=true]:border-t-secondary"}},{color:"success",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-success data-[fill-end=true]:border-t-success"}},{color:"warning",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-warning data-[fill-end=true]:border-t-warning"}},{color:"danger",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-danger data-[fill-end=true]:border-t-danger"}}],defaultVariants:{size:"md",color:"primary",radius:"full",hideValue:!1,hideThumb:!1,isDisabled:!1,disableThumbScale:!1,showOutline:!1}}),o$=ia({slots:{base:"group flex flex-col data-[hidden=true]:hidden",label:["absolute","z-10","pointer-events-none","origin-top-left","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-xs px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-solid outline-transparent placeholder:text-foreground-500 focus-visible:outline-solid outline-transparent","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5","data-[type=color]:rounded-none","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-solid outline-transparent","select-none","opacity-0","cursor-pointer","active:!opacity-70","rounded-full",...bd],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-200","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 hover:!opacity-100"},lg:{label:"text-medium",inputWrapper:"h-12 min-h-12 rounded-large",input:"text-medium",clearButton:"text-large hover:!opacity-100"}},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"},"outside-top":{mainWrapper:"flex flex-col",label:"relative text-foreground pb-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,translate,scale]"],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,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:[...K2]}},{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%_+_var(--heroui-font-size-tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-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%_+_var(--heroui-font-size-small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-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%_+_var(--heroui-font-size-small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-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%_+_var(--heroui-font-size-small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-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"]}},{isClearable:!0,isDisabled:!0,class:{clearButton:"peer-data-[filled=true]:pointer-events-none"}}]}),kT=ia({base:"flex flex-col gap-2 items-start"}),I2=ia({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-solid outline-transparent","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent","transform-gpu data-[pressed=true]:scale-[0.97]","cursor-pointer",...bd],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:ye.solid.default},{variant:"solid",color:"primary",class:ye.solid.primary},{variant:"solid",color:"secondary",class:ye.solid.secondary},{variant:"solid",color:"success",class:ye.solid.success},{variant:"solid",color:"warning",class:ye.solid.warning},{variant:"solid",color:"danger",class:ye.solid.danger},{variant:"shadow",color:"default",class:ye.shadow.default},{variant:"shadow",color:"primary",class:ye.shadow.primary},{variant:"shadow",color:"secondary",class:ye.shadow.secondary},{variant:"shadow",color:"success",class:ye.shadow.success},{variant:"shadow",color:"warning",class:ye.shadow.warning},{variant:"shadow",color:"danger",class:ye.shadow.danger},{variant:"bordered",color:"default",class:ye.bordered.default},{variant:"bordered",color:"primary",class:ye.bordered.primary},{variant:"bordered",color:"secondary",class:ye.bordered.secondary},{variant:"bordered",color:"success",class:ye.bordered.success},{variant:"bordered",color:"warning",class:ye.bordered.warning},{variant:"bordered",color:"danger",class:ye.bordered.danger},{variant:"flat",color:"default",class:ye.flat.default},{variant:"flat",color:"primary",class:ye.flat.primary},{variant:"flat",color:"secondary",class:ye.flat.secondary},{variant:"flat",color:"success",class:ye.flat.success},{variant:"flat",color:"warning",class:ye.flat.warning},{variant:"flat",color:"danger",class:ye.flat.danger},{variant:"faded",color:"default",class:ye.faded.default},{variant:"faded",color:"primary",class:ye.faded.primary},{variant:"faded",color:"secondary",class:ye.faded.secondary},{variant:"faded",color:"success",class:ye.faded.success},{variant:"faded",color:"warning",class:ye.faded.warning},{variant:"faded",color:"danger",class:ye.faded.danger},{variant:"light",color:"default",class:[ye.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[ye.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[ye.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[ye.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[ye.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[ye.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:[ye.ghost.default,"data-[hover=true]:!bg-default"]},{variant:"ghost",color:"primary",class:[ye.ghost.primary,"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"]},{variant:"ghost",color:"secondary",class:[ye.ghost.secondary,"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"]},{variant:"ghost",color:"success",class:[ye.ghost.success,"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"]},{variant:"ghost",color:"warning",class:[ye.ghost.warning,"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"]},{variant:"ghost",color:"danger",class:[ye.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:so.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:so.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:so.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:so.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:so.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:so.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"}]});ia({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});const DT="modulepreload",zT=function(e){return"/"+e},i$={},vd=function(n,r,l){let i=Promise.resolve();if(r&&r.length>0){let b=function(m){return Promise.all(m.map($=>Promise.resolve($).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),p=d?.nonce||d?.getAttribute("nonce");i=b(r.map(m=>{if(m=zT(m),m in i$)return;i$[m]=!0;const $=m.endsWith(".css"),x=$?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${x}`))return;const S=document.createElement("link");if(S.rel=$?"stylesheet":DT,$||(S.as="script"),S.crossOrigin="",S.href=m,p&&S.setAttribute("nonce",p),document.head.appendChild(S),$)return new Promise((C,A)=>{S.addEventListener("load",C),S.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${m}`)))})}))}function u(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return i.then(d=>{for(const p of d||[])p.status==="rejected"&&u(p.reason);return n().catch(u)})};var OT=e=>T.jsx("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",...e,children:T.jsx("path",{d:` + `),()=>{document.head.removeChild($)}},[n]),T.jsx(cw,{isPresent:n,childRef:l,sizeRef:i,children:v.cloneElement(e,{ref:l})})}const fw=({children:e,initial:n,isPresent:r,onExitComplete:l,custom:i,presenceAffectsLayout:u,mode:d})=>{const p=sd(pw),b=v.useId(),m=v.useCallback(x=>{p.set(x,!0);for(const S of p.values())if(!S)return;l&&l()},[p,l]),$=v.useMemo(()=>({id:b,initial:n,isPresent:r,custom:i,onExitComplete:m,register:x=>(p.set(x,!1),()=>p.delete(x))}),u?[Math.random(),m]:[r,m]);return v.useMemo(()=>{p.forEach((x,S)=>p.set(S,!1))},[r]),v.useEffect(()=>{!r&&!p.size&&l&&l()},[r]),d==="popLayout"&&(e=T.jsx(dw,{isPresent:r,children:e})),T.jsx(Ss.Provider,{value:$,children:e})};function pw(){return new Map}function bw(e=!0){const n=v.useContext(Ss);if(n===null)return[!0,null];const{isPresent:r,onExitComplete:l,register:i}=n,u=v.useId();v.useEffect(()=>{e&&i(u)},[e]);const d=v.useCallback(()=>e&&l&&l(u),[u,l,e]);return!r&&l?[!1,d]:[!0]}function vO(){return vw(v.useContext(Ss))}function vw(e){return e===null?!0:e.isPresent}const Yu=e=>e.key||"";function V1(e){const n=[];return v.Children.forEach(e,r=>{v.isValidElement(r)&&n.push(r)}),n}const s2=typeof window<"u",u2=s2?v.useLayoutEffect:v.useEffect,ud=({children:e,custom:n,initial:r=!0,onExitComplete:l,presenceAffectsLayout:i=!0,mode:u="sync",propagate:d=!1})=>{const[p,b]=bw(d),m=v.useMemo(()=>V1(e),[e]),$=d&&!p?[]:m.map(Yu),x=v.useRef(!0),S=v.useRef(m),C=sd(()=>new Map),[A,w]=v.useState(m),[L,P]=v.useState(m);u2(()=>{x.current=!1,S.current=m;for(let H=0;H{const I=Yu(H),G=d&&!p?!1:m===L||$.includes(I),J=()=>{if(C.has(I))C.set(I,!0);else return;let W=!0;C.forEach(ne=>{ne||(W=!1)}),W&&(B?.(),P(S.current),d&&b?.(),l&&l())};return T.jsx(fw,{isPresent:G,initial:!x.current||r?void 0:!1,custom:G?void 0:n,presenceAffectsLayout:i,mode:u,onExitComplete:G?void 0:J,children:H},I)})})},mw=e=>e,c2={skipAnimations:!1,useManualTiming:!1};function gw(e){let n=new Set,r=new Set,l=!1,i=!1;const u=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function p(m){u.has(m)&&(b.schedule(m),e()),m(d)}const b={schedule:(m,$=!1,x=!1)=>{const C=x&&l?n:r;return $&&u.add(m),C.has(m)||C.add(m),m},cancel:m=>{r.delete(m),u.delete(m)},process:m=>{if(d=m,l){i=!0;return}l=!0,[n,r]=[r,n],n.forEach(p),n.clear(),l=!1,i&&(i=!1,b.process(m))}};return b}const Wu=["read","resolveKeyframes","update","preRender","render","postRender"],hw=40;function d2(e,n){let r=!1,l=!0;const i={delta:0,timestamp:0,isProcessing:!1},u=()=>r=!0,d=Wu.reduce((P,N)=>(P[N]=gw(u),P),{}),{read:p,resolveKeyframes:b,update:m,preRender:$,render:x,postRender:S}=d,C=()=>{const P=c2.useManualTiming?i.timestamp:performance.now();r=!1,i.delta=l?1e3/60:Math.max(Math.min(P-i.timestamp,hw),1),i.timestamp=P,i.isProcessing=!0,p.process(i),b.process(i),m.process(i),$.process(i),x.process(i),S.process(i),i.isProcessing=!1,r&&n&&(l=!1,e(C))},A=()=>{r=!0,l=!0,i.isProcessing||e(C)};return{schedule:Wu.reduce((P,N)=>{const B=d[N];return P[N]=(H,I=!1,G=!1)=>(r||A(),B.schedule(H,I,G)),P},{}),cancel:P=>{for(let N=0;NU1[e].some(r=>!!n[r])};function Pb(e){for(const n in e)Nc[n]={...Nc[n],...e[n]}}function cd({children:e,features:n,strict:r=!1}){const[,l]=v.useState(!Fp(n)),i=v.useRef(void 0);if(!Fp(n)){const{renderer:u,...d}=n;i.current=u,Pb(d)}return v.useEffect(()=>{Fp(n)&&n().then(({renderer:u,...d})=>{Pb(d),i.current=u,l(!0)})},[]),T.jsx(Iv.Provider,{value:{renderer:i.current,strict:r},children:e})}function Fp(e){return typeof e=="function"}const $w=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 jc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||$w.has(e)}let f2=e=>!jc(e);function p2(e){e&&(f2=n=>n.startsWith("on")?!jc(n):e(n))}try{p2(require("@emotion/is-prop-valid").default)}catch{}function yw(e,n,r){const l={};for(const i in e)i==="values"&&typeof e.values=="object"||(f2(i)||r===!0&&jc(i)||!n&&!jc(i)||e.draggable&&i.startsWith("onDrag"))&&(l[i]=e[i]);return l}function xw({children:e,isValidProp:n,...r}){n&&p2(n),r={...v.useContext(us),...r},r.isStatic=sd(()=>r.isStatic);const l=v.useMemo(()=>r,[JSON.stringify(r.transition),r.transformPagePoint,r.reducedMotion]);return T.jsx(us.Provider,{value:l,children:e})}function Ew(e){if(typeof Proxy>"u")return e;const n=new Map,r=(...l)=>e(...l);return new Proxy(r,{get:(l,i)=>i==="create"?e:(n.has(i)||n.set(i,e(i)),n.get(i))})}const dd=v.createContext({});function Ab(e){return typeof e=="string"||Array.isArray(e)}function b2(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ww=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Tw=["initial",...ww];function qv(e){return b2(e.animate)||Tw.some(n=>Ab(e[n]))}function Sw(e){return!!(qv(e)||e.variants)}function Cw(e,n){if(qv(e)){const{initial:r,animate:l}=e;return{initial:r===!1||Ab(r)?r:void 0,animate:Ab(l)?l:void 0}}return e.inherit!==!1?n:{}}function Mw(e){const{initial:n,animate:r}=Cw(e,v.useContext(dd));return v.useMemo(()=>({initial:n,animate:r}),[F1(n),F1(r)])}function F1(e){return Array.isArray(e)?e.join(" "):e}const Lw=Symbol.for("motionComponentSymbol");function v2(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Pw(e,n,r){return v.useCallback(l=>{l&&e.onMount&&e.onMount(l),n&&(l?n.mount(l):n.unmount()),r&&(typeof r=="function"?r(l):v2(r)&&(r.current=l))},[n])}const m2=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Aw="framerAppearId",kw="data-"+m2(Aw),{schedule:Dw}=d2(queueMicrotask,!1),zw=v.createContext({});function Ow(e,n,r,l,i){var u,d;const{visualElement:p}=v.useContext(dd),b=v.useContext(Iv),m=v.useContext(Ss),$=v.useContext(us).reducedMotion,x=v.useRef(null);l=l||b.renderer,!x.current&&l&&(x.current=l(e,{visualState:n,parent:p,props:r,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:$}));const S=x.current,C=v.useContext(zw);S&&!S.projection&&i&&(S.type==="html"||S.type==="svg")&&Nw(x.current,r,i,C);const A=v.useRef(!1);v.useInsertionEffect(()=>{S&&A.current&&S.update(r,m)});const w=r[kw],L=v.useRef(!!w&&!(!((u=window.MotionHandoffIsComplete)===null||u===void 0)&&u.call(window,w))&&((d=window.MotionHasOptimisedAnimation)===null||d===void 0?void 0:d.call(window,w)));return u2(()=>{S&&(A.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),Dw.render(S.render),L.current&&S.animationState&&S.animationState.animateChanges())}),v.useEffect(()=>{S&&(!L.current&&S.animationState&&S.animationState.animateChanges(),L.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)===null||P===void 0||P.call(window,w)}),L.current=!1))}),S}function Nw(e,n,r,l){const{layoutId:i,layout:u,drag:d,dragConstraints:p,layoutScroll:b,layoutRoot:m}=n;e.projection=new r(e.latestValues,n["data-framer-portal-id"]?void 0:g2(e.parent)),e.projection.setOptions({layoutId:i,layout:u,alwaysMeasureLayout:!!d||p&&v2(p),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:l,layoutScroll:b,layoutRoot:m})}function g2(e){if(e)return e.options.allowProjection!==!1?e.projection:g2(e.parent)}function jw({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:l,Component:i}){var u,d;e&&Pb(e);function p(m,$){let x;const S={...v.useContext(us),...m,layoutId:Rw(m)},{isStatic:C}=S,A=Mw(m),w=l(m,C);if(!C&&s2){Hw();const L=_w(S);x=L.MeasureLayout,A.visualElement=Ow(i,w,S,n,L.ProjectionNode)}return T.jsxs(dd.Provider,{value:A,children:[x&&A.visualElement?T.jsx(x,{visualElement:A.visualElement,...S}):null,r(i,m,Pw(w,A.visualElement,$),w,C,A.visualElement)]})}p.displayName=`motion.${typeof i=="string"?i:`create(${(d=(u=i.displayName)!==null&&u!==void 0?u:i.name)!==null&&d!==void 0?d:""})`}`;const b=v.forwardRef(p);return b[Lw]=i,b}function Rw({layoutId:e}){const n=v.useContext(i2).id;return n&&e!==void 0?n+"-"+e:e}function Hw(e,n){v.useContext(Iv).strict}function _w(e){const{drag:n,layout:r}=Nc;if(!n&&!r)return{};const l={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?l.MeasureLayout:void 0,ProjectionNode:l.ProjectionNode}}const Vw=["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 h2(e){return typeof e!="string"||e.includes("-")?!1:!!(Vw.indexOf(e)>-1||/[A-Z]/u.test(e))}function G1(e){const n=[{},{}];return e?.values.forEach((r,l)=>{n[0][l]=r.get(),n[1][l]=r.getVelocity()}),n}function Bw(e,n,r,l){if(typeof n=="function"){const[i,u]=G1(l);n=n(r!==void 0?r:e.custom,i,u)}if(typeof n=="string"&&(n=e.variants&&e.variants[n]),typeof n=="function"){const[i,u]=G1(l);n=n(r!==void 0?r:e.custom,i,u)}return n}const Uw=e=>Array.isArray(e),Fw=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),$O=e=>Uw(e)?e[e.length-1]||0:e,al=e=>!!(e&&e.getVelocity);function Gw(e){const n=al(e)?e.get():e;return Fw(n)?n.toValue():n}function Kw({scrapeMotionValuesFromProps:e,createRenderState:n,onUpdate:r},l,i,u){const d={latestValues:Iw(l,i,u,e),renderState:n()};return r&&(d.onMount=p=>r({props:l,current:p,...d}),d.onUpdate=p=>r(p)),d}const $2=e=>(n,r)=>{const l=v.useContext(dd),i=v.useContext(Ss),u=()=>Kw(e,n,l,i);return r?u():sd(u)};function Iw(e,n,r,l){const i={},u=l(e,{});for(const S in u)i[S]=Gw(u[S]);let{initial:d,animate:p}=e;const b=qv(e),m=Sw(e);n&&m&&!b&&e.inherit!==!1&&(d===void 0&&(d=n.initial),p===void 0&&(p=n.animate));let $=r?r.initial===!1:!1;$=$||d===!1;const x=$?p:d;if(x&&typeof x!="boolean"&&!b2(x)){const S=Array.isArray(x)?x:[x];for(let C=0;Cn=>typeof n=="string"&&n.startsWith(e),qw=y2("--"),Yw=y2("var(--"),yO=e=>Yw(e)?Ww.test(e.split("/*")[0].trim()):!1,Ww=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,x2=(e,n)=>n&&typeof e=="number"?n.transform(e):e,Xw=(e,n,r)=>r>n?n:rtypeof e=="number",parse:parseFloat,transform:e=>e},kb={...Wv,transform:e=>Xw(0,1,e)},Xu={...Wv,default:1},Cs=e=>({test:n=>typeof n=="string"&&n.endsWith(e)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${e}`}),Gr=Cs("deg"),Gp=Cs("%"),Se=Cs("px"),xO=Cs("vh"),EO=Cs("vw"),K1={...Gp,parse:e=>Gp.parse(e)/100,transform:e=>Gp.transform(e*100)},Zw={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,backgroundPositionX:Se,backgroundPositionY:Se},Qw={rotate:Gr,rotateX:Gr,rotateY:Gr,rotateZ:Gr,scale:Xu,scaleX:Xu,scaleY:Xu,scaleZ:Xu,skew:Gr,skewX:Gr,skewY:Gr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:kb,originX:K1,originY:K1,originZ:Se},I1={...Wv,transform:Math.round},E2={...Zw,...Qw,zIndex:I1,size:Se,fillOpacity:kb,strokeOpacity:kb,numOctaves:I1},Jw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},e8=fd.length;function t8(e,n,r){let l="",i=!0;for(let u=0;u({style:{},transform:{},transformOrigin:{},vars:{}}),S2=()=>({...Xv(),attrs:{}}),C2=e=>typeof e=="string"&&e.toLowerCase()==="svg";function o8(e,{style:n,vars:r},l,i){Object.assign(e.style,n,i&&i.getProjectionStyles(l));for(const u in r)e.style.setProperty(u,r[u])}const i8=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function s8(e,n,r,l){o8(e,n,void 0,l);for(const i in n.attrs)e.setAttribute(i8.has(i)?i:m2(i),n.attrs[i])}const M2={};function wO(e){Object.assign(M2,e)}function L2(e,{layout:n,layoutId:r}){return Yv.has(e)||e.startsWith("origin")||(n||r!==void 0)&&(!!M2[e]||e==="opacity")}function P2(e,n,r){var l;const{style:i}=e,u={};for(const d in i)(al(i[d])||n.style&&al(n.style[d])||L2(d,e)||((l=r?.getValue(d))===null||l===void 0?void 0:l.liveStyle)!==void 0)&&(u[d]=i[d]);return u}function u8(e,n,r){const l=P2(e,n,r);for(const i in e)if(al(e[i])||al(n[i])){const u=fd.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;l[u]=e[i]}return l}function c8(e,n){try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}const Y1=["x","y","width","height","cx","cy","r"],d8={useVisualState:$2({scrapeMotionValuesFromProps:u8,createRenderState:S2,onUpdate:({props:e,prevProps:n,current:r,renderState:l,latestValues:i})=>{if(!r)return;let u=!!e.drag;if(!u){for(const p in i)if(Yv.has(p)){u=!0;break}}if(!u)return;let d=!n;if(n)for(let p=0;p{c8(r,l),B1.render(()=>{T2(l,i,C2(r.tagName),e.transformTemplate),s8(r,l)})})}})},f8={useVisualState:$2({scrapeMotionValuesFromProps:P2,createRenderState:Xv})};function A2(e,n,r){for(const l in n)!al(n[l])&&!L2(l,r)&&(e[l]=n[l])}function p8({transformTemplate:e},n){return v.useMemo(()=>{const r=Xv();return w2(r,n,e),Object.assign({},r.vars,r.style)},[n])}function b8(e,n){const r=e.style||{},l={};return A2(l,r,e),Object.assign(l,p8(e,n)),l}function v8(e,n){const r={},l=b8(e,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,l.userSelect=l.WebkitUserSelect=l.WebkitTouchCallout="none",l.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=l,r}function m8(e,n,r,l){const i=v.useMemo(()=>{const u=S2();return T2(u,n,C2(l),e.transformTemplate),{...u.attrs,style:{...u.style}}},[n]);if(e.style){const u={};A2(u,e.style,e),i.style={...u,...i.style}}return i}function g8(e=!1){return(r,l,i,{latestValues:u},d)=>{const b=(h2(r)?m8:v8)(l,u,d,r),m=yw(l,typeof r=="string",e),$=r!==v.Fragment?{...m,...b,ref:i}:{},{children:x}=l,S=v.useMemo(()=>al(x)?x.get():x,[x]);return v.createElement(r,{...$,children:S})}}function h8(e,n){return function(l,{forwardMotionProps:i}={forwardMotionProps:!1}){const d={...h2(l)?d8:f8,preloadedFeatures:e,useRender:g8(i),createVisualElement:n,Component:l};return jw(d)}}const $8=h8(),pd=Ew($8);function y8(e,n){return n.get?n.get.call(e):n.value}function k2(e,n,r){if(!n.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return n.get(e)}function Ms(e,n){var r=k2(e,n,"get");return y8(e,r)}function x8(e,n,r){if(n.set)n.set.call(e,r);else{if(!n.writable)throw new TypeError("attempted to set read only private field");n.value=r}}function la(e,n,r){var l=k2(e,n,"set");return x8(e,l,r),r}const Db=ie.createContext(null);function E8(e){let{children:n}=e,r=v.useContext(Db),[l,i]=v.useState(0),u=v.useMemo(()=>({parent:r,modalCount:l,addModal(){i(d=>d+1),r&&r.addModal()},removeModal(){i(d=>d-1),r&&r.removeModal()}}),[r,l]);return ie.createElement(Db.Provider,{value:u},n)}function w8(){let e=v.useContext(Db);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function T8(e){let{modalProviderProps:n}=w8();return ie.createElement("div",{"data-overlay-container":!0,...e,...n})}function S8(e){return ie.createElement(E8,null,ie.createElement(T8,e))}var C8=({children:e,navigate:n,disableAnimation:r,useHref:l,disableRipple:i=!1,skipFramerMotionAnimations:u=r,reducedMotion:d="never",validationBehavior:p,locale:b="en-US",labelPlacement:m,defaultDates:$,createCalendar:x,spinnerVariant:S,...C})=>{let A=e;n&&(A=T.jsx(nw,{navigate:n,useHref:l,children:A}));const w=v.useMemo(()=>(r&&u&&(c2.skipAnimations=!0),{createCalendar:x,defaultDates:$,disableAnimation:r,disableRipple:i,validationBehavior:p,labelPlacement:m,spinnerVariant:S}),[x,$?.maxDate,$?.minDate,r,i,p,m,S]);return T.jsx(SE,{value:w,children:T.jsx(_E,{locale:b,children:T.jsx(xw,{reducedMotion:d,children:T.jsx(S8,{...C,children:A})})})})};function M8(e){const n=oa(),r=n?.labelPlacement;return v.useMemo(()=>{var l,i;const u=(i=(l=e.labelPlacement)!=null?l:r)!=null?i:"inside";return u==="inside"&&!e.label?"outside":u},[e.labelPlacement,r,e.label])}function ja(e){return v.forwardRef(e)}var Ho=(e,n,r=!0)=>{if(!n)return[e,{}];const l=n.reduce((i,u)=>u in e?{...i,[u]:e[u]}:i,{});return r?[Object.keys(e).filter(u=>!n.includes(u)).reduce((u,d)=>({...u,[d]:e[d]}),{}),l]:[e,l]},L8={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"},P8={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"},A8={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"},k8={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"},D8={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"},z8={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"},O8={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"},ye={solid:L8,shadow:P8,bordered:A8,flat:k8,faded:D8,light:z8,ghost:O8},N8={".spinner-bar-animation":{"animation-delay":"calc(-1.2s + (0.1s * var(--bar-index)))",transform:"rotate(calc(30deg * var(--bar-index)))translate(140%)"},".spinner-dot-animation":{"animation-delay":"calc(250ms * var(--dot-index))"},".spinner-dot-blink-animation":{"animation-delay":"calc(200ms * var(--dot-index))"}},j8={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"},".input-search-cancel-button-none":{"&::-webkit-search-cancel-button":{"-webkit-appearance":"none"}}},R8={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}},H8={".text-tiny":{"font-size":"var(--heroui-font-size-tiny)","line-height":"var(--heroui-line-height-tiny)"},".text-small":{"font-size":"var(--heroui-font-size-small)","line-height":"var(--heroui-line-height-small)"},".text-medium":{"font-size":"var(--heroui-font-size-medium)","line-height":"var(--heroui-line-height-medium)"},".text-large":{"font-size":"var(--heroui-font-size-large)","line-height":"var(--heroui-line-height-large)"}},ea="250ms",_8={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":ea},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ea},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":ea},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":ea},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":ea},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":ea},".transition-transform-opacity":{"transition-property":"transform, scale, opacity rotate","transition-timing-function":"ease","transition-duration":ea},".transition-transform-background":{"transition-property":"transform, scale, background","transition-timing-function":"ease","transition-duration":ea},".transition-transform-colors":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":ea},".transition-transform-colors-opacity":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ea}},V8={...j8,..._8,...R8,...H8,...N8},Zu=["small","medium","large"],W1={theme:{spacing:["divider"],radius:Zu},classGroups:{shadow:[{shadow:Zu}],opacity:[{opacity:["disabled"]}],"font-size":[{text:["tiny",...Zu]}],"border-w":[{border:Zu}],"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"],transition:Object.keys(V8).filter(e=>e.includes(".transition")).map(e=>e.replace(".",""))}},B8=/\s+/g,zb=e=>typeof e!="string"||!e?e:e.replace(B8," ").trim(),Rc=(...e)=>{let n=[],r=l=>{if(!l&&l!==0&&l!==0n)return;if(Array.isArray(l)){for(let u=0,d=l.length;u0?zb(n.join(" ")):void 0},X1=e=>e===!1?"false":e===!0?"true":e===0?"0":e,sn=e=>{if(!e||typeof e!="object")return!0;for(let n in e)return!1;return!0},U8=(e,n)=>{if(e===n)return!0;if(!e||!n)return!1;let r=Object.keys(e),l=Object.keys(n);if(r.length!==l.length)return!1;for(let i=0;i{for(let r in n)if(Object.prototype.hasOwnProperty.call(n,r)){let l=n[r];r in e?e[r]=Rc(e[r],l):e[r]=l}return e},D2=(e,n)=>{for(let r=0;r{let n=[];D2(e,n);let r=[];for(let l=0;l{let r={};for(let l in e){let i=e[l];if(l in n){let u=n[l];Array.isArray(i)||Array.isArray(u)?r[l]=z2(u,i):typeof i=="object"&&typeof u=="object"&&i&&u?r[l]=Ob(i,u):r[l]=u+" "+i}else r[l]=i}for(let l in n)l in e||(r[l]=n[l]);return r},F8={twMerge:!0,twMergeConfig:{},responsiveVariants:!1};function G8(){let e=null,n={},r=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(l){e=l},get cachedTwMergeConfig(){return n},set cachedTwMergeConfig(l){n=l},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(l){r=l},reset(){e=null,n={},r=!1}}}var za=G8(),K8=e=>{let n=(r,l)=>{let{extend:i=null,slots:u={},variants:d={},compoundVariants:p=[],compoundSlots:b=[],defaultVariants:m={}}=r,$={...F8,...l},x=i?.base?Rc(i.base,r?.base):r?.base,S=i?.variants&&!sn(i.variants)?Ob(d,i.variants):d,C=i?.defaultVariants&&!sn(i.defaultVariants)?{...i.defaultVariants,...m}:m;!sn($.twMergeConfig)&&!U8($.twMergeConfig,za.cachedTwMergeConfig)&&(za.didTwMergeConfigChange=!0,za.cachedTwMergeConfig=$.twMergeConfig);let A=sn(i?.slots),w=sn(u)?{}:{base:Rc(r?.base,A&&i?.base),...u},L=A?w:Z1({...i?.slots},sn(w)?{base:r?.base}:w),P=sn(i?.compoundVariants)?p:z2(i?.compoundVariants,p),N=H=>{if(sn(S)&&sn(u)&&A)return e(x,H?.class,H?.className)($);if(P&&!Array.isArray(P))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof P}`);if(b&&!Array.isArray(b))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof b}`);let I=(E,_,h=[],D)=>{let O=h;if(typeof _=="string"){let q=zb(_).split(" ");for(let re=0;re0){let re=[];for(let z=0;z{let O=_[E];if(!O||sn(O))return null;let q=D?.[E]??H?.[E];if(q===null)return null;let re=X1(q),z=Array.isArray($.responsiveVariants)&&$.responsiveVariants.length>0||$.responsiveVariants===!0,j=C?.[E],Z=[];if(typeof re=="object"&&z)for(let[oe,ce]of Object.entries(re)){let we=O[ce];if(oe==="initial"){j=ce;continue}Array.isArray($.responsiveVariants)&&!$.responsiveVariants.includes(oe)||(Z=I(oe,we,Z,h))}let K=re!=null&&typeof re!="object"?re:X1(j),se=O[K||"false"];return typeof Z=="object"&&typeof h=="string"&&Z[h]?Z1(Z,se):Z.length>0?(Z.push(se),h==="base"?Z.join(" "):Z):se},J=()=>{if(!S)return null;let E=Object.keys(S),_=[];for(let h=0;h{if(!S||typeof S!="object")return null;let h=[];for(let D in S){let O=G(D,S,E,_),q=E==="base"&&typeof O=="string"?O:O&&O[E];q&&h.push(q)}return h},ne={};for(let E in H){let _=H[E];_!==void 0&&(ne[E]=_)}let ue=(E,_)=>{let h=typeof H?.[E]=="object"?{[E]:H[E]?.initial}:{};return{...C,...ne,...h,..._}},g=(E=[],_)=>{let h=[],D=E.length;for(let O=0;O{let _=g(P,E);if(!Array.isArray(_))return _;let h={},D=e;for(let O=0;O<_.length;O++){let q=_[O];if(typeof q=="string")h.base=D(h.base,q)($);else if(typeof q=="object")for(let re in q)h[re]=D(h[re],q[re])($)}return h},U=E=>{if(b.length<1)return null;let _={},h=ue(null,E);for(let D=0;D{let O=k(D),q=U(D);return _(L[h],W(h,D),O?O[h]:void 0,q?q[h]:void 0,D?.class,D?.className)($)}}return E}return e(x,J(),g(P),H?.class,H?.className)($)},B=()=>{if(!(!S||typeof S!="object"))return Object.keys(S)};return N.variantKeys=B(),N.extend=i,N.base=x,N.slots=L,N.variants=S,N.defaultVariants=C,N.compoundSlots=b,N.compoundVariants=P,N};return{tv:n,createTV:r=>(l,i)=>n(l,i?Ob(r,i):r)}};const Zv="-",I8=e=>{const n=Y8(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:l}=e;return{getClassGroupId:d=>{const p=d.split(Zv);return p[0]===""&&p.length!==1&&p.shift(),O2(p,n)||q8(d)},getConflictingClassGroupIds:(d,p)=>{const b=r[d]||[];return p&&l[d]?[...b,...l[d]]:b}}},O2=(e,n)=>{if(e.length===0)return n.classGroupId;const r=e[0],l=n.nextPart.get(r),i=l?O2(e.slice(1),l):void 0;if(i)return i;if(n.validators.length===0)return;const u=e.join(Zv);return n.validators.find(({validator:d})=>d(u))?.classGroupId},Q1=/^\[(.+)\]$/,q8=e=>{if(Q1.test(e)){const n=Q1.exec(e)[1],r=n?.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},Y8=e=>{const{theme:n,classGroups:r}=e,l={nextPart:new Map,validators:[]};for(const i in r)Nb(r[i],l,i,n);return l},Nb=(e,n,r,l)=>{e.forEach(i=>{if(typeof i=="string"){const u=i===""?n:J1(n,i);u.classGroupId=r;return}if(typeof i=="function"){if(W8(i)){Nb(i(l),n,r,l);return}n.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([u,d])=>{Nb(d,J1(n,u),r,l)})})},J1=(e,n)=>{let r=e;return n.split(Zv).forEach(l=>{r.nextPart.has(l)||r.nextPart.set(l,{nextPart:new Map,validators:[]}),r=r.nextPart.get(l)}),r},W8=e=>e.isThemeGetter,X8=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,l=new Map;const i=(u,d)=>{r.set(u,d),n++,n>e&&(n=0,l=r,r=new Map)};return{get(u){let d=r.get(u);if(d!==void 0)return d;if((d=l.get(u))!==void 0)return i(u,d),d},set(u,d){r.has(u)?r.set(u,d):i(u,d)}}},jb="!",Rb=":",Z8=Rb.length,Q8=e=>{const{prefix:n,experimentalParseClassName:r}=e;let l=i=>{const u=[];let d=0,p=0,b=0,m;for(let A=0;Ab?m-b:void 0;return{modifiers:u,hasImportantModifier:S,baseClassName:x,maybePostfixModifierPosition:C}};if(n){const i=n+Rb,u=l;l=d=>d.startsWith(i)?u(d.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:d,maybePostfixModifierPosition:void 0}}if(r){const i=l;l=u=>r({className:u,parseClassName:i})}return l},J8=e=>e.endsWith(jb)?e.substring(0,e.length-1):e.startsWith(jb)?e.substring(1):e,eT=e=>{const n=Object.fromEntries(e.orderSensitiveModifiers.map(l=>[l,!0]));return l=>{if(l.length<=1)return l;const i=[];let u=[];return l.forEach(d=>{d[0]==="["||n[d]?(i.push(...u.sort(),d),u=[]):u.push(d)}),i.push(...u.sort()),i}},tT=e=>({cache:X8(e.cacheSize),parseClassName:Q8(e),sortModifiers:eT(e),...I8(e)}),nT=/\s+/,aT=(e,n)=>{const{parseClassName:r,getClassGroupId:l,getConflictingClassGroupIds:i,sortModifiers:u}=n,d=[],p=e.trim().split(nT);let b="";for(let m=p.length-1;m>=0;m-=1){const $=p[m],{isExternal:x,modifiers:S,hasImportantModifier:C,baseClassName:A,maybePostfixModifierPosition:w}=r($);if(x){b=$+(b.length>0?" "+b:b);continue}let L=!!w,P=l(L?A.substring(0,w):A);if(!P){if(!L){b=$+(b.length>0?" "+b:b);continue}if(P=l(A),!P){b=$+(b.length>0?" "+b:b);continue}L=!1}const N=u(S).join(":"),B=C?N+jb:N,H=B+P;if(d.includes(H))continue;d.push(H);const I=i(P,L);for(let G=0;G0?" "+b:b)}return b};function rT(){let e=0,n,r,l="";for(;e{if(typeof e=="string")return e;let n,r="";for(let l=0;lx($),e());return r=tT(m),l=r.cache.get,i=r.cache.set,u=p,p(b)}function p(b){const m=l(b);if(m)return m;const $=aT(b,r);return i(b,$),$}return function(){return u(rT.apply(null,arguments))}}const Tt=e=>{const n=r=>r[e]||[];return n.isThemeGetter=!0,n},j2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,R2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lT=/^\d+\/\d+$/,oT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,iT=/\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$/,sT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,io=e=>lT.test(e),Pe=e=>!!e&&!Number.isNaN(Number(e)),ur=e=>!!e&&Number.isInteger(Number(e)),Kp=e=>e.endsWith("%")&&Pe(e.slice(0,-1)),Aa=e=>oT.test(e),dT=()=>!0,fT=e=>iT.test(e)&&!sT.test(e),H2=()=>!1,pT=e=>uT.test(e),bT=e=>cT.test(e),vT=e=>!fe(e)&&!pe(e),mT=e=>_o(e,B2,H2),fe=e=>j2.test(e),Kr=e=>_o(e,U2,fT),Ip=e=>_o(e,xT,Pe),e$=e=>_o(e,_2,H2),gT=e=>_o(e,V2,bT),Qu=e=>_o(e,F2,pT),pe=e=>R2.test(e),Ri=e=>Vo(e,U2),hT=e=>Vo(e,ET),t$=e=>Vo(e,_2),$T=e=>Vo(e,B2),yT=e=>Vo(e,V2),Ju=e=>Vo(e,F2,!0),_o=(e,n,r)=>{const l=j2.exec(e);return l?l[1]?n(l[1]):r(l[2]):!1},Vo=(e,n,r=!1)=>{const l=R2.exec(e);return l?l[1]?n(l[1]):r:!1},_2=e=>e==="position"||e==="percentage",V2=e=>e==="image"||e==="url",B2=e=>e==="length"||e==="size"||e==="bg-size",U2=e=>e==="length",xT=e=>e==="number",ET=e=>e==="family-name",F2=e=>e==="shadow",_b=()=>{const e=Tt("color"),n=Tt("font"),r=Tt("text"),l=Tt("font-weight"),i=Tt("tracking"),u=Tt("leading"),d=Tt("breakpoint"),p=Tt("container"),b=Tt("spacing"),m=Tt("radius"),$=Tt("shadow"),x=Tt("inset-shadow"),S=Tt("text-shadow"),C=Tt("drop-shadow"),A=Tt("blur"),w=Tt("perspective"),L=Tt("aspect"),P=Tt("ease"),N=Tt("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...H(),pe,fe],G=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],W=()=>[pe,fe,b],ne=()=>[io,"full","auto",...W()],ue=()=>[ur,"none","subgrid",pe,fe],g=()=>["auto",{span:["full",ur,pe,fe]},ur,pe,fe],k=()=>[ur,"auto",pe,fe],U=()=>["auto","min","max","fr",pe,fe],E=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],h=()=>["auto",...W()],D=()=>[io,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...W()],O=()=>[e,pe,fe],q=()=>[...H(),t$,e$,{position:[pe,fe]}],re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",$T,mT,{size:[pe,fe]}],j=()=>[Kp,Ri,Kr],Z=()=>["","none","full",m,pe,fe],K=()=>["",Pe,Ri,Kr],se=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[Pe,Kp,t$,e$],we=()=>["","none",A,pe,fe],he=()=>["none",Pe,pe,fe],me=()=>["none",Pe,pe,fe],nt=()=>[Pe,pe,fe],Ke=()=>[io,"full",...W()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Aa],breakpoint:[Aa],color:[dT],container:[Aa],"drop-shadow":[Aa],ease:["in","out","in-out"],font:[vT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Aa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Aa],shadow:[Aa],spacing:["px",Pe],text:[Aa],"text-shadow":[Aa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",io,fe,pe,L]}],container:["container"],columns:[{columns:[Pe,fe,pe,p]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"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"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:I()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ne()}],"inset-x":[{"inset-x":ne()}],"inset-y":[{"inset-y":ne()}],start:[{start:ne()}],end:[{end:ne()}],top:[{top:ne()}],right:[{right:ne()}],bottom:[{bottom:ne()}],left:[{left:ne()}],visibility:["visible","invisible","collapse"],z:[{z:[ur,"auto",pe,fe]}],basis:[{basis:[io,"full","auto",p,...W()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,io,"auto","initial","none",fe]}],grow:[{grow:["",Pe,pe,fe]}],shrink:[{shrink:["",Pe,pe,fe]}],order:[{order:[ur,"first","last","none",pe,fe]}],"grid-cols":[{"grid-cols":ue()}],"col-start-end":[{col:g()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":ue()}],"row-start-end":[{row:g()}],"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":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:W()}],"gap-x":[{"gap-x":W()}],"gap-y":[{"gap-y":W()}],"justify-content":[{justify:[...E(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...E()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:W()}],px:[{px:W()}],py:[{py:W()}],ps:[{ps:W()}],pe:[{pe:W()}],pt:[{pt:W()}],pr:[{pr:W()}],pb:[{pb:W()}],pl:[{pl:W()}],m:[{m:h()}],mx:[{mx:h()}],my:[{my:h()}],ms:[{ms:h()}],me:[{me:h()}],mt:[{mt:h()}],mr:[{mr:h()}],mb:[{mb:h()}],ml:[{ml:h()}],"space-x":[{"space-x":W()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":W()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],w:[{w:[p,"screen",...D()]}],"min-w":[{"min-w":[p,"screen","none",...D()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[d]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",r,Ri,Kr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,pe,Ip]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Kp,fe]}],"font-family":[{font:[hT,fe,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-fractions"],tracking:[{tracking:[i,pe,fe]}],"line-clamp":[{"line-clamp":[Pe,"none",pe,Ip]}],leading:[{leading:[u,...W()]}],"list-image":[{"list-image":["none",pe,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",pe,Kr]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[Pe,"auto",pe,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ur,pe,fe],radial:["",pe,fe],conic:[ur,pe,fe]},yT,gT]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:Z()}],"rounded-s":[{"rounded-s":Z()}],"rounded-e":[{"rounded-e":Z()}],"rounded-t":[{"rounded-t":Z()}],"rounded-r":[{"rounded-r":Z()}],"rounded-b":[{"rounded-b":Z()}],"rounded-l":[{"rounded-l":Z()}],"rounded-ss":[{"rounded-ss":Z()}],"rounded-se":[{"rounded-se":Z()}],"rounded-ee":[{"rounded-ee":Z()}],"rounded-es":[{"rounded-es":Z()}],"rounded-tl":[{"rounded-tl":Z()}],"rounded-tr":[{"rounded-tr":Z()}],"rounded-br":[{"rounded-br":Z()}],"rounded-bl":[{"rounded-bl":Z()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":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:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,pe,fe]}],"outline-w":[{outline:["",Pe,Ri,Kr]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",$,Ju,Qu]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",x,Ju,Qu]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[Pe,Kr]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",S,Ju,Qu]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[Pe,pe,fe]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[pe,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":H()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,fe]}],filter:[{filter:["","none",pe,fe]}],blur:[{blur:we()}],brightness:[{brightness:[Pe,pe,fe]}],contrast:[{contrast:[Pe,pe,fe]}],"drop-shadow":[{"drop-shadow":["","none",C,Ju,Qu]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",Pe,pe,fe]}],"hue-rotate":[{"hue-rotate":[Pe,pe,fe]}],invert:[{invert:["",Pe,pe,fe]}],saturate:[{saturate:[Pe,pe,fe]}],sepia:[{sepia:["",Pe,pe,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,fe]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,pe,fe]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,pe,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,pe,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,pe,fe]}],"backdrop-invert":[{"backdrop-invert":["",Pe,pe,fe]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,pe,fe]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,pe,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,pe,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":W()}],"border-spacing-x":[{"border-spacing-x":W()}],"border-spacing-y":[{"border-spacing-y":W()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",pe,fe]}],ease:[{ease:["linear","initial",P,pe,fe]}],delay:[{delay:[Pe,pe,fe]}],animate:[{animate:["none",N,pe,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,pe,fe]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":["scale-3d"],skew:[{skew:nt()}],"skew-x":[{"skew-x":nt()}],"skew-y":[{"skew-y":nt()}],transform:[{transform:[pe,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ke()}],"translate-x":[{"translate-x":Ke()}],"translate-y":[{"translate-y":Ke()}],"translate-z":[{"translate-z":Ke()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",pe,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],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","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,fe]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[Pe,Ri,Kr,Ip]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},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"],size:["w","h"],"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"],"line-clamp":["display","overflow"],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-x","border-w-y","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-x","border-color-y","border-color-s","border-color-e","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},wT=(e,{cacheSize:n,prefix:r,experimentalParseClassName:l,extend:i={},override:u={}})=>(Fi(e,"cacheSize",n),Fi(e,"prefix",r),Fi(e,"experimentalParseClassName",l),ec(e.theme,u.theme),ec(e.classGroups,u.classGroups),ec(e.conflictingClassGroups,u.conflictingClassGroups),ec(e.conflictingClassGroupModifiers,u.conflictingClassGroupModifiers),Fi(e,"orderSensitiveModifiers",u.orderSensitiveModifiers),tc(e.theme,i.theme),tc(e.classGroups,i.classGroups),tc(e.conflictingClassGroups,i.conflictingClassGroups),tc(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),G2(e,i,"orderSensitiveModifiers"),e),Fi=(e,n,r)=>{r!==void 0&&(e[n]=r)},ec=(e,n)=>{if(n)for(const r in n)Fi(e,r,n[r])},tc=(e,n)=>{if(n)for(const r in n)G2(e,n,r)},G2=(e,n,r)=>{const l=n[r];l!==void 0&&(e[r]=e[r]?e[r].concat(l):l)},TT=(e,...n)=>typeof e=="function"?Hb(_b,e,...n):Hb(()=>wT(_b(),e),...n),ST=Hb(_b);var CT=e=>sn(e)?ST:TT({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),MT=(...e)=>n=>{let r=Rc(e);return!r||!n.twMerge?r:((!za.cachedTwMerge||za.didTwMergeConfigChange)&&(za.didTwMergeConfigChange=!1,za.cachedTwMerge=CT(za.cachedTwMergeConfig)),za.cachedTwMerge(r)||void 0)},{tv:LT}=K8(MT),ia=(e,n)=>{var r,l,i;return LT(e,{...n,twMerge:(r=void 0)!=null?r:!0,twMergeConfig:{theme:{...(l=void 0)==null?void 0:l.theme,...W1.theme},classGroups:{...(i=void 0)==null?void 0:i.classGroups,...W1.classGroups}}})},n$=ia({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",label:"text-foreground dark:text-foreground-dark font-regular",circle1:"absolute w-full h-full rounded-full",circle2:"absolute w-full h-full rounded-full",dots:"relative rounded-full mx-auto",spinnerBars:["absolute","animate-fade-out","rounded-full","w-[25%]","h-[8%]","left-[calc(37.5%)]","top-[calc(46%)]","spinner-bar-animation"]},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",dots:"size-1",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",dots:"size-1.5",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",dots:"size-2",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current",dots:"bg-current",spinnerBars:"bg-current"},white:{circle1:"border-b-white",circle2:"border-b-white",dots:"bg-white",spinnerBars:"bg-white"},default:{circle1:"border-b-default",circle2:"border-b-default",dots:"bg-default",spinnerBars:"bg-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary",dots:"bg-primary",spinnerBars:"bg-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary",dots:"bg-secondary",spinnerBars:"bg-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success",dots:"bg-success",spinnerBars:"bg-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning",dots:"bg-warning",spinnerBars:"bg-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger",dots:"bg-danger",spinnerBars:"bg-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"}},variant:{default:{circle1:["animate-spinner-ease-spin","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["opacity-75","animate-spinner-linear-spin","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"]},gradient:{circle1:["border-0","bg-gradient-to-b","from-transparent","via-transparent","to-primary","animate-spinner-linear-spin","[animation-duration:1s]","[-webkit-mask:radial-gradient(closest-side,rgba(0,0,0,0.0)calc(100%-3px),rgba(0,0,0,1)calc(100%-3px))]"],circle2:["hidden"]},wave:{wrapper:"translate-y-3/4",dots:["animate-sway","spinner-dot-animation"]},dots:{wrapper:"translate-y-2/4",dots:["animate-blink","spinner-dot-blink-animation"]},spinner:{},simple:{wrapper:"text-foreground h-5 w-5 animate-spin",circle1:"opacity-25",circle2:"opacity-75"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground",variant:"default"},compoundVariants:[{variant:"gradient",color:"current",class:{circle1:"to-current"}},{variant:"gradient",color:"white",class:{circle1:"to-white"}},{variant:"gradient",color:"default",class:{circle1:"to-default"}},{variant:"gradient",color:"primary",class:{circle1:"to-primary"}},{variant:"gradient",color:"secondary",class:{circle1:"to-secondary"}},{variant:"gradient",color:"success",class:{circle1:"to-success"}},{variant:"gradient",color:"warning",class:{circle1:"to-warning"}},{variant:"gradient",color:"danger",class:{circle1:"to-danger"}},{variant:"wave",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"wave",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"wave",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"dots",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"dots",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"dots",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"simple",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"simple",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",color:"current",class:{wrapper:"text-current"}},{variant:"simple",color:"white",class:{wrapper:"text-white"}},{variant:"simple",color:"default",class:{wrapper:"text-default"}},{variant:"simple",color:"primary",class:{wrapper:"text-primary"}},{variant:"simple",color:"secondary",class:{wrapper:"text-secondary"}},{variant:"simple",color:"success",class:{wrapper:"text-success"}},{variant:"simple",color:"warning",class:{wrapper:"text-warning"}},{variant:"simple",color:"danger",class:{wrapper:"text-danger"}}]}),bd=["outline-solid outline-transparent","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"],K2=["outline-solid outline-transparent","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"],so={default:["[&+.border-medium.border-default]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(var(--heroui-border-width-medium)*-1)]"]},PT=["font-inherit","text-[100%]","leading-[1.15]","m-0","p-0","overflow-visible","box-border","absolute","top-0","w-full","h-full","opacity-[0.0001]","z-[1]","cursor-pointer","disabled:cursor-default"],AT=ia({slots:{base:"relative z-[100]"},variants:{disableAnimation:{false:{base:""},true:{base:["data-[placement=bottom-right]:bottom-0 data-[placement=bottom-right]:right-0 w-full px-2 sm:w-auto sm:px-0 data-[placement=bottom-right]:fixed data-[placement=bottom-right]:flex data-[placement=bottom-right]:flex-col","data-[placement=bottom-left]:bottom-0 data-[placement=bottom-left]:left-0 w-full px-2 sm:w-auto sm:px-0 data-[placement=bottom-left]:fixed data-[placement=bottom-left]:flex data-[placement=bottom-left]:flex-col","data-[placement=bottom-center]:bottom-0 data-[placement=bottom-center]:fixed w-full px-2 sm:w-auto sm:px-0 data-[placement=bottom-center]:flex data-[placement=bottom-center]:flex-col data-[placement=bottom-center]:left-1/2 data-[placement=bottom-center]:-translate-x-1/2","data-[placement=top-right]:top-0 data-[placement=top-right]:right-0 w-full px-2 sm:w-auto sm:px-0 data-[placement=top-right]:fixed data-[placement=top-right]:flex data-[placement=top-right]:flex-col","data-[placement=top-left]:top-0 data-[placement=top-left]:left-0 w-full px-2 sm:w-auto sm:px-0 data-[placement=top-left]:fixed data-[placement=top-left]:flex data-[placement=top-left]:flex-col","data-[placement=top-center]:top-0 data-[placement=top-center]:fixed w-full px-2 sm:w-auto sm:px-0 data-[placement=top-center]:flex data-[placement=top-center]:flex-col data-[placement=top-center]:left-1/2 data-[placement=top-center]:-translate-x-1/2"]}}},defaultVariants:{disableAnimation:!1}}),a$=ia({slots:{base:["flex gap-x-4 items-center","group","cursor-pointer","relative","z-50","box-border","outline-solid outline-transparent","p-3 sm:mx-1","my-1","w-full sm:w-[356px]","min-h-4","before:content-['']","before:absolute","before:left-0","before:right-0","data-[placement=bottom-right]:before:h-[var(--top-extension,16px)]","data-[placement=bottom-left]:before:h-[var(--top-extension,16px)]","data-[placement=bottom-center]:before:h-[var(--top-extension,16px)]","data-[placement=bottom-right]:before:top-[calc(-1*var(--top-extension,16px))]","data-[placement=bottom-left]:before:top-[calc(-1*var(--top-extension,16px))]","data-[placement=bottom-center]:before:top-[calc(-1*var(--top-extension,16px))]","before:z-[-1]","before:pointer-events-auto","before:bg-transparent","after:content-['']","after:absolute","after:left-0","after:right-0","data-[placement=bottom-right]:after:h-[var(--bottom-extension,16px)]","data-[placement=bottom-left]:after:h-[var(--bottom-extension,16px)]","data-[placement=bottom-center]:after:h-[var(--bottom-extension,16px)]","data-[placement=bottom-right]:after:bottom-[calc(-1*var(--bottom-extension,16px))]","data-[placement=bottom-left]:after:bottom-[calc(-1*var(--bottom-extension,16px))]","data-[placement=bottom-center]:after:bottom-[calc(-1*var(--bottom-extension,16px))]","after:z-[-1]","after:pointer-events-auto","after:bg-transparent","transform-gpu","will-change-transform","backface-visibility-hidden"],wrapper:["flex flex-col gap-y-0"],title:["text-sm","me-4","font-medium","text-foreground"],description:["text-sm","me-4","text-default-500"],icon:["w-6 h-6 flex-none fill-current"],loadingComponent:["w-6 h-6 flex-none fill-current"],content:["flex flex-grow flex-row gap-x-4 items-center relative"],progressTrack:["absolute inset-0 pointer-events-none bg-transparent overflow-hidden"],progressIndicator:["h-full bg-default-400 opacity-20"],motionDiv:["fixed","px-4 sm:px-0","data-[placement=bottom-right]:bottom-0 data-[placement=bottom-right]:right-0 data-[placement=bottom-right]:mx-auto w-full sm:data-[placement=bottom-right]:w-max mb-1 sm:data-[placement=bottom-right]:mr-2","data-[placement=bottom-left]:bottom-0 data-[placement=bottom-left]:left-0 data-[placement=bottom-left]:mx-auto w-full sm:data-[placement=bottom-left]:w-max mb-1 sm:data-[placement=bottom-left]:ml-2","data-[placement=bottom-center]:bottom-0 data-[placement=bottom-center]:left-0 data-[placement=bottom-center]:right-0 w-full sm:data-[placement=bottom-center]:w-max sm:data-[placement=bottom-center]:mx-auto","data-[placement=top-right]:top-0 data-[placement=top-right]:right-0 data-[placement=top-right]:mx-auto w-full sm:data-[placement=top-right]:w-max sm:data-[placement=top-right]:mr-2","data-[placement=top-left]:top-0 data-[placement=top-left]:left-0 data-[placement=top-left]:mx-auto w-full sm:data-[placement=top-left]:w-max sm:data-[placement=top-left]:ml-2","data-[placement=top-center]:top-0 data-[placement=top-center]:left-0 data-[placement=top-center]:right-0 w-full sm:data-[placement=top-center]:w-max sm:data-[placement=top-center]:mx-auto"],closeButton:["opacity-0 group-hover:opacity-100","transform-gpu","transition-all duration-200 ease-out","will-change-opacity will-change-transform","p-0 group-hover:pointer-events-auto w-6 h-6 min-w-4 absolute -right-2 -top-2 items-center justify-center bg-transparent text-default-400 hover:text-default-600 border border-3 border-transparent","data-[hidden=true]:hidden"],closeIcon:["rounded-full w-full h-full p-0.5 border border-default-400 bg-default-100"]},variants:{size:{sm:{icon:"w-5 h-5",loadingComponent:"w-5 h-5"},md:{},lg:{}},variant:{flat:"bg-content1 border border-default-100",solid:ye.solid.default,bordered:"bg-background border border-default-200"},color:{default:"",foreground:{progressIndicator:"h-full opacity-20 bg-foreground-400"},primary:{progressIndicator:"h-full opacity-20 bg-primary-400"},secondary:{progressIndicator:"h-full opacity-20 bg-secondary-400"},success:{progressIndicator:"h-full opacity-20 bg-success-400"},warning:{progressIndicator:"h-full opacity-20 bg-warning-400"},danger:{progressIndicator:"h-full opacity-20 bg-danger-400"}},radius:{none:{base:"rounded-none",progressTrack:"rounded-none"},sm:{base:"rounded-small",progressTrack:"rounded-small"},md:{base:"rounded-medium",progressTrack:"rounded-medium"},lg:{base:"rounded-large",progressTrack:"rounded-large"},full:{base:"rounded-full",closeButton:"-top-px -right-px",progressTrack:"rounded-full"}},disableAnimation:{true:{closeButton:"transition-none",base:"data-[animation=exiting]:opacity-0 transition-none"},false:{closeButton:"transition-all ease-out duration-200",base:["data-[toast-exiting=true]:transform-gpu","data-[toast-exiting=true]:will-change-transform","data-[toast-exiting=true]:transition-all","data-[toast-exiting=true]:ease-out","data-[toast-exiting=true]:data-[placement=bottom-right]:translate-x-full","data-[toast-exiting=true]:data-[placement=bottom-left]:-translate-x-full","data-[toast-exiting=true]:data-[placement=bottom-center]:translate-y-full","data-[toast-exiting=true]:data-[placement=top-right]:translate-x-full","data-[toast-exiting=true]:data-[placement=top-left]:-translate-x-full","data-[toast-exiting=true]:data-[placement=top-center]:-translate-y-full","data-[toast-exiting=true]:opacity-0","data-[toast-exiting=true]:duration-300","data-[toast-exiting=true]:ease-out"]}},shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}}},defaultVariants:{size:"md",variant:"flat",radius:"md",shadow:"sm"},compoundVariants:[{variant:"flat",color:"foreground",class:{base:"bg-foreground text-background",closeButton:"text-foreground-400 hover:text-foreground-600",closeIcon:"border border-foreground-400 bg-foreground-100",title:"text-background-600",description:"text-background-500"}},{variant:"flat",color:"primary",class:{base:"bg-primary-50 text-primary-600 border-primary-100",closeButton:"text-primary-400 hover:text-primary-600",closeIcon:"border border-primary-400 bg-primary-100",title:"text-primary-600",description:"text-primary-500"}},{variant:"flat",color:"secondary",class:{base:"bg-secondary-50 text-secondary-600 border-secondary-100",closeButton:"text-secondary-400 hover:text-secondary-600",closeIcon:"border border-secondary-400 bg-secondary-100",title:"text-secondary-600",description:"text-secondary-500"}},{variant:"flat",color:"success",class:{base:"bg-success-50 text-success-600 border-success-100",closeButton:"text-success-400 hover:text-success-600",closeIcon:"border border-success-400 bg-success-100",title:"text-success-600",description:"text-success-500"}},{variant:"flat",color:"warning",class:{base:"bg-warning-50 text-warning-600 border-warning-100",closeButton:"text-warning-400 hover:text-warning-600",closeIcon:"border border-warning-400 bg-warning-100",title:"text-warning-600",description:"text-warning-500"}},{variant:"flat",color:"danger",class:{base:"bg-danger-50 text-danger-600 border-danger-100",closeButton:"text-danger-400 hover:text-danger-600",closeIcon:"border border-danger-400 bg-danger-100",title:"text-danger-600",description:"text-danger-500"}},{variant:"bordered",color:"foreground",class:{base:"bg-foreground border-foreground-400 text-background",closeButton:"text-foreground-400 hover:text-foreground-600",closeIcon:"border border-foreground-400 bg-foreground-100",title:"text-background-600",description:"text-background-500"}},{variant:"bordered",color:"primary",class:{base:"border-primary-400 text-primary-600",closeButton:"text-primary-400 hover:text-primary-600",closeIcon:"border border-primary-400 bg-primary-100",title:"text-primary-600",description:"text-primary-500"}},{variant:"bordered",color:"secondary",class:{base:"border-secondary-400 text-secondary-600",closeButton:"text-secondary-400 hover:text-secondary-600",closeIcon:"border border-secondary-400 bg-secondary-100",title:"text-secondary-600",description:"text-secondary-500"}},{variant:"bordered",color:"success",class:{base:"border-success-400 text-success-600",closeButton:"text-success-400 hover:text-success-600",closeIcon:"border border-success-400 bg-success-100",title:"text-success-600",description:"text-success-500"}},{variant:"bordered",color:"warning",class:{base:"border-warning-400 text-warning-600",closeButton:"text-warning-400 hover:text-warning-600",closeIcon:"border border-warning-400 bg-warning-100",title:"text-warning-600",description:"text-warning-500"}},{variant:"bordered",color:"danger",class:{base:"border-danger-400 text-danger-600",closeButton:"text-danger-400 hover:text-danger-600",closeIcon:"border border-danger-400 bg-danger-100",title:"text-danger-600",description:"text-danger-500"}},{variant:"solid",color:"foreground",class:{base:ye.solid.foreground,closeButton:"text-foreground-400 hover:text-foreground-600",closeIcon:"border border-foreground-400 bg-foreground-100",title:"text-background",description:"text-background"}},{variant:"solid",color:"primary",class:{base:ye.solid.primary,closeButton:"text-primary-400 hover:text-primary-600",closeIcon:"border border-primary-400 bg-primary-100",title:"text-primary-foreground",description:"text-primary-foreground"}},{variant:"solid",color:"secondary",class:{base:ye.solid.secondary,closeButton:"text-secondary-400 hover:text-secondary-600",closeIcon:"border border-secondary-400 bg-secondary-100",title:"text-secondary-foreground",description:"text-secondary-foreground"}},{variant:"solid",color:"success",class:{base:ye.solid.success,closeButton:"text-success-400 hover:text-success-600",closeIcon:"border border-success-400 bg-success-100",title:"text-success-foreground",description:"text-success-foreground"}},{variant:"solid",color:"warning",class:{base:ye.solid.warning,closeButton:"text-warning-400 hover:text-warning-600",closeIcon:"border border-warning-400 bg-warning-100",title:"text-warning-foreground",description:"text-warning-foreground"}},{variant:"solid",color:"danger",class:{base:ye.solid.danger,closeButton:"text-danger-400 hover:text-danger-600",closeIcon:"border border-danger-400 bg-danger-100",title:"text-danger-foreground",description:"text-danger-foreground"}}]}),r$=ia({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent select-none",wrapper:["px-1","relative","inline-flex","items-center","justify-start","shrink-0","overflow-hidden","bg-default-200","rounded-full",...K2],thumb:["z-10","flex","items-center","justify-center","bg-white","shadow-small","rounded-full","origin-right","pointer-events-none"],hiddenInput:PT,startContent:"z-0 absolute start-1.5 text-current",endContent:"z-0 absolute end-1.5 text-default-600",thumbIcon:"text-black",label:"relative text-foreground select-none ms-2"},variants:{color:{default:{wrapper:["group-data-[selected=true]:bg-default-400","group-data-[selected=true]:text-default-foreground"]},primary:{wrapper:["group-data-[selected=true]:bg-primary","group-data-[selected=true]:text-primary-foreground"]},secondary:{wrapper:["group-data-[selected=true]:bg-secondary","group-data-[selected=true]:text-secondary-foreground"]},success:{wrapper:["group-data-[selected=true]:bg-success","group-data-[selected=true]:text-success-foreground"]},warning:{wrapper:["group-data-[selected=true]:bg-warning","group-data-[selected=true]:text-warning-foreground"]},danger:{wrapper:["group-data-[selected=true]:bg-danger","data-[selected=true]:text-danger-foreground"]}},size:{sm:{wrapper:"w-10 h-6",thumb:["w-4 h-4 text-tiny","group-data-[selected=true]:ms-4"],endContent:"text-tiny",startContent:"text-tiny",label:"text-small"},md:{wrapper:"w-12 h-7",thumb:["w-5 h-5 text-small","group-data-[selected=true]:ms-5"],endContent:"text-small",startContent:"text-small",label:"text-medium"},lg:{wrapper:"w-14 h-8",thumb:["w-6 h-6 text-medium","group-data-[selected=true]:ms-6"],endContent:"text-medium",startContent:"text-medium",label:"text-large"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{wrapper:"transition-none",thumb:"transition-none"},false:{wrapper:"transition-background",thumb:"transition-all",startContent:["opacity-0","scale-50","transition-transform-opacity","group-data-[selected=true]:scale-100","group-data-[selected=true]:opacity-100"],endContent:["opacity-100","transition-transform-opacity","group-data-[selected=true]:translate-x-3","group-data-[selected=true]:opacity-0"]}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1},compoundVariants:[{disableAnimation:!1,size:"sm",class:{thumb:["group-data-[pressed=true]:w-5","group-data-[selected]:group-data-[pressed]:ml-3"]}},{disableAnimation:!1,size:"md",class:{thumb:["group-data-[pressed=true]:w-6","group-data-[selected]:group-data-[pressed]:ml-4"]}},{disableAnimation:!1,size:"lg",class:{thumb:["group-data-[pressed=true]:w-7","group-data-[selected]:group-data-[pressed]:ml-5"]}}]}),l$=ia({slots:{base:["z-0","relative","bg-transparent","[transform-origin:var(--trigger-anchor-point)]","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",...bd],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-solid outline-transparent","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:ye.solid.foreground},primary:{base:"before:bg-primary",content:ye.solid.primary},secondary:{base:"before:bg-secondary",content:ye.solid.secondary},success:{base:"before:bg-success",content:ye.solid.success},warning:{base:"before:bg-warning",content:ye.solid.warning},danger:{base:"before:bg-danger",content:ye.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{none:{content:"shadow-none"},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"}}]}),qp=ia({slots:{base:"flex flex-col w-full gap-1",labelWrapper:"w-full flex justify-between items-center",label:"",value:"",step:["h-1.5","w-1.5","absolute","rounded-full","bg-default-300/50","data-[in-range=true]:bg-background/50"],mark:["absolute","text-small","cursor-default","opacity-50","data-[in-range=true]:opacity-100"],trackWrapper:"relative flex gap-2",track:["flex","w-full","relative","rounded-full","bg-default-300/50"],filler:"h-full absolute",thumb:["flex","justify-center","items-center","before:absolute","before:w-11","before:h-11","before:rounded-full","after:shadow-small","after:shadow-small","after:bg-background","data-[focused=true]:z-10",bd],startContent:[],endContent:[]},variants:{size:{sm:{label:"text-small",value:"text-small",thumb:"w-5 h-5 after:w-4 after:h-4",step:"data-[in-range=false]:bg-default-200"},md:{thumb:"w-6 h-6 after:w-5 after:h-5",label:"text-small",value:"text-small"},lg:{thumb:"h-7 w-7 after:w-5 after:h-5",step:"w-2 h-2",label:"text-medium",value:"text-medium",mark:"mt-2"}},radius:{none:{thumb:"rounded-none after:rounded-none"},sm:{thumb:"rounded-[calc(var(--heroui-radius-small)/2)] after:rounded-[calc(var(--heroui-radius-small)/3)]"},md:{thumb:"rounded-[calc(var(--heroui-radius-medium)/2)] after:rounded-[calc(var(--heroui-radius-medium)/3)]"},lg:{thumb:"rounded-[calc(var(--heroui-radius-large)/1.5)] after:rounded-[calc(var(--heroui-radius-large)/2)]"},full:{thumb:"rounded-full after:rounded-full"}},color:{foreground:{filler:"bg-foreground",thumb:"bg-foreground"},primary:{filler:"bg-primary",thumb:"bg-primary"},secondary:{filler:"bg-secondary",thumb:"bg-secondary"},success:{filler:"bg-success",thumb:"bg-success"},warning:{filler:"bg-warning",thumb:"bg-warning"},danger:{filler:"bg-danger",thumb:"bg-danger"}},isVertical:{true:{base:"w-auto h-full flex-col-reverse items-center",trackWrapper:"flex-col h-full justify-center items-center",filler:"w-full h-auto",thumb:"left-1/2",track:"h-full border-y-transparent",labelWrapper:"flex-col justify-center items-center",step:["left-1/2","-translate-x-1/2","translate-y-1/2"],mark:["left-1/2","ml-1","translate-x-1/2","translate-y-1/2"]},false:{thumb:"top-1/2",trackWrapper:"items-center",track:"border-x-transparent",step:["top-1/2","-translate-x-1/2","-translate-y-1/2"],mark:["top-1/2","mt-1","-translate-x-1/2","translate-y-1/2"]}},isDisabled:{false:{thumb:["cursor-grab","data-[dragging=true]:cursor-grabbing"]},true:{base:"opacity-disabled",thumb:"cursor-default"}},hasMarks:{true:{base:"mb-5",mark:"cursor-pointer"},false:{}},showOutline:{true:{thumb:"ring-2 ring-background"},false:{thumb:"ring-transparent border-0"}},hideValue:{true:{value:"sr-only"}},hideThumb:{true:{thumb:"sr-only",track:"cursor-pointer"}},hasSingleThumb:{true:{},false:{}},disableAnimation:{true:{thumb:"data-[dragging=true]:after:scale-100"},false:{thumb:"after:transition-all motion-reduce:after:transition-none",mark:"transition-opacity motion-reduce:transition-none"}},disableThumbScale:{true:{},false:{thumb:"data-[dragging=true]:after:scale-80"}}},compoundVariants:[{size:["sm","md"],showOutline:!1,class:{thumb:"shadow-small"}},{size:"sm",color:"foreground",class:{step:"data-[in-range=true]:bg-foreground"}},{size:"sm",color:"primary",class:{step:"data-[in-range=true]:bg-primary"}},{size:"sm",color:"secondary",class:{step:"data-[in-range=true]:bg-secondary"}},{size:"sm",color:"success",class:{step:"data-[in-range=true]:bg-success"}},{size:"sm",color:"warning",class:{step:"data-[in-range=true]:bg-warning"}},{size:"sm",color:"danger",class:{step:"data-[in-range=true]:bg-danger"}},{size:"sm",isVertical:!1,class:{track:"h-1 my-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-x-[calc(theme(spacing.5)/2)]"}},{size:"md",isVertical:!1,class:{track:"h-3 my-[calc((theme(spacing.6)-theme(spacing.3))/2)] border-x-[calc(theme(spacing.6)/2)]"}},{size:"lg",isVertical:!1,class:{track:"h-7 my-[calc((theme(spacing.7)-theme(spacing.5))/2)] border-x-[calc(theme(spacing.7)/2)]"}},{size:"sm",isVertical:!0,class:{track:"w-1 mx-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-y-[calc(theme(spacing.5)/2)]"}},{size:"md",isVertical:!0,class:{track:"w-3 mx-[calc((theme(spacing.6)-theme(spacing.3))/2)] border-y-[calc(theme(spacing.6)/2)]"}},{size:"lg",isVertical:!0,class:{track:"w-7 mx-[calc((theme(spacing.7)-theme(spacing.5))/2)] border-y-[calc(theme(spacing.7)/2)]"}},{color:"foreground",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-foreground data-[fill-end=true]:border-e-foreground"}},{color:"primary",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-primary data-[fill-end=true]:border-e-primary"}},{color:"secondary",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-secondary data-[fill-end=true]:border-e-secondary"}},{color:"success",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-success data-[fill-end=true]:border-e-success"}},{color:"warning",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-warning data-[fill-end=true]:border-e-warning"}},{color:"danger",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-danger data-[fill-end=true]:border-e-danger"}},{color:"foreground",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-foreground data-[fill-end=true]:border-t-foreground"}},{color:"primary",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-primary data-[fill-end=true]:border-t-primary"}},{color:"secondary",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-secondary data-[fill-end=true]:border-t-secondary"}},{color:"success",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-success data-[fill-end=true]:border-t-success"}},{color:"warning",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-warning data-[fill-end=true]:border-t-warning"}},{color:"danger",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-danger data-[fill-end=true]:border-t-danger"}}],defaultVariants:{size:"md",color:"primary",radius:"full",hideValue:!1,hideThumb:!1,isDisabled:!1,disableThumbScale:!1,showOutline:!1}}),o$=ia({slots:{base:"group flex flex-col data-[hidden=true]:hidden",label:["absolute","z-10","pointer-events-none","origin-top-left","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-xs px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-solid outline-transparent placeholder:text-foreground-500 focus-visible:outline-solid outline-transparent","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5","data-[type=color]:rounded-none","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-solid outline-transparent","select-none","opacity-0","cursor-pointer","active:!opacity-70","rounded-full",...bd],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-200","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 hover:!opacity-100"},lg:{label:"text-medium",inputWrapper:"h-12 min-h-12 rounded-large",input:"text-medium",clearButton:"text-large hover:!opacity-100"}},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"},"outside-top":{mainWrapper:"flex flex-col",label:"relative text-foreground pb-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,translate,scale]"],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,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:[...K2]}},{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%_+_var(--heroui-font-size-tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-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%_+_var(--heroui-font-size-small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-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%_+_var(--heroui-font-size-small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-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%_+_var(--heroui-font-size-small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-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"]}},{isClearable:!0,isDisabled:!0,class:{clearButton:"peer-data-[filled=true]:pointer-events-none"}}]}),kT=ia({base:"flex flex-col gap-2 items-start"}),I2=ia({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-solid outline-transparent","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent","transform-gpu data-[pressed=true]:scale-[0.97]","cursor-pointer",...bd],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:ye.solid.default},{variant:"solid",color:"primary",class:ye.solid.primary},{variant:"solid",color:"secondary",class:ye.solid.secondary},{variant:"solid",color:"success",class:ye.solid.success},{variant:"solid",color:"warning",class:ye.solid.warning},{variant:"solid",color:"danger",class:ye.solid.danger},{variant:"shadow",color:"default",class:ye.shadow.default},{variant:"shadow",color:"primary",class:ye.shadow.primary},{variant:"shadow",color:"secondary",class:ye.shadow.secondary},{variant:"shadow",color:"success",class:ye.shadow.success},{variant:"shadow",color:"warning",class:ye.shadow.warning},{variant:"shadow",color:"danger",class:ye.shadow.danger},{variant:"bordered",color:"default",class:ye.bordered.default},{variant:"bordered",color:"primary",class:ye.bordered.primary},{variant:"bordered",color:"secondary",class:ye.bordered.secondary},{variant:"bordered",color:"success",class:ye.bordered.success},{variant:"bordered",color:"warning",class:ye.bordered.warning},{variant:"bordered",color:"danger",class:ye.bordered.danger},{variant:"flat",color:"default",class:ye.flat.default},{variant:"flat",color:"primary",class:ye.flat.primary},{variant:"flat",color:"secondary",class:ye.flat.secondary},{variant:"flat",color:"success",class:ye.flat.success},{variant:"flat",color:"warning",class:ye.flat.warning},{variant:"flat",color:"danger",class:ye.flat.danger},{variant:"faded",color:"default",class:ye.faded.default},{variant:"faded",color:"primary",class:ye.faded.primary},{variant:"faded",color:"secondary",class:ye.faded.secondary},{variant:"faded",color:"success",class:ye.faded.success},{variant:"faded",color:"warning",class:ye.faded.warning},{variant:"faded",color:"danger",class:ye.faded.danger},{variant:"light",color:"default",class:[ye.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[ye.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[ye.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[ye.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[ye.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[ye.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:[ye.ghost.default,"data-[hover=true]:!bg-default"]},{variant:"ghost",color:"primary",class:[ye.ghost.primary,"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"]},{variant:"ghost",color:"secondary",class:[ye.ghost.secondary,"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"]},{variant:"ghost",color:"success",class:[ye.ghost.success,"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"]},{variant:"ghost",color:"warning",class:[ye.ghost.warning,"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"]},{variant:"ghost",color:"danger",class:[ye.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:so.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:so.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:so.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:so.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:so.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:so.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"}]});ia({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});const DT="modulepreload",zT=function(e){return"/static/soundSpace/"+e},i$={},vd=function(n,r,l){let i=Promise.resolve();if(r&&r.length>0){let b=function(m){return Promise.all(m.map($=>Promise.resolve($).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),p=d?.nonce||d?.getAttribute("nonce");i=b(r.map(m=>{if(m=zT(m),m in i$)return;i$[m]=!0;const $=m.endsWith(".css"),x=$?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${x}`))return;const S=document.createElement("link");if(S.rel=$?"stylesheet":DT,$||(S.as="script"),S.crossOrigin="",S.href=m,p&&S.setAttribute("nonce",p),document.head.appendChild(S),$)return new Promise((C,A)=>{S.addEventListener("load",C),S.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${m}`)))})}))}function u(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return i.then(d=>{for(const p of d||[])p.status==="rejected"&&u(p.reason);return n().catch(u)})};var OT=e=>T.jsx("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",...e,children:T.jsx("path",{d:` M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2Z M16.78 9.7L11.11 15.37C10.97 15.51 10.78 15.59 10.58 15.59C10.38 15.59 10.19 15.51 10.05 15.37L7.22 12.54 C6.93 12.25 6.93 11.77 7.22 11.48C7.51 11.19 7.99 11.19 8.28 11.48L10.58 13.78L15.72 8.64 @@ -66,13 +66,13 @@ Error generating stack: `+s.message+` touch-action: pan-x pan-y pinch-zoom; } } - `.trim(),g.head.prepend(k)},[S]),v.useEffect(()=>{let g=L.current;return()=>{var k;x||f$((k=g.target)!==null&&k!==void 0?k:void 0);for(let U of g.disposables)U();g.disposables=[]}},[x]),{isPressed:b||A,pressProps:ko(C,ue,{[v$]:!0})}}function n0(e){return e.tagName==="A"&&e.hasAttribute("href")}function Zp(e,n){const{key:r,code:l}=e,i=n,u=i.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||l==="Space")&&!(i instanceof ll(i).HTMLInputElement&&!g5(i,r)||i instanceof ll(i).HTMLTextAreaElement||i.isContentEditable)&&!((u==="link"||!u&&n0(i))&&r!=="Enter")}function Ir(e,n){let r=n.clientX,l=n.clientY;return{currentTarget:e,shiftKey:n.shiftKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,altKey:n.altKey,clientX:r,clientY:l}}function KS(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!n0(e)}function m$(e,n){return e instanceof HTMLInputElement?!g5(e,n):KS(e)}const IS=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function g5(e,n){return e.type==="checkbox"||e.type==="radio"?n===" ":IS.has(e.type)}let Ps=null,qS=new Set,Qi=new Map,ol=!1,Yb=!1;function a0(e,n){for(let r of qS)r(e,n)}function YS(e){return!(e.metaKey||!cs()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Bc(e){ol=!0,YS(e)&&(Ps="keyboard",a0("keyboard",e))}function go(e){Ps="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ol=!0,a0("pointer",e))}function h5(e){f5(e)&&(ol=!0,Ps="virtual")}function $5(e){e.target===window||e.target===document||Vc||!e.isTrusted||(!ol&&!Yb&&(Ps="virtual",a0("virtual",e)),ol=!1,Yb=!1)}function y5(){Vc||(ol=!1,Yb=!0)}function g$(e){if(typeof window>"u"||typeof document>"u"||Qi.get(ll(e)))return;const n=ll(e),r=Rn(e);let l=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){ol=!0,l.apply(this,arguments)},r.addEventListener("keydown",Bc,!0),r.addEventListener("keyup",Bc,!0),r.addEventListener("click",h5,!0),n.addEventListener("focus",$5,!0),n.addEventListener("blur",y5,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",go,!0),r.addEventListener("pointermove",go,!0),r.addEventListener("pointerup",go,!0)),n.addEventListener("beforeunload",()=>{x5(e)},{once:!0}),Qi.set(n,{focus:l})}const x5=(e,n)=>{const r=ll(e),l=Rn(e);n&&l.removeEventListener("DOMContentLoaded",n),Qi.has(r)&&(r.HTMLElement.prototype.focus=Qi.get(r).focus,l.removeEventListener("keydown",Bc,!0),l.removeEventListener("keyup",Bc,!0),l.removeEventListener("click",h5,!0),r.removeEventListener("focus",$5,!0),r.removeEventListener("blur",y5,!1),typeof PointerEvent<"u"&&(l.removeEventListener("pointerdown",go,!0),l.removeEventListener("pointermove",go,!0),l.removeEventListener("pointerup",go,!0)),Qi.delete(r))};function WS(e){const n=Rn(e);let r;return n.readyState!=="loading"?g$(e):(r=()=>{g$(e)},n.addEventListener("DOMContentLoaded",r)),()=>x5(e,r)}typeof document<"u"&&WS();function XS(){return Ps}function ZS(e){const n=Rn(e),r=_c(n);if(XS()==="virtual"){let l=r;c5(()=>{_c(n)===l&&e.isConnected&&Do(e)})}else Do(e)}function QS(e){let{isDisabled:n,onFocus:r,onBlur:l,onFocusChange:i}=e;const u=v.useCallback(b=>{if(b.target===b.currentTarget)return l&&l(b),i&&i(!1),!0},[l,i]),d=VS(u),p=v.useCallback(b=>{const m=Rn(b.target),$=m?_c(m):_c();b.target===b.currentTarget&&$===un(b.nativeEvent)&&(r&&r(b),i&&i(!0),d(b))},[i,r,d]);return{focusProps:{onFocus:!n&&(r||i||l)?p:void 0,onBlur:!n&&(l||i)?u:void 0}}}function h$(e){if(!e)return;let n=!0;return r=>{let l={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1},isPropagationStopped(){return n}};e(l),n&&r.stopPropagation()}}function JS(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:h$(e.onKeyDown),onKeyUp:h$(e.onKeyUp)}}}let e9=ie.createContext(null);function t9(e){let n=v.useContext(e9)||{};d5(n,e);let{ref:r,...l}=n;return l}function n9(e,n){let{focusProps:r}=QS(e),{keyboardProps:l}=JS(e),i=ko(r,l),u=t9(n),d=e.isDisabled?{}:u,p=v.useRef(e.autoFocus);v.useEffect(()=>{p.current&&n.current&&ZS(n.current),p.current=!1},[n]);let b=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(b=void 0),{focusableProps:ko({...i,tabIndex:b},d)}}function a9(e,n){let{elementType:r="button",isDisabled:l,onPress:i,onPressStart:u,onPressEnd:d,onPressUp:p,onPressChange:b,preventFocusOnPress:m,allowFocusWhenDisabled:$,onClick:x,href:S,target:C,rel:A,type:w="button",allowTextSelectionOnPress:L}=e,P;r==="button"?P={type:w,disabled:l}:P={role:"button",href:r==="a"&&!l?S:void 0,target:r==="a"?C:void 0,type:r==="input"?w:void 0,disabled:r==="input"?l:void 0,"aria-disabled":!l||r==="input"?void 0:l,rel:r==="a"?A:void 0};let{pressProps:N,isPressed:B}=GS({onClick:x,onPressStart:u,onPressEnd:d,onPressUp:p,onPressChange:b,onPress:i,isDisabled:l,preventFocusOnPress:m,allowTextSelectionOnPress:L,ref:n}),{focusableProps:H}=n9(e,n);$&&(H.tabIndex=l?-1:H.tabIndex);let I=ko(H,N,ES(e,{labelable:!0}));return{isPressed:B,buttonProps:ko(P,I,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}var r9=()=>vd(()=>import("./index-BTt_FDEC.js"),__vite__mapDeps([0,1])).then(e=>e.default),E5=e=>{const{ripples:n=[],motionProps:r,color:l="currentColor",style:i,onClear:u}=e;return T.jsx(T.Fragment,{children:n.map(d=>{const p=Wy(.01*d.size,.2,d.size>100?.75:.5);return T.jsx(cd,{features:r9,children:T.jsx(ud,{mode:"popLayout",children:T.jsx(pd.span,{animate:{transform:"scale(2)",opacity:0},className:"heroui-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:d.y,left:d.x,width:`${d.size}px`,height:`${d.size}px`,...i},transition:{duration:p},onAnimationComplete:()=>{u(d.key)},...r})})},d.key)})})};E5.displayName="HeroUI.Ripple";var l9=E5;function o9(e={}){const[n,r]=v.useState([]),l=v.useCallback(u=>{const d=u.target,p=Math.max(d.clientWidth,d.clientHeight);r(b=>[...b,{key:Yy(b.length.toString()),size:p,x:u.x-p/2,y:u.y-p/2}])},[]),i=v.useCallback(u=>{r(d=>d.filter(p=>p.key!==u))},[]);return{ripples:n,onClear:i,onPress:l,...e}}function i9(e){var n,r,l,i,u,d,p,b,m;const $=UT(),x=oa(),S=!!$,{ref:C,as:A,children:w,startContent:L,endContent:P,autoFocus:N,className:B,spinner:H,isLoading:I=!1,disableRipple:G=!1,fullWidth:J=(n=$?.fullWidth)!=null?n:!1,radius:W=$?.radius,size:ne=(r=$?.size)!=null?r:"md",color:ue=(l=$?.color)!=null?l:"default",variant:g=(i=$?.variant)!=null?i:"solid",disableAnimation:k=(d=(u=$?.disableAnimation)!=null?u:x?.disableAnimation)!=null?d:!1,isDisabled:U=(p=$?.isDisabled)!=null?p:!1,isIconOnly:E=(b=$?.isIconOnly)!=null?b:!1,spinnerPlacement:_="start",onPress:h,onClick:D,...O}=e,q=A||"button",re=typeof q=="string",z=Oa(C),j=(m=G||x?.disableRipple)!=null?m:k,{isFocusVisible:Z,isFocused:K,focusProps:se}=dS({autoFocus:N}),oe=U||I,ce=v.useMemo(()=>I2({size:ne,color:ue,variant:g,radius:W,fullWidth:J,isDisabled:oe,isInGroup:S,disableAnimation:k,isIconOnly:E,className:B}),[ne,ue,g,W,J,oe,S,E,k,B]),{onPress:we,onClear:he,ripples:me}=o9(),nt=v.useCallback(Ae=>{j||oe||k||z.current&&we(Ae)},[j,oe,k,z,we]),{buttonProps:Ke,isPressed:Ie}=a9({elementType:A,isDisabled:oe,onPress:Ao(h,nt),onClick:D,...O},z),{isHovered:qe,hoverProps:at}=cS({isDisabled:oe}),ge=v.useCallback((Ae={})=>({"data-disabled":ve(oe),"data-focus":ve(K),"data-pressed":ve(Ie),"data-focus-visible":ve(Z),"data-hover":ve(qe),"data-loading":ve(I),...it(Ke,se,at,nl(O,{enabled:re}),nl(Ae)),className:ce}),[I,oe,K,Ie,re,Z,qe,Ke,se,at,O,ce]),pt=Ae=>v.isValidElement(Ae)?v.cloneElement(Ae,{"aria-hidden":!0,focusable:!1}):null,At=pt(L),bt=pt(P),Ut=v.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[ne],[ne]),kt=v.useCallback(()=>({ripples:me,onClear:he}),[me,he]);return{Component:q,children:w,domRef:z,spinner:H,styles:ce,startContent:At,endContent:bt,isLoading:I,spinnerPlacement:_,spinnerSize:Ut,disableRipple:j,getButtonProps:ge,getRippleProps:kt,isIconOnly:E}}function s9(e){var n,r;const[l,i]=Ho(e,n$.variantKeys),u=oa(),d=(r=(n=e?.variant)!=null?n:u?.spinnerVariant)!=null?r:"default",{children:p,className:b,classNames:m,label:$,...x}=l,S=v.useMemo(()=>n$({...i}),[Ro(i)]),C=ot(m?.base,b),A=$||p,w=v.useMemo(()=>A&&typeof A=="string"?A:x["aria-label"]?"":"Loading",[p,A,x["aria-label"]]),L=v.useCallback(()=>({"aria-label":w,className:S.base({class:C}),...x}),[w,S,C,x]);return{label:A,slots:S,classNames:m,variant:d,getSpinnerProps:L}}var w5=ja((e,n)=>{const{slots:r,classNames:l,label:i,variant:u,getSpinnerProps:d}=s9({...e});return u==="wave"||u==="dots"?T.jsxs("div",{ref:n,...d(),children:[T.jsx("div",{className:r.wrapper({class:l?.wrapper}),children:[...new Array(3)].map((p,b)=>T.jsx("i",{className:r.dots({class:l?.dots}),style:{"--dot-index":b}},`dot-${b}`))}),i&&T.jsx("span",{className:r.label({class:l?.label}),children:i})]}):u==="simple"?T.jsxs("div",{ref:n,...d(),children:[T.jsxs("svg",{className:r.wrapper({class:l?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[T.jsx("circle",{className:r.circle1({class:l?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),T.jsx("path",{className:r.circle2({class:l?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),i&&T.jsx("span",{className:r.label({class:l?.label}),children:i})]}):u==="spinner"?T.jsxs("div",{ref:n,...d(),children:[T.jsx("div",{className:r.wrapper({class:l?.wrapper}),children:[...new Array(12)].map((p,b)=>T.jsx("i",{className:r.spinnerBars({class:l?.spinnerBars}),style:{"--bar-index":b}},`star-${b}`))}),i&&T.jsx("span",{className:r.label({class:l?.label}),children:i})]}):T.jsxs("div",{ref:n,...d(),children:[T.jsxs("div",{className:r.wrapper({class:l?.wrapper}),children:[T.jsx("i",{className:r.circle1({class:l?.circle1})}),T.jsx("i",{className:r.circle2({class:l?.circle2})})]}),i&&T.jsx("span",{className:r.label({class:l?.label}),children:i})]})});w5.displayName="HeroUI.Spinner";var r0=w5,T5=ja((e,n)=>{const{Component:r,domRef:l,children:i,spinnerSize:u,spinner:d=T.jsx(r0,{color:"current",size:u}),spinnerPlacement:p,startContent:b,endContent:m,isLoading:$,disableRipple:x,getButtonProps:S,getRippleProps:C,isIconOnly:A}=i9({...e,ref:n});return T.jsxs(r,{ref:l,...S(),children:[b,$&&p==="start"&&d,$&&A?null:i,$&&p==="end"&&d,m,!x&&T.jsx(l9,{...C()})]})});T5.displayName="HeroUI.Button";var uo=T5;const l0=typeof document<"u"?ie.useLayoutEffect:()=>{};var Qp;const u9=(Qp=ie.useInsertionEffect)!==null&&Qp!==void 0?Qp:l0;function Da(e){const n=v.useRef(null);return u9(()=>{n.current=e},[e]),v.useCallback((...r)=>{const l=n.current;return l?.(...r)},[])}let Wb=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{Wb.delete(e)});function c9(e,n){if(e===n)return e;let r=Wb.get(e);if(r)return r.forEach(i=>i.current=n),n;let l=Wb.get(n);return l?(l.forEach(i=>i.current=e),e):n}function S5(...e){return(...n)=>{for(let r of e)typeof r=="function"&&r(...n)}}const Hn=e=>{var n;return(n=e?.ownerDocument)!==null&&n!==void 0?n:document},il=e=>e&&"window"in e&&e.window===e?e:Hn(e).defaultView||window;function d9(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function f9(e){return d9(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function na(e,n){if(!Ve())return n&&e?e.contains(n):!1;if(!e||!n)return!1;let r=n;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:f9(r)?r=r.host:r=r.parentNode}return!1}const Uc=(e=document)=>{var n;if(!Ve())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((n=r.shadowRoot)===null||n===void 0)&&n.activeElement);)r=r.shadowRoot.activeElement;return r};function cn(e){return Ve()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function C5(e){var n,r,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(n=0;n=65&&i.charCodeAt(2)<=90?n[i]=S5(u,d):(i==="className"||i==="UNSAFE_className")&&typeof u=="string"&&typeof d=="string"?n[i]=p9(u,d):i==="id"&&u&&d?n.id=c9(u,d):n[i]=d!==void 0?d:u}}return n}const b9=new Set(["id"]),v9=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),m9=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),g9=new Set(["dir","lang","hidden","inert","translate"]),$$=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),h9=/^(data-.*)$/;function $9(e,n={}){let{labelable:r,isLink:l,global:i,events:u=i,propNames:d}=n,p={};for(const b in e)Object.prototype.hasOwnProperty.call(e,b)&&(b9.has(b)||r&&v9.has(b)||l&&m9.has(b)||i&&g9.has(b)||u&&$$.has(b)||b.endsWith("Capture")&&$$.has(b.slice(0,-7))||d?.has(b)||h9.test(b))&&(p[b]=e[b]);return p}function zo(e){if(y9())e.focus({preventScroll:!0});else{let n=x9(e);e.focus(),E9(n)}}let oc=null;function y9(){if(oc==null){oc=!1;try{document.createElement("div").focus({get preventScroll(){return oc=!0,!0}})}catch{}}return oc}function x9(e){let n=e.parentNode,r=[],l=document.scrollingElement||document.documentElement;for(;n instanceof HTMLElement&&n!==l;)(n.offsetHeight"u"||window.navigator==null)return!1;let r=(n=window.navigator.userAgentData)===null||n===void 0?void 0:n.brands;return Array.isArray(r)&&r.some(l=>e.test(l.brand))||e.test(window.navigator.userAgent)}function o0(e){var n;return typeof window<"u"&&window.navigator!=null?e.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function yr(e){let n=null;return()=>(n==null&&(n=e()),n)}const fs=yr(function(){return o0(/^Mac/i)}),w9=yr(function(){return o0(/^iPhone/i)}),M5=yr(function(){return o0(/^iPad/i)||fs()&&navigator.maxTouchPoints>1}),L5=yr(function(){return w9()||M5()}),T9=yr(function(){return gd(/AppleWebKit/i)&&!S9()}),S9=yr(function(){return gd(/Chrome/i)}),P5=yr(function(){return gd(/Android/i)}),C9=yr(function(){return gd(/Firefox/i)});function ps(e,n,r=!0){var l,i;let{metaKey:u,ctrlKey:d,altKey:p,shiftKey:b}=n;C9()&&(!((i=window.event)===null||i===void 0||(l=i.type)===null||l===void 0)&&l.startsWith("key"))&&e.target==="_blank"&&(fs()?u=!0:d=!0);let m=T9()&&fs()&&!M5()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:u,ctrlKey:d,altKey:p,shiftKey:b}):new MouseEvent("click",{metaKey:u,ctrlKey:d,altKey:p,shiftKey:b,bubbles:!0,cancelable:!0});ps.isOpening=r,zo(e),e.dispatchEvent(m),ps.isOpening=!1}ps.isOpening=!1;let pr=new Map,Xb=new Set;function y$(){if(typeof window>"u")return;function e(l){return"propertyName"in l}let n=l=>{if(!e(l)||!l.target)return;let i=pr.get(l.target);i||(i=new Set,pr.set(l.target,i),l.target.addEventListener("transitioncancel",r,{once:!0})),i.add(l.propertyName)},r=l=>{if(!e(l)||!l.target)return;let i=pr.get(l.target);if(i&&(i.delete(l.propertyName),i.size===0&&(l.target.removeEventListener("transitioncancel",r),pr.delete(l.target)),pr.size===0)){for(let u of Xb)u();Xb.clear()}};document.body.addEventListener("transitionrun",n),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?y$():document.addEventListener("DOMContentLoaded",y$));function M9(){for(const[e]of pr)"isConnected"in e&&!e.isConnected&&pr.delete(e)}function A5(e){requestAnimationFrame(()=>{M9(),pr.size===0?e():Xb.add(e)})}function L9(){let e=v.useRef(new Map),n=v.useCallback((i,u,d,p)=>{let b=p?.once?(...m)=>{e.current.delete(d),d(...m)}:d;e.current.set(d,{type:u,eventTarget:i,fn:b,options:p}),i.addEventListener(u,b,p)},[]),r=v.useCallback((i,u,d,p)=>{var b;let m=((b=e.current.get(d))===null||b===void 0?void 0:b.fn)||d;i.removeEventListener(u,m,p),e.current.delete(d)},[]),l=v.useCallback(()=>{e.current.forEach((i,u)=>{r(i.eventTarget,i.type,u,i.options)})},[r]);return v.useEffect(()=>l,[l]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:l}}function k5(e,n){l0(()=>{if(e&&e.ref&&n)return e.ref.current=n.current,()=>{e.ref&&(e.ref.current=null)}})}function D5(e){return e.pointerType===""&&e.isTrusted?!0:P5()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function P9(e){return!P5()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function A9(e,n,r){let l=Da(()=>{r&&r(n)});v.useEffect(()=>{var i;let u=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return u?.addEventListener("reset",l),()=>{u?.removeEventListener("reset",l)}},[e,l])}const k9=typeof Element<"u"&&"checkVisibility"in Element.prototype;function D9(e){const n=il(e);if(!(e instanceof n.HTMLElement)&&!(e instanceof n.SVGElement))return!1;let{display:r,visibility:l}=e.style,i=r!=="none"&&l!=="hidden"&&l!=="collapse";if(i){const{getComputedStyle:u}=e.ownerDocument.defaultView;let{display:d,visibility:p}=u(e);i=d!=="none"&&p!=="hidden"&&p!=="collapse"}return i}function z9(e,n){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&n&&n.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function z5(e,n){return k9?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&D9(e)&&z9(e,n)&&(!e.parentElement||z5(e.parentElement,e))}const O5=["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]:not([contenteditable^="false"])',"permission"],O9=O5.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";O5.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function N9(e){return e.matches(O9)&&z5(e)&&!j9(e)}function j9(e){let n=e;for(;n!=null;){if(n instanceof n.ownerDocument.defaultView.HTMLElement&&n.inert)return!0;n=n.parentElement}return!1}function N5(e){let n=e;return n.nativeEvent=e,n.isDefaultPrevented=()=>n.defaultPrevented,n.isPropagationStopped=()=>n.cancelBubble,n.persist=()=>{},n}function R9(e,n){Object.defineProperty(e,"target",{value:n}),Object.defineProperty(e,"currentTarget",{value:n})}function H9(e){let n=v.useRef({isFocused:!1,observer:null});l0(()=>{const l=n.current;return()=>{l.observer&&(l.observer.disconnect(),l.observer=null)}},[]);let r=Da(l=>{e?.(l)});return v.useCallback(l=>{if(l.target instanceof HTMLButtonElement||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement||l.target instanceof HTMLSelectElement){n.current.isFocused=!0;let i=l.target,u=d=>{if(n.current.isFocused=!1,i.disabled){let p=N5(d);r(p)}n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};i.addEventListener("focusout",u,{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&i.disabled){var d;(d=n.current.observer)===null||d===void 0||d.disconnect();let p=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:p})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:p}))}}),n.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let Fc=!1;function _9(e){for(;e&&!N9(e);)e=e.parentElement;let n=il(e),r=n.document.activeElement;if(!r||r===e)return;Fc=!0;let l=!1,i=$=>{($.target===r||l)&&$.stopImmediatePropagation()},u=$=>{($.target===r||l)&&($.stopImmediatePropagation(),!e&&!l&&(l=!0,zo(r),b()))},d=$=>{($.target===e||l)&&$.stopImmediatePropagation()},p=$=>{($.target===e||l)&&($.stopImmediatePropagation(),l||(l=!0,zo(r),b()))};n.addEventListener("blur",i,!0),n.addEventListener("focusout",u,!0),n.addEventListener("focusin",p,!0),n.addEventListener("focus",d,!0);let b=()=>{cancelAnimationFrame(m),n.removeEventListener("blur",i,!0),n.removeEventListener("focusout",u,!0),n.removeEventListener("focusin",p,!0),n.removeEventListener("focus",d,!0),Fc=!1,l=!1},m=requestAnimationFrame(b);return b}let fo="default",Zb="",Ac=new WeakMap;function V9(e){if(L5()){if(fo==="default"){const n=Hn(e);Zb=n.documentElement.style.webkitUserSelect,n.documentElement.style.webkitUserSelect="none"}fo="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let n="userSelect"in e.style?"userSelect":"webkitUserSelect";Ac.set(e,e.style[n]),e.style[n]="none"}}function x$(e){if(L5()){if(fo!=="disabled")return;fo="restoring",setTimeout(()=>{A5(()=>{if(fo==="restoring"){const n=Hn(e);n.documentElement.style.webkitUserSelect==="none"&&(n.documentElement.style.webkitUserSelect=Zb||""),Zb="",fo="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ac.has(e)){let n=Ac.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=n),e.getAttribute("style")===""&&e.removeAttribute("style"),Ac.delete(e)}}const j5=ie.createContext({register:()=>{}});j5.displayName="PressResponderContext";function B9(e){let n=v.useContext(j5);if(n){let{register:r,...l}=n;e=tl(l,e),r()}return k5(n,e.ref),e}var ic=new WeakMap;let sc=class{continuePropagation(){la(this,ic,!1)}get shouldStopPropagation(){return Ms(this,ic)}constructor(n,r,l,i){ws(this,ic,{writable:!0,value:void 0}),la(this,ic,!0);var u;let d=(u=i?.target)!==null&&u!==void 0?u:l.currentTarget;const p=d?.getBoundingClientRect();let b,m=0,$,x=null;l.clientX!=null&&l.clientY!=null&&($=l.clientX,x=l.clientY),p&&($!=null&&x!=null?(b=$-p.left,m=x-p.top):(b=p.width/2,m=p.height/2)),this.type=n,this.pointerType=r,this.target=l.currentTarget,this.shiftKey=l.shiftKey,this.metaKey=l.metaKey,this.ctrlKey=l.ctrlKey,this.altKey=l.altKey,this.x=b,this.y=m}};const E$=Symbol("linkClicked"),w$="react-aria-pressable-style",T$="data-react-aria-pressable";function S$(e){let{onPress:n,onPressChange:r,onPressStart:l,onPressEnd:i,onPressUp:u,onClick:d,isDisabled:p,isPressed:b,preventFocusOnPress:m,shouldCancelOnPointerExit:$,allowTextSelectionOnPress:x,ref:S,...C}=B9(e),[A,w]=v.useState(!1),L=v.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:P,removeAllGlobalListeners:N}=L9(),B=Da((g,k)=>{let U=L.current;if(p||U.didFirePressStart)return!1;let E=!0;if(U.isTriggeringEvent=!0,l){let _=new sc("pressstart",k,g);l(_),E=_.shouldStopPropagation}return r&&r(!0),U.isTriggeringEvent=!1,U.didFirePressStart=!0,w(!0),E}),H=Da((g,k,U=!0)=>{let E=L.current;if(!E.didFirePressStart)return!1;E.didFirePressStart=!1,E.isTriggeringEvent=!0;let _=!0;if(i){let h=new sc("pressend",k,g);i(h),_=h.shouldStopPropagation}if(r&&r(!1),w(!1),n&&U&&!p){let h=new sc("press",k,g);n(h),_&&(_=h.shouldStopPropagation)}return E.isTriggeringEvent=!1,_}),I=Da((g,k)=>{let U=L.current;if(p)return!1;if(u){U.isTriggeringEvent=!0;let E=new sc("pressup",k,g);return u(E),U.isTriggeringEvent=!1,E.shouldStopPropagation}return!0}),G=Da(g=>{let k=L.current;if(k.isPressed&&k.target){k.didFirePressStart&&k.pointerType!=null&&H(qr(k.target,g),k.pointerType,!1),k.isPressed=!1,k.isOverTarget=!1,k.activePointerId=null,k.pointerType=null,N(),x||x$(k.target);for(let U of k.disposables)U();k.disposables=[]}}),J=Da(g=>{$&&G(g)}),W=Da(g=>{p||d?.(g)}),ne=Da((g,k)=>{if(!p&&d){let U=new MouseEvent("click",g);R9(U,k),d(N5(U))}}),ue=v.useMemo(()=>{let g=L.current,k={onKeyDown(E){if(Jp(E.nativeEvent,E.currentTarget)&&na(E.currentTarget,cn(E.nativeEvent))){var _;C$(cn(E.nativeEvent),E.key)&&E.preventDefault();let h=!0;if(!g.isPressed&&!E.repeat){g.target=E.currentTarget,g.isPressed=!0,g.pointerType="keyboard",h=B(E,"keyboard");let D=E.currentTarget,O=q=>{Jp(q,D)&&!q.repeat&&na(D,cn(q))&&g.target&&I(qr(g.target,q),"keyboard")};P(Hn(E.currentTarget),"keyup",S5(O,U),!0)}h&&E.stopPropagation(),E.metaKey&&fs()&&((_=g.metaKeyEvents)===null||_===void 0||_.set(E.key,E.nativeEvent))}else E.key==="Meta"&&(g.metaKeyEvents=new Map)},onClick(E){if(!(E&&!na(E.currentTarget,cn(E.nativeEvent)))&&E&&E.button===0&&!g.isTriggeringEvent&&!ps.isOpening){let _=!0;if(p&&E.preventDefault(),!g.ignoreEmulatedMouseEvents&&!g.isPressed&&(g.pointerType==="virtual"||D5(E.nativeEvent))){let h=B(E,"virtual"),D=I(E,"virtual"),O=H(E,"virtual");W(E),_=h&&D&&O}else if(g.isPressed&&g.pointerType!=="keyboard"){let h=g.pointerType||E.nativeEvent.pointerType||"virtual",D=I(qr(E.currentTarget,E),h),O=H(qr(E.currentTarget,E),h,!0);_=D&&O,g.isOverTarget=!1,W(E),G(E)}g.ignoreEmulatedMouseEvents=!1,_&&E.stopPropagation()}}},U=E=>{var _;if(g.isPressed&&g.target&&Jp(E,g.target)){var h;C$(cn(E),E.key)&&E.preventDefault();let O=cn(E),q=na(g.target,cn(E));H(qr(g.target,E),"keyboard",q),q&&ne(E,g.target),N(),E.key!=="Enter"&&i0(g.target)&&na(g.target,O)&&!E[E$]&&(E[E$]=!0,ps(g.target,E,!1)),g.isPressed=!1,(h=g.metaKeyEvents)===null||h===void 0||h.delete(E.key)}else if(E.key==="Meta"&&(!((_=g.metaKeyEvents)===null||_===void 0)&&_.size)){var D;let O=g.metaKeyEvents;g.metaKeyEvents=void 0;for(let q of O.values())(D=g.target)===null||D===void 0||D.dispatchEvent(new KeyboardEvent("keyup",q))}};if(typeof PointerEvent<"u"){k.onPointerDown=h=>{if(h.button!==0||!na(h.currentTarget,cn(h.nativeEvent)))return;if(P9(h.nativeEvent)){g.pointerType="virtual";return}g.pointerType=h.pointerType;let D=!0;if(!g.isPressed){g.isPressed=!0,g.isOverTarget=!0,g.activePointerId=h.pointerId,g.target=h.currentTarget,x||V9(g.target),D=B(h,g.pointerType);let O=cn(h.nativeEvent);"releasePointerCapture"in O&&O.releasePointerCapture(h.pointerId),P(Hn(h.currentTarget),"pointerup",E,!1),P(Hn(h.currentTarget),"pointercancel",_,!1)}D&&h.stopPropagation()},k.onMouseDown=h=>{if(na(h.currentTarget,cn(h.nativeEvent))&&h.button===0){if(m){let D=_9(h.target);D&&g.disposables.push(D)}h.stopPropagation()}},k.onPointerUp=h=>{!na(h.currentTarget,cn(h.nativeEvent))||g.pointerType==="virtual"||h.button===0&&!g.isPressed&&I(h,g.pointerType||h.pointerType)},k.onPointerEnter=h=>{h.pointerId===g.activePointerId&&g.target&&!g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!0,B(qr(g.target,h),g.pointerType))},k.onPointerLeave=h=>{h.pointerId===g.activePointerId&&g.target&&g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!1,H(qr(g.target,h),g.pointerType,!1),J(h))};let E=h=>{if(h.pointerId===g.activePointerId&&g.isPressed&&h.button===0&&g.target){if(na(g.target,cn(h))&&g.pointerType!=null){let D=!1,O=setTimeout(()=>{g.isPressed&&g.target instanceof HTMLElement&&(D?G(h):(zo(g.target),g.target.click()))},80);P(h.currentTarget,"click",()=>D=!0,!0),g.disposables.push(()=>clearTimeout(O))}else G(h);g.isOverTarget=!1}},_=h=>{G(h)};k.onDragStart=h=>{na(h.currentTarget,cn(h.nativeEvent))&&G(h)}}return k},[P,p,m,N,x,G,J,H,B,I,W,ne]);return v.useEffect(()=>{if(!S)return;const g=Hn(S.current);if(!g||!g.head||g.getElementById(w$))return;const k=g.createElement("style");k.id=w$,k.textContent=` + `.trim(),g.head.prepend(k)},[S]),v.useEffect(()=>{let g=L.current;return()=>{var k;x||f$((k=g.target)!==null&&k!==void 0?k:void 0);for(let U of g.disposables)U();g.disposables=[]}},[x]),{isPressed:b||A,pressProps:ko(C,ue,{[v$]:!0})}}function n0(e){return e.tagName==="A"&&e.hasAttribute("href")}function Zp(e,n){const{key:r,code:l}=e,i=n,u=i.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||l==="Space")&&!(i instanceof ll(i).HTMLInputElement&&!g5(i,r)||i instanceof ll(i).HTMLTextAreaElement||i.isContentEditable)&&!((u==="link"||!u&&n0(i))&&r!=="Enter")}function Ir(e,n){let r=n.clientX,l=n.clientY;return{currentTarget:e,shiftKey:n.shiftKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,altKey:n.altKey,clientX:r,clientY:l}}function KS(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!n0(e)}function m$(e,n){return e instanceof HTMLInputElement?!g5(e,n):KS(e)}const IS=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function g5(e,n){return e.type==="checkbox"||e.type==="radio"?n===" ":IS.has(e.type)}let Ps=null,qS=new Set,Qi=new Map,ol=!1,Yb=!1;function a0(e,n){for(let r of qS)r(e,n)}function YS(e){return!(e.metaKey||!cs()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Bc(e){ol=!0,YS(e)&&(Ps="keyboard",a0("keyboard",e))}function go(e){Ps="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ol=!0,a0("pointer",e))}function h5(e){f5(e)&&(ol=!0,Ps="virtual")}function $5(e){e.target===window||e.target===document||Vc||!e.isTrusted||(!ol&&!Yb&&(Ps="virtual",a0("virtual",e)),ol=!1,Yb=!1)}function y5(){Vc||(ol=!1,Yb=!0)}function g$(e){if(typeof window>"u"||typeof document>"u"||Qi.get(ll(e)))return;const n=ll(e),r=Rn(e);let l=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){ol=!0,l.apply(this,arguments)},r.addEventListener("keydown",Bc,!0),r.addEventListener("keyup",Bc,!0),r.addEventListener("click",h5,!0),n.addEventListener("focus",$5,!0),n.addEventListener("blur",y5,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",go,!0),r.addEventListener("pointermove",go,!0),r.addEventListener("pointerup",go,!0)),n.addEventListener("beforeunload",()=>{x5(e)},{once:!0}),Qi.set(n,{focus:l})}const x5=(e,n)=>{const r=ll(e),l=Rn(e);n&&l.removeEventListener("DOMContentLoaded",n),Qi.has(r)&&(r.HTMLElement.prototype.focus=Qi.get(r).focus,l.removeEventListener("keydown",Bc,!0),l.removeEventListener("keyup",Bc,!0),l.removeEventListener("click",h5,!0),r.removeEventListener("focus",$5,!0),r.removeEventListener("blur",y5,!1),typeof PointerEvent<"u"&&(l.removeEventListener("pointerdown",go,!0),l.removeEventListener("pointermove",go,!0),l.removeEventListener("pointerup",go,!0)),Qi.delete(r))};function WS(e){const n=Rn(e);let r;return n.readyState!=="loading"?g$(e):(r=()=>{g$(e)},n.addEventListener("DOMContentLoaded",r)),()=>x5(e,r)}typeof document<"u"&&WS();function XS(){return Ps}function ZS(e){const n=Rn(e),r=_c(n);if(XS()==="virtual"){let l=r;c5(()=>{_c(n)===l&&e.isConnected&&Do(e)})}else Do(e)}function QS(e){let{isDisabled:n,onFocus:r,onBlur:l,onFocusChange:i}=e;const u=v.useCallback(b=>{if(b.target===b.currentTarget)return l&&l(b),i&&i(!1),!0},[l,i]),d=VS(u),p=v.useCallback(b=>{const m=Rn(b.target),$=m?_c(m):_c();b.target===b.currentTarget&&$===un(b.nativeEvent)&&(r&&r(b),i&&i(!0),d(b))},[i,r,d]);return{focusProps:{onFocus:!n&&(r||i||l)?p:void 0,onBlur:!n&&(l||i)?u:void 0}}}function h$(e){if(!e)return;let n=!0;return r=>{let l={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1},isPropagationStopped(){return n}};e(l),n&&r.stopPropagation()}}function JS(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:h$(e.onKeyDown),onKeyUp:h$(e.onKeyUp)}}}let e9=ie.createContext(null);function t9(e){let n=v.useContext(e9)||{};d5(n,e);let{ref:r,...l}=n;return l}function n9(e,n){let{focusProps:r}=QS(e),{keyboardProps:l}=JS(e),i=ko(r,l),u=t9(n),d=e.isDisabled?{}:u,p=v.useRef(e.autoFocus);v.useEffect(()=>{p.current&&n.current&&ZS(n.current),p.current=!1},[n]);let b=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(b=void 0),{focusableProps:ko({...i,tabIndex:b},d)}}function a9(e,n){let{elementType:r="button",isDisabled:l,onPress:i,onPressStart:u,onPressEnd:d,onPressUp:p,onPressChange:b,preventFocusOnPress:m,allowFocusWhenDisabled:$,onClick:x,href:S,target:C,rel:A,type:w="button",allowTextSelectionOnPress:L}=e,P;r==="button"?P={type:w,disabled:l}:P={role:"button",href:r==="a"&&!l?S:void 0,target:r==="a"?C:void 0,type:r==="input"?w:void 0,disabled:r==="input"?l:void 0,"aria-disabled":!l||r==="input"?void 0:l,rel:r==="a"?A:void 0};let{pressProps:N,isPressed:B}=GS({onClick:x,onPressStart:u,onPressEnd:d,onPressUp:p,onPressChange:b,onPress:i,isDisabled:l,preventFocusOnPress:m,allowTextSelectionOnPress:L,ref:n}),{focusableProps:H}=n9(e,n);$&&(H.tabIndex=l?-1:H.tabIndex);let I=ko(H,N,ES(e,{labelable:!0}));return{isPressed:B,buttonProps:ko(P,I,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}var r9=()=>vd(()=>import("./index-DSAAAm0Q.js"),__vite__mapDeps([0,1])).then(e=>e.default),E5=e=>{const{ripples:n=[],motionProps:r,color:l="currentColor",style:i,onClear:u}=e;return T.jsx(T.Fragment,{children:n.map(d=>{const p=Wy(.01*d.size,.2,d.size>100?.75:.5);return T.jsx(cd,{features:r9,children:T.jsx(ud,{mode:"popLayout",children:T.jsx(pd.span,{animate:{transform:"scale(2)",opacity:0},className:"heroui-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:d.y,left:d.x,width:`${d.size}px`,height:`${d.size}px`,...i},transition:{duration:p},onAnimationComplete:()=>{u(d.key)},...r})})},d.key)})})};E5.displayName="HeroUI.Ripple";var l9=E5;function o9(e={}){const[n,r]=v.useState([]),l=v.useCallback(u=>{const d=u.target,p=Math.max(d.clientWidth,d.clientHeight);r(b=>[...b,{key:Yy(b.length.toString()),size:p,x:u.x-p/2,y:u.y-p/2}])},[]),i=v.useCallback(u=>{r(d=>d.filter(p=>p.key!==u))},[]);return{ripples:n,onClear:i,onPress:l,...e}}function i9(e){var n,r,l,i,u,d,p,b,m;const $=UT(),x=oa(),S=!!$,{ref:C,as:A,children:w,startContent:L,endContent:P,autoFocus:N,className:B,spinner:H,isLoading:I=!1,disableRipple:G=!1,fullWidth:J=(n=$?.fullWidth)!=null?n:!1,radius:W=$?.radius,size:ne=(r=$?.size)!=null?r:"md",color:ue=(l=$?.color)!=null?l:"default",variant:g=(i=$?.variant)!=null?i:"solid",disableAnimation:k=(d=(u=$?.disableAnimation)!=null?u:x?.disableAnimation)!=null?d:!1,isDisabled:U=(p=$?.isDisabled)!=null?p:!1,isIconOnly:E=(b=$?.isIconOnly)!=null?b:!1,spinnerPlacement:_="start",onPress:h,onClick:D,...O}=e,q=A||"button",re=typeof q=="string",z=Oa(C),j=(m=G||x?.disableRipple)!=null?m:k,{isFocusVisible:Z,isFocused:K,focusProps:se}=dS({autoFocus:N}),oe=U||I,ce=v.useMemo(()=>I2({size:ne,color:ue,variant:g,radius:W,fullWidth:J,isDisabled:oe,isInGroup:S,disableAnimation:k,isIconOnly:E,className:B}),[ne,ue,g,W,J,oe,S,E,k,B]),{onPress:we,onClear:he,ripples:me}=o9(),nt=v.useCallback(Ae=>{j||oe||k||z.current&&we(Ae)},[j,oe,k,z,we]),{buttonProps:Ke,isPressed:Ie}=a9({elementType:A,isDisabled:oe,onPress:Ao(h,nt),onClick:D,...O},z),{isHovered:qe,hoverProps:at}=cS({isDisabled:oe}),ge=v.useCallback((Ae={})=>({"data-disabled":ve(oe),"data-focus":ve(K),"data-pressed":ve(Ie),"data-focus-visible":ve(Z),"data-hover":ve(qe),"data-loading":ve(I),...it(Ke,se,at,nl(O,{enabled:re}),nl(Ae)),className:ce}),[I,oe,K,Ie,re,Z,qe,Ke,se,at,O,ce]),pt=Ae=>v.isValidElement(Ae)?v.cloneElement(Ae,{"aria-hidden":!0,focusable:!1}):null,At=pt(L),bt=pt(P),Ut=v.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[ne],[ne]),kt=v.useCallback(()=>({ripples:me,onClear:he}),[me,he]);return{Component:q,children:w,domRef:z,spinner:H,styles:ce,startContent:At,endContent:bt,isLoading:I,spinnerPlacement:_,spinnerSize:Ut,disableRipple:j,getButtonProps:ge,getRippleProps:kt,isIconOnly:E}}function s9(e){var n,r;const[l,i]=Ho(e,n$.variantKeys),u=oa(),d=(r=(n=e?.variant)!=null?n:u?.spinnerVariant)!=null?r:"default",{children:p,className:b,classNames:m,label:$,...x}=l,S=v.useMemo(()=>n$({...i}),[Ro(i)]),C=ot(m?.base,b),A=$||p,w=v.useMemo(()=>A&&typeof A=="string"?A:x["aria-label"]?"":"Loading",[p,A,x["aria-label"]]),L=v.useCallback(()=>({"aria-label":w,className:S.base({class:C}),...x}),[w,S,C,x]);return{label:A,slots:S,classNames:m,variant:d,getSpinnerProps:L}}var w5=ja((e,n)=>{const{slots:r,classNames:l,label:i,variant:u,getSpinnerProps:d}=s9({...e});return u==="wave"||u==="dots"?T.jsxs("div",{ref:n,...d(),children:[T.jsx("div",{className:r.wrapper({class:l?.wrapper}),children:[...new Array(3)].map((p,b)=>T.jsx("i",{className:r.dots({class:l?.dots}),style:{"--dot-index":b}},`dot-${b}`))}),i&&T.jsx("span",{className:r.label({class:l?.label}),children:i})]}):u==="simple"?T.jsxs("div",{ref:n,...d(),children:[T.jsxs("svg",{className:r.wrapper({class:l?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[T.jsx("circle",{className:r.circle1({class:l?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),T.jsx("path",{className:r.circle2({class:l?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),i&&T.jsx("span",{className:r.label({class:l?.label}),children:i})]}):u==="spinner"?T.jsxs("div",{ref:n,...d(),children:[T.jsx("div",{className:r.wrapper({class:l?.wrapper}),children:[...new Array(12)].map((p,b)=>T.jsx("i",{className:r.spinnerBars({class:l?.spinnerBars}),style:{"--bar-index":b}},`star-${b}`))}),i&&T.jsx("span",{className:r.label({class:l?.label}),children:i})]}):T.jsxs("div",{ref:n,...d(),children:[T.jsxs("div",{className:r.wrapper({class:l?.wrapper}),children:[T.jsx("i",{className:r.circle1({class:l?.circle1})}),T.jsx("i",{className:r.circle2({class:l?.circle2})})]}),i&&T.jsx("span",{className:r.label({class:l?.label}),children:i})]})});w5.displayName="HeroUI.Spinner";var r0=w5,T5=ja((e,n)=>{const{Component:r,domRef:l,children:i,spinnerSize:u,spinner:d=T.jsx(r0,{color:"current",size:u}),spinnerPlacement:p,startContent:b,endContent:m,isLoading:$,disableRipple:x,getButtonProps:S,getRippleProps:C,isIconOnly:A}=i9({...e,ref:n});return T.jsxs(r,{ref:l,...S(),children:[b,$&&p==="start"&&d,$&&A?null:i,$&&p==="end"&&d,m,!x&&T.jsx(l9,{...C()})]})});T5.displayName="HeroUI.Button";var uo=T5;const l0=typeof document<"u"?ie.useLayoutEffect:()=>{};var Qp;const u9=(Qp=ie.useInsertionEffect)!==null&&Qp!==void 0?Qp:l0;function Da(e){const n=v.useRef(null);return u9(()=>{n.current=e},[e]),v.useCallback((...r)=>{const l=n.current;return l?.(...r)},[])}let Wb=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{Wb.delete(e)});function c9(e,n){if(e===n)return e;let r=Wb.get(e);if(r)return r.forEach(i=>i.current=n),n;let l=Wb.get(n);return l?(l.forEach(i=>i.current=e),e):n}function S5(...e){return(...n)=>{for(let r of e)typeof r=="function"&&r(...n)}}const Hn=e=>{var n;return(n=e?.ownerDocument)!==null&&n!==void 0?n:document},il=e=>e&&"window"in e&&e.window===e?e:Hn(e).defaultView||window;function d9(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function f9(e){return d9(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function na(e,n){if(!Ve())return n&&e?e.contains(n):!1;if(!e||!n)return!1;let r=n;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:f9(r)?r=r.host:r=r.parentNode}return!1}const Uc=(e=document)=>{var n;if(!Ve())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((n=r.shadowRoot)===null||n===void 0)&&n.activeElement);)r=r.shadowRoot.activeElement;return r};function cn(e){return Ve()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function C5(e){var n,r,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(n=0;n=65&&i.charCodeAt(2)<=90?n[i]=S5(u,d):(i==="className"||i==="UNSAFE_className")&&typeof u=="string"&&typeof d=="string"?n[i]=p9(u,d):i==="id"&&u&&d?n.id=c9(u,d):n[i]=d!==void 0?d:u}}return n}const b9=new Set(["id"]),v9=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),m9=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),g9=new Set(["dir","lang","hidden","inert","translate"]),$$=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),h9=/^(data-.*)$/;function $9(e,n={}){let{labelable:r,isLink:l,global:i,events:u=i,propNames:d}=n,p={};for(const b in e)Object.prototype.hasOwnProperty.call(e,b)&&(b9.has(b)||r&&v9.has(b)||l&&m9.has(b)||i&&g9.has(b)||u&&$$.has(b)||b.endsWith("Capture")&&$$.has(b.slice(0,-7))||d?.has(b)||h9.test(b))&&(p[b]=e[b]);return p}function zo(e){if(y9())e.focus({preventScroll:!0});else{let n=x9(e);e.focus(),E9(n)}}let oc=null;function y9(){if(oc==null){oc=!1;try{document.createElement("div").focus({get preventScroll(){return oc=!0,!0}})}catch{}}return oc}function x9(e){let n=e.parentNode,r=[],l=document.scrollingElement||document.documentElement;for(;n instanceof HTMLElement&&n!==l;)(n.offsetHeight"u"||window.navigator==null)return!1;let r=(n=window.navigator.userAgentData)===null||n===void 0?void 0:n.brands;return Array.isArray(r)&&r.some(l=>e.test(l.brand))||e.test(window.navigator.userAgent)}function o0(e){var n;return typeof window<"u"&&window.navigator!=null?e.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function yr(e){let n=null;return()=>(n==null&&(n=e()),n)}const fs=yr(function(){return o0(/^Mac/i)}),w9=yr(function(){return o0(/^iPhone/i)}),M5=yr(function(){return o0(/^iPad/i)||fs()&&navigator.maxTouchPoints>1}),L5=yr(function(){return w9()||M5()}),T9=yr(function(){return gd(/AppleWebKit/i)&&!S9()}),S9=yr(function(){return gd(/Chrome/i)}),P5=yr(function(){return gd(/Android/i)}),C9=yr(function(){return gd(/Firefox/i)});function ps(e,n,r=!0){var l,i;let{metaKey:u,ctrlKey:d,altKey:p,shiftKey:b}=n;C9()&&(!((i=window.event)===null||i===void 0||(l=i.type)===null||l===void 0)&&l.startsWith("key"))&&e.target==="_blank"&&(fs()?u=!0:d=!0);let m=T9()&&fs()&&!M5()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:u,ctrlKey:d,altKey:p,shiftKey:b}):new MouseEvent("click",{metaKey:u,ctrlKey:d,altKey:p,shiftKey:b,bubbles:!0,cancelable:!0});ps.isOpening=r,zo(e),e.dispatchEvent(m),ps.isOpening=!1}ps.isOpening=!1;let pr=new Map,Xb=new Set;function y$(){if(typeof window>"u")return;function e(l){return"propertyName"in l}let n=l=>{if(!e(l)||!l.target)return;let i=pr.get(l.target);i||(i=new Set,pr.set(l.target,i),l.target.addEventListener("transitioncancel",r,{once:!0})),i.add(l.propertyName)},r=l=>{if(!e(l)||!l.target)return;let i=pr.get(l.target);if(i&&(i.delete(l.propertyName),i.size===0&&(l.target.removeEventListener("transitioncancel",r),pr.delete(l.target)),pr.size===0)){for(let u of Xb)u();Xb.clear()}};document.body.addEventListener("transitionrun",n),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?y$():document.addEventListener("DOMContentLoaded",y$));function M9(){for(const[e]of pr)"isConnected"in e&&!e.isConnected&&pr.delete(e)}function A5(e){requestAnimationFrame(()=>{M9(),pr.size===0?e():Xb.add(e)})}function L9(){let e=v.useRef(new Map),n=v.useCallback((i,u,d,p)=>{let b=p?.once?(...m)=>{e.current.delete(d),d(...m)}:d;e.current.set(d,{type:u,eventTarget:i,fn:b,options:p}),i.addEventListener(u,b,p)},[]),r=v.useCallback((i,u,d,p)=>{var b;let m=((b=e.current.get(d))===null||b===void 0?void 0:b.fn)||d;i.removeEventListener(u,m,p),e.current.delete(d)},[]),l=v.useCallback(()=>{e.current.forEach((i,u)=>{r(i.eventTarget,i.type,u,i.options)})},[r]);return v.useEffect(()=>l,[l]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:l}}function k5(e,n){l0(()=>{if(e&&e.ref&&n)return e.ref.current=n.current,()=>{e.ref&&(e.ref.current=null)}})}function D5(e){return e.pointerType===""&&e.isTrusted?!0:P5()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function P9(e){return!P5()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function A9(e,n,r){let l=Da(()=>{r&&r(n)});v.useEffect(()=>{var i;let u=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return u?.addEventListener("reset",l),()=>{u?.removeEventListener("reset",l)}},[e,l])}const k9=typeof Element<"u"&&"checkVisibility"in Element.prototype;function D9(e){const n=il(e);if(!(e instanceof n.HTMLElement)&&!(e instanceof n.SVGElement))return!1;let{display:r,visibility:l}=e.style,i=r!=="none"&&l!=="hidden"&&l!=="collapse";if(i){const{getComputedStyle:u}=e.ownerDocument.defaultView;let{display:d,visibility:p}=u(e);i=d!=="none"&&p!=="hidden"&&p!=="collapse"}return i}function z9(e,n){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&n&&n.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function z5(e,n){return k9?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&D9(e)&&z9(e,n)&&(!e.parentElement||z5(e.parentElement,e))}const O5=["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]:not([contenteditable^="false"])',"permission"],O9=O5.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";O5.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function N9(e){return e.matches(O9)&&z5(e)&&!j9(e)}function j9(e){let n=e;for(;n!=null;){if(n instanceof n.ownerDocument.defaultView.HTMLElement&&n.inert)return!0;n=n.parentElement}return!1}function N5(e){let n=e;return n.nativeEvent=e,n.isDefaultPrevented=()=>n.defaultPrevented,n.isPropagationStopped=()=>n.cancelBubble,n.persist=()=>{},n}function R9(e,n){Object.defineProperty(e,"target",{value:n}),Object.defineProperty(e,"currentTarget",{value:n})}function H9(e){let n=v.useRef({isFocused:!1,observer:null});l0(()=>{const l=n.current;return()=>{l.observer&&(l.observer.disconnect(),l.observer=null)}},[]);let r=Da(l=>{e?.(l)});return v.useCallback(l=>{if(l.target instanceof HTMLButtonElement||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement||l.target instanceof HTMLSelectElement){n.current.isFocused=!0;let i=l.target,u=d=>{if(n.current.isFocused=!1,i.disabled){let p=N5(d);r(p)}n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};i.addEventListener("focusout",u,{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&i.disabled){var d;(d=n.current.observer)===null||d===void 0||d.disconnect();let p=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:p})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:p}))}}),n.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let Fc=!1;function _9(e){for(;e&&!N9(e);)e=e.parentElement;let n=il(e),r=n.document.activeElement;if(!r||r===e)return;Fc=!0;let l=!1,i=$=>{($.target===r||l)&&$.stopImmediatePropagation()},u=$=>{($.target===r||l)&&($.stopImmediatePropagation(),!e&&!l&&(l=!0,zo(r),b()))},d=$=>{($.target===e||l)&&$.stopImmediatePropagation()},p=$=>{($.target===e||l)&&($.stopImmediatePropagation(),l||(l=!0,zo(r),b()))};n.addEventListener("blur",i,!0),n.addEventListener("focusout",u,!0),n.addEventListener("focusin",p,!0),n.addEventListener("focus",d,!0);let b=()=>{cancelAnimationFrame(m),n.removeEventListener("blur",i,!0),n.removeEventListener("focusout",u,!0),n.removeEventListener("focusin",p,!0),n.removeEventListener("focus",d,!0),Fc=!1,l=!1},m=requestAnimationFrame(b);return b}let fo="default",Zb="",Ac=new WeakMap;function V9(e){if(L5()){if(fo==="default"){const n=Hn(e);Zb=n.documentElement.style.webkitUserSelect,n.documentElement.style.webkitUserSelect="none"}fo="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let n="userSelect"in e.style?"userSelect":"webkitUserSelect";Ac.set(e,e.style[n]),e.style[n]="none"}}function x$(e){if(L5()){if(fo!=="disabled")return;fo="restoring",setTimeout(()=>{A5(()=>{if(fo==="restoring"){const n=Hn(e);n.documentElement.style.webkitUserSelect==="none"&&(n.documentElement.style.webkitUserSelect=Zb||""),Zb="",fo="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ac.has(e)){let n=Ac.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=n),e.getAttribute("style")===""&&e.removeAttribute("style"),Ac.delete(e)}}const j5=ie.createContext({register:()=>{}});j5.displayName="PressResponderContext";function B9(e){let n=v.useContext(j5);if(n){let{register:r,...l}=n;e=tl(l,e),r()}return k5(n,e.ref),e}var ic=new WeakMap;let sc=class{continuePropagation(){la(this,ic,!1)}get shouldStopPropagation(){return Ms(this,ic)}constructor(n,r,l,i){ws(this,ic,{writable:!0,value:void 0}),la(this,ic,!0);var u;let d=(u=i?.target)!==null&&u!==void 0?u:l.currentTarget;const p=d?.getBoundingClientRect();let b,m=0,$,x=null;l.clientX!=null&&l.clientY!=null&&($=l.clientX,x=l.clientY),p&&($!=null&&x!=null?(b=$-p.left,m=x-p.top):(b=p.width/2,m=p.height/2)),this.type=n,this.pointerType=r,this.target=l.currentTarget,this.shiftKey=l.shiftKey,this.metaKey=l.metaKey,this.ctrlKey=l.ctrlKey,this.altKey=l.altKey,this.x=b,this.y=m}};const E$=Symbol("linkClicked"),w$="react-aria-pressable-style",T$="data-react-aria-pressable";function S$(e){let{onPress:n,onPressChange:r,onPressStart:l,onPressEnd:i,onPressUp:u,onClick:d,isDisabled:p,isPressed:b,preventFocusOnPress:m,shouldCancelOnPointerExit:$,allowTextSelectionOnPress:x,ref:S,...C}=B9(e),[A,w]=v.useState(!1),L=v.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:P,removeAllGlobalListeners:N}=L9(),B=Da((g,k)=>{let U=L.current;if(p||U.didFirePressStart)return!1;let E=!0;if(U.isTriggeringEvent=!0,l){let _=new sc("pressstart",k,g);l(_),E=_.shouldStopPropagation}return r&&r(!0),U.isTriggeringEvent=!1,U.didFirePressStart=!0,w(!0),E}),H=Da((g,k,U=!0)=>{let E=L.current;if(!E.didFirePressStart)return!1;E.didFirePressStart=!1,E.isTriggeringEvent=!0;let _=!0;if(i){let h=new sc("pressend",k,g);i(h),_=h.shouldStopPropagation}if(r&&r(!1),w(!1),n&&U&&!p){let h=new sc("press",k,g);n(h),_&&(_=h.shouldStopPropagation)}return E.isTriggeringEvent=!1,_}),I=Da((g,k)=>{let U=L.current;if(p)return!1;if(u){U.isTriggeringEvent=!0;let E=new sc("pressup",k,g);return u(E),U.isTriggeringEvent=!1,E.shouldStopPropagation}return!0}),G=Da(g=>{let k=L.current;if(k.isPressed&&k.target){k.didFirePressStart&&k.pointerType!=null&&H(qr(k.target,g),k.pointerType,!1),k.isPressed=!1,k.isOverTarget=!1,k.activePointerId=null,k.pointerType=null,N(),x||x$(k.target);for(let U of k.disposables)U();k.disposables=[]}}),J=Da(g=>{$&&G(g)}),W=Da(g=>{p||d?.(g)}),ne=Da((g,k)=>{if(!p&&d){let U=new MouseEvent("click",g);R9(U,k),d(N5(U))}}),ue=v.useMemo(()=>{let g=L.current,k={onKeyDown(E){if(Jp(E.nativeEvent,E.currentTarget)&&na(E.currentTarget,cn(E.nativeEvent))){var _;C$(cn(E.nativeEvent),E.key)&&E.preventDefault();let h=!0;if(!g.isPressed&&!E.repeat){g.target=E.currentTarget,g.isPressed=!0,g.pointerType="keyboard",h=B(E,"keyboard");let D=E.currentTarget,O=q=>{Jp(q,D)&&!q.repeat&&na(D,cn(q))&&g.target&&I(qr(g.target,q),"keyboard")};P(Hn(E.currentTarget),"keyup",S5(O,U),!0)}h&&E.stopPropagation(),E.metaKey&&fs()&&((_=g.metaKeyEvents)===null||_===void 0||_.set(E.key,E.nativeEvent))}else E.key==="Meta"&&(g.metaKeyEvents=new Map)},onClick(E){if(!(E&&!na(E.currentTarget,cn(E.nativeEvent)))&&E&&E.button===0&&!g.isTriggeringEvent&&!ps.isOpening){let _=!0;if(p&&E.preventDefault(),!g.ignoreEmulatedMouseEvents&&!g.isPressed&&(g.pointerType==="virtual"||D5(E.nativeEvent))){let h=B(E,"virtual"),D=I(E,"virtual"),O=H(E,"virtual");W(E),_=h&&D&&O}else if(g.isPressed&&g.pointerType!=="keyboard"){let h=g.pointerType||E.nativeEvent.pointerType||"virtual",D=I(qr(E.currentTarget,E),h),O=H(qr(E.currentTarget,E),h,!0);_=D&&O,g.isOverTarget=!1,W(E),G(E)}g.ignoreEmulatedMouseEvents=!1,_&&E.stopPropagation()}}},U=E=>{var _;if(g.isPressed&&g.target&&Jp(E,g.target)){var h;C$(cn(E),E.key)&&E.preventDefault();let O=cn(E),q=na(g.target,cn(E));H(qr(g.target,E),"keyboard",q),q&&ne(E,g.target),N(),E.key!=="Enter"&&i0(g.target)&&na(g.target,O)&&!E[E$]&&(E[E$]=!0,ps(g.target,E,!1)),g.isPressed=!1,(h=g.metaKeyEvents)===null||h===void 0||h.delete(E.key)}else if(E.key==="Meta"&&(!((_=g.metaKeyEvents)===null||_===void 0)&&_.size)){var D;let O=g.metaKeyEvents;g.metaKeyEvents=void 0;for(let q of O.values())(D=g.target)===null||D===void 0||D.dispatchEvent(new KeyboardEvent("keyup",q))}};if(typeof PointerEvent<"u"){k.onPointerDown=h=>{if(h.button!==0||!na(h.currentTarget,cn(h.nativeEvent)))return;if(P9(h.nativeEvent)){g.pointerType="virtual";return}g.pointerType=h.pointerType;let D=!0;if(!g.isPressed){g.isPressed=!0,g.isOverTarget=!0,g.activePointerId=h.pointerId,g.target=h.currentTarget,x||V9(g.target),D=B(h,g.pointerType);let O=cn(h.nativeEvent);"releasePointerCapture"in O&&O.releasePointerCapture(h.pointerId),P(Hn(h.currentTarget),"pointerup",E,!1),P(Hn(h.currentTarget),"pointercancel",_,!1)}D&&h.stopPropagation()},k.onMouseDown=h=>{if(na(h.currentTarget,cn(h.nativeEvent))&&h.button===0){if(m){let D=_9(h.target);D&&g.disposables.push(D)}h.stopPropagation()}},k.onPointerUp=h=>{!na(h.currentTarget,cn(h.nativeEvent))||g.pointerType==="virtual"||h.button===0&&!g.isPressed&&I(h,g.pointerType||h.pointerType)},k.onPointerEnter=h=>{h.pointerId===g.activePointerId&&g.target&&!g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!0,B(qr(g.target,h),g.pointerType))},k.onPointerLeave=h=>{h.pointerId===g.activePointerId&&g.target&&g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!1,H(qr(g.target,h),g.pointerType,!1),J(h))};let E=h=>{if(h.pointerId===g.activePointerId&&g.isPressed&&h.button===0&&g.target){if(na(g.target,cn(h))&&g.pointerType!=null){let D=!1,O=setTimeout(()=>{g.isPressed&&g.target instanceof HTMLElement&&(D?G(h):(zo(g.target),g.target.click()))},80);P(h.currentTarget,"click",()=>D=!0,!0),g.disposables.push(()=>clearTimeout(O))}else G(h);g.isOverTarget=!1}},_=h=>{G(h)};k.onDragStart=h=>{na(h.currentTarget,cn(h.nativeEvent))&&G(h)}}return k},[P,p,m,N,x,G,J,H,B,I,W,ne]);return v.useEffect(()=>{if(!S)return;const g=Hn(S.current);if(!g||!g.head||g.getElementById(w$))return;const k=g.createElement("style");k.id=w$,k.textContent=` @layer { [${T$}] { touch-action: pan-x pan-y pinch-zoom; } } - `.trim(),g.head.prepend(k)},[S]),v.useEffect(()=>{let g=L.current;return()=>{var k;x||x$((k=g.target)!==null&&k!==void 0?k:void 0);for(let U of g.disposables)U();g.disposables=[]}},[x]),{isPressed:b||A,pressProps:tl(C,ue,{[T$]:!0})}}function i0(e){return e.tagName==="A"&&e.hasAttribute("href")}function Jp(e,n){const{key:r,code:l}=e,i=n,u=i.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||l==="Space")&&!(i instanceof il(i).HTMLInputElement&&!R5(i,r)||i instanceof il(i).HTMLTextAreaElement||i.isContentEditable)&&!((u==="link"||!u&&i0(i))&&r!=="Enter")}function qr(e,n){let r=n.clientX,l=n.clientY;return{currentTarget:e,shiftKey:n.shiftKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,altKey:n.altKey,clientX:r,clientY:l}}function U9(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!i0(e)}function C$(e,n){return e instanceof HTMLInputElement?!R5(e,n):U9(e)}const F9=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function R5(e,n){return e.type==="checkbox"||e.type==="radio"?n===" ":F9.has(e.type)}let As=null,G9=new Set,Ji=new Map,sl=!1,Qb=!1;function s0(e,n){for(let r of G9)r(e,n)}function K9(e){return!(e.metaKey||!fs()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Gc(e){sl=!0,K9(e)&&(As="keyboard",s0("keyboard",e))}function ho(e){As="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(sl=!0,s0("pointer",e))}function H5(e){D5(e)&&(sl=!0,As="virtual")}function _5(e){e.target===window||e.target===document||Fc||!e.isTrusted||(!sl&&!Qb&&(As="virtual",s0("virtual",e)),sl=!1,Qb=!1)}function V5(){Fc||(sl=!1,Qb=!0)}function M$(e){if(typeof window>"u"||typeof document>"u"||Ji.get(il(e)))return;const n=il(e),r=Hn(e);let l=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){sl=!0,l.apply(this,arguments)},r.addEventListener("keydown",Gc,!0),r.addEventListener("keyup",Gc,!0),r.addEventListener("click",H5,!0),n.addEventListener("focus",_5,!0),n.addEventListener("blur",V5,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",ho,!0),r.addEventListener("pointermove",ho,!0),r.addEventListener("pointerup",ho,!0)),n.addEventListener("beforeunload",()=>{B5(e)},{once:!0}),Ji.set(n,{focus:l})}const B5=(e,n)=>{const r=il(e),l=Hn(e);n&&l.removeEventListener("DOMContentLoaded",n),Ji.has(r)&&(r.HTMLElement.prototype.focus=Ji.get(r).focus,l.removeEventListener("keydown",Gc,!0),l.removeEventListener("keyup",Gc,!0),l.removeEventListener("click",H5,!0),r.removeEventListener("focus",_5,!0),r.removeEventListener("blur",V5,!1),typeof PointerEvent<"u"&&(l.removeEventListener("pointerdown",ho,!0),l.removeEventListener("pointermove",ho,!0),l.removeEventListener("pointerup",ho,!0)),Ji.delete(r))};function I9(e){const n=Hn(e);let r;return n.readyState!=="loading"?M$(e):(r=()=>{M$(e)},n.addEventListener("DOMContentLoaded",r)),()=>B5(e,r)}typeof document<"u"&&I9();function q9(){return As}function Y9(e){const n=Hn(e),r=Uc(n);if(q9()==="virtual"){let l=r;A5(()=>{Uc(n)===l&&e.isConnected&&zo(e)})}else zo(e)}function W9(e){let{isDisabled:n,onFocus:r,onBlur:l,onFocusChange:i}=e;const u=v.useCallback(b=>{if(b.target===b.currentTarget)return l&&l(b),i&&i(!1),!0},[l,i]),d=H9(u),p=v.useCallback(b=>{const m=Hn(b.target),$=m?Uc(m):Uc();b.target===b.currentTarget&&$===cn(b.nativeEvent)&&(r&&r(b),i&&i(!0),d(b))},[i,r,d]);return{focusProps:{onFocus:!n&&(r||i||l)?p:void 0,onBlur:!n&&(l||i)?u:void 0}}}function L$(e){if(!e)return;let n=!0;return r=>{let l={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1},isPropagationStopped(){return n}};e(l),n&&r.stopPropagation()}}function X9(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:L$(e.onKeyDown),onKeyUp:L$(e.onKeyUp)}}}let Z9=ie.createContext(null);function Q9(e){let n=v.useContext(Z9)||{};k5(n,e);let{ref:r,...l}=n;return l}function J9(e,n){let{focusProps:r}=W9(e),{keyboardProps:l}=X9(e),i=tl(r,l),u=Q9(n),d=e.isDisabled?{}:u,p=v.useRef(e.autoFocus);v.useEffect(()=>{p.current&&n.current&&Y9(n.current),p.current=!1},[n]);let b=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(b=void 0),{focusableProps:tl({...i,tabIndex:b},d)}}function eC(e,n,r){let{isDisabled:l=!1,isReadOnly:i=!1,value:u,name:d,form:p,children:b,"aria-label":m,"aria-labelledby":$,validationState:x="valid",isInvalid:S,onPressStart:C,onPressEnd:A,onPressChange:w,onPress:L,onPressUp:P,onClick:N}=e,B=g=>{g.stopPropagation(),n.setSelected(g.target.checked)},{pressProps:H,isPressed:I}=S$({onPressStart:C,onPressEnd:A,onPressChange:w,onPress:L,onPressUp:P,onClick:N,isDisabled:l}),{pressProps:G,isPressed:J}=S$({onPressStart:C,onPressEnd:A,onPressChange:w,onPressUp:P,onClick:N,onPress(g){var k;L?.(g),n.toggle(),(k=r.current)===null||k===void 0||k.focus()},isDisabled:l||i}),{focusableProps:W}=J9(e,r),ne=tl(H,W),ue=$9(e,{labelable:!0});return A9(r,n.defaultSelected,n.setSelected),{labelProps:tl(G,{onClick:g=>g.preventDefault()}),inputProps:tl(ue,{"aria-invalid":S||x==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":i||void 0,onChange:B,disabled:l,...u==null?{}:{value:u},name:d,form:p,type:"checkbox",...ne}),isSelected:n.isSelected,isPressed:I||J,isDisabled:l,isReadOnly:i,isInvalid:S||x==="invalid"}}var P$=Symbol("default");function tC(e){const n=v.useRef(null),r=v.useRef(void 0),l=v.useCallback(i=>{if(typeof e=="function"){const u=e,d=u(i);return()=>{typeof d=="function"?d():u(null)}}else if(e)return e.current=i,()=>{e.current=null}},[e]);return v.useMemo(()=>({get current(){return n.current},set current(i){n.current=i,r.current&&(r.current(),r.current=void 0),i!=null&&(r.current=l(i))}}),[l])}function U5(e,n){let r=v.useContext(e);if(n===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let l=new Intl.ListFormat().format(Object.keys(r.slots).map(u=>`"${u}"`));if(!n&&!r.slots[P$])throw new Error(`A slot prop is required. Valid slot names are ${l}.`);let i=n||P$;if(!r.slots[i])throw new Error(`Invalid slot "${n}". Valid slot names are ${l}.`);return r.slots[i]}return r}function nC(e,n,r){let l=U5(r,e.slot)||{},{ref:i,...u}=l,d=tC(v.useMemo(()=>yE(n,i),[n,i])),p=it(u,e);return"style"in u&&u.style&&"style"in e&&e.style&&(typeof u.style=="function"||typeof e.style=="function"?p.style=b=>{let m=typeof u.style=="function"?u.style(b):u.style,$={...b.defaultStyle,...m},x=typeof e.style=="function"?e.style({...b,defaultStyle:$}):e.style;return{...$,...x}}:p.style={...u.style,...e.style}),[p,d]}const aC=v.createContext({});var Jb=v.createContext(null);v.forwardRef(function(n,r){[n,r]=nC(n,r,Jb);let{validationErrors:l,validationBehavior:i="native",children:u,className:d,...p}=n;const b=v.useMemo(()=>kT({className:d}),[d]);return T.jsx("form",{noValidate:i!=="native",...p,ref:r,className:b,children:T.jsx(Jb.Provider,{value:{...n,validationBehavior:i},children:T.jsx(aC.Provider,{value:l??{},children:u})})})});function rC(e,n,r){let[l,i]=v.useState(e||n),u=v.useRef(e!==void 0),d=e!==void 0;v.useEffect(()=>{u.current,u.current=d},[d]);let p=d?e:l,b=v.useCallback((m,...$)=>{let x=(S,...C)=>{r&&(Object.is(p,S)||r(S,...C)),d||(p=S)};typeof m=="function"?i((C,...A)=>{let w=m(d?p:C,...A);return x(w,...$),d?C:w}):(d||i(m),x(m,...$))},[d,p,r]);return[p,b]}function ev(e,n=-1/0,r=1/0){return Math.min(Math.max(e,n),r)}function lC(e){let[n,r]=rC(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const l=v.useCallback(()=>{r(!0)},[r]),i=v.useCallback(()=>{r(!1)},[r]),u=v.useCallback(()=>{r(!n)},[r,n]);return{isOpen:n,setOpen:r,open:l,close:i,toggle:u}}const oC=1500,A$=500;let Yr={},iC=0,Hi=!1,ka=null,Wr=null;function sC(e={}){let{delay:n=oC,closeDelay:r=A$}=e,{isOpen:l,open:i,close:u}=lC(e),d=v.useMemo(()=>`${++iC}`,[]),p=v.useRef(null),b=v.useRef(u),m=()=>{Yr[d]=S},$=()=>{for(let A in Yr)A!==d&&(Yr[A](!0),delete Yr[A])},x=()=>{p.current&&clearTimeout(p.current),p.current=null,$(),m(),Hi=!0,i(),ka&&(clearTimeout(ka),ka=null),Wr&&(clearTimeout(Wr),Wr=null)},S=A=>{A||r<=0?(p.current&&clearTimeout(p.current),p.current=null,b.current()):p.current||(p.current=setTimeout(()=>{p.current=null,b.current()},r)),ka&&(clearTimeout(ka),ka=null),Hi&&(Wr&&clearTimeout(Wr),Wr=setTimeout(()=>{delete Yr[d],Wr=null,Hi=!1},Math.max(A$,r)))},C=()=>{$(),m(),!l&&!ka&&!Hi?ka=setTimeout(()=>{ka=null,Hi=!0,x()},n):l||x()};return v.useEffect(()=>{b.current=u},[u]),v.useEffect(()=>()=>{p.current&&clearTimeout(p.current),Yr[d]&&delete Yr[d]},[d]),{isOpen:l,open:A=>{!A&&n>0&&!p.current?C():x()},close:S}}const ul=typeof document<"u"?ie.useLayoutEffect:()=>{};var eb;const uC=(eb=ie.useInsertionEffect)!==null&&eb!==void 0?eb:ul;function cC(e){const n=v.useRef(null);return uC(()=>{n.current=e},[e]),v.useCallback((...r)=>{const l=n.current;return l?.(...r)},[])}const F5={prefix:String(Math.round(Math.random()*1e10)),current:0},G5=ie.createContext(F5),dC=ie.createContext(!1);let tb=new WeakMap;function fC(e=!1){let n=v.useContext(G5),r=v.useRef(null);if(r.current===null&&!e){var l,i;let u=(i=ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(l=i.ReactCurrentOwner)===null||l===void 0?void 0:l.current;if(u){let d=tb.get(u);d==null?tb.set(u,{id:n.current,state:u.memoizedState}):u.memoizedState!==d.state&&(n.current=d.id,tb.delete(u))}r.current=++n.current}return r.current}function pC(e){let n=v.useContext(G5),r=fC(!!e),l=`react-aria${n.prefix}`;return e||`${l}-${r}`}function bC(e){let n=ie.useId(),[r]=v.useState(u0()),l=r?"react-aria":`react-aria${F5.prefix}`;return e||`${l}-${n}`}const vC=typeof ie.useId=="function"?bC:pC;function mC(){return!1}function gC(){return!0}function hC(e){return()=>{}}function u0(){return typeof ie.useSyncExternalStore=="function"?ie.useSyncExternalStore(hC,mC,gC):v.useContext(dC)}let $C=!!(typeof window<"u"&&window.document&&window.document.createElement),$o=new Map,Gi;typeof FinalizationRegistry<"u"&&(Gi=new FinalizationRegistry(e=>{$o.delete(e)}));function yC(e){let[n,r]=v.useState(e),l=v.useRef(null),i=vC(n),u=v.useRef(null);if(Gi&&Gi.register(u,i),$C){const d=$o.get(i);d&&!d.includes(l)?d.push(l):$o.set(i,[l])}return ul(()=>{let d=i;return()=>{Gi&&Gi.unregister(u),$o.delete(d)}},[i]),v.useEffect(()=>{let d=l.current;return d&&r(d),()=>{d&&(l.current=null)}}),i}function xC(e,n){if(e===n)return e;let r=$o.get(e);if(r)return r.forEach(i=>i.current=n),n;let l=$o.get(n);return l?(l.forEach(i=>i.current=e),e):n}function EC(...e){return(...n)=>{for(let r of e)typeof r=="function"&&r(...n)}}const gl=e=>{var n;return(n=e?.ownerDocument)!==null&&n!==void 0?n:document},tv=e=>e&&"window"in e&&e.window===e?e:gl(e).defaultView||window;function wC(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function TC(e){return wC(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function SC(e,n){if(!Ve())return n&&e?e.contains(n):!1;if(!e||!n)return!1;let r=n;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:TC(r)?r=r.host:r=r.parentNode}return!1}const Kc=(e=document)=>{var n;if(!Ve())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((n=r.shadowRoot)===null||n===void 0)&&n.activeElement);)r=r.shadowRoot.activeElement;return r};function CC(e){return Ve()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function K5(e){var n,r,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(n=0;n=65&&i.charCodeAt(2)<=90?n[i]=EC(u,d):(i==="className"||i==="UNSAFE_className")&&typeof u=="string"&&typeof d=="string"?n[i]=MC(u,d):i==="id"&&u&&d?n.id=xC(u,d):n[i]=d!==void 0?d:u}}return n}const LC=new Set(["id"]),PC=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),AC=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),kC=new Set(["dir","lang","hidden","inert","translate"]),k$=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),DC=/^(data-.*)$/;function zC(e,n={}){let{labelable:r,isLink:l,global:i,events:u=i,propNames:d}=n,p={};for(const b in e)Object.prototype.hasOwnProperty.call(e,b)&&(LC.has(b)||r&&PC.has(b)||l&&AC.has(b)||i&&kC.has(b)||u&&k$.has(b)||b.endsWith("Capture")&&k$.has(b.slice(0,-7))||d?.has(b)||DC.test(b))&&(p[b]=e[b]);return p}function D$(e){if(OC())e.focus({preventScroll:!0});else{let n=NC(e);e.focus(),jC(n)}}let uc=null;function OC(){if(uc==null){uc=!1;try{document.createElement("div").focus({get preventScroll(){return uc=!0,!0}})}catch{}}return uc}function NC(e){let n=e.parentNode,r=[],l=document.scrollingElement||document.documentElement;for(;n instanceof HTMLElement&&n!==l;)(n.offsetHeight"u"||window.navigator==null)return!1;let r=(n=window.navigator.userAgentData)===null||n===void 0?void 0:n.brands;return Array.isArray(r)&&r.some(l=>e.test(l.brand))||e.test(window.navigator.userAgent)}function RC(e){var n;return typeof window<"u"&&window.navigator!=null?e.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function hd(e){let n=null;return()=>(n==null&&(n=e()),n)}const HC=hd(function(){return RC(/^Mac/i)}),_C=hd(function(){return c0(/AppleWebKit/i)&&!VC()}),VC=hd(function(){return c0(/Chrome/i)}),BC=hd(function(){return c0(/Android/i)});let br=new Map,nv=new Set;function z$(){if(typeof window>"u")return;function e(l){return"propertyName"in l}let n=l=>{if(!e(l)||!l.target)return;let i=br.get(l.target);i||(i=new Set,br.set(l.target,i),l.target.addEventListener("transitioncancel",r,{once:!0})),i.add(l.propertyName)},r=l=>{if(!e(l)||!l.target)return;let i=br.get(l.target);if(i&&(i.delete(l.propertyName),i.size===0&&(l.target.removeEventListener("transitioncancel",r),br.delete(l.target)),br.size===0)){for(let u of nv)u();nv.clear()}};document.body.addEventListener("transitionrun",n),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?z$():document.addEventListener("DOMContentLoaded",z$));function UC(){for(const[e]of br)"isConnected"in e&&!e.isConnected&&br.delete(e)}function FC(e){requestAnimationFrame(()=>{UC(),br.size===0?e():nv.add(e)})}function GC(){let e=v.useRef(new Map),n=v.useCallback((i,u,d,p)=>{let b=p?.once?(...m)=>{e.current.delete(d),d(...m)}:d;e.current.set(d,{type:u,eventTarget:i,fn:b,options:p}),i.addEventListener(u,b,p)},[]),r=v.useCallback((i,u,d,p)=>{var b;let m=((b=e.current.get(d))===null||b===void 0?void 0:b.fn)||d;i.removeEventListener(u,m,p),e.current.delete(d)},[]),l=v.useCallback(()=>{e.current.forEach((i,u)=>{r(i.eventTarget,i.type,u,i.options)})},[r]);return v.useEffect(()=>l,[l]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:l}}function KC(){return typeof window.ResizeObserver<"u"}function O$(e){const{ref:n,box:r,onResize:l}=e;v.useEffect(()=>{let i=n?.current;if(i)if(KC()){const u=new window.ResizeObserver(d=>{d.length&&l()});return u.observe(i,{box:r}),()=>{i&&u.unobserve(i)}}else return window.addEventListener("resize",l,!1),()=>{window.removeEventListener("resize",l,!1)}},[l,n,r])}function IC(e,n){ul(()=>{if(e&&e.ref&&n)return e.ref.current=n.current,()=>{e.ref&&(e.ref.current=null)}})}function qC(e){return e.pointerType===""&&e.isTrusted?!0:BC()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function YC(e){let n=e;return n.nativeEvent=e,n.isDefaultPrevented=()=>n.defaultPrevented,n.isPropagationStopped=()=>n.cancelBubble,n.persist=()=>{},n}function WC(e){let n=v.useRef({isFocused:!1,observer:null});ul(()=>{const l=n.current;return()=>{l.observer&&(l.observer.disconnect(),l.observer=null)}},[]);let r=cC(l=>{e?.(l)});return v.useCallback(l=>{if(l.target instanceof HTMLButtonElement||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement||l.target instanceof HTMLSelectElement){n.current.isFocused=!0;let i=l.target,u=d=>{if(n.current.isFocused=!1,i.disabled){let p=YC(d);r(p)}n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};i.addEventListener("focusout",u,{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&i.disabled){var d;(d=n.current.observer)===null||d===void 0||d.disconnect();let p=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:p})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:p}))}}),n.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let XC=!1,Bo=null,ZC=new Set,es=new Map,cl=!1,av=!1;function d0(e,n){for(let r of ZC)r(e,n)}function QC(e){return!(e.metaKey||!HC()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function qc(e){cl=!0,QC(e)&&(Bo="keyboard",d0("keyboard",e))}function yo(e){Bo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(cl=!0,d0("pointer",e))}function I5(e){qC(e)&&(cl=!0,Bo="virtual")}function q5(e){e.target===window||e.target===document||XC||!e.isTrusted||(!cl&&!av&&(Bo="virtual",d0("virtual",e)),cl=!1,av=!1)}function Y5(){cl=!1,av=!0}function N$(e){if(typeof window>"u"||typeof document>"u"||es.get(tv(e)))return;const n=tv(e),r=gl(e);let l=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){cl=!0,l.apply(this,arguments)},r.addEventListener("keydown",qc,!0),r.addEventListener("keyup",qc,!0),r.addEventListener("click",I5,!0),n.addEventListener("focus",q5,!0),n.addEventListener("blur",Y5,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",yo,!0),r.addEventListener("pointermove",yo,!0),r.addEventListener("pointerup",yo,!0)),n.addEventListener("beforeunload",()=>{W5(e)},{once:!0}),es.set(n,{focus:l})}const W5=(e,n)=>{const r=tv(e),l=gl(e);n&&l.removeEventListener("DOMContentLoaded",n),es.has(r)&&(r.HTMLElement.prototype.focus=es.get(r).focus,l.removeEventListener("keydown",qc,!0),l.removeEventListener("keyup",qc,!0),l.removeEventListener("click",I5,!0),r.removeEventListener("focus",q5,!0),r.removeEventListener("blur",Y5,!1),typeof PointerEvent<"u"&&(l.removeEventListener("pointerdown",yo,!0),l.removeEventListener("pointermove",yo,!0),l.removeEventListener("pointerup",yo,!0)),es.delete(r))};function JC(e){const n=gl(e);let r;return n.readyState!=="loading"?N$(e):(r=()=>{N$(e)},n.addEventListener("DOMContentLoaded",r)),()=>W5(e,r)}typeof document<"u"&&JC();function eM(){return Bo!=="pointer"}function X5(){return Bo}function tM(e){const n=gl(e),r=Kc(n);if(X5()==="virtual"){let l=r;FC(()=>{Kc(n)===l&&e.isConnected&&D$(e)})}else D$(e)}function nM(e){let{isDisabled:n,onFocus:r,onBlur:l,onFocusChange:i}=e;const u=v.useCallback(b=>{if(b.target===b.currentTarget)return l&&l(b),i&&i(!1),!0},[l,i]),d=WC(u),p=v.useCallback(b=>{const m=gl(b.target),$=m?Kc(m):Kc();b.target===b.currentTarget&&$===CC(b.nativeEvent)&&(r&&r(b),i&&i(!0),d(b))},[i,r,d]);return{focusProps:{onFocus:!n&&(r||i||l)?p:void 0,onBlur:!n&&(l||i)?u:void 0}}}function j$(e){if(!e)return;let n=!0;return r=>{let l={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1},isPropagationStopped(){return n}};e(l),n&&r.stopPropagation()}}function aM(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:j$(e.onKeyDown),onKeyUp:j$(e.onKeyUp)}}}let rM=ie.createContext(null);function lM(e){let n=v.useContext(rM)||{};IC(n,e);let{ref:r,...l}=n;return l}function oM(e,n){let{focusProps:r}=nM(e),{keyboardProps:l}=aM(e),i=Ic(r,l),u=lM(n),d=e.isDisabled?{}:u,p=v.useRef(e.autoFocus);v.useEffect(()=>{p.current&&n.current&&tM(n.current),p.current=!1},[n]);let b=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(b=void 0),{focusableProps:Ic({...i,tabIndex:b},d)}}let rv=!1,cc=0;function iM(){rv=!0,setTimeout(()=>{rv=!1},50)}function R$(e){e.pointerType==="touch"&&iM()}function sM(){if(!(typeof document>"u"))return cc===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",R$),cc++,()=>{cc--,!(cc>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",R$)}}function Z5(e){let{onHoverStart:n,onHoverChange:r,onHoverEnd:l,isDisabled:i}=e,[u,d]=v.useState(!1),p=v.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;v.useEffect(sM,[]);let{addGlobalListener:b,removeAllGlobalListeners:m}=GC(),{hoverProps:$,triggerHoverEnd:x}=v.useMemo(()=>{let S=(w,L)=>{if(p.pointerType=L,i||L==="touch"||p.isHovered||!w.currentTarget.contains(w.target))return;p.isHovered=!0;let P=w.currentTarget;p.target=P,b(gl(w.target),"pointerover",N=>{p.isHovered&&p.target&&!SC(p.target,N.target)&&C(N,N.pointerType)},{capture:!0}),n&&n({type:"hoverstart",target:P,pointerType:L}),r&&r(!0),d(!0)},C=(w,L)=>{let P=p.target;p.pointerType="",p.target=null,!(L==="touch"||!p.isHovered||!P)&&(p.isHovered=!1,m(),l&&l({type:"hoverend",target:P,pointerType:L}),r&&r(!1),d(!1))},A={};return typeof PointerEvent<"u"&&(A.onPointerEnter=w=>{rv&&w.pointerType==="mouse"||S(w,w.pointerType)},A.onPointerLeave=w=>{!i&&w.currentTarget.contains(w.target)&&C(w,w.pointerType)}),{hoverProps:A,triggerHoverEnd:C}},[n,r,l,i,p,b,m]);return v.useEffect(()=>{i&&x({currentTarget:p.target},p.pointerType)},[i]),{hoverProps:$,isHovered:u}}function uM(e,n){let r=zC(e,{labelable:!0}),{hoverProps:l}=Z5({onHoverStart:()=>n?.open(!0),onHoverEnd:()=>n?.close()});return{tooltipProps:Ic(r,l,{role:"tooltip"})}}function cM(e,n,r){let{isDisabled:l,trigger:i}=e,u=yC(),d=v.useRef(!1),p=v.useRef(!1),b=()=>{(d.current||p.current)&&n.open(p.current)},m=P=>{!d.current&&!p.current&&n.close(P)};v.useEffect(()=>{let P=N=>{r&&r.current&&N.key==="Escape"&&(N.stopPropagation(),n.close(!0))};if(n.isOpen)return document.addEventListener("keydown",P,!0),()=>{document.removeEventListener("keydown",P,!0)}},[r,n]);let $=()=>{i!=="focus"&&(X5()==="pointer"?d.current=!0:d.current=!1,b())},x=()=>{i!=="focus"&&(p.current=!1,d.current=!1,m())},S=()=>{p.current=!1,d.current=!1,m(!0)},C=()=>{eM()&&(p.current=!0,b())},A=()=>{p.current=!1,d.current=!1,m(!0)},{hoverProps:w}=Z5({isDisabled:l,onHoverStart:$,onHoverEnd:x}),{focusableProps:L}=oM({isDisabled:l,onFocus:C,onBlur:A},r);return{triggerProps:{"aria-describedby":n.isOpen?u:void 0,...Ic(L,w,{onPointerDown:S,onKeyDown:S}),tabIndex:void 0},tooltipProps:{id:u}}}const ra={top:"top",bottom:"top",left:"left",right:"left"},Yc={top:"bottom",bottom:"top",left:"right",right:"left"},dM={top:"left",left:"top"},lv={top:"height",left:"width"},Q5={width:"totalWidth",height:"totalHeight"},dc={};let Pt=typeof document<"u"?window.visualViewport:null;function H$(e){let n=0,r=0,l=0,i=0,u=0,d=0,p={};var b;let m=((b=Pt?.scale)!==null&&b!==void 0?b:1)>1;if(e.tagName==="BODY"){let A=document.documentElement;l=A.clientWidth,i=A.clientHeight;var $;n=($=Pt?.width)!==null&&$!==void 0?$:l;var x;r=(x=Pt?.height)!==null&&x!==void 0?x:i,p.top=A.scrollTop||e.scrollTop,p.left=A.scrollLeft||e.scrollLeft,Pt&&(u=Pt.offsetTop,d=Pt.offsetLeft)}else({width:n,height:r,top:u,left:d}=xo(e,!1)),p.top=e.scrollTop,p.left=e.scrollLeft,l=n,i=r;if(_C()&&(e.tagName==="BODY"||e.tagName==="HTML")&&m){p.top=0,p.left=0;var S;u=(S=Pt?.pageTop)!==null&&S!==void 0?S:0;var C;d=(C=Pt?.pageLeft)!==null&&C!==void 0?C:0}return{width:n,height:r,totalWidth:l,totalHeight:i,scroll:p,top:u,left:d}}function fM(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function _$(e,n,r,l,i,u,d){var p;let b=(p=i.scroll[e])!==null&&p!==void 0?p:0,m=l[lv[e]],$=l.scroll[ra[e]]+u,x=m+l.scroll[ra[e]]-u,S=n-b+d[e]-l[ra[e]],C=n-b+r+d[e]-l[ra[e]];return S<$?$-S:C>x?Math.max(x-C,$-S):0}function pM(e){let n=window.getComputedStyle(e);return{top:parseInt(n.marginTop,10)||0,bottom:parseInt(n.marginBottom,10)||0,left:parseInt(n.marginLeft,10)||0,right:parseInt(n.marginRight,10)||0}}function V$(e){if(dc[e])return dc[e];let[n,r]=e.split(" "),l=ra[n]||"right",i=dM[l];ra[r]||(r="center");let u=lv[l],d=lv[i];return dc[e]={placement:n,crossPlacement:r,axis:l,crossAxis:i,size:u,crossSize:d},dc[e]}function nb(e,n,r,l,i,u,d,p,b,m){let{placement:$,crossPlacement:x,axis:S,crossAxis:C,size:A,crossSize:w}=l,L={};var P;L[C]=(P=e[C])!==null&&P!==void 0?P:0;var N,B,H,I;x==="center"?L[C]+=(((N=e[w])!==null&&N!==void 0?N:0)-((B=r[w])!==null&&B!==void 0?B:0))/2:x!==C&&(L[C]+=((H=e[w])!==null&&H!==void 0?H:0)-((I=r[w])!==null&&I!==void 0?I:0)),L[C]+=u;const G=e[C]-r[w]+b+m,J=e[C]+e[w]-b-m;if(L[C]=ev(L[C],G,J),$===S){const W=p?d[A]:n[Q5[A]];L[Yc[S]]=Math.floor(W-e[S]+i)}else L[S]=Math.floor(e[S]+e[A]+i);return L}function bM(e,n,r,l,i,u,d,p){const b=l?r.height:n[Q5.height];var m;let $=e.top!=null?r.top+e.top:r.top+(b-((m=e.bottom)!==null&&m!==void 0?m:0)-d);var x,S,C,A,w,L;let P=p!=="top"?Math.max(0,n.height+n.top+((x=n.scroll.top)!==null&&x!==void 0?x:0)-$-(((S=i.top)!==null&&S!==void 0?S:0)+((C=i.bottom)!==null&&C!==void 0?C:0)+u)):Math.max(0,$+d-(n.top+((A=n.scroll.top)!==null&&A!==void 0?A:0))-(((w=i.top)!==null&&w!==void 0?w:0)+((L=i.bottom)!==null&&L!==void 0?L:0)+u));return Math.min(n.height-u*2,P)}function B$(e,n,r,l,i,u){let{placement:d,axis:p,size:b}=u;var m,$;if(d===p)return Math.max(0,r[p]-e[p]-((m=e.scroll[p])!==null&&m!==void 0?m:0)+n[p]-(($=l[p])!==null&&$!==void 0?$:0)-l[Yc[p]]-i);var x;return Math.max(0,e[b]+e[p]+e.scroll[p]-n[p]-r[p]-r[b]-((x=l[p])!==null&&x!==void 0?x:0)-l[Yc[p]]-i)}function vM(e,n,r,l,i,u,d,p,b,m,$,x,S,C,A,w){let L=V$(e),{size:P,crossAxis:N,crossSize:B,placement:H,crossPlacement:I}=L,G=nb(n,p,r,L,$,x,m,S,A,w),J=$,W=B$(p,m,n,i,u+$,L);if(d&&l[P]>W){let ce=V$(`${Yc[H]} ${I}`),we=nb(n,p,r,ce,$,x,m,S,A,w);B$(p,m,n,i,u+$,ce)>W&&(L=ce,G=we,J=$)}let ne="bottom";L.axis==="top"?L.placement==="top"?ne="top":L.placement==="bottom"&&(ne="bottom"):L.crossAxis==="top"&&(L.crossPlacement==="top"?ne="bottom":L.crossPlacement==="bottom"&&(ne="top"));let ue=_$(N,G[N],r[B],p,b,u,m);G[N]+=ue;let g=bM(G,p,m,S,i,u,r.height,ne);C&&C{if(!r||l===null)return;let i=u=>{let d=u.target;if(!n.current||d instanceof Node&&!d.contains(n.current)||u.target instanceof HTMLInputElement||u.target instanceof HTMLTextAreaElement)return;let p=l||hM.get(n.current);p&&p()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[r,l,n])}const yM=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),xM=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function EM(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),l=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(l)return l.direction==="rtl";if(r.script)return yM.has(r.script)}let n=e.split("-")[0];return xM.has(n)}const wM=Symbol.for("react-aria.i18n.locale");function J5(){let e=typeof window<"u"&&window[wM]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:EM(e)?"rtl":"ltr"}}let ov=J5(),Ki=new Set;function G$(){ov=J5();for(let e of Ki)e(ov)}function TM(){let e=u0(),[n,r]=v.useState(ov);return v.useEffect(()=>(Ki.size===0&&window.addEventListener("languagechange",G$),Ki.add(r),()=>{Ki.delete(r),Ki.size===0&&window.removeEventListener("languagechange",G$)}),[]),e?{locale:"en-US",direction:"ltr"}:n}const SM=ie.createContext(null);function CM(){let e=TM();return v.useContext(SM)||e}let gt=typeof document<"u"?window.visualViewport:null;function MM(e){let{direction:n}=CM(),{arrowSize:r,targetRef:l,overlayRef:i,arrowRef:u,scrollRef:d=i,placement:p="bottom",containerPadding:b=12,shouldFlip:m=!0,boundaryElement:$=typeof document<"u"?document.body:null,offset:x=0,crossOffset:S=0,shouldUpdatePosition:C=!0,isOpen:A=!0,onClose:w,maxHeight:L,arrowBoundaryOffset:P=0}=e,[N,B]=v.useState(null),H=[C,p,i.current,l.current,u?.current,d.current,b,m,$,x,S,A,n,L,P,r],I=v.useRef(gt?.scale);v.useEffect(()=>{A&&(I.current=gt?.scale)},[A]);let G=v.useCallback(()=>{if(C===!1||!A||!i.current||!l.current||!$||gt?.scale!==I.current)return;let k=null;if(d.current&&d.current.contains(document.activeElement)){var U;let re=(U=document.activeElement)===null||U===void 0?void 0:U.getBoundingClientRect(),z=d.current.getBoundingClientRect();var E;if(k={type:"top",offset:((E=re?.top)!==null&&E!==void 0?E:0)-z.top},k.offset>z.height/2){k.type="bottom";var _;k.offset=((_=re?.bottom)!==null&&_!==void 0?_:0)-z.bottom}}let h=i.current;if(!L&&i.current){var D;h.style.top="0px",h.style.bottom="";var O;h.style.maxHeight=((O=(D=window.visualViewport)===null||D===void 0?void 0:D.height)!==null&&O!==void 0?O:window.innerHeight)+"px"}let q=mM({placement:PM(p,n),overlayNode:i.current,targetNode:l.current,scrollNode:d.current||i.current,padding:b,shouldFlip:m,boundaryElement:$,offset:x,crossOffset:S,maxHeight:L,arrowSize:r??(u?.current?f0(u.current,!0).width:0),arrowBoundaryOffset:P});if(q.position){if(h.style.top="",h.style.bottom="",h.style.left="",h.style.right="",Object.keys(q.position).forEach(re=>h.style[re]=q.position[re]+"px"),h.style.maxHeight=q.maxHeight!=null?q.maxHeight+"px":"",k&&document.activeElement&&d.current){let re=document.activeElement.getBoundingClientRect(),z=d.current.getBoundingClientRect(),j=re[k.type]-z[k.type];d.current.scrollTop+=j-k.offset}B(q)}},H);ul(G,H),LM(G),O$({ref:i,onResize:G}),O$({ref:l,onResize:G});let J=v.useRef(!1);ul(()=>{let k,U=()=>{J.current=!0,clearTimeout(k),k=setTimeout(()=>{J.current=!1},500),G()},E=()=>{J.current&&U()};return gt?.addEventListener("resize",U),gt?.addEventListener("scroll",E),()=>{gt?.removeEventListener("resize",U),gt?.removeEventListener("scroll",E)}},[G]);let W=v.useCallback(()=>{J.current||w?.()},[w,J]);$M({triggerRef:l,isOpen:A,onClose:w&&W});var ne,ue,g;return{overlayProps:{style:{position:N?"absolute":"fixed",top:N?void 0:0,left:N?void 0:0,zIndex:1e5,...N?.position,maxHeight:(ne=N?.maxHeight)!==null&&ne!==void 0?ne:"100vh"}},placement:(ue=N?.placement)!==null&&ue!==void 0?ue:null,triggerAnchorPoint:(g=N?.triggerAnchorPoint)!==null&&g!==void 0?g:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:N?.arrowOffsetLeft,top:N?.arrowOffsetTop}},updatePosition:G}}function LM(e){ul(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function PM(e,n){return n==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const AM=v.createContext({});function kM(){var e;return(e=v.useContext(AM))!==null&&e!==void 0?e:{}}const iv=ie.createContext(null);function DM(e){let{children:n}=e,r=v.useContext(iv),[l,i]=v.useState(0),u=v.useMemo(()=>({parent:r,modalCount:l,addModal(){i(d=>d+1),r&&r.addModal()},removeModal(){i(d=>d-1),r&&r.removeModal()}}),[r,l]);return ie.createElement(iv.Provider,{value:u},n)}function zM(){let e=v.useContext(iv);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function OM(e){let{modalProviderProps:n}=zM();return ie.createElement("div",{"data-overlay-container":!0,...e,...n})}function NM(e){return ie.createElement(DM,null,ie.createElement(OM,e))}function K$(e){let n=u0(),{portalContainer:r=n?null:document.body,...l}=e,{getContainer:i}=kM();if(!e.portalContainer&&i&&(r=i()),ie.useEffect(()=>{if(r?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let u=ie.createElement(NM,l);return ow.createPortal(u,r)}const e6=typeof document<"u"?ie.useLayoutEffect:()=>{};var ab;const jM=(ab=ie.useInsertionEffect)!==null&&ab!==void 0?ab:e6;function sv(e){const n=v.useRef(null);return jM(()=>{n.current=e},[e]),v.useCallback((...r)=>{const l=n.current;return l?.(...r)},[])}const t6=e=>{var n;return(n=e?.ownerDocument)!==null&&n!==void 0?n:document};function RM(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function HM(e){return RM(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function _M(e,n){if(!Ve())return n&&e?e.contains(n):!1;if(!e||!n)return!1;let r=n;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:HM(r)?r=r.host:r=r.parentNode}return!1}const VM=(e=document)=>{var n;if(!Ve())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((n=r.shadowRoot)===null||n===void 0)&&n.activeElement);)r=r.shadowRoot.activeElement;return r};function BM(e){return Ve()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function UM(){let e=v.useRef(new Map),n=v.useCallback((i,u,d,p)=>{let b=p?.once?(...m)=>{e.current.delete(d),d(...m)}:d;e.current.set(d,{type:u,eventTarget:i,fn:b,options:p}),i.addEventListener(u,b,p)},[]),r=v.useCallback((i,u,d,p)=>{var b;let m=((b=e.current.get(d))===null||b===void 0?void 0:b.fn)||d;i.removeEventListener(u,m,p),e.current.delete(d)},[]),l=v.useCallback(()=>{e.current.forEach((i,u)=>{r(i.eventTarget,i.type,u,i.options)})},[r]);return v.useEffect(()=>l,[l]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:l}}function n6(e){let n=e;return n.nativeEvent=e,n.isDefaultPrevented=()=>n.defaultPrevented,n.isPropagationStopped=()=>n.cancelBubble,n.persist=()=>{},n}function FM(e,n){Object.defineProperty(e,"target",{value:n}),Object.defineProperty(e,"currentTarget",{value:n})}function GM(e){let n=v.useRef({isFocused:!1,observer:null});e6(()=>{const l=n.current;return()=>{l.observer&&(l.observer.disconnect(),l.observer=null)}},[]);let r=sv(l=>{e?.(l)});return v.useCallback(l=>{if(l.target instanceof HTMLButtonElement||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement||l.target instanceof HTMLSelectElement){n.current.isFocused=!0;let i=l.target,u=d=>{if(n.current.isFocused=!1,i.disabled){let p=n6(d);r(p)}n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};i.addEventListener("focusout",u,{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&i.disabled){var d;(d=n.current.observer)===null||d===void 0||d.disconnect();let p=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:p})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:p}))}}),n.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function KM(e){let{isDisabled:n,onBlurWithin:r,onFocusWithin:l,onFocusWithinChange:i}=e,u=v.useRef({isFocusWithin:!1}),{addGlobalListener:d,removeAllGlobalListeners:p}=UM(),b=v.useCallback(x=>{x.currentTarget.contains(x.target)&&u.current.isFocusWithin&&!x.currentTarget.contains(x.relatedTarget)&&(u.current.isFocusWithin=!1,p(),r&&r(x),i&&i(!1))},[r,i,u,p]),m=GM(b),$=v.useCallback(x=>{if(!x.currentTarget.contains(x.target))return;const S=t6(x.target),C=VM(S);if(!u.current.isFocusWithin&&C===BM(x.nativeEvent)){l&&l(x),i&&i(!0),u.current.isFocusWithin=!0,m(x);let A=x.currentTarget;d(S,"focus",w=>{if(u.current.isFocusWithin&&!_M(A,w.target)){let L=new S.defaultView.FocusEvent("blur",{relatedTarget:w.target});FM(L,A);let P=n6(L);b(P)}},{capture:!0})}},[l,i,m,d,b]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:$,onBlur:b}}}function IM(e){let{ref:n,onInteractOutside:r,isDisabled:l,onInteractOutsideStart:i}=e,u=v.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),d=sv(b=>{r&&I$(b,n)&&(i&&i(b),u.current.isPointerDown=!0)}),p=sv(b=>{r&&r(b)});v.useEffect(()=>{let b=u.current;if(l)return;const m=n.current,$=t6(m);if(typeof PointerEvent<"u"){let x=S=>{b.isPointerDown&&I$(S,n)&&p(S),b.isPointerDown=!1};return $.addEventListener("pointerdown",d,!0),$.addEventListener("click",x,!0),()=>{$.removeEventListener("pointerdown",d,!0),$.removeEventListener("click",x,!0)}}},[n,l,d,p])}function I$(e,n){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return n.current?!e.composedPath().includes(n.current):!1}let qM=null;function a6(e,n){return!e||!n?!1:n.some(r=>r.contains(e))}function YM(e,n=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Y$.traverse(Y$.getTreeNode(n)))if(r&&a6(e,r.current))return!0;return!1}function WM(e){return YM(e,qM)}class p0{get size(){return this.fastMap.size}getTreeNode(n){return this.fastMap.get(n)}addTreeNode(n,r,l){let i=this.fastMap.get(r??null);if(!i)return;let u=new q$({scopeRef:n});i.addChild(u),u.parent=i,this.fastMap.set(n,u),l&&(u.nodeToRestore=l)}addNode(n){this.fastMap.set(n.scopeRef,n)}removeTreeNode(n){if(n===null)return;let r=this.fastMap.get(n);if(!r)return;let l=r.parent;for(let u of this.traverse())u!==r&&r.nodeToRestore&&u.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&a6(u.nodeToRestore,r.scopeRef.current)&&(u.nodeToRestore=r.nodeToRestore);let i=r.children;l&&(l.removeChild(r),i.size>0&&i.forEach(u=>l&&l.addChild(u))),this.fastMap.delete(r.scopeRef)}*traverse(n=this.root){if(n.scopeRef!=null&&(yield n),n.children.size>0)for(let r of n.children)yield*this.traverse(r)}clone(){var n;let r=new p0;var l;for(let i of this.traverse())r.addTreeNode(i.scopeRef,(l=(n=i.parent)===null||n===void 0?void 0:n.scopeRef)!==null&&l!==void 0?l:null,i.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new q$({scopeRef:null}),this.fastMap.set(null,this.root)}}class q${addChild(n){this.children.add(n),n.parent=this}removeChild(n){this.children.delete(n),n.parent=void 0}constructor(n){this.children=new Set,this.contain=!1,this.scopeRef=n.scopeRef}}let Y$=new p0;var aa=[];function XM(e,n){const{disableOutsideEvents:r=!0,isDismissable:l=!1,isKeyboardDismissDisabled:i=!1,isOpen:u,onClose:d,shouldCloseOnBlur:p,shouldCloseOnInteractOutside:b}=e;v.useEffect(()=>{if(u&&!aa.includes(n))return aa.push(n),()=>{let L=aa.indexOf(n);L>=0&&aa.splice(L,1)}},[u,n]);const m=()=>{aa[aa.length-1]===n&&d&&d()},$=L=>{(!b||b(L.target))&&(aa[aa.length-1]===n&&r&&(L.stopPropagation(),L.preventDefault()),w(n)!=="pressEnd"&&m())},x=L=>{(!b||b(L.target))&&(aa[aa.length-1]===n&&r&&(L.stopPropagation(),L.preventDefault()),m())},S=L=>{L.key==="Escape"&&!i&&!L.nativeEvent.isComposing&&(L.stopPropagation(),L.preventDefault(),m())};IM({isDisabled:!(l&&u),onInteractOutside:l&&u?x:void 0,onInteractOutsideStart:$,ref:n});const{focusWithinProps:C}=KM({isDisabled:!p,onBlurWithin:L=>{!L.relatedTarget||WM(L.relatedTarget)||(!b||b(L.relatedTarget))&&m()}}),A=L=>{L.target===L.currentTarget&&L.preventDefault()};function w(L){const P=L.current;if(!P)return"unknown";const N=(P.getAttribute("role")||"").toLowerCase(),B=P.getAttribute("aria-modal");return(N==="dialog"||N==="alertdialog")&&(B===null||B.toLowerCase()==="true")?"pressEnd":["listbox","menu","tree","grid","combobox"].includes(N)?"pressStart":"unknown"}return{overlayProps:{onKeyDown:S,...C},underlayProps:{onPointerDown:A}}}function ZM(e){var n,r;const l=oa(),[i,u]=Ho(e,l$.variantKeys),{ref:d,as:p,isOpen:b,content:m,children:$,defaultOpen:x,onOpenChange:S,isDisabled:C,trigger:A,shouldFlip:w=!0,containerPadding:L=12,placement:P="top",delay:N=0,closeDelay:B=500,showArrow:H=!1,offset:I=7,crossOffset:G=0,isDismissable:J,shouldCloseOnBlur:W=!0,portalContainer:ne,isKeyboardDismissDisabled:ue=!1,updatePositionDeps:g=[],shouldCloseOnInteractOutside:k,className:U,onClose:E,motionProps:_,classNames:h,...D}=i,O=p||"div",q=(r=(n=e?.disableAnimation)!=null?n:l?.disableAnimation)!=null?r:!1,re=sC({delay:N,closeDelay:B,isDisabled:C,defaultOpen:x,isOpen:b,onOpenChange:ge=>{S?.(ge),ge||E?.()}}),z=v.useRef(null),j=v.useRef(null),Z=v.useId(),K=re.isOpen&&!C;v.useImperativeHandle(d,()=>bE(j));const{triggerProps:se,tooltipProps:oe}=cM({isDisabled:C,trigger:A},re,z),{tooltipProps:ce}=uM({isOpen:K,...it(i,oe)},re),{overlayProps:we,placement:he,updatePosition:me}=MM({isOpen:K,targetRef:z,placement:BT(P),overlayRef:j,offset:H?I+3:I,crossOffset:G,shouldFlip:w,containerPadding:L});Qv(()=>{g.length&&me()},g);const{overlayProps:nt}=XM({isOpen:K,onClose:re.close,isDismissable:J,shouldCloseOnBlur:W,isKeyboardDismissDisabled:ue,shouldCloseOnInteractOutside:k},j),Ke=v.useMemo(()=>{var ge,pt,At;return l$({...u,disableAnimation:q,radius:(ge=e?.radius)!=null?ge:"md",size:(pt=e?.size)!=null?pt:"md",shadow:(At=e?.shadow)!=null?At:"sm"})},[Ro(u),q,e?.radius,e?.size,e?.shadow]),Ie=v.useCallback((ge={},pt=null)=>({...it(se,ge),ref:Zy(pt,z),"aria-describedby":K?Z:void 0}),[se,K,Z,re]),qe=v.useCallback(()=>({ref:j,"data-slot":"base","data-open":ve(K),"data-arrow":ve(H),"data-disabled":ve(C),"data-placement":s$(he||"top",P),...it(ce,nt,D),style:it(we.style,D.style,i.style),className:Ke.base({class:h?.base}),id:Z}),[Ke,K,H,C,he,P,ce,nt,D,we,i,Z]),at=v.useCallback(()=>({"data-slot":"content","data-open":ve(K),"data-arrow":ve(H),"data-disabled":ve(C),"data-placement":s$(he||"top",P),className:Ke.content({class:ot(h?.content,U)})}),[Ke,K,H,C,he,P,h]);return{Component:O,content:m,children:$,isOpen:K,triggerRef:z,showArrow:H,portalContainer:ne,placement:P,disableAnimation:q,isDisabled:C,motionProps:_,getTooltipContentProps:at,getTriggerProps:Ie,getTooltipProps:qe}}var QM=()=>vd(()=>import("./index-BTt_FDEC.js"),__vite__mapDeps([0,1])).then(e=>e.default),r6=ja((e,n)=>{var r;const{Component:l,children:i,content:u,isOpen:d,portalContainer:p,placement:b,disableAnimation:m,motionProps:$,getTriggerProps:x,getTooltipProps:S,getTooltipContentProps:C}=ZM({...e,ref:n});let A;try{if(v.Children.count(i)!==1)throw new Error;if(!v.isValidElement(i))A=T.jsx("p",{...x(),children:i});else{const I=i,G=(r=I.props.ref)!=null?r:I.ref;A=v.cloneElement(I,x(I.props,G))}}catch{A=T.jsx("span",{}),Xy("Tooltip must have only one child node. Please, check your code.")}const{ref:w,id:L,style:P,...N}=S(),B=T.jsx("div",{ref:w,id:L,style:P,children:T.jsx(pd.div,{animate:"enter",exit:"exit",initial:"exit",variants:_T.scaleSpring,...it($,N),style:{...VT(b)},children:T.jsx(l,{...C(),children:u})},`${L}-tooltip-inner`)},`${L}-tooltip-content`);return T.jsxs(T.Fragment,{children:[A,m?d&&T.jsx(K$,{portalContainer:p,children:T.jsx("div",{ref:w,id:L,style:P,...N,children:T.jsx(l,{...C(),children:u})})}):T.jsx(cd,{features:QM,children:T.jsx(ud,{children:d&&T.jsx(K$,{portalContainer:p,children:B})})})]})});r6.displayName="HeroUI.Tooltip";var JM=r6;const l6=typeof document<"u"?ie.useLayoutEffect:()=>{};var rb;const eL=(rb=ie.useInsertionEffect)!==null&&rb!==void 0?rb:l6;function tL(e){const n=v.useRef(null);return eL(()=>{n.current=e},[e]),v.useCallback((...r)=>{const l=n.current;return l?.(...r)},[])}const xr=e=>{var n;return(n=e?.ownerDocument)!==null&&n!==void 0?n:document},el=e=>e&&"window"in e&&e.window===e?e:xr(e).defaultView||window;function nL(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function aL(e){return nL(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function o6(e,n){if(!Ve())return n&&e?e.contains(n):!1;if(!e||!n)return!1;let r=n;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:aL(r)?r=r.host:r=r.parentNode}return!1}const uv=(e=document)=>{var n;if(!Ve())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((n=r.shadowRoot)===null||n===void 0)&&n.activeElement);)r=r.shadowRoot.activeElement;return r};function i6(e){return Ve()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function rL(e){var n;if(typeof window>"u"||window.navigator==null)return!1;let r=(n=window.navigator.userAgentData)===null||n===void 0?void 0:n.brands;return Array.isArray(r)&&r.some(l=>e.test(l.brand))||e.test(window.navigator.userAgent)}function lL(e){var n;return typeof window<"u"&&window.navigator!=null?e.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function s6(e){let n=null;return()=>(n==null&&(n=e()),n)}const oL=s6(function(){return lL(/^Mac/i)}),iL=s6(function(){return rL(/Android/i)});function u6(){let e=v.useRef(new Map),n=v.useCallback((i,u,d,p)=>{let b=p?.once?(...m)=>{e.current.delete(d),d(...m)}:d;e.current.set(d,{type:u,eventTarget:i,fn:b,options:p}),i.addEventListener(u,b,p)},[]),r=v.useCallback((i,u,d,p)=>{var b;let m=((b=e.current.get(d))===null||b===void 0?void 0:b.fn)||d;i.removeEventListener(u,m,p),e.current.delete(d)},[]),l=v.useCallback(()=>{e.current.forEach((i,u)=>{r(i.eventTarget,i.type,u,i.options)})},[r]);return v.useEffect(()=>l,[l]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:l}}function sL(e){return e.pointerType===""&&e.isTrusted?!0:iL()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function uL(e,n,r){let[l,i]=v.useState(e||n),u=v.useRef(e!==void 0),d=e!==void 0;v.useEffect(()=>{u.current,u.current=d},[d]);let p=d?e:l,b=v.useCallback((m,...$)=>{let x=(S,...C)=>{r&&(Object.is(p,S)||r(S,...C)),d||(p=S)};typeof m=="function"?i((C,...A)=>{let w=m(d?p:C,...A);return x(w,...$),d?C:w}):(d||i(m),x(m,...$))},[d,p,r]);return[p,b]}function c6(e){let n=e;return n.nativeEvent=e,n.isDefaultPrevented=()=>n.defaultPrevented,n.isPropagationStopped=()=>n.cancelBubble,n.persist=()=>{},n}function cL(e,n){Object.defineProperty(e,"target",{value:n}),Object.defineProperty(e,"currentTarget",{value:n})}function d6(e){let n=v.useRef({isFocused:!1,observer:null});l6(()=>{const l=n.current;return()=>{l.observer&&(l.observer.disconnect(),l.observer=null)}},[]);let r=tL(l=>{e?.(l)});return v.useCallback(l=>{if(l.target instanceof HTMLButtonElement||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement||l.target instanceof HTMLSelectElement){n.current.isFocused=!0;let i=l.target,u=d=>{if(n.current.isFocused=!1,i.disabled){let p=c6(d);r(p)}n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};i.addEventListener("focusout",u,{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&i.disabled){var d;(d=n.current.observer)===null||d===void 0||d.disconnect();let p=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:p})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:p}))}}),n.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let dL=!1,ks=null,cv=new Set,ts=new Map,dl=!1,dv=!1;const fL={Tab:!0,Escape:!0};function b0(e,n){for(let r of cv)r(e,n)}function pL(e){return!(e.metaKey||!oL()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Wc(e){dl=!0,pL(e)&&(ks="keyboard",b0("keyboard",e))}function Eo(e){ks="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(dl=!0,b0("pointer",e))}function f6(e){sL(e)&&(dl=!0,ks="virtual")}function p6(e){e.target===window||e.target===document||dL||!e.isTrusted||(!dl&&!dv&&(ks="virtual",b0("virtual",e)),dl=!1,dv=!1)}function b6(){dl=!1,dv=!0}function fv(e){if(typeof window>"u"||typeof document>"u"||ts.get(el(e)))return;const n=el(e),r=xr(e);let l=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){dl=!0,l.apply(this,arguments)},r.addEventListener("keydown",Wc,!0),r.addEventListener("keyup",Wc,!0),r.addEventListener("click",f6,!0),n.addEventListener("focus",p6,!0),n.addEventListener("blur",b6,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",Eo,!0),r.addEventListener("pointermove",Eo,!0),r.addEventListener("pointerup",Eo,!0)),n.addEventListener("beforeunload",()=>{v6(e)},{once:!0}),ts.set(n,{focus:l})}const v6=(e,n)=>{const r=el(e),l=xr(e);n&&l.removeEventListener("DOMContentLoaded",n),ts.has(r)&&(r.HTMLElement.prototype.focus=ts.get(r).focus,l.removeEventListener("keydown",Wc,!0),l.removeEventListener("keyup",Wc,!0),l.removeEventListener("click",f6,!0),r.removeEventListener("focus",p6,!0),r.removeEventListener("blur",b6,!1),typeof PointerEvent<"u"&&(l.removeEventListener("pointerdown",Eo,!0),l.removeEventListener("pointermove",Eo,!0),l.removeEventListener("pointerup",Eo,!0)),ts.delete(r))};function bL(e){const n=xr(e);let r;return n.readyState!=="loading"?fv(e):(r=()=>{fv(e)},n.addEventListener("DOMContentLoaded",r)),()=>v6(e,r)}typeof document<"u"&&bL();function m6(){return ks!=="pointer"}const vL=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function mL(e,n,r){let l=xr(r?.target);const i=typeof window<"u"?el(r?.target).HTMLInputElement:HTMLInputElement,u=typeof window<"u"?el(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,d=typeof window<"u"?el(r?.target).HTMLElement:HTMLElement,p=typeof window<"u"?el(r?.target).KeyboardEvent:KeyboardEvent;return e=e||l.activeElement instanceof i&&!vL.has(l.activeElement.type)||l.activeElement instanceof u||l.activeElement instanceof d&&l.activeElement.isContentEditable,!(e&&n==="keyboard"&&r instanceof p&&!fL[r.key])}function gL(e,n,r){fv(),v.useEffect(()=>{let l=(i,u)=>{mL(!!r?.isTextInput,i,u)&&e(m6())};return cv.add(l),()=>{cv.delete(l)}},n)}function hL(e){let{isDisabled:n,onFocus:r,onBlur:l,onFocusChange:i}=e;const u=v.useCallback(b=>{if(b.target===b.currentTarget)return l&&l(b),i&&i(!1),!0},[l,i]),d=d6(u),p=v.useCallback(b=>{const m=xr(b.target),$=m?uv(m):uv();b.target===b.currentTarget&&$===i6(b.nativeEvent)&&(r&&r(b),i&&i(!0),d(b))},[i,r,d]);return{focusProps:{onFocus:!n&&(r||i||l)?p:void 0,onBlur:!n&&(l||i)?u:void 0}}}function $L(e){let{isDisabled:n,onBlurWithin:r,onFocusWithin:l,onFocusWithinChange:i}=e,u=v.useRef({isFocusWithin:!1}),{addGlobalListener:d,removeAllGlobalListeners:p}=u6(),b=v.useCallback(x=>{x.currentTarget.contains(x.target)&&u.current.isFocusWithin&&!x.currentTarget.contains(x.relatedTarget)&&(u.current.isFocusWithin=!1,p(),r&&r(x),i&&i(!1))},[r,i,u,p]),m=d6(b),$=v.useCallback(x=>{if(!x.currentTarget.contains(x.target))return;const S=xr(x.target),C=uv(S);if(!u.current.isFocusWithin&&C===i6(x.nativeEvent)){l&&l(x),i&&i(!0),u.current.isFocusWithin=!0,m(x);let A=x.currentTarget;d(S,"focus",w=>{if(u.current.isFocusWithin&&!o6(A,w.target)){let L=new S.defaultView.FocusEvent("blur",{relatedTarget:w.target});cL(L,A);let P=c6(L);b(P)}},{capture:!0})}},[l,i,m,d,b]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:$,onBlur:b}}}let pv=!1,fc=0;function yL(){pv=!0,setTimeout(()=>{pv=!1},50)}function W$(e){e.pointerType==="touch"&&yL()}function xL(){if(!(typeof document>"u"))return fc===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",W$),fc++,()=>{fc--,!(fc>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",W$)}}function EL(e){let{onHoverStart:n,onHoverChange:r,onHoverEnd:l,isDisabled:i}=e,[u,d]=v.useState(!1),p=v.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;v.useEffect(xL,[]);let{addGlobalListener:b,removeAllGlobalListeners:m}=u6(),{hoverProps:$,triggerHoverEnd:x}=v.useMemo(()=>{let S=(w,L)=>{if(p.pointerType=L,i||L==="touch"||p.isHovered||!w.currentTarget.contains(w.target))return;p.isHovered=!0;let P=w.currentTarget;p.target=P,b(xr(w.target),"pointerover",N=>{p.isHovered&&p.target&&!o6(p.target,N.target)&&C(N,N.pointerType)},{capture:!0}),n&&n({type:"hoverstart",target:P,pointerType:L}),r&&r(!0),d(!0)},C=(w,L)=>{let P=p.target;p.pointerType="",p.target=null,!(L==="touch"||!p.isHovered||!P)&&(p.isHovered=!1,m(),l&&l({type:"hoverend",target:P,pointerType:L}),r&&r(!1),d(!1))},A={};return typeof PointerEvent<"u"&&(A.onPointerEnter=w=>{pv&&w.pointerType==="mouse"||S(w,w.pointerType)},A.onPointerLeave=w=>{!i&&w.currentTarget.contains(w.target)&&C(w,w.pointerType)}),{hoverProps:A,triggerHoverEnd:C}},[n,r,l,i,p,b,m]);return v.useEffect(()=>{i&&x({currentTarget:p.target},p.pointerType)},[i]),{hoverProps:$,isHovered:u}}function wL(e,n,r){let{labelProps:l,inputProps:i,isSelected:u,isPressed:d,isDisabled:p,isReadOnly:b}=eC(e,n,r);return{labelProps:l,inputProps:{...i,role:"switch",checked:u},isSelected:u,isPressed:d,isDisabled:p,isReadOnly:b}}function TL(e={}){let{isReadOnly:n}=e,[r,l]=uL(e.isSelected,e.defaultSelected||!1,e.onChange),[i]=v.useState(r);function u(b){n||l(b)}function d(){n||l(!r)}var p;return{isSelected:r,defaultSelected:(p=e.defaultSelected)!==null&&p!==void 0?p:i,setSelected:u,toggle:d}}function SL(e={}){let{autoFocus:n=!1,isTextInput:r,within:l}=e,i=v.useRef({isFocused:!1,isFocusVisible:n||m6()}),[u,d]=v.useState(!1),[p,b]=v.useState(()=>i.current.isFocused&&i.current.isFocusVisible),m=v.useCallback(()=>b(i.current.isFocused&&i.current.isFocusVisible),[]),$=v.useCallback(C=>{i.current.isFocused=C,d(C),m()},[m]);gL(C=>{i.current.isFocusVisible=C,m()},[],{isTextInput:r});let{focusProps:x}=hL({isDisabled:l,onFocusChange:$}),{focusWithinProps:S}=$L({isDisabled:!l,onFocusWithinChange:$});return{isFocused:u,isFocusVisible:p,focusProps:l?S:x}}function CL(e={}){var n,r;const l=oa(),[i,u]=Ho(e,r$.variantKeys),{ref:d,as:p,name:b,value:m="",isReadOnly:$=!1,autoFocus:x=!1,startContent:S,endContent:C,defaultSelected:A,isSelected:w,children:L,thumbIcon:P,className:N,classNames:B,onChange:H,onValueChange:I,...G}=i,J=p||"label",W=v.useRef(null),ne=v.useRef(null),ue=(r=(n=e.disableAnimation)!=null?n:l?.disableAnimation)!=null?r:!1,g=v.useId(),k=v.useMemo(()=>{const ge=G["aria-label"]||typeof L=="string"?L:void 0;return{name:b,value:m,children:L,autoFocus:x,defaultSelected:A,isSelected:w,isDisabled:!!e.isDisabled,isReadOnly:$,"aria-label":ge,"aria-labelledby":G["aria-labelledby"]||g,onChange:I}},[m,b,g,L,x,$,w,A,e.isDisabled,G["aria-label"],G["aria-labelledby"],I]),U=TL(k);Qv(()=>{if(!ne.current)return;const ge=!!ne.current.checked;U.setSelected(ge)},[ne.current]);const{inputProps:E,isPressed:_,isReadOnly:h}=wL(k,U,ne),{focusProps:D,isFocused:O,isFocusVisible:q}=SL({autoFocus:E.autoFocus}),{hoverProps:re,isHovered:z}=EL({isDisabled:E.disabled}),Z=k.isDisabled||h?!1:_,K=E.checked,se=E.disabled,oe=v.useMemo(()=>r$({...u,disableAnimation:ue}),[Ro(u),ue]),ce=ot(B?.base,N),we=ge=>({...it(re,G,ge),ref:W,className:oe.base({class:ot(ce,ge?.className)}),"data-disabled":ve(se),"data-selected":ve(K),"data-readonly":ve(h),"data-focus":ve(O),"data-focus-visible":ve(q),"data-hover":ve(z),"data-pressed":ve(Z)}),he=v.useCallback((ge={})=>({...ge,"aria-hidden":!0,className:ot(oe.wrapper({class:ot(B?.wrapper,ge?.className)}))}),[oe,B?.wrapper]),me=(ge={})=>({...it(E,D,ge),ref:Zy(ne,d),id:E.id,className:oe.hiddenInput({class:B?.hiddenInput}),onChange:Ao(H,E.onChange)}),nt=v.useCallback((ge={})=>({...ge,className:oe.thumb({class:ot(B?.thumb,ge?.className)})}),[oe,B?.thumb]),Ke=v.useCallback((ge={})=>({...ge,id:g,className:oe.label({class:ot(B?.label,ge?.className)})}),[oe,B?.label,se,K]),Ie=v.useCallback((ge={includeStateProps:!1})=>it({width:"1em",height:"1em",className:oe.thumbIcon({class:ot(B?.thumbIcon)})},ge.includeStateProps?{isSelected:K}:{}),[oe,B?.thumbIcon,K]),qe=v.useCallback((ge={})=>({width:"1em",height:"1em",...ge,className:oe.startContent({class:ot(B?.startContent,ge?.className)})}),[oe,B?.startContent,K]),at=v.useCallback((ge={})=>({width:"1em",height:"1em",...ge,className:oe.endContent({class:ot(B?.endContent,ge?.className)})}),[oe,B?.endContent,K]);return{Component:J,slots:oe,classNames:B,domRef:W,children:L,thumbIcon:P,startContent:S,endContent:C,isHovered:z,isSelected:K,isPressed:Z,isFocused:O,isFocusVisible:q,isDisabled:se,getBaseProps:we,getWrapperProps:he,getInputProps:me,getLabelProps:Ke,getThumbProps:nt,getThumbIconProps:Ie,getStartContentProps:qe,getEndContentProps:at}}var g6=ja((e,n)=>{const{Component:r,children:l,startContent:i,endContent:u,thumbIcon:d,getBaseProps:p,getInputProps:b,getWrapperProps:m,getThumbProps:$,getThumbIconProps:x,getLabelProps:S,getStartContentProps:C,getEndContentProps:A}=CL({...e,ref:n}),w=typeof d=="function"?d(x({includeStateProps:!0})):d&&v.cloneElement(d,x()),L=i&&v.cloneElement(i,C()),P=u&&v.cloneElement(u,A());return T.jsxs(r,{...p(),children:[T.jsx("input",{...b()}),T.jsxs("span",{...m(),children:[i&&L,T.jsx("span",{...$(),children:d&&w}),u&&P]}),l&&T.jsx("span",{...S(),children:l})]})});g6.displayName="HeroUI.Switch";var pc=g6;const hl=typeof document<"u"?ie.useLayoutEffect:()=>{};var lb;const ML=(lb=ie.useInsertionEffect)!==null&&lb!==void 0?lb:hl;function dn(e){const n=v.useRef(null);return ML(()=>{n.current=e},[e]),v.useCallback((...r)=>{const l=n.current;return l?.(...r)},[])}function LL(e){let[n,r]=v.useState(e),l=v.useRef(null),i=dn(()=>{if(!l.current)return;let d=l.current.next();if(d.done){l.current=null;return}n===d.value?i():r(d.value)});hl(()=>{l.current&&i()});let u=dn(d=>{l.current=d(n),i()});return[n,u]}const h6={prefix:String(Math.round(Math.random()*1e10)),current:0},$6=ie.createContext(h6),PL=ie.createContext(!1);let ob=new WeakMap;function AL(e=!1){let n=v.useContext($6),r=v.useRef(null);if(r.current===null&&!e){var l,i;let u=(i=ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(l=i.ReactCurrentOwner)===null||l===void 0?void 0:l.current;if(u){let d=ob.get(u);d==null?ob.set(u,{id:n.current,state:u.memoizedState}):u.memoizedState!==d.state&&(n.current=d.id,ob.delete(u))}r.current=++n.current}return r.current}function kL(e){let n=v.useContext($6),r=AL(!!e),l=`react-aria${n.prefix}`;return e||`${l}-${r}`}function DL(e){let n=ie.useId(),[r]=v.useState(RL()),l=r?"react-aria":`react-aria${h6.prefix}`;return e||`${l}-${n}`}const zL=typeof ie.useId=="function"?DL:kL;function OL(){return!1}function NL(){return!0}function jL(e){return()=>{}}function RL(){return typeof ie.useSyncExternalStore=="function"?ie.useSyncExternalStore(jL,OL,NL):v.useContext(PL)}let HL=!!(typeof window<"u"&&window.document&&window.document.createElement),wo=new Map,Ii;typeof FinalizationRegistry<"u"&&(Ii=new FinalizationRegistry(e=>{wo.delete(e)}));function Xc(e){let[n,r]=v.useState(e),l=v.useRef(null),i=zL(n),u=v.useRef(null);if(Ii&&Ii.register(u,i),HL){const d=wo.get(i);d&&!d.includes(l)?d.push(l):wo.set(i,[l])}return hl(()=>{let d=i;return()=>{Ii&&Ii.unregister(u),wo.delete(d)}},[i]),v.useEffect(()=>{let d=l.current;return d&&r(d),()=>{d&&(l.current=null)}}),i}function _L(e,n){if(e===n)return e;let r=wo.get(e);if(r)return r.forEach(i=>i.current=n),n;let l=wo.get(n);return l?(l.forEach(i=>i.current=e),e):n}function X$(e=[]){let n=Xc(),[r,l]=LL(n),i=v.useCallback(()=>{l(function*(){yield n,yield document.getElementById(n)?n:void 0})},[n,l]);return hl(i,[n,i,...e]),r}function y6(...e){return(...n)=>{for(let r of e)typeof r=="function"&&r(...n)}}const Xt=e=>{var n;return(n=e?.ownerDocument)!==null&&n!==void 0?n:document},_n=e=>e&&"window"in e&&e.window===e?e:Xt(e).defaultView||window;function VL(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function BL(e){return VL(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function On(e,n){if(!Ve())return n&&e?e.contains(n):!1;if(!e||!n)return!1;let r=n;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:BL(r)?r=r.host:r=r.parentNode}return!1}const bs=(e=document)=>{var n;if(!Ve())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((n=r.shadowRoot)===null||n===void 0)&&n.activeElement);)r=r.shadowRoot.activeElement;return r};function qt(e){return Ve()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function x6(e){var n,r,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(n=0;n=65&&i.charCodeAt(2)<=90?n[i]=y6(u,d):(i==="className"||i==="UNSAFE_className")&&typeof u=="string"&&typeof d=="string"?n[i]=UL(u,d):i==="id"&&u&&d?n.id=_L(u,d):n[i]=d!==void 0?d:u}}return n}const FL=new Set(["id"]),GL=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),KL=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),IL=new Set(["dir","lang","hidden","inert","translate"]),Z$=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),qL=/^(data-.*)$/;function YL(e,n={}){let{labelable:r,isLink:l,global:i,events:u=i,propNames:d}=n,p={};for(const b in e)Object.prototype.hasOwnProperty.call(e,b)&&(FL.has(b)||r&&GL.has(b)||l&&KL.has(b)||i&&IL.has(b)||u&&Z$.has(b)||b.endsWith("Capture")&&Z$.has(b.slice(0,-7))||d?.has(b)||qL.test(b))&&(p[b]=e[b]);return p}function No(e){if(WL())e.focus({preventScroll:!0});else{let n=XL(e);e.focus(),ZL(n)}}let bc=null;function WL(){if(bc==null){bc=!1;try{document.createElement("div").focus({get preventScroll(){return bc=!0,!0}})}catch{}}return bc}function XL(e){let n=e.parentNode,r=[],l=document.scrollingElement||document.documentElement;for(;n instanceof HTMLElement&&n!==l;)(n.offsetHeight"u"||window.navigator==null)return!1;let r=(n=window.navigator.userAgentData)===null||n===void 0?void 0:n.brands;return Array.isArray(r)&&r.some(l=>e.test(l.brand))||e.test(window.navigator.userAgent)}function v0(e){var n;return typeof window<"u"&&window.navigator!=null?e.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function Er(e){let n=null;return()=>(n==null&&(n=e()),n)}const vs=Er(function(){return v0(/^Mac/i)}),QL=Er(function(){return v0(/^iPhone/i)}),E6=Er(function(){return v0(/^iPad/i)||vs()&&navigator.maxTouchPoints>1}),w6=Er(function(){return QL()||E6()}),JL=Er(function(){return $d(/AppleWebKit/i)&&!eP()}),eP=Er(function(){return $d(/Chrome/i)}),T6=Er(function(){return $d(/Android/i)}),tP=Er(function(){return $d(/Firefox/i)});function ms(e,n,r=!0){var l,i;let{metaKey:u,ctrlKey:d,altKey:p,shiftKey:b}=n;tP()&&(!((i=window.event)===null||i===void 0||(l=i.type)===null||l===void 0)&&l.startsWith("key"))&&e.target==="_blank"&&(vs()?u=!0:d=!0);let m=JL()&&vs()&&!E6()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:u,ctrlKey:d,altKey:p,shiftKey:b}):new MouseEvent("click",{metaKey:u,ctrlKey:d,altKey:p,shiftKey:b,bubbles:!0,cancelable:!0});ms.isOpening=r,No(e),e.dispatchEvent(m),ms.isOpening=!1}ms.isOpening=!1;let vr=new Map,bv=new Set;function Q$(){if(typeof window>"u")return;function e(l){return"propertyName"in l}let n=l=>{if(!e(l)||!l.target)return;let i=vr.get(l.target);i||(i=new Set,vr.set(l.target,i),l.target.addEventListener("transitioncancel",r,{once:!0})),i.add(l.propertyName)},r=l=>{if(!e(l)||!l.target)return;let i=vr.get(l.target);if(i&&(i.delete(l.propertyName),i.size===0&&(l.target.removeEventListener("transitioncancel",r),vr.delete(l.target)),vr.size===0)){for(let u of bv)u();bv.clear()}};document.body.addEventListener("transitionrun",n),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Q$():document.addEventListener("DOMContentLoaded",Q$));function nP(){for(const[e]of vr)"isConnected"in e&&!e.isConnected&&vr.delete(e)}function S6(e){requestAnimationFrame(()=>{nP(),vr.size===0?e():bv.add(e)})}function m0(){let e=v.useRef(new Map),n=v.useCallback((i,u,d,p)=>{let b=p?.once?(...m)=>{e.current.delete(d),d(...m)}:d;e.current.set(d,{type:u,eventTarget:i,fn:b,options:p}),i.addEventListener(u,b,p)},[]),r=v.useCallback((i,u,d,p)=>{var b;let m=((b=e.current.get(d))===null||b===void 0?void 0:b.fn)||d;i.removeEventListener(u,m,p),e.current.delete(d)},[]),l=v.useCallback(()=>{e.current.forEach((i,u)=>{r(i.eventTarget,i.type,u,i.options)})},[r]);return v.useEffect(()=>l,[l]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:l}}function aP(e,n){let{id:r,"aria-label":l,"aria-labelledby":i}=e;return r=Xc(r),i&&l?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!l&&!i&&n&&(l=n),{id:r,"aria-label":l,"aria-labelledby":i}}function C6(e,n){hl(()=>{if(e&&e.ref&&n)return e.ref.current=n.current,()=>{e.ref&&(e.ref.current=null)}})}function M6(e){return e.pointerType===""&&e.isTrusted?!0:T6()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function rP(e){return!T6()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function lP(e,n,r){let l=dn(()=>{r&&r(n)});v.useEffect(()=>{var i;let u=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return u?.addEventListener("reset",l),()=>{u?.removeEventListener("reset",l)}},[e,l])}const oP=typeof Element<"u"&&"checkVisibility"in Element.prototype;function iP(e){const n=_n(e);if(!(e instanceof n.HTMLElement)&&!(e instanceof n.SVGElement))return!1;let{display:r,visibility:l}=e.style,i=r!=="none"&&l!=="hidden"&&l!=="collapse";if(i){const{getComputedStyle:u}=e.ownerDocument.defaultView;let{display:d,visibility:p}=u(e);i=d!=="none"&&p!=="hidden"&&p!=="collapse"}return i}function sP(e,n){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&n&&n.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function L6(e,n){return oP?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&iP(e)&&sP(e,n)&&(!e.parentElement||L6(e.parentElement,e))}const P6=["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]:not([contenteditable^="false"])',"permission"],uP=P6.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";P6.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function cP(e){return e.matches(uP)&&L6(e)&&!dP(e)}function dP(e){let n=e;for(;n!=null;){if(n instanceof n.ownerDocument.defaultView.HTMLElement&&n.inert)return!0;n=n.parentElement}return!1}function A6(e,n,r){let[l,i]=v.useState(e||n),u=v.useRef(e!==void 0),d=e!==void 0;v.useEffect(()=>{u.current,u.current=d},[d]);let p=d?e:l,b=v.useCallback((m,...$)=>{let x=(S,...C)=>{r&&(Object.is(p,S)||r(S,...C)),d||(p=S)};typeof m=="function"?i((C,...A)=>{let w=m(d?p:C,...A);return x(w,...$),d?C:w}):(d||i(m),x(m,...$))},[d,p,r]);return[p,b]}function g0(e){let n=e;return n.nativeEvent=e,n.isDefaultPrevented=()=>n.defaultPrevented,n.isPropagationStopped=()=>n.cancelBubble,n.persist=()=>{},n}function k6(e,n){Object.defineProperty(e,"target",{value:n}),Object.defineProperty(e,"currentTarget",{value:n})}function D6(e){let n=v.useRef({isFocused:!1,observer:null});hl(()=>{const l=n.current;return()=>{l.observer&&(l.observer.disconnect(),l.observer=null)}},[]);let r=dn(l=>{e?.(l)});return v.useCallback(l=>{if(l.target instanceof HTMLButtonElement||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement||l.target instanceof HTMLSelectElement){n.current.isFocused=!0;let i=l.target,u=d=>{if(n.current.isFocused=!1,i.disabled){let p=g0(d);r(p)}n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};i.addEventListener("focusout",u,{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&i.disabled){var d;(d=n.current.observer)===null||d===void 0||d.disconnect();let p=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:p})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:p}))}}),n.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let Zc=!1;function fP(e){for(;e&&!cP(e);)e=e.parentElement;let n=_n(e),r=n.document.activeElement;if(!r||r===e)return;Zc=!0;let l=!1,i=$=>{($.target===r||l)&&$.stopImmediatePropagation()},u=$=>{($.target===r||l)&&($.stopImmediatePropagation(),!e&&!l&&(l=!0,No(r),b()))},d=$=>{($.target===e||l)&&$.stopImmediatePropagation()},p=$=>{($.target===e||l)&&($.stopImmediatePropagation(),l||(l=!0,No(r),b()))};n.addEventListener("blur",i,!0),n.addEventListener("focusout",u,!0),n.addEventListener("focusin",p,!0),n.addEventListener("focus",d,!0);let b=()=>{cancelAnimationFrame(m),n.removeEventListener("blur",i,!0),n.removeEventListener("focusout",u,!0),n.removeEventListener("focusin",p,!0),n.removeEventListener("focus",d,!0),Zc=!1,l=!1},m=requestAnimationFrame(b);return b}let po="default",vv="",kc=new WeakMap;function pP(e){if(w6()){if(po==="default"){const n=Xt(e);vv=n.documentElement.style.webkitUserSelect,n.documentElement.style.webkitUserSelect="none"}po="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let n="userSelect"in e.style?"userSelect":"webkitUserSelect";kc.set(e,e.style[n]),e.style[n]="none"}}function J$(e){if(w6()){if(po!=="disabled")return;po="restoring",setTimeout(()=>{S6(()=>{if(po==="restoring"){const n=Xt(e);n.documentElement.style.webkitUserSelect==="none"&&(n.documentElement.style.webkitUserSelect=vv||""),vv="",po="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&kc.has(e)){let n=kc.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=n),e.getAttribute("style")===""&&e.removeAttribute("style"),kc.delete(e)}}const z6=ie.createContext({register:()=>{}});z6.displayName="PressResponderContext";function bP(e){let n=v.useContext(z6);if(n){let{register:r,...l}=n;e=Oo(l,e),r()}return C6(n,e.ref),e}var vc=new WeakMap;let mc=class{continuePropagation(){la(this,vc,!1)}get shouldStopPropagation(){return Ms(this,vc)}constructor(n,r,l,i){ws(this,vc,{writable:!0,value:void 0}),la(this,vc,!0);var u;let d=(u=i?.target)!==null&&u!==void 0?u:l.currentTarget;const p=d?.getBoundingClientRect();let b,m=0,$,x=null;l.clientX!=null&&l.clientY!=null&&($=l.clientX,x=l.clientY),p&&($!=null&&x!=null?(b=$-p.left,m=x-p.top):(b=p.width/2,m=p.height/2)),this.type=n,this.pointerType=r,this.target=l.currentTarget,this.shiftKey=l.shiftKey,this.metaKey=l.metaKey,this.ctrlKey=l.ctrlKey,this.altKey=l.altKey,this.x=b,this.y=m}};const ey=Symbol("linkClicked"),ty="react-aria-pressable-style",ny="data-react-aria-pressable";function vP(e){let{onPress:n,onPressChange:r,onPressStart:l,onPressEnd:i,onPressUp:u,onClick:d,isDisabled:p,isPressed:b,preventFocusOnPress:m,shouldCancelOnPointerExit:$,allowTextSelectionOnPress:x,ref:S,...C}=bP(e),[A,w]=v.useState(!1),L=v.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:P,removeAllGlobalListeners:N}=m0(),B=dn((g,k)=>{let U=L.current;if(p||U.didFirePressStart)return!1;let E=!0;if(U.isTriggeringEvent=!0,l){let _=new mc("pressstart",k,g);l(_),E=_.shouldStopPropagation}return r&&r(!0),U.isTriggeringEvent=!1,U.didFirePressStart=!0,w(!0),E}),H=dn((g,k,U=!0)=>{let E=L.current;if(!E.didFirePressStart)return!1;E.didFirePressStart=!1,E.isTriggeringEvent=!0;let _=!0;if(i){let h=new mc("pressend",k,g);i(h),_=h.shouldStopPropagation}if(r&&r(!1),w(!1),n&&U&&!p){let h=new mc("press",k,g);n(h),_&&(_=h.shouldStopPropagation)}return E.isTriggeringEvent=!1,_}),I=dn((g,k)=>{let U=L.current;if(p)return!1;if(u){U.isTriggeringEvent=!0;let E=new mc("pressup",k,g);return u(E),U.isTriggeringEvent=!1,E.shouldStopPropagation}return!0}),G=dn(g=>{let k=L.current;if(k.isPressed&&k.target){k.didFirePressStart&&k.pointerType!=null&&H(Xr(k.target,g),k.pointerType,!1),k.isPressed=!1,k.isOverTarget=!1,k.activePointerId=null,k.pointerType=null,N(),x||J$(k.target);for(let U of k.disposables)U();k.disposables=[]}}),J=dn(g=>{$&&G(g)}),W=dn(g=>{p||d?.(g)}),ne=dn((g,k)=>{if(!p&&d){let U=new MouseEvent("click",g);k6(U,k),d(g0(U))}}),ue=v.useMemo(()=>{let g=L.current,k={onKeyDown(E){if(ib(E.nativeEvent,E.currentTarget)&&On(E.currentTarget,qt(E.nativeEvent))){var _;ay(qt(E.nativeEvent),E.key)&&E.preventDefault();let h=!0;if(!g.isPressed&&!E.repeat){g.target=E.currentTarget,g.isPressed=!0,g.pointerType="keyboard",h=B(E,"keyboard");let D=E.currentTarget,O=q=>{ib(q,D)&&!q.repeat&&On(D,qt(q))&&g.target&&I(Xr(g.target,q),"keyboard")};P(Xt(E.currentTarget),"keyup",y6(O,U),!0)}h&&E.stopPropagation(),E.metaKey&&vs()&&((_=g.metaKeyEvents)===null||_===void 0||_.set(E.key,E.nativeEvent))}else E.key==="Meta"&&(g.metaKeyEvents=new Map)},onClick(E){if(!(E&&!On(E.currentTarget,qt(E.nativeEvent)))&&E&&E.button===0&&!g.isTriggeringEvent&&!ms.isOpening){let _=!0;if(p&&E.preventDefault(),!g.ignoreEmulatedMouseEvents&&!g.isPressed&&(g.pointerType==="virtual"||M6(E.nativeEvent))){let h=B(E,"virtual"),D=I(E,"virtual"),O=H(E,"virtual");W(E),_=h&&D&&O}else if(g.isPressed&&g.pointerType!=="keyboard"){let h=g.pointerType||E.nativeEvent.pointerType||"virtual",D=I(Xr(E.currentTarget,E),h),O=H(Xr(E.currentTarget,E),h,!0);_=D&&O,g.isOverTarget=!1,W(E),G(E)}g.ignoreEmulatedMouseEvents=!1,_&&E.stopPropagation()}}},U=E=>{var _;if(g.isPressed&&g.target&&ib(E,g.target)){var h;ay(qt(E),E.key)&&E.preventDefault();let O=qt(E),q=On(g.target,qt(E));H(Xr(g.target,E),"keyboard",q),q&&ne(E,g.target),N(),E.key!=="Enter"&&h0(g.target)&&On(g.target,O)&&!E[ey]&&(E[ey]=!0,ms(g.target,E,!1)),g.isPressed=!1,(h=g.metaKeyEvents)===null||h===void 0||h.delete(E.key)}else if(E.key==="Meta"&&(!((_=g.metaKeyEvents)===null||_===void 0)&&_.size)){var D;let O=g.metaKeyEvents;g.metaKeyEvents=void 0;for(let q of O.values())(D=g.target)===null||D===void 0||D.dispatchEvent(new KeyboardEvent("keyup",q))}};if(typeof PointerEvent<"u"){k.onPointerDown=h=>{if(h.button!==0||!On(h.currentTarget,qt(h.nativeEvent)))return;if(rP(h.nativeEvent)){g.pointerType="virtual";return}g.pointerType=h.pointerType;let D=!0;if(!g.isPressed){g.isPressed=!0,g.isOverTarget=!0,g.activePointerId=h.pointerId,g.target=h.currentTarget,x||pP(g.target),D=B(h,g.pointerType);let O=qt(h.nativeEvent);"releasePointerCapture"in O&&O.releasePointerCapture(h.pointerId),P(Xt(h.currentTarget),"pointerup",E,!1),P(Xt(h.currentTarget),"pointercancel",_,!1)}D&&h.stopPropagation()},k.onMouseDown=h=>{if(On(h.currentTarget,qt(h.nativeEvent))&&h.button===0){if(m){let D=fP(h.target);D&&g.disposables.push(D)}h.stopPropagation()}},k.onPointerUp=h=>{!On(h.currentTarget,qt(h.nativeEvent))||g.pointerType==="virtual"||h.button===0&&!g.isPressed&&I(h,g.pointerType||h.pointerType)},k.onPointerEnter=h=>{h.pointerId===g.activePointerId&&g.target&&!g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!0,B(Xr(g.target,h),g.pointerType))},k.onPointerLeave=h=>{h.pointerId===g.activePointerId&&g.target&&g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!1,H(Xr(g.target,h),g.pointerType,!1),J(h))};let E=h=>{if(h.pointerId===g.activePointerId&&g.isPressed&&h.button===0&&g.target){if(On(g.target,qt(h))&&g.pointerType!=null){let D=!1,O=setTimeout(()=>{g.isPressed&&g.target instanceof HTMLElement&&(D?G(h):(No(g.target),g.target.click()))},80);P(h.currentTarget,"click",()=>D=!0,!0),g.disposables.push(()=>clearTimeout(O))}else G(h);g.isOverTarget=!1}},_=h=>{G(h)};k.onDragStart=h=>{On(h.currentTarget,qt(h.nativeEvent))&&G(h)}}return k},[P,p,m,N,x,G,J,H,B,I,W,ne]);return v.useEffect(()=>{if(!S)return;const g=Xt(S.current);if(!g||!g.head||g.getElementById(ty))return;const k=g.createElement("style");k.id=ty,k.textContent=` + `.trim(),g.head.prepend(k)},[S]),v.useEffect(()=>{let g=L.current;return()=>{var k;x||x$((k=g.target)!==null&&k!==void 0?k:void 0);for(let U of g.disposables)U();g.disposables=[]}},[x]),{isPressed:b||A,pressProps:tl(C,ue,{[T$]:!0})}}function i0(e){return e.tagName==="A"&&e.hasAttribute("href")}function Jp(e,n){const{key:r,code:l}=e,i=n,u=i.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||l==="Space")&&!(i instanceof il(i).HTMLInputElement&&!R5(i,r)||i instanceof il(i).HTMLTextAreaElement||i.isContentEditable)&&!((u==="link"||!u&&i0(i))&&r!=="Enter")}function qr(e,n){let r=n.clientX,l=n.clientY;return{currentTarget:e,shiftKey:n.shiftKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,altKey:n.altKey,clientX:r,clientY:l}}function U9(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!i0(e)}function C$(e,n){return e instanceof HTMLInputElement?!R5(e,n):U9(e)}const F9=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function R5(e,n){return e.type==="checkbox"||e.type==="radio"?n===" ":F9.has(e.type)}let As=null,G9=new Set,Ji=new Map,sl=!1,Qb=!1;function s0(e,n){for(let r of G9)r(e,n)}function K9(e){return!(e.metaKey||!fs()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Gc(e){sl=!0,K9(e)&&(As="keyboard",s0("keyboard",e))}function ho(e){As="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(sl=!0,s0("pointer",e))}function H5(e){D5(e)&&(sl=!0,As="virtual")}function _5(e){e.target===window||e.target===document||Fc||!e.isTrusted||(!sl&&!Qb&&(As="virtual",s0("virtual",e)),sl=!1,Qb=!1)}function V5(){Fc||(sl=!1,Qb=!0)}function M$(e){if(typeof window>"u"||typeof document>"u"||Ji.get(il(e)))return;const n=il(e),r=Hn(e);let l=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){sl=!0,l.apply(this,arguments)},r.addEventListener("keydown",Gc,!0),r.addEventListener("keyup",Gc,!0),r.addEventListener("click",H5,!0),n.addEventListener("focus",_5,!0),n.addEventListener("blur",V5,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",ho,!0),r.addEventListener("pointermove",ho,!0),r.addEventListener("pointerup",ho,!0)),n.addEventListener("beforeunload",()=>{B5(e)},{once:!0}),Ji.set(n,{focus:l})}const B5=(e,n)=>{const r=il(e),l=Hn(e);n&&l.removeEventListener("DOMContentLoaded",n),Ji.has(r)&&(r.HTMLElement.prototype.focus=Ji.get(r).focus,l.removeEventListener("keydown",Gc,!0),l.removeEventListener("keyup",Gc,!0),l.removeEventListener("click",H5,!0),r.removeEventListener("focus",_5,!0),r.removeEventListener("blur",V5,!1),typeof PointerEvent<"u"&&(l.removeEventListener("pointerdown",ho,!0),l.removeEventListener("pointermove",ho,!0),l.removeEventListener("pointerup",ho,!0)),Ji.delete(r))};function I9(e){const n=Hn(e);let r;return n.readyState!=="loading"?M$(e):(r=()=>{M$(e)},n.addEventListener("DOMContentLoaded",r)),()=>B5(e,r)}typeof document<"u"&&I9();function q9(){return As}function Y9(e){const n=Hn(e),r=Uc(n);if(q9()==="virtual"){let l=r;A5(()=>{Uc(n)===l&&e.isConnected&&zo(e)})}else zo(e)}function W9(e){let{isDisabled:n,onFocus:r,onBlur:l,onFocusChange:i}=e;const u=v.useCallback(b=>{if(b.target===b.currentTarget)return l&&l(b),i&&i(!1),!0},[l,i]),d=H9(u),p=v.useCallback(b=>{const m=Hn(b.target),$=m?Uc(m):Uc();b.target===b.currentTarget&&$===cn(b.nativeEvent)&&(r&&r(b),i&&i(!0),d(b))},[i,r,d]);return{focusProps:{onFocus:!n&&(r||i||l)?p:void 0,onBlur:!n&&(l||i)?u:void 0}}}function L$(e){if(!e)return;let n=!0;return r=>{let l={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1},isPropagationStopped(){return n}};e(l),n&&r.stopPropagation()}}function X9(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:L$(e.onKeyDown),onKeyUp:L$(e.onKeyUp)}}}let Z9=ie.createContext(null);function Q9(e){let n=v.useContext(Z9)||{};k5(n,e);let{ref:r,...l}=n;return l}function J9(e,n){let{focusProps:r}=W9(e),{keyboardProps:l}=X9(e),i=tl(r,l),u=Q9(n),d=e.isDisabled?{}:u,p=v.useRef(e.autoFocus);v.useEffect(()=>{p.current&&n.current&&Y9(n.current),p.current=!1},[n]);let b=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(b=void 0),{focusableProps:tl({...i,tabIndex:b},d)}}function eC(e,n,r){let{isDisabled:l=!1,isReadOnly:i=!1,value:u,name:d,form:p,children:b,"aria-label":m,"aria-labelledby":$,validationState:x="valid",isInvalid:S,onPressStart:C,onPressEnd:A,onPressChange:w,onPress:L,onPressUp:P,onClick:N}=e,B=g=>{g.stopPropagation(),n.setSelected(g.target.checked)},{pressProps:H,isPressed:I}=S$({onPressStart:C,onPressEnd:A,onPressChange:w,onPress:L,onPressUp:P,onClick:N,isDisabled:l}),{pressProps:G,isPressed:J}=S$({onPressStart:C,onPressEnd:A,onPressChange:w,onPressUp:P,onClick:N,onPress(g){var k;L?.(g),n.toggle(),(k=r.current)===null||k===void 0||k.focus()},isDisabled:l||i}),{focusableProps:W}=J9(e,r),ne=tl(H,W),ue=$9(e,{labelable:!0});return A9(r,n.defaultSelected,n.setSelected),{labelProps:tl(G,{onClick:g=>g.preventDefault()}),inputProps:tl(ue,{"aria-invalid":S||x==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":i||void 0,onChange:B,disabled:l,...u==null?{}:{value:u},name:d,form:p,type:"checkbox",...ne}),isSelected:n.isSelected,isPressed:I||J,isDisabled:l,isReadOnly:i,isInvalid:S||x==="invalid"}}var P$=Symbol("default");function tC(e){const n=v.useRef(null),r=v.useRef(void 0),l=v.useCallback(i=>{if(typeof e=="function"){const u=e,d=u(i);return()=>{typeof d=="function"?d():u(null)}}else if(e)return e.current=i,()=>{e.current=null}},[e]);return v.useMemo(()=>({get current(){return n.current},set current(i){n.current=i,r.current&&(r.current(),r.current=void 0),i!=null&&(r.current=l(i))}}),[l])}function U5(e,n){let r=v.useContext(e);if(n===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let l=new Intl.ListFormat().format(Object.keys(r.slots).map(u=>`"${u}"`));if(!n&&!r.slots[P$])throw new Error(`A slot prop is required. Valid slot names are ${l}.`);let i=n||P$;if(!r.slots[i])throw new Error(`Invalid slot "${n}". Valid slot names are ${l}.`);return r.slots[i]}return r}function nC(e,n,r){let l=U5(r,e.slot)||{},{ref:i,...u}=l,d=tC(v.useMemo(()=>yE(n,i),[n,i])),p=it(u,e);return"style"in u&&u.style&&"style"in e&&e.style&&(typeof u.style=="function"||typeof e.style=="function"?p.style=b=>{let m=typeof u.style=="function"?u.style(b):u.style,$={...b.defaultStyle,...m},x=typeof e.style=="function"?e.style({...b,defaultStyle:$}):e.style;return{...$,...x}}:p.style={...u.style,...e.style}),[p,d]}const aC=v.createContext({});var Jb=v.createContext(null);v.forwardRef(function(n,r){[n,r]=nC(n,r,Jb);let{validationErrors:l,validationBehavior:i="native",children:u,className:d,...p}=n;const b=v.useMemo(()=>kT({className:d}),[d]);return T.jsx("form",{noValidate:i!=="native",...p,ref:r,className:b,children:T.jsx(Jb.Provider,{value:{...n,validationBehavior:i},children:T.jsx(aC.Provider,{value:l??{},children:u})})})});function rC(e,n,r){let[l,i]=v.useState(e||n),u=v.useRef(e!==void 0),d=e!==void 0;v.useEffect(()=>{u.current,u.current=d},[d]);let p=d?e:l,b=v.useCallback((m,...$)=>{let x=(S,...C)=>{r&&(Object.is(p,S)||r(S,...C)),d||(p=S)};typeof m=="function"?i((C,...A)=>{let w=m(d?p:C,...A);return x(w,...$),d?C:w}):(d||i(m),x(m,...$))},[d,p,r]);return[p,b]}function ev(e,n=-1/0,r=1/0){return Math.min(Math.max(e,n),r)}function lC(e){let[n,r]=rC(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const l=v.useCallback(()=>{r(!0)},[r]),i=v.useCallback(()=>{r(!1)},[r]),u=v.useCallback(()=>{r(!n)},[r,n]);return{isOpen:n,setOpen:r,open:l,close:i,toggle:u}}const oC=1500,A$=500;let Yr={},iC=0,Hi=!1,ka=null,Wr=null;function sC(e={}){let{delay:n=oC,closeDelay:r=A$}=e,{isOpen:l,open:i,close:u}=lC(e),d=v.useMemo(()=>`${++iC}`,[]),p=v.useRef(null),b=v.useRef(u),m=()=>{Yr[d]=S},$=()=>{for(let A in Yr)A!==d&&(Yr[A](!0),delete Yr[A])},x=()=>{p.current&&clearTimeout(p.current),p.current=null,$(),m(),Hi=!0,i(),ka&&(clearTimeout(ka),ka=null),Wr&&(clearTimeout(Wr),Wr=null)},S=A=>{A||r<=0?(p.current&&clearTimeout(p.current),p.current=null,b.current()):p.current||(p.current=setTimeout(()=>{p.current=null,b.current()},r)),ka&&(clearTimeout(ka),ka=null),Hi&&(Wr&&clearTimeout(Wr),Wr=setTimeout(()=>{delete Yr[d],Wr=null,Hi=!1},Math.max(A$,r)))},C=()=>{$(),m(),!l&&!ka&&!Hi?ka=setTimeout(()=>{ka=null,Hi=!0,x()},n):l||x()};return v.useEffect(()=>{b.current=u},[u]),v.useEffect(()=>()=>{p.current&&clearTimeout(p.current),Yr[d]&&delete Yr[d]},[d]),{isOpen:l,open:A=>{!A&&n>0&&!p.current?C():x()},close:S}}const ul=typeof document<"u"?ie.useLayoutEffect:()=>{};var eb;const uC=(eb=ie.useInsertionEffect)!==null&&eb!==void 0?eb:ul;function cC(e){const n=v.useRef(null);return uC(()=>{n.current=e},[e]),v.useCallback((...r)=>{const l=n.current;return l?.(...r)},[])}const F5={prefix:String(Math.round(Math.random()*1e10)),current:0},G5=ie.createContext(F5),dC=ie.createContext(!1);let tb=new WeakMap;function fC(e=!1){let n=v.useContext(G5),r=v.useRef(null);if(r.current===null&&!e){var l,i;let u=(i=ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(l=i.ReactCurrentOwner)===null||l===void 0?void 0:l.current;if(u){let d=tb.get(u);d==null?tb.set(u,{id:n.current,state:u.memoizedState}):u.memoizedState!==d.state&&(n.current=d.id,tb.delete(u))}r.current=++n.current}return r.current}function pC(e){let n=v.useContext(G5),r=fC(!!e),l=`react-aria${n.prefix}`;return e||`${l}-${r}`}function bC(e){let n=ie.useId(),[r]=v.useState(u0()),l=r?"react-aria":`react-aria${F5.prefix}`;return e||`${l}-${n}`}const vC=typeof ie.useId=="function"?bC:pC;function mC(){return!1}function gC(){return!0}function hC(e){return()=>{}}function u0(){return typeof ie.useSyncExternalStore=="function"?ie.useSyncExternalStore(hC,mC,gC):v.useContext(dC)}let $C=!!(typeof window<"u"&&window.document&&window.document.createElement),$o=new Map,Gi;typeof FinalizationRegistry<"u"&&(Gi=new FinalizationRegistry(e=>{$o.delete(e)}));function yC(e){let[n,r]=v.useState(e),l=v.useRef(null),i=vC(n),u=v.useRef(null);if(Gi&&Gi.register(u,i),$C){const d=$o.get(i);d&&!d.includes(l)?d.push(l):$o.set(i,[l])}return ul(()=>{let d=i;return()=>{Gi&&Gi.unregister(u),$o.delete(d)}},[i]),v.useEffect(()=>{let d=l.current;return d&&r(d),()=>{d&&(l.current=null)}}),i}function xC(e,n){if(e===n)return e;let r=$o.get(e);if(r)return r.forEach(i=>i.current=n),n;let l=$o.get(n);return l?(l.forEach(i=>i.current=e),e):n}function EC(...e){return(...n)=>{for(let r of e)typeof r=="function"&&r(...n)}}const gl=e=>{var n;return(n=e?.ownerDocument)!==null&&n!==void 0?n:document},tv=e=>e&&"window"in e&&e.window===e?e:gl(e).defaultView||window;function wC(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function TC(e){return wC(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function SC(e,n){if(!Ve())return n&&e?e.contains(n):!1;if(!e||!n)return!1;let r=n;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:TC(r)?r=r.host:r=r.parentNode}return!1}const Kc=(e=document)=>{var n;if(!Ve())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((n=r.shadowRoot)===null||n===void 0)&&n.activeElement);)r=r.shadowRoot.activeElement;return r};function CC(e){return Ve()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function K5(e){var n,r,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(n=0;n=65&&i.charCodeAt(2)<=90?n[i]=EC(u,d):(i==="className"||i==="UNSAFE_className")&&typeof u=="string"&&typeof d=="string"?n[i]=MC(u,d):i==="id"&&u&&d?n.id=xC(u,d):n[i]=d!==void 0?d:u}}return n}const LC=new Set(["id"]),PC=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),AC=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),kC=new Set(["dir","lang","hidden","inert","translate"]),k$=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),DC=/^(data-.*)$/;function zC(e,n={}){let{labelable:r,isLink:l,global:i,events:u=i,propNames:d}=n,p={};for(const b in e)Object.prototype.hasOwnProperty.call(e,b)&&(LC.has(b)||r&&PC.has(b)||l&&AC.has(b)||i&&kC.has(b)||u&&k$.has(b)||b.endsWith("Capture")&&k$.has(b.slice(0,-7))||d?.has(b)||DC.test(b))&&(p[b]=e[b]);return p}function D$(e){if(OC())e.focus({preventScroll:!0});else{let n=NC(e);e.focus(),jC(n)}}let uc=null;function OC(){if(uc==null){uc=!1;try{document.createElement("div").focus({get preventScroll(){return uc=!0,!0}})}catch{}}return uc}function NC(e){let n=e.parentNode,r=[],l=document.scrollingElement||document.documentElement;for(;n instanceof HTMLElement&&n!==l;)(n.offsetHeight"u"||window.navigator==null)return!1;let r=(n=window.navigator.userAgentData)===null||n===void 0?void 0:n.brands;return Array.isArray(r)&&r.some(l=>e.test(l.brand))||e.test(window.navigator.userAgent)}function RC(e){var n;return typeof window<"u"&&window.navigator!=null?e.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function hd(e){let n=null;return()=>(n==null&&(n=e()),n)}const HC=hd(function(){return RC(/^Mac/i)}),_C=hd(function(){return c0(/AppleWebKit/i)&&!VC()}),VC=hd(function(){return c0(/Chrome/i)}),BC=hd(function(){return c0(/Android/i)});let br=new Map,nv=new Set;function z$(){if(typeof window>"u")return;function e(l){return"propertyName"in l}let n=l=>{if(!e(l)||!l.target)return;let i=br.get(l.target);i||(i=new Set,br.set(l.target,i),l.target.addEventListener("transitioncancel",r,{once:!0})),i.add(l.propertyName)},r=l=>{if(!e(l)||!l.target)return;let i=br.get(l.target);if(i&&(i.delete(l.propertyName),i.size===0&&(l.target.removeEventListener("transitioncancel",r),br.delete(l.target)),br.size===0)){for(let u of nv)u();nv.clear()}};document.body.addEventListener("transitionrun",n),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?z$():document.addEventListener("DOMContentLoaded",z$));function UC(){for(const[e]of br)"isConnected"in e&&!e.isConnected&&br.delete(e)}function FC(e){requestAnimationFrame(()=>{UC(),br.size===0?e():nv.add(e)})}function GC(){let e=v.useRef(new Map),n=v.useCallback((i,u,d,p)=>{let b=p?.once?(...m)=>{e.current.delete(d),d(...m)}:d;e.current.set(d,{type:u,eventTarget:i,fn:b,options:p}),i.addEventListener(u,b,p)},[]),r=v.useCallback((i,u,d,p)=>{var b;let m=((b=e.current.get(d))===null||b===void 0?void 0:b.fn)||d;i.removeEventListener(u,m,p),e.current.delete(d)},[]),l=v.useCallback(()=>{e.current.forEach((i,u)=>{r(i.eventTarget,i.type,u,i.options)})},[r]);return v.useEffect(()=>l,[l]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:l}}function KC(){return typeof window.ResizeObserver<"u"}function O$(e){const{ref:n,box:r,onResize:l}=e;v.useEffect(()=>{let i=n?.current;if(i)if(KC()){const u=new window.ResizeObserver(d=>{d.length&&l()});return u.observe(i,{box:r}),()=>{i&&u.unobserve(i)}}else return window.addEventListener("resize",l,!1),()=>{window.removeEventListener("resize",l,!1)}},[l,n,r])}function IC(e,n){ul(()=>{if(e&&e.ref&&n)return e.ref.current=n.current,()=>{e.ref&&(e.ref.current=null)}})}function qC(e){return e.pointerType===""&&e.isTrusted?!0:BC()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function YC(e){let n=e;return n.nativeEvent=e,n.isDefaultPrevented=()=>n.defaultPrevented,n.isPropagationStopped=()=>n.cancelBubble,n.persist=()=>{},n}function WC(e){let n=v.useRef({isFocused:!1,observer:null});ul(()=>{const l=n.current;return()=>{l.observer&&(l.observer.disconnect(),l.observer=null)}},[]);let r=cC(l=>{e?.(l)});return v.useCallback(l=>{if(l.target instanceof HTMLButtonElement||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement||l.target instanceof HTMLSelectElement){n.current.isFocused=!0;let i=l.target,u=d=>{if(n.current.isFocused=!1,i.disabled){let p=YC(d);r(p)}n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};i.addEventListener("focusout",u,{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&i.disabled){var d;(d=n.current.observer)===null||d===void 0||d.disconnect();let p=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:p})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:p}))}}),n.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let XC=!1,Bo=null,ZC=new Set,es=new Map,cl=!1,av=!1;function d0(e,n){for(let r of ZC)r(e,n)}function QC(e){return!(e.metaKey||!HC()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function qc(e){cl=!0,QC(e)&&(Bo="keyboard",d0("keyboard",e))}function yo(e){Bo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(cl=!0,d0("pointer",e))}function I5(e){qC(e)&&(cl=!0,Bo="virtual")}function q5(e){e.target===window||e.target===document||XC||!e.isTrusted||(!cl&&!av&&(Bo="virtual",d0("virtual",e)),cl=!1,av=!1)}function Y5(){cl=!1,av=!0}function N$(e){if(typeof window>"u"||typeof document>"u"||es.get(tv(e)))return;const n=tv(e),r=gl(e);let l=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){cl=!0,l.apply(this,arguments)},r.addEventListener("keydown",qc,!0),r.addEventListener("keyup",qc,!0),r.addEventListener("click",I5,!0),n.addEventListener("focus",q5,!0),n.addEventListener("blur",Y5,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",yo,!0),r.addEventListener("pointermove",yo,!0),r.addEventListener("pointerup",yo,!0)),n.addEventListener("beforeunload",()=>{W5(e)},{once:!0}),es.set(n,{focus:l})}const W5=(e,n)=>{const r=tv(e),l=gl(e);n&&l.removeEventListener("DOMContentLoaded",n),es.has(r)&&(r.HTMLElement.prototype.focus=es.get(r).focus,l.removeEventListener("keydown",qc,!0),l.removeEventListener("keyup",qc,!0),l.removeEventListener("click",I5,!0),r.removeEventListener("focus",q5,!0),r.removeEventListener("blur",Y5,!1),typeof PointerEvent<"u"&&(l.removeEventListener("pointerdown",yo,!0),l.removeEventListener("pointermove",yo,!0),l.removeEventListener("pointerup",yo,!0)),es.delete(r))};function JC(e){const n=gl(e);let r;return n.readyState!=="loading"?N$(e):(r=()=>{N$(e)},n.addEventListener("DOMContentLoaded",r)),()=>W5(e,r)}typeof document<"u"&&JC();function eM(){return Bo!=="pointer"}function X5(){return Bo}function tM(e){const n=gl(e),r=Kc(n);if(X5()==="virtual"){let l=r;FC(()=>{Kc(n)===l&&e.isConnected&&D$(e)})}else D$(e)}function nM(e){let{isDisabled:n,onFocus:r,onBlur:l,onFocusChange:i}=e;const u=v.useCallback(b=>{if(b.target===b.currentTarget)return l&&l(b),i&&i(!1),!0},[l,i]),d=WC(u),p=v.useCallback(b=>{const m=gl(b.target),$=m?Kc(m):Kc();b.target===b.currentTarget&&$===CC(b.nativeEvent)&&(r&&r(b),i&&i(!0),d(b))},[i,r,d]);return{focusProps:{onFocus:!n&&(r||i||l)?p:void 0,onBlur:!n&&(l||i)?u:void 0}}}function j$(e){if(!e)return;let n=!0;return r=>{let l={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1},isPropagationStopped(){return n}};e(l),n&&r.stopPropagation()}}function aM(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:j$(e.onKeyDown),onKeyUp:j$(e.onKeyUp)}}}let rM=ie.createContext(null);function lM(e){let n=v.useContext(rM)||{};IC(n,e);let{ref:r,...l}=n;return l}function oM(e,n){let{focusProps:r}=nM(e),{keyboardProps:l}=aM(e),i=Ic(r,l),u=lM(n),d=e.isDisabled?{}:u,p=v.useRef(e.autoFocus);v.useEffect(()=>{p.current&&n.current&&tM(n.current),p.current=!1},[n]);let b=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(b=void 0),{focusableProps:Ic({...i,tabIndex:b},d)}}let rv=!1,cc=0;function iM(){rv=!0,setTimeout(()=>{rv=!1},50)}function R$(e){e.pointerType==="touch"&&iM()}function sM(){if(!(typeof document>"u"))return cc===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",R$),cc++,()=>{cc--,!(cc>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",R$)}}function Z5(e){let{onHoverStart:n,onHoverChange:r,onHoverEnd:l,isDisabled:i}=e,[u,d]=v.useState(!1),p=v.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;v.useEffect(sM,[]);let{addGlobalListener:b,removeAllGlobalListeners:m}=GC(),{hoverProps:$,triggerHoverEnd:x}=v.useMemo(()=>{let S=(w,L)=>{if(p.pointerType=L,i||L==="touch"||p.isHovered||!w.currentTarget.contains(w.target))return;p.isHovered=!0;let P=w.currentTarget;p.target=P,b(gl(w.target),"pointerover",N=>{p.isHovered&&p.target&&!SC(p.target,N.target)&&C(N,N.pointerType)},{capture:!0}),n&&n({type:"hoverstart",target:P,pointerType:L}),r&&r(!0),d(!0)},C=(w,L)=>{let P=p.target;p.pointerType="",p.target=null,!(L==="touch"||!p.isHovered||!P)&&(p.isHovered=!1,m(),l&&l({type:"hoverend",target:P,pointerType:L}),r&&r(!1),d(!1))},A={};return typeof PointerEvent<"u"&&(A.onPointerEnter=w=>{rv&&w.pointerType==="mouse"||S(w,w.pointerType)},A.onPointerLeave=w=>{!i&&w.currentTarget.contains(w.target)&&C(w,w.pointerType)}),{hoverProps:A,triggerHoverEnd:C}},[n,r,l,i,p,b,m]);return v.useEffect(()=>{i&&x({currentTarget:p.target},p.pointerType)},[i]),{hoverProps:$,isHovered:u}}function uM(e,n){let r=zC(e,{labelable:!0}),{hoverProps:l}=Z5({onHoverStart:()=>n?.open(!0),onHoverEnd:()=>n?.close()});return{tooltipProps:Ic(r,l,{role:"tooltip"})}}function cM(e,n,r){let{isDisabled:l,trigger:i}=e,u=yC(),d=v.useRef(!1),p=v.useRef(!1),b=()=>{(d.current||p.current)&&n.open(p.current)},m=P=>{!d.current&&!p.current&&n.close(P)};v.useEffect(()=>{let P=N=>{r&&r.current&&N.key==="Escape"&&(N.stopPropagation(),n.close(!0))};if(n.isOpen)return document.addEventListener("keydown",P,!0),()=>{document.removeEventListener("keydown",P,!0)}},[r,n]);let $=()=>{i!=="focus"&&(X5()==="pointer"?d.current=!0:d.current=!1,b())},x=()=>{i!=="focus"&&(p.current=!1,d.current=!1,m())},S=()=>{p.current=!1,d.current=!1,m(!0)},C=()=>{eM()&&(p.current=!0,b())},A=()=>{p.current=!1,d.current=!1,m(!0)},{hoverProps:w}=Z5({isDisabled:l,onHoverStart:$,onHoverEnd:x}),{focusableProps:L}=oM({isDisabled:l,onFocus:C,onBlur:A},r);return{triggerProps:{"aria-describedby":n.isOpen?u:void 0,...Ic(L,w,{onPointerDown:S,onKeyDown:S}),tabIndex:void 0},tooltipProps:{id:u}}}const ra={top:"top",bottom:"top",left:"left",right:"left"},Yc={top:"bottom",bottom:"top",left:"right",right:"left"},dM={top:"left",left:"top"},lv={top:"height",left:"width"},Q5={width:"totalWidth",height:"totalHeight"},dc={};let Pt=typeof document<"u"?window.visualViewport:null;function H$(e){let n=0,r=0,l=0,i=0,u=0,d=0,p={};var b;let m=((b=Pt?.scale)!==null&&b!==void 0?b:1)>1;if(e.tagName==="BODY"){let A=document.documentElement;l=A.clientWidth,i=A.clientHeight;var $;n=($=Pt?.width)!==null&&$!==void 0?$:l;var x;r=(x=Pt?.height)!==null&&x!==void 0?x:i,p.top=A.scrollTop||e.scrollTop,p.left=A.scrollLeft||e.scrollLeft,Pt&&(u=Pt.offsetTop,d=Pt.offsetLeft)}else({width:n,height:r,top:u,left:d}=xo(e,!1)),p.top=e.scrollTop,p.left=e.scrollLeft,l=n,i=r;if(_C()&&(e.tagName==="BODY"||e.tagName==="HTML")&&m){p.top=0,p.left=0;var S;u=(S=Pt?.pageTop)!==null&&S!==void 0?S:0;var C;d=(C=Pt?.pageLeft)!==null&&C!==void 0?C:0}return{width:n,height:r,totalWidth:l,totalHeight:i,scroll:p,top:u,left:d}}function fM(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function _$(e,n,r,l,i,u,d){var p;let b=(p=i.scroll[e])!==null&&p!==void 0?p:0,m=l[lv[e]],$=l.scroll[ra[e]]+u,x=m+l.scroll[ra[e]]-u,S=n-b+d[e]-l[ra[e]],C=n-b+r+d[e]-l[ra[e]];return S<$?$-S:C>x?Math.max(x-C,$-S):0}function pM(e){let n=window.getComputedStyle(e);return{top:parseInt(n.marginTop,10)||0,bottom:parseInt(n.marginBottom,10)||0,left:parseInt(n.marginLeft,10)||0,right:parseInt(n.marginRight,10)||0}}function V$(e){if(dc[e])return dc[e];let[n,r]=e.split(" "),l=ra[n]||"right",i=dM[l];ra[r]||(r="center");let u=lv[l],d=lv[i];return dc[e]={placement:n,crossPlacement:r,axis:l,crossAxis:i,size:u,crossSize:d},dc[e]}function nb(e,n,r,l,i,u,d,p,b,m){let{placement:$,crossPlacement:x,axis:S,crossAxis:C,size:A,crossSize:w}=l,L={};var P;L[C]=(P=e[C])!==null&&P!==void 0?P:0;var N,B,H,I;x==="center"?L[C]+=(((N=e[w])!==null&&N!==void 0?N:0)-((B=r[w])!==null&&B!==void 0?B:0))/2:x!==C&&(L[C]+=((H=e[w])!==null&&H!==void 0?H:0)-((I=r[w])!==null&&I!==void 0?I:0)),L[C]+=u;const G=e[C]-r[w]+b+m,J=e[C]+e[w]-b-m;if(L[C]=ev(L[C],G,J),$===S){const W=p?d[A]:n[Q5[A]];L[Yc[S]]=Math.floor(W-e[S]+i)}else L[S]=Math.floor(e[S]+e[A]+i);return L}function bM(e,n,r,l,i,u,d,p){const b=l?r.height:n[Q5.height];var m;let $=e.top!=null?r.top+e.top:r.top+(b-((m=e.bottom)!==null&&m!==void 0?m:0)-d);var x,S,C,A,w,L;let P=p!=="top"?Math.max(0,n.height+n.top+((x=n.scroll.top)!==null&&x!==void 0?x:0)-$-(((S=i.top)!==null&&S!==void 0?S:0)+((C=i.bottom)!==null&&C!==void 0?C:0)+u)):Math.max(0,$+d-(n.top+((A=n.scroll.top)!==null&&A!==void 0?A:0))-(((w=i.top)!==null&&w!==void 0?w:0)+((L=i.bottom)!==null&&L!==void 0?L:0)+u));return Math.min(n.height-u*2,P)}function B$(e,n,r,l,i,u){let{placement:d,axis:p,size:b}=u;var m,$;if(d===p)return Math.max(0,r[p]-e[p]-((m=e.scroll[p])!==null&&m!==void 0?m:0)+n[p]-(($=l[p])!==null&&$!==void 0?$:0)-l[Yc[p]]-i);var x;return Math.max(0,e[b]+e[p]+e.scroll[p]-n[p]-r[p]-r[b]-((x=l[p])!==null&&x!==void 0?x:0)-l[Yc[p]]-i)}function vM(e,n,r,l,i,u,d,p,b,m,$,x,S,C,A,w){let L=V$(e),{size:P,crossAxis:N,crossSize:B,placement:H,crossPlacement:I}=L,G=nb(n,p,r,L,$,x,m,S,A,w),J=$,W=B$(p,m,n,i,u+$,L);if(d&&l[P]>W){let ce=V$(`${Yc[H]} ${I}`),we=nb(n,p,r,ce,$,x,m,S,A,w);B$(p,m,n,i,u+$,ce)>W&&(L=ce,G=we,J=$)}let ne="bottom";L.axis==="top"?L.placement==="top"?ne="top":L.placement==="bottom"&&(ne="bottom"):L.crossAxis==="top"&&(L.crossPlacement==="top"?ne="bottom":L.crossPlacement==="bottom"&&(ne="top"));let ue=_$(N,G[N],r[B],p,b,u,m);G[N]+=ue;let g=bM(G,p,m,S,i,u,r.height,ne);C&&C{if(!r||l===null)return;let i=u=>{let d=u.target;if(!n.current||d instanceof Node&&!d.contains(n.current)||u.target instanceof HTMLInputElement||u.target instanceof HTMLTextAreaElement)return;let p=l||hM.get(n.current);p&&p()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[r,l,n])}const yM=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),xM=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function EM(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),l=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(l)return l.direction==="rtl";if(r.script)return yM.has(r.script)}let n=e.split("-")[0];return xM.has(n)}const wM=Symbol.for("react-aria.i18n.locale");function J5(){let e=typeof window<"u"&&window[wM]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:EM(e)?"rtl":"ltr"}}let ov=J5(),Ki=new Set;function G$(){ov=J5();for(let e of Ki)e(ov)}function TM(){let e=u0(),[n,r]=v.useState(ov);return v.useEffect(()=>(Ki.size===0&&window.addEventListener("languagechange",G$),Ki.add(r),()=>{Ki.delete(r),Ki.size===0&&window.removeEventListener("languagechange",G$)}),[]),e?{locale:"en-US",direction:"ltr"}:n}const SM=ie.createContext(null);function CM(){let e=TM();return v.useContext(SM)||e}let gt=typeof document<"u"?window.visualViewport:null;function MM(e){let{direction:n}=CM(),{arrowSize:r,targetRef:l,overlayRef:i,arrowRef:u,scrollRef:d=i,placement:p="bottom",containerPadding:b=12,shouldFlip:m=!0,boundaryElement:$=typeof document<"u"?document.body:null,offset:x=0,crossOffset:S=0,shouldUpdatePosition:C=!0,isOpen:A=!0,onClose:w,maxHeight:L,arrowBoundaryOffset:P=0}=e,[N,B]=v.useState(null),H=[C,p,i.current,l.current,u?.current,d.current,b,m,$,x,S,A,n,L,P,r],I=v.useRef(gt?.scale);v.useEffect(()=>{A&&(I.current=gt?.scale)},[A]);let G=v.useCallback(()=>{if(C===!1||!A||!i.current||!l.current||!$||gt?.scale!==I.current)return;let k=null;if(d.current&&d.current.contains(document.activeElement)){var U;let re=(U=document.activeElement)===null||U===void 0?void 0:U.getBoundingClientRect(),z=d.current.getBoundingClientRect();var E;if(k={type:"top",offset:((E=re?.top)!==null&&E!==void 0?E:0)-z.top},k.offset>z.height/2){k.type="bottom";var _;k.offset=((_=re?.bottom)!==null&&_!==void 0?_:0)-z.bottom}}let h=i.current;if(!L&&i.current){var D;h.style.top="0px",h.style.bottom="";var O;h.style.maxHeight=((O=(D=window.visualViewport)===null||D===void 0?void 0:D.height)!==null&&O!==void 0?O:window.innerHeight)+"px"}let q=mM({placement:PM(p,n),overlayNode:i.current,targetNode:l.current,scrollNode:d.current||i.current,padding:b,shouldFlip:m,boundaryElement:$,offset:x,crossOffset:S,maxHeight:L,arrowSize:r??(u?.current?f0(u.current,!0).width:0),arrowBoundaryOffset:P});if(q.position){if(h.style.top="",h.style.bottom="",h.style.left="",h.style.right="",Object.keys(q.position).forEach(re=>h.style[re]=q.position[re]+"px"),h.style.maxHeight=q.maxHeight!=null?q.maxHeight+"px":"",k&&document.activeElement&&d.current){let re=document.activeElement.getBoundingClientRect(),z=d.current.getBoundingClientRect(),j=re[k.type]-z[k.type];d.current.scrollTop+=j-k.offset}B(q)}},H);ul(G,H),LM(G),O$({ref:i,onResize:G}),O$({ref:l,onResize:G});let J=v.useRef(!1);ul(()=>{let k,U=()=>{J.current=!0,clearTimeout(k),k=setTimeout(()=>{J.current=!1},500),G()},E=()=>{J.current&&U()};return gt?.addEventListener("resize",U),gt?.addEventListener("scroll",E),()=>{gt?.removeEventListener("resize",U),gt?.removeEventListener("scroll",E)}},[G]);let W=v.useCallback(()=>{J.current||w?.()},[w,J]);$M({triggerRef:l,isOpen:A,onClose:w&&W});var ne,ue,g;return{overlayProps:{style:{position:N?"absolute":"fixed",top:N?void 0:0,left:N?void 0:0,zIndex:1e5,...N?.position,maxHeight:(ne=N?.maxHeight)!==null&&ne!==void 0?ne:"100vh"}},placement:(ue=N?.placement)!==null&&ue!==void 0?ue:null,triggerAnchorPoint:(g=N?.triggerAnchorPoint)!==null&&g!==void 0?g:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:N?.arrowOffsetLeft,top:N?.arrowOffsetTop}},updatePosition:G}}function LM(e){ul(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function PM(e,n){return n==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const AM=v.createContext({});function kM(){var e;return(e=v.useContext(AM))!==null&&e!==void 0?e:{}}const iv=ie.createContext(null);function DM(e){let{children:n}=e,r=v.useContext(iv),[l,i]=v.useState(0),u=v.useMemo(()=>({parent:r,modalCount:l,addModal(){i(d=>d+1),r&&r.addModal()},removeModal(){i(d=>d-1),r&&r.removeModal()}}),[r,l]);return ie.createElement(iv.Provider,{value:u},n)}function zM(){let e=v.useContext(iv);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function OM(e){let{modalProviderProps:n}=zM();return ie.createElement("div",{"data-overlay-container":!0,...e,...n})}function NM(e){return ie.createElement(DM,null,ie.createElement(OM,e))}function K$(e){let n=u0(),{portalContainer:r=n?null:document.body,...l}=e,{getContainer:i}=kM();if(!e.portalContainer&&i&&(r=i()),ie.useEffect(()=>{if(r?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let u=ie.createElement(NM,l);return ow.createPortal(u,r)}const e6=typeof document<"u"?ie.useLayoutEffect:()=>{};var ab;const jM=(ab=ie.useInsertionEffect)!==null&&ab!==void 0?ab:e6;function sv(e){const n=v.useRef(null);return jM(()=>{n.current=e},[e]),v.useCallback((...r)=>{const l=n.current;return l?.(...r)},[])}const t6=e=>{var n;return(n=e?.ownerDocument)!==null&&n!==void 0?n:document};function RM(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function HM(e){return RM(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function _M(e,n){if(!Ve())return n&&e?e.contains(n):!1;if(!e||!n)return!1;let r=n;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:HM(r)?r=r.host:r=r.parentNode}return!1}const VM=(e=document)=>{var n;if(!Ve())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((n=r.shadowRoot)===null||n===void 0)&&n.activeElement);)r=r.shadowRoot.activeElement;return r};function BM(e){return Ve()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function UM(){let e=v.useRef(new Map),n=v.useCallback((i,u,d,p)=>{let b=p?.once?(...m)=>{e.current.delete(d),d(...m)}:d;e.current.set(d,{type:u,eventTarget:i,fn:b,options:p}),i.addEventListener(u,b,p)},[]),r=v.useCallback((i,u,d,p)=>{var b;let m=((b=e.current.get(d))===null||b===void 0?void 0:b.fn)||d;i.removeEventListener(u,m,p),e.current.delete(d)},[]),l=v.useCallback(()=>{e.current.forEach((i,u)=>{r(i.eventTarget,i.type,u,i.options)})},[r]);return v.useEffect(()=>l,[l]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:l}}function n6(e){let n=e;return n.nativeEvent=e,n.isDefaultPrevented=()=>n.defaultPrevented,n.isPropagationStopped=()=>n.cancelBubble,n.persist=()=>{},n}function FM(e,n){Object.defineProperty(e,"target",{value:n}),Object.defineProperty(e,"currentTarget",{value:n})}function GM(e){let n=v.useRef({isFocused:!1,observer:null});e6(()=>{const l=n.current;return()=>{l.observer&&(l.observer.disconnect(),l.observer=null)}},[]);let r=sv(l=>{e?.(l)});return v.useCallback(l=>{if(l.target instanceof HTMLButtonElement||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement||l.target instanceof HTMLSelectElement){n.current.isFocused=!0;let i=l.target,u=d=>{if(n.current.isFocused=!1,i.disabled){let p=n6(d);r(p)}n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};i.addEventListener("focusout",u,{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&i.disabled){var d;(d=n.current.observer)===null||d===void 0||d.disconnect();let p=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:p})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:p}))}}),n.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function KM(e){let{isDisabled:n,onBlurWithin:r,onFocusWithin:l,onFocusWithinChange:i}=e,u=v.useRef({isFocusWithin:!1}),{addGlobalListener:d,removeAllGlobalListeners:p}=UM(),b=v.useCallback(x=>{x.currentTarget.contains(x.target)&&u.current.isFocusWithin&&!x.currentTarget.contains(x.relatedTarget)&&(u.current.isFocusWithin=!1,p(),r&&r(x),i&&i(!1))},[r,i,u,p]),m=GM(b),$=v.useCallback(x=>{if(!x.currentTarget.contains(x.target))return;const S=t6(x.target),C=VM(S);if(!u.current.isFocusWithin&&C===BM(x.nativeEvent)){l&&l(x),i&&i(!0),u.current.isFocusWithin=!0,m(x);let A=x.currentTarget;d(S,"focus",w=>{if(u.current.isFocusWithin&&!_M(A,w.target)){let L=new S.defaultView.FocusEvent("blur",{relatedTarget:w.target});FM(L,A);let P=n6(L);b(P)}},{capture:!0})}},[l,i,m,d,b]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:$,onBlur:b}}}function IM(e){let{ref:n,onInteractOutside:r,isDisabled:l,onInteractOutsideStart:i}=e,u=v.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),d=sv(b=>{r&&I$(b,n)&&(i&&i(b),u.current.isPointerDown=!0)}),p=sv(b=>{r&&r(b)});v.useEffect(()=>{let b=u.current;if(l)return;const m=n.current,$=t6(m);if(typeof PointerEvent<"u"){let x=S=>{b.isPointerDown&&I$(S,n)&&p(S),b.isPointerDown=!1};return $.addEventListener("pointerdown",d,!0),$.addEventListener("click",x,!0),()=>{$.removeEventListener("pointerdown",d,!0),$.removeEventListener("click",x,!0)}}},[n,l,d,p])}function I$(e,n){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return n.current?!e.composedPath().includes(n.current):!1}let qM=null;function a6(e,n){return!e||!n?!1:n.some(r=>r.contains(e))}function YM(e,n=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Y$.traverse(Y$.getTreeNode(n)))if(r&&a6(e,r.current))return!0;return!1}function WM(e){return YM(e,qM)}class p0{get size(){return this.fastMap.size}getTreeNode(n){return this.fastMap.get(n)}addTreeNode(n,r,l){let i=this.fastMap.get(r??null);if(!i)return;let u=new q$({scopeRef:n});i.addChild(u),u.parent=i,this.fastMap.set(n,u),l&&(u.nodeToRestore=l)}addNode(n){this.fastMap.set(n.scopeRef,n)}removeTreeNode(n){if(n===null)return;let r=this.fastMap.get(n);if(!r)return;let l=r.parent;for(let u of this.traverse())u!==r&&r.nodeToRestore&&u.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&a6(u.nodeToRestore,r.scopeRef.current)&&(u.nodeToRestore=r.nodeToRestore);let i=r.children;l&&(l.removeChild(r),i.size>0&&i.forEach(u=>l&&l.addChild(u))),this.fastMap.delete(r.scopeRef)}*traverse(n=this.root){if(n.scopeRef!=null&&(yield n),n.children.size>0)for(let r of n.children)yield*this.traverse(r)}clone(){var n;let r=new p0;var l;for(let i of this.traverse())r.addTreeNode(i.scopeRef,(l=(n=i.parent)===null||n===void 0?void 0:n.scopeRef)!==null&&l!==void 0?l:null,i.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new q$({scopeRef:null}),this.fastMap.set(null,this.root)}}class q${addChild(n){this.children.add(n),n.parent=this}removeChild(n){this.children.delete(n),n.parent=void 0}constructor(n){this.children=new Set,this.contain=!1,this.scopeRef=n.scopeRef}}let Y$=new p0;var aa=[];function XM(e,n){const{disableOutsideEvents:r=!0,isDismissable:l=!1,isKeyboardDismissDisabled:i=!1,isOpen:u,onClose:d,shouldCloseOnBlur:p,shouldCloseOnInteractOutside:b}=e;v.useEffect(()=>{if(u&&!aa.includes(n))return aa.push(n),()=>{let L=aa.indexOf(n);L>=0&&aa.splice(L,1)}},[u,n]);const m=()=>{aa[aa.length-1]===n&&d&&d()},$=L=>{(!b||b(L.target))&&(aa[aa.length-1]===n&&r&&(L.stopPropagation(),L.preventDefault()),w(n)!=="pressEnd"&&m())},x=L=>{(!b||b(L.target))&&(aa[aa.length-1]===n&&r&&(L.stopPropagation(),L.preventDefault()),m())},S=L=>{L.key==="Escape"&&!i&&!L.nativeEvent.isComposing&&(L.stopPropagation(),L.preventDefault(),m())};IM({isDisabled:!(l&&u),onInteractOutside:l&&u?x:void 0,onInteractOutsideStart:$,ref:n});const{focusWithinProps:C}=KM({isDisabled:!p,onBlurWithin:L=>{!L.relatedTarget||WM(L.relatedTarget)||(!b||b(L.relatedTarget))&&m()}}),A=L=>{L.target===L.currentTarget&&L.preventDefault()};function w(L){const P=L.current;if(!P)return"unknown";const N=(P.getAttribute("role")||"").toLowerCase(),B=P.getAttribute("aria-modal");return(N==="dialog"||N==="alertdialog")&&(B===null||B.toLowerCase()==="true")?"pressEnd":["listbox","menu","tree","grid","combobox"].includes(N)?"pressStart":"unknown"}return{overlayProps:{onKeyDown:S,...C},underlayProps:{onPointerDown:A}}}function ZM(e){var n,r;const l=oa(),[i,u]=Ho(e,l$.variantKeys),{ref:d,as:p,isOpen:b,content:m,children:$,defaultOpen:x,onOpenChange:S,isDisabled:C,trigger:A,shouldFlip:w=!0,containerPadding:L=12,placement:P="top",delay:N=0,closeDelay:B=500,showArrow:H=!1,offset:I=7,crossOffset:G=0,isDismissable:J,shouldCloseOnBlur:W=!0,portalContainer:ne,isKeyboardDismissDisabled:ue=!1,updatePositionDeps:g=[],shouldCloseOnInteractOutside:k,className:U,onClose:E,motionProps:_,classNames:h,...D}=i,O=p||"div",q=(r=(n=e?.disableAnimation)!=null?n:l?.disableAnimation)!=null?r:!1,re=sC({delay:N,closeDelay:B,isDisabled:C,defaultOpen:x,isOpen:b,onOpenChange:ge=>{S?.(ge),ge||E?.()}}),z=v.useRef(null),j=v.useRef(null),Z=v.useId(),K=re.isOpen&&!C;v.useImperativeHandle(d,()=>bE(j));const{triggerProps:se,tooltipProps:oe}=cM({isDisabled:C,trigger:A},re,z),{tooltipProps:ce}=uM({isOpen:K,...it(i,oe)},re),{overlayProps:we,placement:he,updatePosition:me}=MM({isOpen:K,targetRef:z,placement:BT(P),overlayRef:j,offset:H?I+3:I,crossOffset:G,shouldFlip:w,containerPadding:L});Qv(()=>{g.length&&me()},g);const{overlayProps:nt}=XM({isOpen:K,onClose:re.close,isDismissable:J,shouldCloseOnBlur:W,isKeyboardDismissDisabled:ue,shouldCloseOnInteractOutside:k},j),Ke=v.useMemo(()=>{var ge,pt,At;return l$({...u,disableAnimation:q,radius:(ge=e?.radius)!=null?ge:"md",size:(pt=e?.size)!=null?pt:"md",shadow:(At=e?.shadow)!=null?At:"sm"})},[Ro(u),q,e?.radius,e?.size,e?.shadow]),Ie=v.useCallback((ge={},pt=null)=>({...it(se,ge),ref:Zy(pt,z),"aria-describedby":K?Z:void 0}),[se,K,Z,re]),qe=v.useCallback(()=>({ref:j,"data-slot":"base","data-open":ve(K),"data-arrow":ve(H),"data-disabled":ve(C),"data-placement":s$(he||"top",P),...it(ce,nt,D),style:it(we.style,D.style,i.style),className:Ke.base({class:h?.base}),id:Z}),[Ke,K,H,C,he,P,ce,nt,D,we,i,Z]),at=v.useCallback(()=>({"data-slot":"content","data-open":ve(K),"data-arrow":ve(H),"data-disabled":ve(C),"data-placement":s$(he||"top",P),className:Ke.content({class:ot(h?.content,U)})}),[Ke,K,H,C,he,P,h]);return{Component:O,content:m,children:$,isOpen:K,triggerRef:z,showArrow:H,portalContainer:ne,placement:P,disableAnimation:q,isDisabled:C,motionProps:_,getTooltipContentProps:at,getTriggerProps:Ie,getTooltipProps:qe}}var QM=()=>vd(()=>import("./index-DSAAAm0Q.js"),__vite__mapDeps([0,1])).then(e=>e.default),r6=ja((e,n)=>{var r;const{Component:l,children:i,content:u,isOpen:d,portalContainer:p,placement:b,disableAnimation:m,motionProps:$,getTriggerProps:x,getTooltipProps:S,getTooltipContentProps:C}=ZM({...e,ref:n});let A;try{if(v.Children.count(i)!==1)throw new Error;if(!v.isValidElement(i))A=T.jsx("p",{...x(),children:i});else{const I=i,G=(r=I.props.ref)!=null?r:I.ref;A=v.cloneElement(I,x(I.props,G))}}catch{A=T.jsx("span",{}),Xy("Tooltip must have only one child node. Please, check your code.")}const{ref:w,id:L,style:P,...N}=S(),B=T.jsx("div",{ref:w,id:L,style:P,children:T.jsx(pd.div,{animate:"enter",exit:"exit",initial:"exit",variants:_T.scaleSpring,...it($,N),style:{...VT(b)},children:T.jsx(l,{...C(),children:u})},`${L}-tooltip-inner`)},`${L}-tooltip-content`);return T.jsxs(T.Fragment,{children:[A,m?d&&T.jsx(K$,{portalContainer:p,children:T.jsx("div",{ref:w,id:L,style:P,...N,children:T.jsx(l,{...C(),children:u})})}):T.jsx(cd,{features:QM,children:T.jsx(ud,{children:d&&T.jsx(K$,{portalContainer:p,children:B})})})]})});r6.displayName="HeroUI.Tooltip";var JM=r6;const l6=typeof document<"u"?ie.useLayoutEffect:()=>{};var rb;const eL=(rb=ie.useInsertionEffect)!==null&&rb!==void 0?rb:l6;function tL(e){const n=v.useRef(null);return eL(()=>{n.current=e},[e]),v.useCallback((...r)=>{const l=n.current;return l?.(...r)},[])}const xr=e=>{var n;return(n=e?.ownerDocument)!==null&&n!==void 0?n:document},el=e=>e&&"window"in e&&e.window===e?e:xr(e).defaultView||window;function nL(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function aL(e){return nL(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function o6(e,n){if(!Ve())return n&&e?e.contains(n):!1;if(!e||!n)return!1;let r=n;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:aL(r)?r=r.host:r=r.parentNode}return!1}const uv=(e=document)=>{var n;if(!Ve())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((n=r.shadowRoot)===null||n===void 0)&&n.activeElement);)r=r.shadowRoot.activeElement;return r};function i6(e){return Ve()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function rL(e){var n;if(typeof window>"u"||window.navigator==null)return!1;let r=(n=window.navigator.userAgentData)===null||n===void 0?void 0:n.brands;return Array.isArray(r)&&r.some(l=>e.test(l.brand))||e.test(window.navigator.userAgent)}function lL(e){var n;return typeof window<"u"&&window.navigator!=null?e.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function s6(e){let n=null;return()=>(n==null&&(n=e()),n)}const oL=s6(function(){return lL(/^Mac/i)}),iL=s6(function(){return rL(/Android/i)});function u6(){let e=v.useRef(new Map),n=v.useCallback((i,u,d,p)=>{let b=p?.once?(...m)=>{e.current.delete(d),d(...m)}:d;e.current.set(d,{type:u,eventTarget:i,fn:b,options:p}),i.addEventListener(u,b,p)},[]),r=v.useCallback((i,u,d,p)=>{var b;let m=((b=e.current.get(d))===null||b===void 0?void 0:b.fn)||d;i.removeEventListener(u,m,p),e.current.delete(d)},[]),l=v.useCallback(()=>{e.current.forEach((i,u)=>{r(i.eventTarget,i.type,u,i.options)})},[r]);return v.useEffect(()=>l,[l]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:l}}function sL(e){return e.pointerType===""&&e.isTrusted?!0:iL()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function uL(e,n,r){let[l,i]=v.useState(e||n),u=v.useRef(e!==void 0),d=e!==void 0;v.useEffect(()=>{u.current,u.current=d},[d]);let p=d?e:l,b=v.useCallback((m,...$)=>{let x=(S,...C)=>{r&&(Object.is(p,S)||r(S,...C)),d||(p=S)};typeof m=="function"?i((C,...A)=>{let w=m(d?p:C,...A);return x(w,...$),d?C:w}):(d||i(m),x(m,...$))},[d,p,r]);return[p,b]}function c6(e){let n=e;return n.nativeEvent=e,n.isDefaultPrevented=()=>n.defaultPrevented,n.isPropagationStopped=()=>n.cancelBubble,n.persist=()=>{},n}function cL(e,n){Object.defineProperty(e,"target",{value:n}),Object.defineProperty(e,"currentTarget",{value:n})}function d6(e){let n=v.useRef({isFocused:!1,observer:null});l6(()=>{const l=n.current;return()=>{l.observer&&(l.observer.disconnect(),l.observer=null)}},[]);let r=tL(l=>{e?.(l)});return v.useCallback(l=>{if(l.target instanceof HTMLButtonElement||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement||l.target instanceof HTMLSelectElement){n.current.isFocused=!0;let i=l.target,u=d=>{if(n.current.isFocused=!1,i.disabled){let p=c6(d);r(p)}n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};i.addEventListener("focusout",u,{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&i.disabled){var d;(d=n.current.observer)===null||d===void 0||d.disconnect();let p=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:p})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:p}))}}),n.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let dL=!1,ks=null,cv=new Set,ts=new Map,dl=!1,dv=!1;const fL={Tab:!0,Escape:!0};function b0(e,n){for(let r of cv)r(e,n)}function pL(e){return!(e.metaKey||!oL()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Wc(e){dl=!0,pL(e)&&(ks="keyboard",b0("keyboard",e))}function Eo(e){ks="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(dl=!0,b0("pointer",e))}function f6(e){sL(e)&&(dl=!0,ks="virtual")}function p6(e){e.target===window||e.target===document||dL||!e.isTrusted||(!dl&&!dv&&(ks="virtual",b0("virtual",e)),dl=!1,dv=!1)}function b6(){dl=!1,dv=!0}function fv(e){if(typeof window>"u"||typeof document>"u"||ts.get(el(e)))return;const n=el(e),r=xr(e);let l=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){dl=!0,l.apply(this,arguments)},r.addEventListener("keydown",Wc,!0),r.addEventListener("keyup",Wc,!0),r.addEventListener("click",f6,!0),n.addEventListener("focus",p6,!0),n.addEventListener("blur",b6,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",Eo,!0),r.addEventListener("pointermove",Eo,!0),r.addEventListener("pointerup",Eo,!0)),n.addEventListener("beforeunload",()=>{v6(e)},{once:!0}),ts.set(n,{focus:l})}const v6=(e,n)=>{const r=el(e),l=xr(e);n&&l.removeEventListener("DOMContentLoaded",n),ts.has(r)&&(r.HTMLElement.prototype.focus=ts.get(r).focus,l.removeEventListener("keydown",Wc,!0),l.removeEventListener("keyup",Wc,!0),l.removeEventListener("click",f6,!0),r.removeEventListener("focus",p6,!0),r.removeEventListener("blur",b6,!1),typeof PointerEvent<"u"&&(l.removeEventListener("pointerdown",Eo,!0),l.removeEventListener("pointermove",Eo,!0),l.removeEventListener("pointerup",Eo,!0)),ts.delete(r))};function bL(e){const n=xr(e);let r;return n.readyState!=="loading"?fv(e):(r=()=>{fv(e)},n.addEventListener("DOMContentLoaded",r)),()=>v6(e,r)}typeof document<"u"&&bL();function m6(){return ks!=="pointer"}const vL=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function mL(e,n,r){let l=xr(r?.target);const i=typeof window<"u"?el(r?.target).HTMLInputElement:HTMLInputElement,u=typeof window<"u"?el(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,d=typeof window<"u"?el(r?.target).HTMLElement:HTMLElement,p=typeof window<"u"?el(r?.target).KeyboardEvent:KeyboardEvent;return e=e||l.activeElement instanceof i&&!vL.has(l.activeElement.type)||l.activeElement instanceof u||l.activeElement instanceof d&&l.activeElement.isContentEditable,!(e&&n==="keyboard"&&r instanceof p&&!fL[r.key])}function gL(e,n,r){fv(),v.useEffect(()=>{let l=(i,u)=>{mL(!!r?.isTextInput,i,u)&&e(m6())};return cv.add(l),()=>{cv.delete(l)}},n)}function hL(e){let{isDisabled:n,onFocus:r,onBlur:l,onFocusChange:i}=e;const u=v.useCallback(b=>{if(b.target===b.currentTarget)return l&&l(b),i&&i(!1),!0},[l,i]),d=d6(u),p=v.useCallback(b=>{const m=xr(b.target),$=m?uv(m):uv();b.target===b.currentTarget&&$===i6(b.nativeEvent)&&(r&&r(b),i&&i(!0),d(b))},[i,r,d]);return{focusProps:{onFocus:!n&&(r||i||l)?p:void 0,onBlur:!n&&(l||i)?u:void 0}}}function $L(e){let{isDisabled:n,onBlurWithin:r,onFocusWithin:l,onFocusWithinChange:i}=e,u=v.useRef({isFocusWithin:!1}),{addGlobalListener:d,removeAllGlobalListeners:p}=u6(),b=v.useCallback(x=>{x.currentTarget.contains(x.target)&&u.current.isFocusWithin&&!x.currentTarget.contains(x.relatedTarget)&&(u.current.isFocusWithin=!1,p(),r&&r(x),i&&i(!1))},[r,i,u,p]),m=d6(b),$=v.useCallback(x=>{if(!x.currentTarget.contains(x.target))return;const S=xr(x.target),C=uv(S);if(!u.current.isFocusWithin&&C===i6(x.nativeEvent)){l&&l(x),i&&i(!0),u.current.isFocusWithin=!0,m(x);let A=x.currentTarget;d(S,"focus",w=>{if(u.current.isFocusWithin&&!o6(A,w.target)){let L=new S.defaultView.FocusEvent("blur",{relatedTarget:w.target});cL(L,A);let P=c6(L);b(P)}},{capture:!0})}},[l,i,m,d,b]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:$,onBlur:b}}}let pv=!1,fc=0;function yL(){pv=!0,setTimeout(()=>{pv=!1},50)}function W$(e){e.pointerType==="touch"&&yL()}function xL(){if(!(typeof document>"u"))return fc===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",W$),fc++,()=>{fc--,!(fc>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",W$)}}function EL(e){let{onHoverStart:n,onHoverChange:r,onHoverEnd:l,isDisabled:i}=e,[u,d]=v.useState(!1),p=v.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;v.useEffect(xL,[]);let{addGlobalListener:b,removeAllGlobalListeners:m}=u6(),{hoverProps:$,triggerHoverEnd:x}=v.useMemo(()=>{let S=(w,L)=>{if(p.pointerType=L,i||L==="touch"||p.isHovered||!w.currentTarget.contains(w.target))return;p.isHovered=!0;let P=w.currentTarget;p.target=P,b(xr(w.target),"pointerover",N=>{p.isHovered&&p.target&&!o6(p.target,N.target)&&C(N,N.pointerType)},{capture:!0}),n&&n({type:"hoverstart",target:P,pointerType:L}),r&&r(!0),d(!0)},C=(w,L)=>{let P=p.target;p.pointerType="",p.target=null,!(L==="touch"||!p.isHovered||!P)&&(p.isHovered=!1,m(),l&&l({type:"hoverend",target:P,pointerType:L}),r&&r(!1),d(!1))},A={};return typeof PointerEvent<"u"&&(A.onPointerEnter=w=>{pv&&w.pointerType==="mouse"||S(w,w.pointerType)},A.onPointerLeave=w=>{!i&&w.currentTarget.contains(w.target)&&C(w,w.pointerType)}),{hoverProps:A,triggerHoverEnd:C}},[n,r,l,i,p,b,m]);return v.useEffect(()=>{i&&x({currentTarget:p.target},p.pointerType)},[i]),{hoverProps:$,isHovered:u}}function wL(e,n,r){let{labelProps:l,inputProps:i,isSelected:u,isPressed:d,isDisabled:p,isReadOnly:b}=eC(e,n,r);return{labelProps:l,inputProps:{...i,role:"switch",checked:u},isSelected:u,isPressed:d,isDisabled:p,isReadOnly:b}}function TL(e={}){let{isReadOnly:n}=e,[r,l]=uL(e.isSelected,e.defaultSelected||!1,e.onChange),[i]=v.useState(r);function u(b){n||l(b)}function d(){n||l(!r)}var p;return{isSelected:r,defaultSelected:(p=e.defaultSelected)!==null&&p!==void 0?p:i,setSelected:u,toggle:d}}function SL(e={}){let{autoFocus:n=!1,isTextInput:r,within:l}=e,i=v.useRef({isFocused:!1,isFocusVisible:n||m6()}),[u,d]=v.useState(!1),[p,b]=v.useState(()=>i.current.isFocused&&i.current.isFocusVisible),m=v.useCallback(()=>b(i.current.isFocused&&i.current.isFocusVisible),[]),$=v.useCallback(C=>{i.current.isFocused=C,d(C),m()},[m]);gL(C=>{i.current.isFocusVisible=C,m()},[],{isTextInput:r});let{focusProps:x}=hL({isDisabled:l,onFocusChange:$}),{focusWithinProps:S}=$L({isDisabled:!l,onFocusWithinChange:$});return{isFocused:u,isFocusVisible:p,focusProps:l?S:x}}function CL(e={}){var n,r;const l=oa(),[i,u]=Ho(e,r$.variantKeys),{ref:d,as:p,name:b,value:m="",isReadOnly:$=!1,autoFocus:x=!1,startContent:S,endContent:C,defaultSelected:A,isSelected:w,children:L,thumbIcon:P,className:N,classNames:B,onChange:H,onValueChange:I,...G}=i,J=p||"label",W=v.useRef(null),ne=v.useRef(null),ue=(r=(n=e.disableAnimation)!=null?n:l?.disableAnimation)!=null?r:!1,g=v.useId(),k=v.useMemo(()=>{const ge=G["aria-label"]||typeof L=="string"?L:void 0;return{name:b,value:m,children:L,autoFocus:x,defaultSelected:A,isSelected:w,isDisabled:!!e.isDisabled,isReadOnly:$,"aria-label":ge,"aria-labelledby":G["aria-labelledby"]||g,onChange:I}},[m,b,g,L,x,$,w,A,e.isDisabled,G["aria-label"],G["aria-labelledby"],I]),U=TL(k);Qv(()=>{if(!ne.current)return;const ge=!!ne.current.checked;U.setSelected(ge)},[ne.current]);const{inputProps:E,isPressed:_,isReadOnly:h}=wL(k,U,ne),{focusProps:D,isFocused:O,isFocusVisible:q}=SL({autoFocus:E.autoFocus}),{hoverProps:re,isHovered:z}=EL({isDisabled:E.disabled}),Z=k.isDisabled||h?!1:_,K=E.checked,se=E.disabled,oe=v.useMemo(()=>r$({...u,disableAnimation:ue}),[Ro(u),ue]),ce=ot(B?.base,N),we=ge=>({...it(re,G,ge),ref:W,className:oe.base({class:ot(ce,ge?.className)}),"data-disabled":ve(se),"data-selected":ve(K),"data-readonly":ve(h),"data-focus":ve(O),"data-focus-visible":ve(q),"data-hover":ve(z),"data-pressed":ve(Z)}),he=v.useCallback((ge={})=>({...ge,"aria-hidden":!0,className:ot(oe.wrapper({class:ot(B?.wrapper,ge?.className)}))}),[oe,B?.wrapper]),me=(ge={})=>({...it(E,D,ge),ref:Zy(ne,d),id:E.id,className:oe.hiddenInput({class:B?.hiddenInput}),onChange:Ao(H,E.onChange)}),nt=v.useCallback((ge={})=>({...ge,className:oe.thumb({class:ot(B?.thumb,ge?.className)})}),[oe,B?.thumb]),Ke=v.useCallback((ge={})=>({...ge,id:g,className:oe.label({class:ot(B?.label,ge?.className)})}),[oe,B?.label,se,K]),Ie=v.useCallback((ge={includeStateProps:!1})=>it({width:"1em",height:"1em",className:oe.thumbIcon({class:ot(B?.thumbIcon)})},ge.includeStateProps?{isSelected:K}:{}),[oe,B?.thumbIcon,K]),qe=v.useCallback((ge={})=>({width:"1em",height:"1em",...ge,className:oe.startContent({class:ot(B?.startContent,ge?.className)})}),[oe,B?.startContent,K]),at=v.useCallback((ge={})=>({width:"1em",height:"1em",...ge,className:oe.endContent({class:ot(B?.endContent,ge?.className)})}),[oe,B?.endContent,K]);return{Component:J,slots:oe,classNames:B,domRef:W,children:L,thumbIcon:P,startContent:S,endContent:C,isHovered:z,isSelected:K,isPressed:Z,isFocused:O,isFocusVisible:q,isDisabled:se,getBaseProps:we,getWrapperProps:he,getInputProps:me,getLabelProps:Ke,getThumbProps:nt,getThumbIconProps:Ie,getStartContentProps:qe,getEndContentProps:at}}var g6=ja((e,n)=>{const{Component:r,children:l,startContent:i,endContent:u,thumbIcon:d,getBaseProps:p,getInputProps:b,getWrapperProps:m,getThumbProps:$,getThumbIconProps:x,getLabelProps:S,getStartContentProps:C,getEndContentProps:A}=CL({...e,ref:n}),w=typeof d=="function"?d(x({includeStateProps:!0})):d&&v.cloneElement(d,x()),L=i&&v.cloneElement(i,C()),P=u&&v.cloneElement(u,A());return T.jsxs(r,{...p(),children:[T.jsx("input",{...b()}),T.jsxs("span",{...m(),children:[i&&L,T.jsx("span",{...$(),children:d&&w}),u&&P]}),l&&T.jsx("span",{...S(),children:l})]})});g6.displayName="HeroUI.Switch";var pc=g6;const hl=typeof document<"u"?ie.useLayoutEffect:()=>{};var lb;const ML=(lb=ie.useInsertionEffect)!==null&&lb!==void 0?lb:hl;function dn(e){const n=v.useRef(null);return ML(()=>{n.current=e},[e]),v.useCallback((...r)=>{const l=n.current;return l?.(...r)},[])}function LL(e){let[n,r]=v.useState(e),l=v.useRef(null),i=dn(()=>{if(!l.current)return;let d=l.current.next();if(d.done){l.current=null;return}n===d.value?i():r(d.value)});hl(()=>{l.current&&i()});let u=dn(d=>{l.current=d(n),i()});return[n,u]}const h6={prefix:String(Math.round(Math.random()*1e10)),current:0},$6=ie.createContext(h6),PL=ie.createContext(!1);let ob=new WeakMap;function AL(e=!1){let n=v.useContext($6),r=v.useRef(null);if(r.current===null&&!e){var l,i;let u=(i=ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(l=i.ReactCurrentOwner)===null||l===void 0?void 0:l.current;if(u){let d=ob.get(u);d==null?ob.set(u,{id:n.current,state:u.memoizedState}):u.memoizedState!==d.state&&(n.current=d.id,ob.delete(u))}r.current=++n.current}return r.current}function kL(e){let n=v.useContext($6),r=AL(!!e),l=`react-aria${n.prefix}`;return e||`${l}-${r}`}function DL(e){let n=ie.useId(),[r]=v.useState(RL()),l=r?"react-aria":`react-aria${h6.prefix}`;return e||`${l}-${n}`}const zL=typeof ie.useId=="function"?DL:kL;function OL(){return!1}function NL(){return!0}function jL(e){return()=>{}}function RL(){return typeof ie.useSyncExternalStore=="function"?ie.useSyncExternalStore(jL,OL,NL):v.useContext(PL)}let HL=!!(typeof window<"u"&&window.document&&window.document.createElement),wo=new Map,Ii;typeof FinalizationRegistry<"u"&&(Ii=new FinalizationRegistry(e=>{wo.delete(e)}));function Xc(e){let[n,r]=v.useState(e),l=v.useRef(null),i=zL(n),u=v.useRef(null);if(Ii&&Ii.register(u,i),HL){const d=wo.get(i);d&&!d.includes(l)?d.push(l):wo.set(i,[l])}return hl(()=>{let d=i;return()=>{Ii&&Ii.unregister(u),wo.delete(d)}},[i]),v.useEffect(()=>{let d=l.current;return d&&r(d),()=>{d&&(l.current=null)}}),i}function _L(e,n){if(e===n)return e;let r=wo.get(e);if(r)return r.forEach(i=>i.current=n),n;let l=wo.get(n);return l?(l.forEach(i=>i.current=e),e):n}function X$(e=[]){let n=Xc(),[r,l]=LL(n),i=v.useCallback(()=>{l(function*(){yield n,yield document.getElementById(n)?n:void 0})},[n,l]);return hl(i,[n,i,...e]),r}function y6(...e){return(...n)=>{for(let r of e)typeof r=="function"&&r(...n)}}const Xt=e=>{var n;return(n=e?.ownerDocument)!==null&&n!==void 0?n:document},_n=e=>e&&"window"in e&&e.window===e?e:Xt(e).defaultView||window;function VL(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function BL(e){return VL(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function On(e,n){if(!Ve())return n&&e?e.contains(n):!1;if(!e||!n)return!1;let r=n;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:BL(r)?r=r.host:r=r.parentNode}return!1}const bs=(e=document)=>{var n;if(!Ve())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((n=r.shadowRoot)===null||n===void 0)&&n.activeElement);)r=r.shadowRoot.activeElement;return r};function qt(e){return Ve()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function x6(e){var n,r,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(n=0;n=65&&i.charCodeAt(2)<=90?n[i]=y6(u,d):(i==="className"||i==="UNSAFE_className")&&typeof u=="string"&&typeof d=="string"?n[i]=UL(u,d):i==="id"&&u&&d?n.id=_L(u,d):n[i]=d!==void 0?d:u}}return n}const FL=new Set(["id"]),GL=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),KL=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),IL=new Set(["dir","lang","hidden","inert","translate"]),Z$=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),qL=/^(data-.*)$/;function YL(e,n={}){let{labelable:r,isLink:l,global:i,events:u=i,propNames:d}=n,p={};for(const b in e)Object.prototype.hasOwnProperty.call(e,b)&&(FL.has(b)||r&&GL.has(b)||l&&KL.has(b)||i&&IL.has(b)||u&&Z$.has(b)||b.endsWith("Capture")&&Z$.has(b.slice(0,-7))||d?.has(b)||qL.test(b))&&(p[b]=e[b]);return p}function No(e){if(WL())e.focus({preventScroll:!0});else{let n=XL(e);e.focus(),ZL(n)}}let bc=null;function WL(){if(bc==null){bc=!1;try{document.createElement("div").focus({get preventScroll(){return bc=!0,!0}})}catch{}}return bc}function XL(e){let n=e.parentNode,r=[],l=document.scrollingElement||document.documentElement;for(;n instanceof HTMLElement&&n!==l;)(n.offsetHeight"u"||window.navigator==null)return!1;let r=(n=window.navigator.userAgentData)===null||n===void 0?void 0:n.brands;return Array.isArray(r)&&r.some(l=>e.test(l.brand))||e.test(window.navigator.userAgent)}function v0(e){var n;return typeof window<"u"&&window.navigator!=null?e.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function Er(e){let n=null;return()=>(n==null&&(n=e()),n)}const vs=Er(function(){return v0(/^Mac/i)}),QL=Er(function(){return v0(/^iPhone/i)}),E6=Er(function(){return v0(/^iPad/i)||vs()&&navigator.maxTouchPoints>1}),w6=Er(function(){return QL()||E6()}),JL=Er(function(){return $d(/AppleWebKit/i)&&!eP()}),eP=Er(function(){return $d(/Chrome/i)}),T6=Er(function(){return $d(/Android/i)}),tP=Er(function(){return $d(/Firefox/i)});function ms(e,n,r=!0){var l,i;let{metaKey:u,ctrlKey:d,altKey:p,shiftKey:b}=n;tP()&&(!((i=window.event)===null||i===void 0||(l=i.type)===null||l===void 0)&&l.startsWith("key"))&&e.target==="_blank"&&(vs()?u=!0:d=!0);let m=JL()&&vs()&&!E6()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:u,ctrlKey:d,altKey:p,shiftKey:b}):new MouseEvent("click",{metaKey:u,ctrlKey:d,altKey:p,shiftKey:b,bubbles:!0,cancelable:!0});ms.isOpening=r,No(e),e.dispatchEvent(m),ms.isOpening=!1}ms.isOpening=!1;let vr=new Map,bv=new Set;function Q$(){if(typeof window>"u")return;function e(l){return"propertyName"in l}let n=l=>{if(!e(l)||!l.target)return;let i=vr.get(l.target);i||(i=new Set,vr.set(l.target,i),l.target.addEventListener("transitioncancel",r,{once:!0})),i.add(l.propertyName)},r=l=>{if(!e(l)||!l.target)return;let i=vr.get(l.target);if(i&&(i.delete(l.propertyName),i.size===0&&(l.target.removeEventListener("transitioncancel",r),vr.delete(l.target)),vr.size===0)){for(let u of bv)u();bv.clear()}};document.body.addEventListener("transitionrun",n),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Q$():document.addEventListener("DOMContentLoaded",Q$));function nP(){for(const[e]of vr)"isConnected"in e&&!e.isConnected&&vr.delete(e)}function S6(e){requestAnimationFrame(()=>{nP(),vr.size===0?e():bv.add(e)})}function m0(){let e=v.useRef(new Map),n=v.useCallback((i,u,d,p)=>{let b=p?.once?(...m)=>{e.current.delete(d),d(...m)}:d;e.current.set(d,{type:u,eventTarget:i,fn:b,options:p}),i.addEventListener(u,b,p)},[]),r=v.useCallback((i,u,d,p)=>{var b;let m=((b=e.current.get(d))===null||b===void 0?void 0:b.fn)||d;i.removeEventListener(u,m,p),e.current.delete(d)},[]),l=v.useCallback(()=>{e.current.forEach((i,u)=>{r(i.eventTarget,i.type,u,i.options)})},[r]);return v.useEffect(()=>l,[l]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:l}}function aP(e,n){let{id:r,"aria-label":l,"aria-labelledby":i}=e;return r=Xc(r),i&&l?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!l&&!i&&n&&(l=n),{id:r,"aria-label":l,"aria-labelledby":i}}function C6(e,n){hl(()=>{if(e&&e.ref&&n)return e.ref.current=n.current,()=>{e.ref&&(e.ref.current=null)}})}function M6(e){return e.pointerType===""&&e.isTrusted?!0:T6()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function rP(e){return!T6()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function lP(e,n,r){let l=dn(()=>{r&&r(n)});v.useEffect(()=>{var i;let u=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return u?.addEventListener("reset",l),()=>{u?.removeEventListener("reset",l)}},[e,l])}const oP=typeof Element<"u"&&"checkVisibility"in Element.prototype;function iP(e){const n=_n(e);if(!(e instanceof n.HTMLElement)&&!(e instanceof n.SVGElement))return!1;let{display:r,visibility:l}=e.style,i=r!=="none"&&l!=="hidden"&&l!=="collapse";if(i){const{getComputedStyle:u}=e.ownerDocument.defaultView;let{display:d,visibility:p}=u(e);i=d!=="none"&&p!=="hidden"&&p!=="collapse"}return i}function sP(e,n){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&n&&n.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function L6(e,n){return oP?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&iP(e)&&sP(e,n)&&(!e.parentElement||L6(e.parentElement,e))}const P6=["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]:not([contenteditable^="false"])',"permission"],uP=P6.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";P6.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function cP(e){return e.matches(uP)&&L6(e)&&!dP(e)}function dP(e){let n=e;for(;n!=null;){if(n instanceof n.ownerDocument.defaultView.HTMLElement&&n.inert)return!0;n=n.parentElement}return!1}function A6(e,n,r){let[l,i]=v.useState(e||n),u=v.useRef(e!==void 0),d=e!==void 0;v.useEffect(()=>{u.current,u.current=d},[d]);let p=d?e:l,b=v.useCallback((m,...$)=>{let x=(S,...C)=>{r&&(Object.is(p,S)||r(S,...C)),d||(p=S)};typeof m=="function"?i((C,...A)=>{let w=m(d?p:C,...A);return x(w,...$),d?C:w}):(d||i(m),x(m,...$))},[d,p,r]);return[p,b]}function g0(e){let n=e;return n.nativeEvent=e,n.isDefaultPrevented=()=>n.defaultPrevented,n.isPropagationStopped=()=>n.cancelBubble,n.persist=()=>{},n}function k6(e,n){Object.defineProperty(e,"target",{value:n}),Object.defineProperty(e,"currentTarget",{value:n})}function D6(e){let n=v.useRef({isFocused:!1,observer:null});hl(()=>{const l=n.current;return()=>{l.observer&&(l.observer.disconnect(),l.observer=null)}},[]);let r=dn(l=>{e?.(l)});return v.useCallback(l=>{if(l.target instanceof HTMLButtonElement||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement||l.target instanceof HTMLSelectElement){n.current.isFocused=!0;let i=l.target,u=d=>{if(n.current.isFocused=!1,i.disabled){let p=g0(d);r(p)}n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};i.addEventListener("focusout",u,{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&i.disabled){var d;(d=n.current.observer)===null||d===void 0||d.disconnect();let p=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:p})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:p}))}}),n.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let Zc=!1;function fP(e){for(;e&&!cP(e);)e=e.parentElement;let n=_n(e),r=n.document.activeElement;if(!r||r===e)return;Zc=!0;let l=!1,i=$=>{($.target===r||l)&&$.stopImmediatePropagation()},u=$=>{($.target===r||l)&&($.stopImmediatePropagation(),!e&&!l&&(l=!0,No(r),b()))},d=$=>{($.target===e||l)&&$.stopImmediatePropagation()},p=$=>{($.target===e||l)&&($.stopImmediatePropagation(),l||(l=!0,No(r),b()))};n.addEventListener("blur",i,!0),n.addEventListener("focusout",u,!0),n.addEventListener("focusin",p,!0),n.addEventListener("focus",d,!0);let b=()=>{cancelAnimationFrame(m),n.removeEventListener("blur",i,!0),n.removeEventListener("focusout",u,!0),n.removeEventListener("focusin",p,!0),n.removeEventListener("focus",d,!0),Zc=!1,l=!1},m=requestAnimationFrame(b);return b}let po="default",vv="",kc=new WeakMap;function pP(e){if(w6()){if(po==="default"){const n=Xt(e);vv=n.documentElement.style.webkitUserSelect,n.documentElement.style.webkitUserSelect="none"}po="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let n="userSelect"in e.style?"userSelect":"webkitUserSelect";kc.set(e,e.style[n]),e.style[n]="none"}}function J$(e){if(w6()){if(po!=="disabled")return;po="restoring",setTimeout(()=>{S6(()=>{if(po==="restoring"){const n=Xt(e);n.documentElement.style.webkitUserSelect==="none"&&(n.documentElement.style.webkitUserSelect=vv||""),vv="",po="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&kc.has(e)){let n=kc.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=n),e.getAttribute("style")===""&&e.removeAttribute("style"),kc.delete(e)}}const z6=ie.createContext({register:()=>{}});z6.displayName="PressResponderContext";function bP(e){let n=v.useContext(z6);if(n){let{register:r,...l}=n;e=Oo(l,e),r()}return C6(n,e.ref),e}var vc=new WeakMap;let mc=class{continuePropagation(){la(this,vc,!1)}get shouldStopPropagation(){return Ms(this,vc)}constructor(n,r,l,i){ws(this,vc,{writable:!0,value:void 0}),la(this,vc,!0);var u;let d=(u=i?.target)!==null&&u!==void 0?u:l.currentTarget;const p=d?.getBoundingClientRect();let b,m=0,$,x=null;l.clientX!=null&&l.clientY!=null&&($=l.clientX,x=l.clientY),p&&($!=null&&x!=null?(b=$-p.left,m=x-p.top):(b=p.width/2,m=p.height/2)),this.type=n,this.pointerType=r,this.target=l.currentTarget,this.shiftKey=l.shiftKey,this.metaKey=l.metaKey,this.ctrlKey=l.ctrlKey,this.altKey=l.altKey,this.x=b,this.y=m}};const ey=Symbol("linkClicked"),ty="react-aria-pressable-style",ny="data-react-aria-pressable";function vP(e){let{onPress:n,onPressChange:r,onPressStart:l,onPressEnd:i,onPressUp:u,onClick:d,isDisabled:p,isPressed:b,preventFocusOnPress:m,shouldCancelOnPointerExit:$,allowTextSelectionOnPress:x,ref:S,...C}=bP(e),[A,w]=v.useState(!1),L=v.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:P,removeAllGlobalListeners:N}=m0(),B=dn((g,k)=>{let U=L.current;if(p||U.didFirePressStart)return!1;let E=!0;if(U.isTriggeringEvent=!0,l){let _=new mc("pressstart",k,g);l(_),E=_.shouldStopPropagation}return r&&r(!0),U.isTriggeringEvent=!1,U.didFirePressStart=!0,w(!0),E}),H=dn((g,k,U=!0)=>{let E=L.current;if(!E.didFirePressStart)return!1;E.didFirePressStart=!1,E.isTriggeringEvent=!0;let _=!0;if(i){let h=new mc("pressend",k,g);i(h),_=h.shouldStopPropagation}if(r&&r(!1),w(!1),n&&U&&!p){let h=new mc("press",k,g);n(h),_&&(_=h.shouldStopPropagation)}return E.isTriggeringEvent=!1,_}),I=dn((g,k)=>{let U=L.current;if(p)return!1;if(u){U.isTriggeringEvent=!0;let E=new mc("pressup",k,g);return u(E),U.isTriggeringEvent=!1,E.shouldStopPropagation}return!0}),G=dn(g=>{let k=L.current;if(k.isPressed&&k.target){k.didFirePressStart&&k.pointerType!=null&&H(Xr(k.target,g),k.pointerType,!1),k.isPressed=!1,k.isOverTarget=!1,k.activePointerId=null,k.pointerType=null,N(),x||J$(k.target);for(let U of k.disposables)U();k.disposables=[]}}),J=dn(g=>{$&&G(g)}),W=dn(g=>{p||d?.(g)}),ne=dn((g,k)=>{if(!p&&d){let U=new MouseEvent("click",g);k6(U,k),d(g0(U))}}),ue=v.useMemo(()=>{let g=L.current,k={onKeyDown(E){if(ib(E.nativeEvent,E.currentTarget)&&On(E.currentTarget,qt(E.nativeEvent))){var _;ay(qt(E.nativeEvent),E.key)&&E.preventDefault();let h=!0;if(!g.isPressed&&!E.repeat){g.target=E.currentTarget,g.isPressed=!0,g.pointerType="keyboard",h=B(E,"keyboard");let D=E.currentTarget,O=q=>{ib(q,D)&&!q.repeat&&On(D,qt(q))&&g.target&&I(Xr(g.target,q),"keyboard")};P(Xt(E.currentTarget),"keyup",y6(O,U),!0)}h&&E.stopPropagation(),E.metaKey&&vs()&&((_=g.metaKeyEvents)===null||_===void 0||_.set(E.key,E.nativeEvent))}else E.key==="Meta"&&(g.metaKeyEvents=new Map)},onClick(E){if(!(E&&!On(E.currentTarget,qt(E.nativeEvent)))&&E&&E.button===0&&!g.isTriggeringEvent&&!ms.isOpening){let _=!0;if(p&&E.preventDefault(),!g.ignoreEmulatedMouseEvents&&!g.isPressed&&(g.pointerType==="virtual"||M6(E.nativeEvent))){let h=B(E,"virtual"),D=I(E,"virtual"),O=H(E,"virtual");W(E),_=h&&D&&O}else if(g.isPressed&&g.pointerType!=="keyboard"){let h=g.pointerType||E.nativeEvent.pointerType||"virtual",D=I(Xr(E.currentTarget,E),h),O=H(Xr(E.currentTarget,E),h,!0);_=D&&O,g.isOverTarget=!1,W(E),G(E)}g.ignoreEmulatedMouseEvents=!1,_&&E.stopPropagation()}}},U=E=>{var _;if(g.isPressed&&g.target&&ib(E,g.target)){var h;ay(qt(E),E.key)&&E.preventDefault();let O=qt(E),q=On(g.target,qt(E));H(Xr(g.target,E),"keyboard",q),q&&ne(E,g.target),N(),E.key!=="Enter"&&h0(g.target)&&On(g.target,O)&&!E[ey]&&(E[ey]=!0,ms(g.target,E,!1)),g.isPressed=!1,(h=g.metaKeyEvents)===null||h===void 0||h.delete(E.key)}else if(E.key==="Meta"&&(!((_=g.metaKeyEvents)===null||_===void 0)&&_.size)){var D;let O=g.metaKeyEvents;g.metaKeyEvents=void 0;for(let q of O.values())(D=g.target)===null||D===void 0||D.dispatchEvent(new KeyboardEvent("keyup",q))}};if(typeof PointerEvent<"u"){k.onPointerDown=h=>{if(h.button!==0||!On(h.currentTarget,qt(h.nativeEvent)))return;if(rP(h.nativeEvent)){g.pointerType="virtual";return}g.pointerType=h.pointerType;let D=!0;if(!g.isPressed){g.isPressed=!0,g.isOverTarget=!0,g.activePointerId=h.pointerId,g.target=h.currentTarget,x||pP(g.target),D=B(h,g.pointerType);let O=qt(h.nativeEvent);"releasePointerCapture"in O&&O.releasePointerCapture(h.pointerId),P(Xt(h.currentTarget),"pointerup",E,!1),P(Xt(h.currentTarget),"pointercancel",_,!1)}D&&h.stopPropagation()},k.onMouseDown=h=>{if(On(h.currentTarget,qt(h.nativeEvent))&&h.button===0){if(m){let D=fP(h.target);D&&g.disposables.push(D)}h.stopPropagation()}},k.onPointerUp=h=>{!On(h.currentTarget,qt(h.nativeEvent))||g.pointerType==="virtual"||h.button===0&&!g.isPressed&&I(h,g.pointerType||h.pointerType)},k.onPointerEnter=h=>{h.pointerId===g.activePointerId&&g.target&&!g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!0,B(Xr(g.target,h),g.pointerType))},k.onPointerLeave=h=>{h.pointerId===g.activePointerId&&g.target&&g.isOverTarget&&g.pointerType!=null&&(g.isOverTarget=!1,H(Xr(g.target,h),g.pointerType,!1),J(h))};let E=h=>{if(h.pointerId===g.activePointerId&&g.isPressed&&h.button===0&&g.target){if(On(g.target,qt(h))&&g.pointerType!=null){let D=!1,O=setTimeout(()=>{g.isPressed&&g.target instanceof HTMLElement&&(D?G(h):(No(g.target),g.target.click()))},80);P(h.currentTarget,"click",()=>D=!0,!0),g.disposables.push(()=>clearTimeout(O))}else G(h);g.isOverTarget=!1}},_=h=>{G(h)};k.onDragStart=h=>{On(h.currentTarget,qt(h.nativeEvent))&&G(h)}}return k},[P,p,m,N,x,G,J,H,B,I,W,ne]);return v.useEffect(()=>{if(!S)return;const g=Xt(S.current);if(!g||!g.head||g.getElementById(ty))return;const k=g.createElement("style");k.id=ty,k.textContent=` @layer { [${ny}] { touch-action: pan-x pan-y pinch-zoom; @@ -98,4 +98,4 @@ Error generating stack: `+s.message+` touch-action: pan-x pan-y pinch-zoom; } } - `.trim(),g.head.prepend(k)},[S]),v.useEffect(()=>{let g=L.current;return()=>{var k;x||ky((k=g.target)!==null&&k!==void 0?k:void 0);for(let U of g.disposables)U();g.disposables=[]}},[x]),{isPressed:b||A,pressProps:ad(C,ue,{[Oy]:!0})}}function A0(e){return e.tagName==="A"&&e.hasAttribute("href")}function yb(e,n){const{key:r,code:l}=e,i=n,u=i.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||l==="Space")&&!(i instanceof Wn(i).HTMLInputElement&&!R4(i,r)||i instanceof Wn(i).HTMLTextAreaElement||i.isContentEditable)&&!((u==="link"||!u&&A0(i))&&r!=="Enter")}function Qr(e,n){let r=n.clientX,l=n.clientY;return{currentTarget:e,shiftKey:n.shiftKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,altKey:n.altKey,clientX:r,clientY:l}}function XD(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!A0(e)}function Ny(e,n){return e instanceof HTMLInputElement?!R4(e,n):XD(e)}const ZD=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function R4(e,n){return e.type==="checkbox"||e.type==="radio"?n===" ":ZD.has(e.type)}let Ko=null,Hv=new Set,ls=new Map,ml=!1,_v=!1;const QD={Tab:!0,Escape:!0};function k0(e,n){for(let r of Hv)r(e,n)}function JD(e){return!(e.metaKey||!xs()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ld(e){ml=!0,JD(e)&&(Ko="keyboard",k0("keyboard",e))}function Po(e){Ko="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ml=!0,k0("pointer",e))}function H4(e){k4(e)&&(ml=!0,Ko="virtual")}function _4(e){e.target===window||e.target===document||rd||!e.isTrusted||(!ml&&!_v&&(Ko="virtual",k0("virtual",e)),ml=!1,_v=!1)}function V4(){rd||(ml=!1,_v=!0)}function Vv(e){if(typeof window>"u"||typeof document>"u"||ls.get(Wn(e)))return;const n=Wn(e),r=Qt(e);let l=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){ml=!0,l.apply(this,arguments)},r.addEventListener("keydown",ld,!0),r.addEventListener("keyup",ld,!0),r.addEventListener("click",H4,!0),n.addEventListener("focus",_4,!0),n.addEventListener("blur",V4,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",Po,!0),r.addEventListener("pointermove",Po,!0),r.addEventListener("pointerup",Po,!0)),n.addEventListener("beforeunload",()=>{B4(e)},{once:!0}),ls.set(n,{focus:l})}const B4=(e,n)=>{const r=Wn(e),l=Qt(e);n&&l.removeEventListener("DOMContentLoaded",n),ls.has(r)&&(r.HTMLElement.prototype.focus=ls.get(r).focus,l.removeEventListener("keydown",ld,!0),l.removeEventListener("keyup",ld,!0),l.removeEventListener("click",H4,!0),r.removeEventListener("focus",_4,!0),r.removeEventListener("blur",V4,!1),typeof PointerEvent<"u"&&(l.removeEventListener("pointerdown",Po,!0),l.removeEventListener("pointermove",Po,!0),l.removeEventListener("pointerup",Po,!0)),ls.delete(r))};function ez(e){const n=Qt(e);let r;return n.readyState!=="loading"?Vv(e):(r=()=>{Vv(e)},n.addEventListener("DOMContentLoaded",r)),()=>B4(e,r)}typeof document<"u"&&ez();function U4(){return Ko!=="pointer"}function tz(){return Ko}const nz=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function az(e,n,r){let l=Qt(r?.target);const i=typeof window<"u"?Wn(r?.target).HTMLInputElement:HTMLInputElement,u=typeof window<"u"?Wn(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,d=typeof window<"u"?Wn(r?.target).HTMLElement:HTMLElement,p=typeof window<"u"?Wn(r?.target).KeyboardEvent:KeyboardEvent;return e=e||l.activeElement instanceof i&&!nz.has(l.activeElement.type)||l.activeElement instanceof u||l.activeElement instanceof d&&l.activeElement.isContentEditable,!(e&&n==="keyboard"&&r instanceof p&&!QD[r.key])}function rz(e,n,r){Vv(),v.useEffect(()=>{let l=(i,u)=>{az(!!r?.isTextInput,i,u)&&e(U4())};return Hv.add(l),()=>{Hv.delete(l)}},n)}function lz(e){const n=Qt(e),r=ys(n);if(tz()==="virtual"){let l=r;P4(()=>{ys(n)===l&&e.isConnected&&jo(e)})}else jo(e)}function F4(e){let{isDisabled:n,onFocus:r,onBlur:l,onFocusChange:i}=e;const u=v.useCallback(b=>{if(b.target===b.currentTarget)return l&&l(b),i&&i(!1),!0},[l,i]),d=N4(u),p=v.useCallback(b=>{const m=Qt(b.target),$=m?ys(m):ys();b.target===b.currentTarget&&$===Wt(b.nativeEvent)&&(r&&r(b),i&&i(!0),d(b))},[i,r,d]);return{focusProps:{onFocus:!n&&(r||i||l)?p:void 0,onBlur:!n&&(l||i)?u:void 0}}}function jy(e){if(!e)return;let n=!0;return r=>{let l={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1},isPropagationStopped(){return n}};e(l),n&&r.stopPropagation()}}function oz(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:jy(e.onKeyDown),onKeyUp:jy(e.onKeyUp)}}}let iz=ie.createContext(null);function sz(e){let n=v.useContext(iz)||{};A4(n,e);let{ref:r,...l}=n;return l}function uz(e,n){let{focusProps:r}=F4(e),{keyboardProps:l}=oz(e),i=ad(r,l),u=sz(n),d=e.isDisabled?{}:u,p=v.useRef(e.autoFocus);v.useEffect(()=>{p.current&&n.current&&lz(n.current),p.current=!1},[n]);let b=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(b=void 0),{focusableProps:ad({...i,tabIndex:b},d)}}function cz(e){let{isDisabled:n,onBlurWithin:r,onFocusWithin:l,onFocusWithinChange:i}=e,u=v.useRef({isFocusWithin:!1}),{addGlobalListener:d,removeAllGlobalListeners:p}=L0(),b=v.useCallback(x=>{x.currentTarget.contains(x.target)&&u.current.isFocusWithin&&!x.currentTarget.contains(x.relatedTarget)&&(u.current.isFocusWithin=!1,p(),r&&r(x),i&&i(!1))},[r,i,u,p]),m=N4(b),$=v.useCallback(x=>{if(!x.currentTarget.contains(x.target))return;const S=Qt(x.target),C=ys(S);if(!u.current.isFocusWithin&&C===Wt(x.nativeEvent)){l&&l(x),i&&i(!0),u.current.isFocusWithin=!0,m(x);let A=x.currentTarget;d(S,"focus",w=>{if(u.current.isFocusWithin&&!jn(A,w.target)){let L=new S.defaultView.FocusEvent("blur",{relatedTarget:w.target});O4(L,A);let P=P0(L);b(P)}},{capture:!0})}},[l,i,m,d,b]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:$,onBlur:b}}}let Bv=!1,Lc=0;function dz(){Bv=!0,setTimeout(()=>{Bv=!1},50)}function Ry(e){e.pointerType==="touch"&&dz()}function fz(){if(!(typeof document>"u"))return Lc===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",Ry),Lc++,()=>{Lc--,!(Lc>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Ry)}}function D0(e){let{onHoverStart:n,onHoverChange:r,onHoverEnd:l,isDisabled:i}=e,[u,d]=v.useState(!1),p=v.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;v.useEffect(fz,[]);let{addGlobalListener:b,removeAllGlobalListeners:m}=L0(),{hoverProps:$,triggerHoverEnd:x}=v.useMemo(()=>{let S=(w,L)=>{if(p.pointerType=L,i||L==="touch"||p.isHovered||!w.currentTarget.contains(w.target))return;p.isHovered=!0;let P=w.currentTarget;p.target=P,b(Qt(w.target),"pointerover",N=>{p.isHovered&&p.target&&!jn(p.target,N.target)&&C(N,N.pointerType)},{capture:!0}),n&&n({type:"hoverstart",target:P,pointerType:L}),r&&r(!0),d(!0)},C=(w,L)=>{let P=p.target;p.pointerType="",p.target=null,!(L==="touch"||!p.isHovered||!P)&&(p.isHovered=!1,m(),l&&l({type:"hoverend",target:P,pointerType:L}),r&&r(!1),d(!1))},A={};return typeof PointerEvent<"u"&&(A.onPointerEnter=w=>{Bv&&w.pointerType==="mouse"||S(w,w.pointerType)},A.onPointerLeave=w=>{!i&&w.currentTarget.contains(w.target)&&C(w,w.pointerType)}),{hoverProps:A,triggerHoverEnd:C}},[n,r,l,i,p,b,m]);return v.useEffect(()=>{i&&x({currentTarget:p.target},p.pointerType)},[i]),{hoverProps:$,isHovered:u}}var xb=100,Eb=20;function pz(e){var n,r;const[l,i]=Ho(e,a$.variantKeys),{ref:u,as:d,title:p,description:b,className:m,classNames:$,toast:x,endContent:S,closeIcon:C,hideIcon:A=!1,placement:w="bottom-right",isRegionExpanded:L,hideCloseButton:P=!1,state:N,total:B=1,index:H=0,heights:I,promise:G,setHeights:J,toastOffset:W=0,motionProps:ne,timeout:ue=6e3,shouldShowTimeoutProgress:g=!1,icon:k,onClose:U,severity:E,maxVisibleToasts:_,loadingComponent:h,isClosing:D=!1,...O}=l,{isHovered:q,hoverProps:re}=D0({isDisabled:!1}),z=oa(),j=(r=(n=e?.disableAnimation)!=null?n:z?.disableAnimation)!=null?r:!1,Z=JP();let K=w;Z&&(w.includes("top")?K="top-center":K="bottom-center");const se=v.useRef(null),oe=v.useRef(null),ce=v.useRef(0),we=v.useRef(null),he=v.useRef(0),me=v.useRef(0);v.useEffect(()=>{we.current&&(we.current.style.width="0%")},[]);const[nt,Ke]=v.useState(!!G),[Ie,qe]=v.useState(!1),at=v.useRef(!1);v.useEffect(()=>{G&&G.finally(()=>{Ke(!1)})},[G]),v.useEffect(()=>{D&&!Ie&&qe(!0)},[D,Ie]),v.useEffect(()=>{Ie&&j&&(N.close(x.key),at.current||(at.current=!0,U?.()))},[Ie,j,N,x.key,U]),v.useEffect(()=>{const Te=We=>{if(!ue||nt)return;if(oe.current===null&&(oe.current=We),q||L){he.current+=We-oe.current,oe.current=null,se.current=requestAnimationFrame(Te);return}const zt=We-oe.current+he.current;me.current=zt,me.current>=ue&&qe(!0),ce.current=Math.min(zt/ue*100,100),we.current&&(we.current.style.width=`${g?ce.current:0}%`),ce.current<100&&(se.current=requestAnimationFrame(Te))};return se.current=requestAnimationFrame(Te),()=>{se.current!==null&&cancelAnimationFrame(se.current)}},[ue,g,N,q,H,B,L,nt,qe]);const ge=d||"div",pt=Oa(u),At=ot(m,$?.base),{toastProps:bt,contentProps:Ut,titleProps:kt,descriptionProps:Ae}=oD(l,N),[St,st]=v.useState(!1);v.useEffect(()=>{st(!0)},[]);const[fn,Ra]=v.useState(0);v.useLayoutEffect(()=>{if(!pt.current||!St||Ie)return;const Te=pt.current,We=Te.style.height;Te.style.height="auto";const zt=getComputedStyle(Te),wn=parseFloat(zt.marginTop),Un=parseFloat(zt.marginBottom),en=Te.getBoundingClientRect().height+wn+Un;Te.style.height=We,Ra(ca=>ca!==en?en:ca);const Fn=[...I];Fn.length>H?Fn[H]=en:Fn.push(en),J(Fn)},[St,B,J,H,Ie]);let Ft=4;for(let Te=H+1;Tea$({...i,disableAnimation:j}),[Ro(i)]),Bn=K.includes("top")?1:-1,Ha={hidden:{opacity:0,y:-50*Bn},visible:{opacity:1,y:0},exit:{opacity:0,y:-50*Bn}},[Jt,Dt]=v.useState(!1),[Be,_t]=v.useState(0),ct=(Te,We)=>{const zt=K.includes("right"),wn=K.includes("left"),Un=K==="top-center",en=K==="bottom-center";if(zt&&Te>=xb||wn&&Te<=-xb||Un&&We<=-Eb||en&&We>=Eb)return!0},Sr=Te=>{const We={top:0,bottom:0,right:0,left:0};return Te==="bottom-center"?(We.bottom=1,We):Te==="top-center"?(We.top=1,We):Te.includes("right")?(We.right=1,We):Te.includes("left")?(We.left=1,We):(We.left=1,We.right=1,We)};let Gt;Jt&&K==="bottom-center"||K==="top-center"?Gt=Math.max(0,1-Be/(Eb+5)):Jt&&(Gt=Math.max(0,1-Be/(xb+20)));const ke=v.useCallback((Te={})=>{const wn={"--top-extension":"16px","--bottom-extension":"16px"};return{ref:pt,className:ht.base({class:ot(At,$?.base)}),"data-has-title":ve(!Tb(p)),"data-has-description":ve(!Tb(b)),"data-placement":K,"data-drag-value":Be,"data-toast":!0,"aria-label":"toast","data-toast-exiting":ve(Ie),onTransitionEnd:j?void 0:()=>{Ie&&(N.close(x.key),at.current||(at.current=!0,U?.()))},style:{opacity:Gt,...wn},...it(Te,O,bt,re)}},[ht,$,bt,re,x,x.key,Gt,Ie,N,x.key,j]),et=v.useCallback((Te={})=>({className:ht.wrapper({class:$?.wrapper}),...Te}),[]),Vt=v.useCallback((Te={})=>({"aria-label":"descriptionIcon",className:ht.icon({class:$?.icon}),...Te}),[]),pn=v.useCallback((Te={})=>({className:ht.loadingComponent({class:$?.loadingComponent}),"aria-label":"loadingIcon",color:"current",...Te}),[]),Kt=v.useCallback((Te={})=>({classNames:{wrapper:ht.loadingComponent({class:$?.loadingComponent})},"aria-label":"loadingIcon",color:"current",...Te}),[]),_a=v.useCallback((Te={})=>({className:ht.content({class:$?.content}),...it(Te,O,Ut)}),[Ut]),En=v.useCallback((Te={})=>({className:ht.title({class:$?.title}),...it(Te,O,kt)}),[kt]),bn=v.useCallback((Te={})=>({className:ht.description({class:$?.description}),...it(Te,O,Ae)}),[Ae]),El=v.useCallback((Te={})=>({className:ht.closeButton({class:$?.closeButton}),"aria-label":"closeButton","data-hidden":ve(P),...it(Te,{onPress:()=>{qe(!0),at.current||(at.current=!0,U?.()),setTimeout(()=>document.body.focus(),0)}})}),[qe,U]),Cr=v.useCallback((Te={})=>({className:ht.closeIcon({class:$?.closeIcon}),"aria-label":"closeIcon",...Te}),[]),Ye=v.useCallback((Te={})=>{const We=L?_-1:Math.min(2,_-1),zt=B-H-1<=We,wn=K==="bottom-center"||K==="top-center"?"y":"x",Un={left:0,right:0,top:0,bottom:0},en=Sr(K),Fn=K.includes("top")?{top:L||Jt?Ft+W:(B-1-H)*8+W,bottom:"auto"}:K.includes("bottom")?{bottom:L||Jt?Ft+W:(B-1-H)*8+W,top:"auto"}:{};return{animate:{opacity:zt?1:0,pointerEvents:zt?"all":"none",scaleX:L||Jt?1:1-(B-1-H)*.1,height:L||Jt?fn:Vn,y:0,...Fn},drag:wn,dragConstraints:Un,exit:{opacity:0,transition:{duration:.3}},initial:{opacity:0,scale:1,y:-40*Bn},transition:{duration:.3,ease:"easeOut"},variants:Ha,dragElastic:en,onDragEnd:(ca,Ot)=>{const{x:Xe,y:Ct}=Ot.offset;if(Dt(!1),ct(Xe,Ct)){qe(!0);return}_t(0)},onDrag:(ca,Ot)=>{let Xe=0;K==="top-center"?Xe=-Ot.offset.y:K==="bottom-center"?Xe=Ot.offset.y:K.includes("right")?Xe=Ot.offset.x:K.includes("left")&&(Xe=-Ot.offset.x),Xe>=0&&_t(Xe)},onDragStart:()=>{Dt(!0)},"data-drag":ve(Jt),"data-placement":K,"data-drag-value":Be,className:ht.motionDiv({class:$?.motionDiv}),...Te,...ne}},[B,H,K,L,Ie,Ft,Bn,fn,Vn,Ha,$,Jt,ve,Dt,ct,ht,W,_]);return{Component:ge,title:p,description:b,icon:k,loadingComponent:h,domRef:pt,severity:E,closeIcon:C,classNames:$,color:i.color,hideIcon:A,placement:K,state:N,toast:x,disableAnimation:j,isProgressBarVisible:!!ue,total:B,index:H,getWrapperProps:et,getToastProps:ke,getTitleProps:En,getContentProps:_a,getDescriptionProps:bn,getCloseButtonProps:El,getIconProps:Vt,getMotionDivProps:Ye,getCloseIconProps:Cr,getLoadingComponentProps:pn,getSpinnerComponentProps:Kt,progressBarRef:we,endContent:S,slots:ht,isRegionExpanded:L,liftHeight:Ft,frontHeight:Vn,initialHeight:fn,isLoading:nt}}var bz=()=>vd(()=>import("./src-UW24ZMRV-BgSHC2q0.js"),__vite__mapDeps([2,1])).then(e=>e.default),G4=e=>{const{ripples:n=[],motionProps:r,color:l="currentColor",style:i,onClear:u}=e;return T.jsx(T.Fragment,{children:n.map(d=>{const p=Wy(.01*d.size,.2,d.size>100?.75:.5);return T.jsx(cd,{features:bz,children:T.jsx(ud,{mode:"popLayout",children:T.jsx(pd.span,{animate:{transform:"scale(2)",opacity:0},className:"heroui-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:d.y,left:d.x,width:`${d.size}px`,height:`${d.size}px`,...i},transition:{duration:p},onAnimationComplete:()=>{u(d.key)},...r})})},d.key)})})};G4.displayName="HeroUI.Ripple";var vz=G4;function mz(e={}){const[n,r]=v.useState([]),l=v.useCallback(u=>{const d=u.target,p=Math.max(d.clientWidth,d.clientHeight);r(b=>[...b,{key:Yy(b.length.toString()),size:p,x:u.x-p/2,y:u.y-p/2}])},[]),i=v.useCallback(u=>{r(d=>d.filter(p=>p.key!==u))},[]);return{ripples:n,onClear:i,onPress:l,...e}}var Uv=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{Uv.delete(e)});function gz(e,n){if(e===n)return e;let r=Uv.get(e);if(r)return r.forEach(i=>i.current=n),n;let l=Uv.get(n);return l?(l.forEach(i=>i.current=e),e):n}function hz(...e){return(...n)=>{for(let r of e)typeof r=="function"&&r(...n)}}function K4(e){var n,r,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(n=0;n=65&&i.charCodeAt(2)<=90?n[i]=hz(u,d):(i==="className"||i==="UNSAFE_className")&&typeof u=="string"&&typeof d=="string"?n[i]=yz(u,d):i==="id"&&u&&d?n.id=gz(u,d):n[i]=d!==void 0?d:u}}return n}var xz=new Set(["id"]),Ez=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),wz=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Tz=new Set(["dir","lang","hidden","inert","translate"]),_y=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Sz=/^(data-.*)$/;function Cz(e,n={}){let{labelable:r,isLink:l,global:i,events:u=i,propNames:d}=n,p={};for(const b in e)Object.prototype.hasOwnProperty.call(e,b)&&(xz.has(b)||r&&Ez.has(b)||l&&wz.has(b)||i&&Tz.has(b)||u&&_y.has(b)||b.endsWith("Capture")&&_y.has(b.slice(0,-7))||d?.has(b)||Sz.test(b))&&(p[b]=e[b]);return p}function Mz(e={}){let{autoFocus:n=!1,isTextInput:r,within:l}=e,i=v.useRef({isFocused:!1,isFocusVisible:n||U4()}),[u,d]=v.useState(!1),[p,b]=v.useState(()=>i.current.isFocused&&i.current.isFocusVisible),m=v.useCallback(()=>b(i.current.isFocused&&i.current.isFocusVisible),[]),$=v.useCallback(C=>{i.current.isFocused=C,d(C),m()},[m]);rz(C=>{i.current.isFocusVisible=C,m()},[],{isTextInput:r});let{focusProps:x}=F4({isDisabled:l,onFocusChange:$}),{focusWithinProps:S}=cz({isDisabled:!l,onFocusWithinChange:$});return{isFocused:u,isFocusVisible:p,focusProps:l?S:x}}function Lz(e,n){let{elementType:r="button",isDisabled:l,onPress:i,onPressStart:u,onPressEnd:d,onPressUp:p,onPressChange:b,preventFocusOnPress:m,allowFocusWhenDisabled:$,onClick:x,href:S,target:C,rel:A,type:w="button",allowTextSelectionOnPress:L}=e,P;r==="button"?P={type:w,disabled:l}:P={role:"button",href:r==="a"&&!l?S:void 0,target:r==="a"?C:void 0,type:r==="input"?w:void 0,disabled:r==="input"?l:void 0,"aria-disabled":!l||r==="input"?void 0:l,rel:r==="a"?A:void 0};let{pressProps:N,isPressed:B}=WD({onClick:x,onPressStart:u,onPressEnd:d,onPressUp:p,onPressChange:b,onPress:i,isDisabled:l,preventFocusOnPress:m,allowTextSelectionOnPress:L,ref:n}),{focusableProps:H}=uz(e,n);$&&(H.tabIndex=l?-1:H.tabIndex);let I=Hy(H,N,Cz(e,{labelable:!0}));return{isPressed:B,buttonProps:Hy(P,I,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}var[PO,Pz]=Fv({name:"ButtonGroupContext",strict:!1});function Az(e){var n,r,l,i,u,d,p,b,m;const $=Pz(),x=oa(),S=!!$,{ref:C,as:A,children:w,startContent:L,endContent:P,autoFocus:N,className:B,spinner:H,isLoading:I=!1,disableRipple:G=!1,fullWidth:J=(n=$?.fullWidth)!=null?n:!1,radius:W=$?.radius,size:ne=(r=$?.size)!=null?r:"md",color:ue=(l=$?.color)!=null?l:"default",variant:g=(i=$?.variant)!=null?i:"solid",disableAnimation:k=(d=(u=$?.disableAnimation)!=null?u:x?.disableAnimation)!=null?d:!1,isDisabled:U=(p=$?.isDisabled)!=null?p:!1,isIconOnly:E=(b=$?.isIconOnly)!=null?b:!1,spinnerPlacement:_="start",onPress:h,onClick:D,...O}=e,q=A||"button",re=typeof q=="string",z=Oa(C),j=(m=G||x?.disableRipple)!=null?m:k,{isFocusVisible:Z,isFocused:K,focusProps:se}=Mz({autoFocus:N}),oe=U||I,ce=v.useMemo(()=>I2({size:ne,color:ue,variant:g,radius:W,fullWidth:J,isDisabled:oe,isInGroup:S,disableAnimation:k,isIconOnly:E,className:B}),[ne,ue,g,W,J,oe,S,E,k,B]),{onPress:we,onClear:he,ripples:me}=mz(),nt=v.useCallback(Ae=>{j||oe||k||z.current&&we(Ae)},[j,oe,k,z,we]),{buttonProps:Ke,isPressed:Ie}=Lz({elementType:A,isDisabled:oe,onPress:Ao(h,nt),onClick:D,...O},z),{isHovered:qe,hoverProps:at}=D0({isDisabled:oe}),ge=v.useCallback((Ae={})=>({"data-disabled":ve(oe),"data-focus":ve(K),"data-pressed":ve(Ie),"data-focus-visible":ve(Z),"data-hover":ve(qe),"data-loading":ve(I),...it(Ke,se,at,nl(O,{enabled:re}),nl(Ae)),className:ce}),[I,oe,K,Ie,re,Z,qe,Ke,se,at,O,ce]),pt=Ae=>v.isValidElement(Ae)?v.cloneElement(Ae,{"aria-hidden":!0,focusable:!1}):null,At=pt(L),bt=pt(P),Ut=v.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[ne],[ne]),kt=v.useCallback(()=>({ripples:me,onClear:he}),[me,he]);return{Component:q,children:w,domRef:z,spinner:H,styles:ce,startContent:At,endContent:bt,isLoading:I,spinnerPlacement:_,spinnerSize:Ut,disableRipple:j,getButtonProps:ge,getRippleProps:kt,isIconOnly:E}}var I4=ja((e,n)=>{const{Component:r,domRef:l,children:i,spinnerSize:u,spinner:d=T.jsx(r0,{color:"current",size:u}),spinnerPlacement:p,startContent:b,endContent:m,isLoading:$,disableRipple:x,getButtonProps:S,getRippleProps:C,isIconOnly:A}=Az({...e,ref:n});return T.jsxs(r,{ref:l,...S(),children:[b,$&&p==="start"&&d,$&&A?null:i,$&&p==="end"&&d,m,!x&&T.jsx(vz,{...C()})]})});I4.displayName="HeroUI.Button";var kz=I4,wb={default:Yp,primary:Yp,secondary:Yp,success:OT,warning:NT,danger:HT},q4=ja((e,n)=>{const{severity:r,Component:l,icon:i,loadingComponent:u,domRef:d,endContent:p,color:b,hideIcon:m,closeIcon:$,disableAnimation:x,progressBarRef:S,classNames:C,slots:A,getWrapperProps:w,isProgressBarVisible:L,getToastProps:P,getContentProps:N,getTitleProps:B,getDescriptionProps:H,getCloseButtonProps:I,getIconProps:G,getMotionDivProps:J,getCloseIconProps:W,getLoadingComponentProps:ne,getSpinnerComponentProps:ue,isLoading:g}=pz({...e,ref:n}),k=typeof i=="function"?i(G()):v.isValidElement(i)&&v.cloneElement(i,G()),U=r?wb[r]:wb[b]||wb.default,E=u&&v.isValidElement(u)?v.cloneElement(u,ne()):null,_=g?E||T.jsx(r0,{...ue()}):null,h=typeof $=="function"?$({}):v.isValidElement($)&&v.cloneElement($,{}),D=T.jsxs(l,{ref:d,...P(),children:[T.jsxs("div",{...N(),children:[m&&!g?null:_||k||T.jsx(U,{...G()}),T.jsxs("div",{...w(),children:[T.jsx("div",{...B(),children:e.toast.content.title}),T.jsx("div",{...H(),children:e.toast.content.description})]})]}),L&&T.jsx("div",{className:A.progressTrack({class:C?.progressTrack}),children:T.jsx("div",{ref:S,className:A.progressIndicator({class:C?.progressIndicator})})}),T.jsx(kz,{isIconOnly:!0,...I(),children:h||T.jsx(RT,{...W()})}),p]});return T.jsx(T.Fragment,{children:x?D:T.jsx(pd.div,{...J(),children:D})})});q4.displayName="HeroUI.Toast";var Dz=q4;function zz(e){let n=v.useCallback(i=>e.subscribe(i),[e]),r=v.useCallback(()=>e.visibleToasts,[e]);return{visibleToasts:E4.useSyncExternalStore(n,r,r),add:(i,u)=>e.add(i,u),close:i=>e.close(i),pauseAll:()=>e.pauseAll(),resumeAll:()=>e.resumeAll()}}class Oz{runWithWrapUpdate(n,r){this.wrapUpdate?this.wrapUpdate(n,r):n()}subscribe(n){return this.subscriptions.add(n),()=>this.subscriptions.delete(n)}add(n,r={}){let l="_"+Math.random().toString(36).slice(2),i={...r,content:n,key:l,timer:r.timeout?new Nz(()=>this.close(l),r.timeout):void 0};return this.queue.unshift(i),this.updateVisibleToasts("add"),l}close(n){let r=this.queue.findIndex(u=>u.key===n);if(r>=0){var l,i;(l=(i=this.queue[r]).onClose)===null||l===void 0||l.call(i),this.queue.splice(r,1)}this.updateVisibleToasts("remove")}updateVisibleToasts(n){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let r of this.subscriptions)r()},n)}pauseAll(){for(let n of this.visibleToasts)n.timer&&n.timer.pause()}resumeAll(){for(let n of this.visibleToasts)n.timer&&n.timer.resume()}clear(){this.queue=[],this.updateVisibleToasts("clear")}constructor(n){this.queue=[],this.subscriptions=new Set,this.visibleToasts=[];var r;this.maxVisibleToasts=(r=n?.maxVisibleToasts)!==null&&r!==void 0?r:1/0,this.wrapUpdate=n?.wrapUpdate}}class Nz{reset(n){this.remaining=n,this.resume()}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime)}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback()},this.remaining))}constructor(n,r){this.startTime=null,this.remaining=r,this.callback=n}}var jz=()=>vd(()=>import("./index-B2IsL-Au.js"),__vite__mapDeps([3,1])).then(e=>e.domMax),os=null,Rz=()=>(os||(os=new Oz({maxVisibleToasts:1/0})),os),Hz=({placement:e="bottom-right",disableAnimation:n=!1,maxVisibleToasts:r=3,toastOffset:l=0,toastProps:i={},regionProps:u})=>{var d;const p=zz(Rz()),b=oa(),m=(d=n??b?.disableAnimation)!=null?d:!1;return T.jsx(cd,{features:jz,children:p.visibleToasts.length>0&&T.jsx(Bz,{disableAnimation:m,maxVisibleToasts:r,placement:e,toastOffset:l,toastProps:i,toastQueue:p,...u})})},is=({...e})=>os?os.add(e):null,_z=new Map,Vz=e=>_z.has(e);function Bz({toastQueue:e,placement:n,disableAnimation:r,maxVisibleToasts:l,toastOffset:i,toastProps:u={},className:d,classNames:p,...b}){var m,$;const x=v.useRef(null),{regionProps:S}=SD(b,e,x),{hoverProps:C,isHovered:A}=D0({isDisabled:!1}),[w,L]=v.useState(!1),P=v.useMemo(()=>AT({disableAnimation:r}),[r]),N=ot(p?.base,d);v.useEffect(()=>{function J(W){x.current&&!x.current.contains(W.target)&&L(!1)}return document.addEventListener("touchstart",J),()=>{document.removeEventListener("touchstart",J)}},[]);const[B,H]=v.useState([]),I=($=(m=e.visibleToasts)==null?void 0:m.length)!=null?$:0,G=v.useCallback(()=>{L(!0)},[]);return T.jsx("div",{...it(S,C),ref:x,className:P.base({class:N}),"data-placement":n,onTouchStart:G,children:T.jsx(ud,{children:[...e.visibleToasts].reverse().map((J,W)=>{if(r&&I-W>l)return null;if(r||I-W<=4||A&&I-W<=l+1){const ne=Vz(J.key);return T.jsx(Dz,{state:e,toast:J,...it(u,J.content,{isClosing:ne}),disableAnimation:r,heights:B,index:W,isRegionExpanded:A||w,maxVisibleToasts:l,placement:n,setHeights:H,toastOffset:i,total:I},J.key)}return null})})})}const Vy=e=>{let n;const r=new Set,l=(m,$)=>{const x=typeof m=="function"?m(n):m;if(!Object.is(x,n)){const S=n;n=$??(typeof x!="object"||x===null)?x:Object.assign({},n,x),r.forEach(C=>C(n,S))}},i=()=>n,p={setState:l,getState:i,getInitialState:()=>b,subscribe:m=>(r.add(m),()=>r.delete(m))},b=n=e(l,i,p);return p},Uz=(e=>e?Vy(e):Vy),Fz=e=>e;function Gz(e,n=Fz){const r=ie.useSyncExternalStore(e.subscribe,ie.useCallback(()=>n(e.getState()),[e,n]),ie.useCallback(()=>n(e.getInitialState()),[e,n]));return ie.useDebugValue(r),r}const By=e=>{const n=Uz(e),r=l=>Gz(n,l);return Object.assign(r,n),r},Kz=(e=>e?By(e):By),sa=window.location.origin,Iz=()=>null,ua=async(e,n={})=>{const r=Iz(),l={"Content-Type":"application/json",...n.headers};r&&(l.Authorization=r);const i=await fetch(e,{...n,headers:l});if(!i.ok)throw new Error(`API Error: ${i.status} ${i.statusText}`);return i.json()},Uy=async(e=!0)=>ua(`${sa}/getsetting?need_device_list=${e}`),qz=async e=>ua(`${sa}/savesetting`,{method:"POST",body:JSON.stringify(e)}),Yz=async()=>ua(`${sa}/getversion`),Wz=async(e="")=>await ua(`${sa}/getvolume?did=${e}`),Xz=async(e,n)=>await ua(`${sa}/setvolume`,{method:"POST",body:JSON.stringify({did:e,volume:n})}),Zz=async()=>ua(`${sa}/musiclist`),Qz=async(e="")=>ua(`${sa}/searchmusic?name=${encodeURIComponent(e)}`),Fy=async(e,n="",r="")=>ua(`${sa}/playmusiclist`,{method:"POST",body:JSON.stringify({did:e,listname:n,musicname:r})}),Jz=async(e="")=>await ua(`${sa}/playingmusic?did=${e}`),xl=async(e,n)=>ua(`${sa}/cmd`,{method:"POST",body:JSON.stringify({did:e,cmd:n})}),eO=e=>xl(e,"关机"),tO=e=>xl(e,"下一首"),nO=e=>xl(e,"上一首"),aO=e=>xl(e,"刷新列表"),rO=(e,n)=>xl(e,n?"shuffle_on":"shuffle_off"),lO=(e,n)=>xl(e,`loop_${n}`),oO=(e,n)=>xl(e,{all_loop:"全部循环",single_loop:"单曲循环",random:"随机播放",single:"单曲播放",sequential:"顺序播放"}[n]),zs=Kz((e,n)=>({devices:[],selectedDevice:"",playlists:{},selectedPlaylist:"",currentPlaylist:[],musicList:[],currentMusic:null,isPlaying:!1,playProgress:{offset:0,duration:0},volume:50,isShuffleOn:!1,loopMode:"off",playMode:"sequential",loading:!1,error:null,settings:null,version:null,loadDevices:async()=>{try{e({loading:!0});const r=await Uy(!0);if(r&&r.device_list){const l=r.device_list.map(i=>({did:i.miotDID,...i}));e({devices:l}),l.length>0&&!n().selectedDevice&&e({selectedDevice:l[0].did})}}catch(r){e({error:"Failed to load devices: "+r.message})}finally{e({loading:!1})}},loadMusicList:async()=>{try{const r=await Zz();if(typeof r=="object"&&r!==null)if(e({playlists:r}),r.所有歌曲&&Array.isArray(r.所有歌曲))e({musicList:r.所有歌曲});else if(r.全部&&Array.isArray(r.全部))e({musicList:r.全部});else{const l=Object.keys(r)[0];l&&Array.isArray(r[l])&&e({musicList:r[l]})}}catch(r){console.error("Failed to load music list:",r)}},loadCurrentMusic:async()=>{const{selectedDevice:r}=n();if(r)try{const l=await Jz(r);l&&l.ret==="OK"&&e({currentMusic:{name:l.cur_music,playlist:l.cur_playlist},isPlaying:l.is_playing,playProgress:{offset:l.offset||0,duration:l.duration||0}})}catch(l){console.error("Failed to load current music:",l)}},loadVolume:async()=>{const{selectedDevice:r}=n();if(r)try{const l=await Wz(r);l&&l.ret==="OK"&&typeof l.volume=="number"&&e({volume:l.volume})}catch(l){console.error("Failed to load volume:",l)}},setDevice:r=>{e({selectedDevice:r})},setPlaylist:r=>{const{playlists:l}=n();e({selectedPlaylist:r}),r&&l[r]&&e({currentPlaylist:l[r],musicList:l[r]})},playMusicFromPlaylist:async(r,l="")=>{const{selectedDevice:i}=n();if(!i){e({error:"Please select a device first"});return}try{await Fy(i,r,l),await n().loadCurrentMusic()}catch(u){e({error:"Failed to play music: "+u.message})}},togglePlayPause:async()=>{const{selectedDevice:r}=n();if(r)try{n().isPlaying?(await eO(r),await n().loadCurrentMusic()):(await Fy(r,n().selectedPlaylist,n().currentMusic.name),await n().loadCurrentMusic())}catch(l){e({error:"Failed to toggle play/pause: "+l.message})}},playNext:async()=>{const{selectedDevice:r}=n();if(r)try{await tO(r),await n().loadCurrentMusic()}catch(l){e({error:"Failed to play next: "+l.message})}},playPrevious:async()=>{const{selectedDevice:r}=n();if(r)try{await nO(r),await n().loadCurrentMusic()}catch(l){e({error:"Failed to play previous: "+l.message})}},setVolume:async r=>{const{selectedDevice:l}=n();if(l)try{e({volume:r})}catch(i){e({error:"Failed to set volume: "+i.message})}},setVolumeEnd:async r=>{const{selectedDevice:l}=n();if(l)try{await Xz(l,r)}catch(i){e({error:"Failed to set volume: "+i.message})}},toggleShuffle:async()=>{const{selectedDevice:r,isShuffleOn:l}=n();if(r)try{const i=!l;e({isShuffleOn:i}),await rO(r,i)}catch(i){e({error:"Failed to toggle shuffle: "+i.message})}},toggleLoop:async()=>{const{selectedDevice:r,loopMode:l}=n();if(r)try{const i=["off","all","one"],u=i.indexOf(l),d=i[(u+1)%i.length];e({loopMode:d}),await lO(r,d)}catch(i){e({error:"Failed to toggle loop: "+i.message})}},searchMusic:async r=>{try{e({loading:!0});const l=await Qz(r);return Array.isArray(l)&&e({musicList:l}),l}catch(l){return e({error:"Failed to search: "+l.message}),[]}finally{e({loading:!1})}},refreshMusicList:async()=>{const{selectedDevice:r}=n();if(!r){is({title:"刷新失败",description:"请先选择设备",color:"danger"});return}try{await aO(r),await n().loadMusicList(),is({title:"刷新成功",description:"音乐列表已刷新",color:"success"})}catch(l){is({title:"刷新失败",description:l.message,color:"danger"})}},refreshPlaylists:async()=>{await n().loadMusicList()},setError:r=>{e({error:r})},clearError:()=>{e({error:null})},loadSettings:async()=>{try{e({loading:!0});const r=await Uy(!1);return e({settings:r}),r}catch(r){throw e({error:"Failed to load settings: "+r.message}),r}finally{e({loading:!1})}},saveSettings:async r=>{try{return e({loading:!0}),await qz(r),e({settings:r}),{success:!0}}catch(l){throw e({error:"Failed to save settings: "+l.message}),l}finally{e({loading:!1})}},getVersion:async()=>{try{const r=await Yz();return e({version:r.version}),r.version}catch(r){throw e({error:"Failed to get version: "+r.message}),r}},setPlayMode:async r=>{const{selectedDevice:l}=n();if(l)try{e({playMode:r}),await oO(l,r)}catch(i){e({error:"Failed to set play mode: "+i.message})}}})),iO=({onOpenSettings:e})=>{const{playlists:n,selectedPlaylist:r,setPlaylist:l,refreshMusicList:i}=zs();return T.jsxs("div",{className:"w-64 bg-white/40 backdrop-blur-md border-r border-gray-200/50 flex flex-col",children:[T.jsx("div",{className:"p-6 border-b border-gray-200/50",children:T.jsx("div",{className:"flex items-center gap-3",children:T.jsxs("div",{children:[T.jsx("h1",{className:"text-lg font-bold text-gray-800",children:"SoundScape"}),T.jsx("p",{className:"text-xs text-gray-600",children:"xiaomusic音乐播放器"})]})})}),T.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-thin",children:T.jsxs("div",{className:"p-4",children:[T.jsxs("div",{className:"flex items-center justify-between mb-3",children:[T.jsx("h2",{className:"text-sm font-semibold text-gray-700",children:"播放列表"}),T.jsx("button",{onClick:i,className:"text-gray-400 hover:text-[#31c27c] transition-colors",title:"刷新列表",children:T.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})})]}),T.jsx("div",{className:"space-y-1",children:Object.keys(n).map(u=>T.jsx("button",{onClick:()=>l(u),className:`w-full text-left px-3 py-2 rounded-lg text-sm transition-all ${r===u?"bg-[#31c27c] text-white shadow-md shadow-[#31c27c]/20":"text-gray-700 hover:bg-white/50"}`,children:T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",children:T.jsx("path",{d:"M18 3a1 1 0 00-1.196-.98l-10 2A1 1 0 006 5v9.114A4.369 4.369 0 005 14c-1.657 0-3 .895-3 2s1.343 2 3 2 3-.895 3-2V7.82l8-1.6v5.894A4.37 4.37 0 0015 12c-1.657 0-3 .895-3 2s1.343 2 3 2 3-.895 3-2V3z"})}),T.jsx("span",{className:"truncate",children:u}),n[u]&&T.jsx("span",{className:"ml-auto text-xs opacity-60",children:n[u].length})]})},u))})]})}),T.jsx("div",{className:"p-4 border-t border-gray-200/50",children:T.jsxs("button",{onClick:e,className:"w-full flex items-center gap-3 px-3 py-2 rounded-lg text-gray-700 hover:bg-white/50 transition-all",children:[T.jsxs("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),T.jsx("span",{className:"text-sm font-medium",children:"设置"})]})})]})},sO=()=>T.jsxs("div",{className:"relative w-8 h-8",children:[T.jsx("svg",{className:"w-8 h-8 text-white animate-pulse",fill:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{d:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"})}),T.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:T.jsxs("div",{className:"flex items-center gap-1",children:[T.jsx("div",{className:"w-1 h-3 bg-white rounded-full animate-pulse",style:{animationDelay:"0ms",animationDuration:"800ms"}}),T.jsx("div",{className:"w-1 h-4 bg-white rounded-full animate-pulse",style:{animationDelay:"200ms",animationDuration:"800ms"}}),T.jsx("div",{className:"w-1 h-2 bg-white rounded-full animate-pulse",style:{animationDelay:"400ms",animationDuration:"800ms"}}),T.jsx("div",{className:"w-1 h-5 bg-white rounded-full animate-pulse",style:{animationDelay:"600ms",animationDuration:"800ms"}}),T.jsx("div",{className:"w-1 h-3 bg-white rounded-full animate-pulse",style:{animationDelay:"800ms",animationDuration:"800ms"}})]})}),T.jsx("div",{className:"absolute -inset-2 bg-white/20 rounded-full animate-ping",style:{animationDuration:"2s"}})]}),uO=()=>T.jsxs("div",{className:"relative w-8 h-8",children:[T.jsxs("svg",{className:"w-8 h-8 text-white",fill:"currentColor",viewBox:"0 0 24 24",children:[T.jsx("rect",{x:"6",y:"4",width:"4",height:"16",rx:"1"}),T.jsx("rect",{x:"14",y:"4",width:"4",height:"16",rx:"1"})]}),T.jsx("div",{className:"absolute -top-1 -right-1 text-white text-xs font-bold animate-bounce",style:{animationDuration:"3s"},children:"Z"})]}),cO=()=>{const{devices:e,selectedDevice:n,currentMusic:r,isPlaying:l,volume:i,isShuffleOn:u,loopMode:d,playMode:p,playProgress:b,setDevice:m,togglePlayPause:$,playNext:x,playPrevious:S,setVolume:C,setVolumeEnd:A,toggleShuffle:w,toggleLoop:L,setPlayMode:P}=zs(),[N,B]=v.useState(!1),[H,I]=v.useState(!1),G=v.useRef(null),J=v.useRef(null);v.useEffect(()=>{const U=E=>{G.current&&!G.current.contains(E.target)&&B(!1)};if(N)return document.addEventListener("mousedown",U),()=>document.removeEventListener("mousedown",U)},[N]),v.useEffect(()=>{const U=E=>{J.current&&!J.current.contains(E.target)&&I(!1)};if(H)return document.addEventListener("mousedown",U),()=>document.removeEventListener("mousedown",U)},[H]);const W=()=>r?r.name||r.title||r.musicname||"未知歌曲":"未播放",ne=U=>{if(!U||U===0)return"0:00";const E=Math.floor(U/60),_=Math.floor(U%60);return`${E}:${_.toString().padStart(2,"0")}`},ue=b.duration>0?b.offset/b.duration*100:0,g=()=>{switch(p){case"all_loop":return T.jsxs("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:[T.jsx("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"}),T.jsx("path",{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"})]});case"single_loop":return T.jsxs("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:[T.jsx("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"}),T.jsx("circle",{cx:"12",cy:"12",r:"3"})]});case"random":return T.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{d:"M10.59 9.17L5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41l-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.04 2.04-3.13-3.13z"})});case"single":return T.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{d:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"})});default:return T.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{d:"M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v-2H3v2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z"})})}},k=()=>({all_loop:"全部循环",single_loop:"单曲循环",random:"随机播放",single:"单曲播放",sequential:"顺序播放"})[p]||"顺序播放";return T.jsxs("div",{className:"flex flex-col bg-white/40 backdrop-blur-md border-t border-gray-200/50",children:[T.jsx("div",{className:"h-1 bg-gray-200 overflow-hidden",children:T.jsx("div",{className:"h-full bg-[#31c27c] transition-all duration-300",style:{width:`${ue}%`}})}),T.jsxs("div",{className:"h-20 flex items-center justify-between px-6",children:[T.jsxs("div",{className:"flex items-center gap-4 flex-1 min-w-0",children:[T.jsx("div",{className:`w-14 h-14 rounded-xl bg-gradient-to-br from-[#31c27c] to-[#28a869] flex items-center justify-center flex-shrink-0 shadow-lg ${l?"animate-pulse":""}`,children:l?T.jsx(sO,{}):T.jsx(uO,{})}),T.jsxs("div",{className:"min-w-0 flex-1",children:[T.jsx("h3",{className:"text-sm font-semibold text-gray-800 truncate",children:W()}),r?.artist&&T.jsx("p",{className:"text-xs text-gray-600 truncate",children:r.artist})]})]}),T.jsxs("div",{className:"flex items-center gap-4 flex-1 justify-center",children:[T.jsxs("div",{className:"relative flex items-center",ref:J,children:[T.jsx("button",{onClick:()=>I(!H),className:"text-gray-600 hover:text-gray-800 transition-colors flex items-center justify-center",title:`播放模式: ${k()}`,children:g()}),H&&T.jsxs("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-3 bg-white/95 backdrop-blur-xl rounded-2xl shadow-2xl border border-gray-200/50 p-4 animate-in fade-in slide-in-from-bottom-2 min-w-[140px]",children:[T.jsxs("div",{className:"flex flex-col gap-2",children:[T.jsx("button",{onClick:()=>{P("all_loop"),I(!1)},className:`px-3 py-2 text-sm rounded-lg transition-colors text-left ${p==="all_loop"?"bg-[#31c27c] text-white":"text-gray-700 hover:bg-gray-100"}`,children:"全部循环"}),T.jsx("button",{onClick:()=>{P("single_loop"),I(!1)},className:`px-3 py-2 text-sm rounded-lg transition-colors text-left ${p==="single_loop"?"bg-[#31c27c] text-white":"text-gray-700 hover:bg-gray-100"}`,children:"单曲循环"}),T.jsx("button",{onClick:()=>{P("random"),I(!1)},className:`px-3 py-2 text-sm rounded-lg transition-colors text-left ${p==="random"?"bg-[#31c27c] text-white":"text-gray-700 hover:bg-gray-100"}`,children:"随机播放"}),T.jsx("button",{onClick:()=>{P("single"),I(!1)},className:`px-3 py-2 text-sm rounded-lg transition-colors text-left ${p==="single"?"bg-[#31c27c] text-white":"text-gray-700 hover:bg-gray-100"}`,children:"单曲播放"}),T.jsx("button",{onClick:()=>{P("sequential"),I(!1)},className:`px-3 py-2 text-sm rounded-lg transition-colors text-left ${p==="sequential"?"bg-[#31c27c] text-white":"text-gray-700 hover:bg-gray-100"}`,children:"顺序播放"})]}),T.jsx("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 -mt-1",children:T.jsx("div",{className:"w-3 h-3 bg-white/95 border-r border-b border-gray-200/50 rotate-45"})})]})]}),T.jsx("button",{onClick:S,className:"text-gray-600 hover:text-gray-800 transition-colors",title:"上一曲",children:T.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 20 20",children:T.jsx("path",{d:"M8.445 14.832A1 1 0 0010 14v-2.798l5.445 3.63A1 1 0 0017 14V6a1 1 0 00-1.555-.832L10 8.798V6a1 1 0 00-1.555-.832l-6 4a1 1 0 000 1.664l6 4z"})})}),T.jsx("button",{onClick:$,className:"w-12 h-12 rounded-full bg-[#31c27c] hover:bg-[#28a869] text-white flex items-center justify-center transition-all shadow-lg hover:shadow-xl",title:l?"暂停":"播放",children:l?T.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 20 20",children:T.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zM7 8a1 1 0 012 0v4a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v4a1 1 0 102 0V8a1 1 0 00-1-1z",clipRule:"evenodd"})}):T.jsx("svg",{className:"w-6 h-6 ml-0.5",fill:"currentColor",viewBox:"0 0 20 20",children:T.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z",clipRule:"evenodd"})})}),T.jsx("button",{onClick:x,className:"text-gray-600 hover:text-gray-800 transition-colors",title:"下一曲",children:T.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 20 20",children:T.jsx("path",{d:"M4.555 5.168A1 1 0 003 6v8a1 1 0 001.555.832L10 11.202V14a1 1 0 001.555.832l6-4a1 1 0 000-1.664l-6-4A1 1 0 0010 6v2.798l-5.445-3.63z"})})}),T.jsxs("div",{className:"relative flex items-center",ref:G,children:[T.jsx("button",{onClick:()=>B(!N),className:"text-gray-600 hover:text-gray-800 transition-colors flex items-center justify-center",title:"音量控制",children:T.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",children:T.jsx("path",{fillRule:"evenodd",d:"M9.383 3.076A1 1 0 0110 4v12a1 1 0 01-1.707.707L4.586 13H2a1 1 0 01-1-1V8a1 1 0 011-1h2.586l3.707-3.707a1 1 0 011.09-.217zM14.657 2.929a1 1 0 011.414 0A9.972 9.972 0 0119 10a9.972 9.972 0 01-2.929 7.071 1 1 0 01-1.414-1.414A7.971 7.971 0 0017 10c0-2.21-.894-4.208-2.343-5.657a1 1 0 010-1.414zm-2.829 2.828a1 1 0 011.415 0A5.983 5.983 0 0115 10a5.984 5.984 0 01-1.757 4.243 1 1 0 01-1.415-1.415A3.984 3.984 0 0013 10a3.983 3.983 0 00-1.172-2.828 1 1 0 010-1.415z",clipRule:"evenodd"})})}),N&&T.jsxs("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-3 bg-white/95 backdrop-blur-xl rounded-2xl shadow-2xl border border-gray-200/50 p-5 animate-in fade-in slide-in-from-bottom-2",children:[T.jsxs("div",{className:"flex flex-col items-center gap-4",children:[T.jsx("span",{className:"text-xs font-semibold text-gray-700",children:"音量"}),T.jsx(vk,{size:"sm",step:1,maxValue:100,minValue:0,value:i,onChange:C,onChangeEnd:A,orientation:"vertical",className:"h-32",classNames:{track:"bg-gray-200",filler:"bg-[#31c27c]",thumb:"bg-[#31c27c] shadow-md"}}),T.jsxs("span",{className:"text-lg font-bold text-[#31c27c]",children:[i,"%"]})]}),T.jsx("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 -mt-1",children:T.jsx("div",{className:"w-3 h-3 bg-white/95 border-r border-b border-gray-200/50 rotate-45"})})]})]})]}),T.jsxs("div",{className:"flex items-center gap-4 flex-1 justify-end",children:[T.jsxs("span",{className:"text-xs text-gray-600 font-medium",children:[ne(b.offset),"/",ne(b.duration)]}),T.jsx("select",{value:n,onChange:U=>m(U.target.value),className:"text-xs bg-white/50 border border-gray-200 rounded-lg px-3 py-2 text-gray-700 focus:outline-none focus:ring-2 focus:ring-[#31c27c]",children:e.map(U=>T.jsx("option",{value:U.did,children:U.name||U.did},U.did))})]})]})]})},dO=()=>{const{selectedPlaylist:e,musicList:n,currentMusic:r,loading:l,playMusicFromPlaylist:i,searchMusic:u,refreshMusicList:d}=zs(),[p,b]=v.useState(""),m=()=>{p.trim()&&u(p)},$=()=>{b(""),d()},x=w=>{b(w),w.trim()===""&&d()},C=r?r.name||r.musicname||r.title:null,A=n;return T.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[T.jsx("div",{className:"bg-white/40 backdrop-blur-md border-b border-gray-200/50",children:T.jsxs("div",{className:"p-6",children:[T.jsxs("div",{className:"flex gap-3 mb-6",children:[T.jsxs("div",{className:"flex-1 relative",children:[T.jsx("input",{type:"text",placeholder:"搜索歌曲...",value:p,onChange:w=>x(w.target.value),onKeyPress:w=>w.key==="Enter"&&m(),className:"w-full px-4 py-3 pl-11 bg-white/50 border border-gray-200 rounded-full text-sm text-gray-800 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-[#31c27c] focus:bg-white/70 transition-all"}),T.jsx("svg",{className:"w-5 h-5 text-gray-400 absolute left-4 top-1/2 transform -translate-y-1/2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),p&&T.jsx("button",{onClick:$,className:"absolute right-4 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600",children:T.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",children:T.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})})]}),T.jsx("button",{onClick:m,className:"px-6 py-3 bg-[#31c27c] hover:bg-[#28a869] text-white rounded-full text-sm font-medium transition-all shadow-md hover:shadow-lg",children:"搜索"})]}),e&&T.jsxs("div",{className:"flex items-center gap-2 justify-between",children:[T.jsxs("div",{children:[T.jsx("span",{className:"text-sm text-gray-600",children:"当前列表:"}),T.jsx("span",{className:"px-3 py-1 rounded-full text-sm font-medium bg-[#31c27c] text-white shadow-md ml-2",children:e})]}),T.jsx("div",{className:"flex items-center gap-3",children:T.jsxs("span",{className:"text-sm text-gray-600",children:["共 ",A.length," 首"]})})]})]})}),T.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-thin",children:T.jsx("div",{className:"p-6",children:l?T.jsxs("div",{className:"text-center py-12 text-white/70",children:[T.jsx("div",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-[#31c27c]"}),T.jsx("p",{className:"mt-2 text-sm",children:"加载中..."})]}):A.length===0?T.jsxs("div",{className:"text-center py-12 text-gray-500",children:[T.jsx("svg",{className:"w-16 h-16 mx-auto mb-4 text-gray-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"})}),T.jsx("p",{className:"text-sm",children:"暂无歌曲"})]}):T.jsx("div",{className:"bg-white/50 backdrop-blur-md rounded-2xl shadow-lg overflow-hidden border border-gray-200/50",children:T.jsxs("table",{className:"w-full",children:[T.jsx("thead",{className:"bg-gray-50/50 border-b border-gray-200",children:T.jsxs("tr",{children:[T.jsx("th",{className:"px-6 py-3 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider w-16",children:"#"}),T.jsx("th",{className:"px-6 py-3 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider",children:"歌曲"}),T.jsx("th",{className:"px-6 py-3 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider w-32",children:"操作"})]})}),T.jsx("tbody",{className:"divide-y divide-gray-200",children:A.map((w,L)=>{const P=typeof w=="string"?w:w.name||w.musicname||w.title||`Track ${L+1}`,N=C===P;return T.jsxs("tr",{className:`hover:bg-gray-50/70 transition-colors cursor-pointer group ${N?"bg-[#31c27c]/10":""}`,onDoubleClick:()=>{i(e,P)},children:[T.jsx("td",{className:"px-6 py-4",children:T.jsx("span",{className:`text-sm ${N?"text-[#31c27c] font-semibold":"text-gray-500"}`,children:L+1})}),T.jsx("td",{className:"px-6 py-4",children:T.jsx("div",{className:"flex items-center gap-3",children:T.jsx("div",{className:"min-w-0",children:T.jsx("p",{className:`text-sm font-medium truncate ${N?"text-[#31c27c]":"text-gray-800"}`,children:P})})})}),T.jsx("td",{className:"px-6 py-4",children:T.jsx("button",{onClick:B=>{B.stopPropagation(),i(e,P)},className:"text-[#31c27c] hover:text-[#28a869] transition-colors opacity-0 group-hover:opacity-100",children:T.jsx("svg",{className:"w-8 h-8",fill:"currentColor",viewBox:"0 0 20 20",children:T.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z",clipRule:"evenodd"})})})})]},L)})})]})})})}),T.jsx(cO,{})]})},fO=({onClose:e})=>{const[n,r]=v.useState("basic"),{settings:l,version:i,loadSettings:u,saveSettings:d,getVersion:p}=zs(),[b,m]=v.useState({}),[$,x]=v.useState(!1),S=[{id:"basic",label:"账号设置",icon:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"},{id:"preference",label:"目录配置",icon:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},{id:"users",label:"服务配置",icon:"M5 12h14M12 5l7 7-7 7"},{id:"schedule",label:"语音控制配置",icon:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"},{id:"storage",label:"对话提示音配置",icon:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"},{id:"about",label:"关于",icon:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}];v.useEffect(()=>{l?m(l):u()},[l,u]),v.useEffect(()=>{l&&m(l)},[l]),v.useEffect(()=>{i||p()},[i,p]);const C=(w,L)=>{m(P=>({...P,[w]:L}))},A=async()=>{try{x(!0),await d(b),is({title:"保存成功",description:"设置已成功保存",color:"success",placement:"top-center"})}catch(w){is({title:"保存失败",description:w.message,color:"danger"})}finally{x(!1)}};return T.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/30 backdrop-blur-sm",children:T.jsxs("div",{className:"w-full h-full max-w-6xl max-h-[90vh] m-6 flex bg-white backdrop-blur-xl rounded-2xl shadow-2xl border border-gray-200 overflow-hidden",children:[T.jsx("div",{className:"w-64 border-r border-gray-300 flex flex-col",children:T.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-thin p-4",children:T.jsx("div",{className:"space-y-1",children:S.map(w=>T.jsxs("button",{onClick:()=>r(w.id),className:`w-full flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm transition-all ${n===w.id?"bg-[#31c27c] text-white shadow-sm":"text-gray-700 hover:bg-white/50"}`,children:[T.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:w.icon})}),T.jsx("span",{children:w.label})]},w.id))})})}),T.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[T.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-gray-300 ",children:[T.jsxs("div",{className:"flex items-center gap-3",children:[T.jsxs("svg",{className:"w-6 h-6 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),T.jsx("h2",{className:"text-xl font-bold text-gray-800",children:S.find(w=>w.id===n)?.label||"基本信息"})]}),T.jsx("button",{onClick:e,className:"p-2 rounded-lg hover:bg-gray-100 transition-colors",title:"关闭",children:T.jsx("svg",{className:"w-6 h-6 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),T.jsxs("div",{className:"flex-1 overflow-y-auto scrollbar-thin p-6",children:[n==="basic"&&T.jsxs("div",{className:"max-w-2xl space-y-8",children:[T.jsx(Ge,{label:"小米账号",labelPlacement:"outside",placeholder:"请输入小米账号",value:b.account||"",onChange:w=>C("account",w.target.value)}),T.jsx(Ge,{label:"密码",labelPlacement:"outside",type:"password",placeholder:"请输入密码",value:b.password||"",onChange:w=>C("password",w.target.value)}),T.jsx("div",{className:"border-gray-200",children:T.jsx(uo,{color:"success",className:"text-white",onPress:A,isLoading:$,children:"保存更改"})})]}),n==="preference"&&T.jsxs("div",{className:"max-w-2xl space-y-8",children:[T.jsx(Ge,{label:"音乐目录",labelPlacement:"outside",placeholder:"请输入音乐目录路径",value:b.music_path||"",onChange:w=>C("music_path",w.target.value)}),T.jsx(Ge,{label:"音乐下载目录",labelPlacement:"outside",placeholder:"请输入下载目录路径",value:b.download_path||"",onChange:w=>C("download_path",w.target.value)}),T.jsx(Ge,{label:"临时文件目录",labelPlacement:"outside",placeholder:"请输入临时文件目录路径",value:b.temp_path||"",onChange:w=>C("temp_path",w.target.value)}),T.jsx(Ge,{label:"配置文件目录",labelPlacement:"outside",placeholder:"请输入配置文件目录路径",value:b.conf_path||"",onChange:w=>C("conf_path",w.target.value)}),T.jsx(Ge,{label:"缓存文件目录",labelPlacement:"outside",placeholder:"请输入缓存目录路径",value:b.cache_dir||"",onChange:w=>C("cache_dir",w.target.value)}),T.jsx(Ge,{label:"日志文件",labelPlacement:"outside",placeholder:"请输入日志文件路径",value:b.log_file||"",onChange:w=>C("log_file",w.target.value)}),T.jsx(Ge,{label:"FFmpeg路径",labelPlacement:"outside",placeholder:"请输入FFmpeg路径",value:b.ffmpeg_location||"",onChange:w=>C("ffmpeg_location",w.target.value)}),T.jsx("div",{className:"border-gray-200",children:T.jsx(uo,{color:"success",className:"text-white",onClick:A,isLoading:$,children:"保存更改"})})]}),n==="users"&&T.jsxs("div",{className:"max-w-2xl space-y-8",children:[T.jsx(Ge,{label:"主机名/IP",labelPlacement:"outside",placeholder:"请输入主机名或IP地址",value:b.hostname||"",onChange:w=>C("hostname",w.target.value)}),T.jsx(Ge,{label:"本地端口",labelPlacement:"outside",type:"number",placeholder:"请输入端口号",value:b.port||"",onChange:w=>C("port",w.target.value)}),T.jsx(Ge,{label:"公共端口",labelPlacement:"outside",type:"number",placeholder:"请输入公共端口号",value:b.public_port||"",onChange:w=>C("public_port",w.target.value)}),T.jsx(Ge,{label:"代理地址",labelPlacement:"outside",placeholder:"请输入代理地址",value:b.proxy||"",onChange:w=>C("proxy",w.target.value)}),T.jsx("div",{className:"flex items-center gap-2",children:T.jsx(pc,{color:"success",isSelected:b.disable_httpauth||!1,onValueChange:w=>C("disable_httpauth",w),children:"禁用HTTP认证"})}),!b.disable_httpauth&&T.jsxs(T.Fragment,{children:[T.jsx(Ge,{label:"HTTP认证用户名",labelPlacement:"outside",placeholder:"请输入用户名",value:b.httpauth_username||"",onChange:w=>C("httpauth_username",w.target.value)}),T.jsx(Ge,{label:"HTTP认证密码",labelPlacement:"outside",type:"password",placeholder:"请输入密码",value:b.httpauth_password||"",onChange:w=>C("httpauth_password",w.target.value)})]}),T.jsx("div",{className:"border-gray-200",children:T.jsx(uo,{color:"success",className:"text-white",onClick:A,isLoading:$,children:"保存更改"})})]}),n==="schedule"&&T.jsxs("div",{className:"max-w-2xl space-y-8",children:[T.jsx(Ge,{label:"允许唤醒的命令",labelPlacement:"outside",placeholder:"请输入允许的命令,用逗号分隔",value:b.active_cmd||"",onChange:w=>C("active_cmd",w.target.value)}),T.jsx(Ge,{label:"播放本地歌曲口令",labelPlacement:"outside",placeholder:"请输入口令,用逗号分隔",value:b.keywords_playlocal||"",onChange:w=>C("keywords_playlocal",w.target.value)}),T.jsx(Ge,{label:"播放歌曲口令",labelPlacement:"outside",placeholder:"请输入口令,用逗号分隔",value:b.keywords_play||"",onChange:w=>C("keywords_play",w.target.value)}),T.jsx(Ge,{label:"播放列表口令",labelPlacement:"outside",placeholder:"请输入口令,用逗号分隔",value:b.keywords_playlist||"",onChange:w=>C("keywords_playlist",w.target.value)}),T.jsx(Ge,{label:"停止口令",labelPlacement:"outside",placeholder:"请输入口令,用逗号分隔",value:b.keywords_stop||"",onChange:w=>C("keywords_stop",w.target.value)}),T.jsx(Ge,{label:"本地搜索播放口令",labelPlacement:"outside",placeholder:"请输入口令,用逗号分隔",value:b.keywords_search_playlocal||"",onChange:w=>C("keywords_search_playlocal",w.target.value)}),T.jsx(Ge,{label:"搜索播放口令",labelPlacement:"outside",placeholder:"请输入口令,用逗号分隔",value:b.keywords_search_play||"",onChange:w=>C("keywords_search_play",w.target.value)}),T.jsx("div",{className:"flex items-center gap-2",children:T.jsx(pc,{color:"success",isSelected:b.enable_cmd_del_music||!1,onValueChange:w=>C("enable_cmd_del_music",w),children:"开启语音删除歌曲"})}),T.jsx("div",{className:"border-gray-200",children:T.jsx(uo,{color:"success",className:"text-white",onClick:A,isLoading:$,children:"保存更改"})})]}),n==="storage"&&T.jsxs("div",{className:"max-w-2xl space-y-8",children:[T.jsx("div",{className:"flex items-center gap-2",children:T.jsx(pc,{color:"success",isSelected:b.enable_pull_ask||!1,onValueChange:w=>C("enable_pull_ask",w),children:"获取对话记录"})}),T.jsx(Ge,{label:"获取对话间隔(秒)",labelPlacement:"outside",type:"number",placeholder:"请输入间隔秒数",value:b.pull_ask_sec||"",onChange:w=>C("pull_ask_sec",w.target.value)}),T.jsx("div",{className:"flex items-center gap-2 mb-10",children:T.jsx(pc,{color:"success",isSelected:b.get_ask_by_mina||!1,onValueChange:w=>C("get_ask_by_mina",w),children:"特殊型号获取对话记录"})}),T.jsx(Ge,{label:"停止提示音",labelPlacement:"outside",placeholder:"请输入停止提示音内容",value:b.stop_tts_msg||"",onChange:w=>C("stop_tts_msg",w.target.value)}),T.jsx(Ge,{label:"单曲循环提示音",labelPlacement:"outside",placeholder:"请输入单曲循环提示音内容",value:b.play_type_one_tts_msg||"",onChange:w=>C("play_type_one_tts_msg",w.target.value)}),T.jsx(Ge,{label:"全部循环提示音",labelPlacement:"outside",placeholder:"请输入全部循环提示音内容",value:b.play_type_all_tts_msg||"",onChange:w=>C("play_type_all_tts_msg",w.target.value)}),T.jsx(Ge,{label:"随机播放提示音",labelPlacement:"outside",placeholder:"请输入随机播放提示音内容",value:b.play_type_rnd_tts_msg||"",onChange:w=>C("play_type_rnd_tts_msg",w.target.value)}),T.jsx(Ge,{label:"单曲播放提示音",labelPlacement:"outside",placeholder:"请输入单曲播放提示音内容",value:b.play_type_sin_tts_msg||"",onChange:w=>C("play_type_sin_tts_msg",w.target.value)}),T.jsx(Ge,{label:"顺序播放提示音",labelPlacement:"outside",placeholder:"请输入顺序播放提示音内容",value:b.play_type_seq_tts_msg||"",onChange:w=>C("play_type_seq_tts_msg",w.target.value)}),T.jsx("div",{className:"border-gray-200",children:T.jsx(uo,{color:"success",className:"text-white",onClick:A,isLoading:$,children:"保存更改"})})]}),n==="about"&&T.jsx("div",{className:"flex items-center justify-center h-full",children:T.jsx("div",{className:"max-w-lg w-full space-y-8",children:T.jsxs("div",{className:"text-center space-y-8",children:[T.jsx("div",{className:"flex justify-center",children:T.jsx("div",{className:"w-24 h-24 bg-gradient-to-br from-[#31c27c] to-[#28a869] rounded-2xl flex items-center justify-center shadow-lg",children:T.jsx("svg",{className:"w-12 h-12 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"})})})}),T.jsxs("div",{className:"",children:[T.jsx("h3",{className:"text-2xl font-bold text-gray-800",children:"SoundScape"}),T.jsxs("p",{className:"text-gray-600 leading-relaxed",children:["本项目是为 ",T.jsx("a",{href:"https://github.com/hanxi/xiaomusic",target:"_blank",rel:"noopener noreferrer",className:"text-[#31c27c] hover:text-[#28a869] underline",children:"xiaomusic"})," 使用的前端项目"]})]}),T.jsxs("div",{className:"bg-gray-50 rounded-xl p-6 space-y-4 text-left mx-auto max-w-sm",children:[T.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-gray-200",children:[T.jsx("span",{className:"text-gray-600",children:"版本"}),T.jsx("span",{className:"font-medium text-gray-800",children:i})]}),T.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-gray-200",children:[T.jsx("span",{className:"text-gray-600",children:"前端项目地址"}),T.jsx("span",{className:"text-gray-400 text-sm",children:T.jsx("a",{href:"https://github.com/jhao0413/SoundScape",target:"_blank",rel:"noopener noreferrer",className:"text-[#31c27c] hover:text-[#28a869] text-sm underline",children:"SoundScape"})})]}),T.jsxs("div",{className:"flex items-center justify-between py-2",children:[T.jsx("span",{className:"text-gray-600",children:"文档地址"}),T.jsx("a",{href:"https://xdocs.hanxi.cc/",target:"_blank",rel:"noopener noreferrer",className:"text-[#31c27c] hover:text-[#28a869] text-sm underline",children:"xdocs.hanxi.cc"})]})]}),T.jsx("div",{className:"pt-4",children:T.jsxs(uo,{color:"success",className:"text-white",onClick:()=>window.open("https://github.com/hanxi/xiaomusic","_blank"),children:[T.jsx("svg",{className:"w-5 h-5 mr-2",fill:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})}),"访问后端项目"]})})]})})})]})]})]})})};function pO(){const{selectedDevice:e,error:n,playlists:r,loadDevices:l,loadMusicList:i,loadCurrentMusic:u,clearError:d,isPlaying:p,setPlaylist:b}=zs(),[m,$]=v.useState(!1);return v.useEffect(()=>{l(),i()},[l,i]),v.useEffect(()=>{if(Object.keys(r).length>0){const x=Object.keys(r),S=x[x.length-1];b(S)}},[r,b]),v.useEffect(()=>{if(!e)return;const x=setInterval(()=>{p?u():clearInterval(x)},1e3);return()=>clearInterval(x)},[e,u,p]),T.jsxs("div",{className:"h-screen flex flex-col overflow-hidden relative",children:[T.jsxs("div",{className:"absolute inset-0 z-0",children:[T.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:"url(https://images.unsplash.com/photo-1511379938547-c1f69419868d?q=80&w=2070)"}}),T.jsx("div",{className:"absolute inset-0 backdrop-blur-3xl bg-white/70"}),T.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-blue-50/50 via-purple-50/50 to-pink-50/50"})]}),n&&T.jsx("div",{className:"fixed top-6 right-6 z-50 bg-white/95 backdrop-blur-xl shadow-2xl rounded-2xl p-4 border border-gray-200 animate-in slide-in-from-top",children:T.jsxs("div",{className:"flex items-center gap-3",children:[T.jsx("span",{className:"text-red-500",children:"⚠️"}),T.jsx("p",{className:"text-sm text-gray-800",children:n}),T.jsx("button",{onClick:d,className:"text-gray-400 hover:text-gray-600 ml-2 transition-colors",children:"✕"})]})}),T.jsx("div",{className:"relative z-10 flex flex-col h-screen p-6",children:T.jsx("div",{className:"flex flex-col flex-1 overflow-hidden bg-white/60 backdrop-blur-2xl rounded-3xl shadow-2xl border border-white/40",children:T.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[T.jsx(iO,{onOpenSettings:()=>$(!0)}),T.jsx(dO,{})]})})}),m&&T.jsx(fO,{onClose:()=>$(!1)})]})}function bO(){return T.jsx(pO,{})}pE.createRoot(document.getElementById("root")).render(T.jsx(v.StrictMode,{children:T.jsxs(C8,{children:[T.jsx(Hz,{placement:"top-center"}),T.jsx(bO,{})]})}));export{EO as $,$2 as A,dd as B,Wu as C,ud as D,cd as E,xw as F,pd as G,vO as H,jw as I,jc as J,t8 as K,i2 as L,us as M,c2 as N,kw as O,Ss as P,yw as Q,s2 as R,zw as S,Bw as T,fd as U,$O as V,Wv as W,kb as X,E2 as Y,yO as Z,Gr as _,gO as a,xO as a0,Ab as a1,Tw as a2,b2 as a3,Uw as a4,ww as a5,qv as a6,Sw as a7,Nc as a8,o8 as a9,qw as aa,w2 as ab,P2 as ac,i8 as ad,u8 as ae,T2 as af,s8 as ag,C2 as ah,h2 as ai,Xw as b,mO as c,Se as d,bw as e,B1 as f,wO as g,al as h,v2 as i,T as j,hO as k,Gw as l,Dw as m,mw as n,h8 as o,Gp as p,Ew as q,v as r,M2 as s,sd as t,u2 as u,Yv as v,m2 as w,Zw as x,Lw as y,Aw as z}; + `.trim(),g.head.prepend(k)},[S]),v.useEffect(()=>{let g=L.current;return()=>{var k;x||ky((k=g.target)!==null&&k!==void 0?k:void 0);for(let U of g.disposables)U();g.disposables=[]}},[x]),{isPressed:b||A,pressProps:ad(C,ue,{[Oy]:!0})}}function A0(e){return e.tagName==="A"&&e.hasAttribute("href")}function yb(e,n){const{key:r,code:l}=e,i=n,u=i.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||l==="Space")&&!(i instanceof Wn(i).HTMLInputElement&&!R4(i,r)||i instanceof Wn(i).HTMLTextAreaElement||i.isContentEditable)&&!((u==="link"||!u&&A0(i))&&r!=="Enter")}function Qr(e,n){let r=n.clientX,l=n.clientY;return{currentTarget:e,shiftKey:n.shiftKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,altKey:n.altKey,clientX:r,clientY:l}}function XD(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!A0(e)}function Ny(e,n){return e instanceof HTMLInputElement?!R4(e,n):XD(e)}const ZD=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function R4(e,n){return e.type==="checkbox"||e.type==="radio"?n===" ":ZD.has(e.type)}let Ko=null,Hv=new Set,ls=new Map,ml=!1,_v=!1;const QD={Tab:!0,Escape:!0};function k0(e,n){for(let r of Hv)r(e,n)}function JD(e){return!(e.metaKey||!xs()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ld(e){ml=!0,JD(e)&&(Ko="keyboard",k0("keyboard",e))}function Po(e){Ko="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ml=!0,k0("pointer",e))}function H4(e){k4(e)&&(ml=!0,Ko="virtual")}function _4(e){e.target===window||e.target===document||rd||!e.isTrusted||(!ml&&!_v&&(Ko="virtual",k0("virtual",e)),ml=!1,_v=!1)}function V4(){rd||(ml=!1,_v=!0)}function Vv(e){if(typeof window>"u"||typeof document>"u"||ls.get(Wn(e)))return;const n=Wn(e),r=Qt(e);let l=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){ml=!0,l.apply(this,arguments)},r.addEventListener("keydown",ld,!0),r.addEventListener("keyup",ld,!0),r.addEventListener("click",H4,!0),n.addEventListener("focus",_4,!0),n.addEventListener("blur",V4,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",Po,!0),r.addEventListener("pointermove",Po,!0),r.addEventListener("pointerup",Po,!0)),n.addEventListener("beforeunload",()=>{B4(e)},{once:!0}),ls.set(n,{focus:l})}const B4=(e,n)=>{const r=Wn(e),l=Qt(e);n&&l.removeEventListener("DOMContentLoaded",n),ls.has(r)&&(r.HTMLElement.prototype.focus=ls.get(r).focus,l.removeEventListener("keydown",ld,!0),l.removeEventListener("keyup",ld,!0),l.removeEventListener("click",H4,!0),r.removeEventListener("focus",_4,!0),r.removeEventListener("blur",V4,!1),typeof PointerEvent<"u"&&(l.removeEventListener("pointerdown",Po,!0),l.removeEventListener("pointermove",Po,!0),l.removeEventListener("pointerup",Po,!0)),ls.delete(r))};function ez(e){const n=Qt(e);let r;return n.readyState!=="loading"?Vv(e):(r=()=>{Vv(e)},n.addEventListener("DOMContentLoaded",r)),()=>B4(e,r)}typeof document<"u"&&ez();function U4(){return Ko!=="pointer"}function tz(){return Ko}const nz=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function az(e,n,r){let l=Qt(r?.target);const i=typeof window<"u"?Wn(r?.target).HTMLInputElement:HTMLInputElement,u=typeof window<"u"?Wn(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,d=typeof window<"u"?Wn(r?.target).HTMLElement:HTMLElement,p=typeof window<"u"?Wn(r?.target).KeyboardEvent:KeyboardEvent;return e=e||l.activeElement instanceof i&&!nz.has(l.activeElement.type)||l.activeElement instanceof u||l.activeElement instanceof d&&l.activeElement.isContentEditable,!(e&&n==="keyboard"&&r instanceof p&&!QD[r.key])}function rz(e,n,r){Vv(),v.useEffect(()=>{let l=(i,u)=>{az(!!r?.isTextInput,i,u)&&e(U4())};return Hv.add(l),()=>{Hv.delete(l)}},n)}function lz(e){const n=Qt(e),r=ys(n);if(tz()==="virtual"){let l=r;P4(()=>{ys(n)===l&&e.isConnected&&jo(e)})}else jo(e)}function F4(e){let{isDisabled:n,onFocus:r,onBlur:l,onFocusChange:i}=e;const u=v.useCallback(b=>{if(b.target===b.currentTarget)return l&&l(b),i&&i(!1),!0},[l,i]),d=N4(u),p=v.useCallback(b=>{const m=Qt(b.target),$=m?ys(m):ys();b.target===b.currentTarget&&$===Wt(b.nativeEvent)&&(r&&r(b),i&&i(!0),d(b))},[i,r,d]);return{focusProps:{onFocus:!n&&(r||i||l)?p:void 0,onBlur:!n&&(l||i)?u:void 0}}}function jy(e){if(!e)return;let n=!0;return r=>{let l={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1},isPropagationStopped(){return n}};e(l),n&&r.stopPropagation()}}function oz(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:jy(e.onKeyDown),onKeyUp:jy(e.onKeyUp)}}}let iz=ie.createContext(null);function sz(e){let n=v.useContext(iz)||{};A4(n,e);let{ref:r,...l}=n;return l}function uz(e,n){let{focusProps:r}=F4(e),{keyboardProps:l}=oz(e),i=ad(r,l),u=sz(n),d=e.isDisabled?{}:u,p=v.useRef(e.autoFocus);v.useEffect(()=>{p.current&&n.current&&lz(n.current),p.current=!1},[n]);let b=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(b=void 0),{focusableProps:ad({...i,tabIndex:b},d)}}function cz(e){let{isDisabled:n,onBlurWithin:r,onFocusWithin:l,onFocusWithinChange:i}=e,u=v.useRef({isFocusWithin:!1}),{addGlobalListener:d,removeAllGlobalListeners:p}=L0(),b=v.useCallback(x=>{x.currentTarget.contains(x.target)&&u.current.isFocusWithin&&!x.currentTarget.contains(x.relatedTarget)&&(u.current.isFocusWithin=!1,p(),r&&r(x),i&&i(!1))},[r,i,u,p]),m=N4(b),$=v.useCallback(x=>{if(!x.currentTarget.contains(x.target))return;const S=Qt(x.target),C=ys(S);if(!u.current.isFocusWithin&&C===Wt(x.nativeEvent)){l&&l(x),i&&i(!0),u.current.isFocusWithin=!0,m(x);let A=x.currentTarget;d(S,"focus",w=>{if(u.current.isFocusWithin&&!jn(A,w.target)){let L=new S.defaultView.FocusEvent("blur",{relatedTarget:w.target});O4(L,A);let P=P0(L);b(P)}},{capture:!0})}},[l,i,m,d,b]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:$,onBlur:b}}}let Bv=!1,Lc=0;function dz(){Bv=!0,setTimeout(()=>{Bv=!1},50)}function Ry(e){e.pointerType==="touch"&&dz()}function fz(){if(!(typeof document>"u"))return Lc===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",Ry),Lc++,()=>{Lc--,!(Lc>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Ry)}}function D0(e){let{onHoverStart:n,onHoverChange:r,onHoverEnd:l,isDisabled:i}=e,[u,d]=v.useState(!1),p=v.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;v.useEffect(fz,[]);let{addGlobalListener:b,removeAllGlobalListeners:m}=L0(),{hoverProps:$,triggerHoverEnd:x}=v.useMemo(()=>{let S=(w,L)=>{if(p.pointerType=L,i||L==="touch"||p.isHovered||!w.currentTarget.contains(w.target))return;p.isHovered=!0;let P=w.currentTarget;p.target=P,b(Qt(w.target),"pointerover",N=>{p.isHovered&&p.target&&!jn(p.target,N.target)&&C(N,N.pointerType)},{capture:!0}),n&&n({type:"hoverstart",target:P,pointerType:L}),r&&r(!0),d(!0)},C=(w,L)=>{let P=p.target;p.pointerType="",p.target=null,!(L==="touch"||!p.isHovered||!P)&&(p.isHovered=!1,m(),l&&l({type:"hoverend",target:P,pointerType:L}),r&&r(!1),d(!1))},A={};return typeof PointerEvent<"u"&&(A.onPointerEnter=w=>{Bv&&w.pointerType==="mouse"||S(w,w.pointerType)},A.onPointerLeave=w=>{!i&&w.currentTarget.contains(w.target)&&C(w,w.pointerType)}),{hoverProps:A,triggerHoverEnd:C}},[n,r,l,i,p,b,m]);return v.useEffect(()=>{i&&x({currentTarget:p.target},p.pointerType)},[i]),{hoverProps:$,isHovered:u}}var xb=100,Eb=20;function pz(e){var n,r;const[l,i]=Ho(e,a$.variantKeys),{ref:u,as:d,title:p,description:b,className:m,classNames:$,toast:x,endContent:S,closeIcon:C,hideIcon:A=!1,placement:w="bottom-right",isRegionExpanded:L,hideCloseButton:P=!1,state:N,total:B=1,index:H=0,heights:I,promise:G,setHeights:J,toastOffset:W=0,motionProps:ne,timeout:ue=6e3,shouldShowTimeoutProgress:g=!1,icon:k,onClose:U,severity:E,maxVisibleToasts:_,loadingComponent:h,isClosing:D=!1,...O}=l,{isHovered:q,hoverProps:re}=D0({isDisabled:!1}),z=oa(),j=(r=(n=e?.disableAnimation)!=null?n:z?.disableAnimation)!=null?r:!1,Z=JP();let K=w;Z&&(w.includes("top")?K="top-center":K="bottom-center");const se=v.useRef(null),oe=v.useRef(null),ce=v.useRef(0),we=v.useRef(null),he=v.useRef(0),me=v.useRef(0);v.useEffect(()=>{we.current&&(we.current.style.width="0%")},[]);const[nt,Ke]=v.useState(!!G),[Ie,qe]=v.useState(!1),at=v.useRef(!1);v.useEffect(()=>{G&&G.finally(()=>{Ke(!1)})},[G]),v.useEffect(()=>{D&&!Ie&&qe(!0)},[D,Ie]),v.useEffect(()=>{Ie&&j&&(N.close(x.key),at.current||(at.current=!0,U?.()))},[Ie,j,N,x.key,U]),v.useEffect(()=>{const Te=We=>{if(!ue||nt)return;if(oe.current===null&&(oe.current=We),q||L){he.current+=We-oe.current,oe.current=null,se.current=requestAnimationFrame(Te);return}const zt=We-oe.current+he.current;me.current=zt,me.current>=ue&&qe(!0),ce.current=Math.min(zt/ue*100,100),we.current&&(we.current.style.width=`${g?ce.current:0}%`),ce.current<100&&(se.current=requestAnimationFrame(Te))};return se.current=requestAnimationFrame(Te),()=>{se.current!==null&&cancelAnimationFrame(se.current)}},[ue,g,N,q,H,B,L,nt,qe]);const ge=d||"div",pt=Oa(u),At=ot(m,$?.base),{toastProps:bt,contentProps:Ut,titleProps:kt,descriptionProps:Ae}=oD(l,N),[St,st]=v.useState(!1);v.useEffect(()=>{st(!0)},[]);const[fn,Ra]=v.useState(0);v.useLayoutEffect(()=>{if(!pt.current||!St||Ie)return;const Te=pt.current,We=Te.style.height;Te.style.height="auto";const zt=getComputedStyle(Te),wn=parseFloat(zt.marginTop),Un=parseFloat(zt.marginBottom),en=Te.getBoundingClientRect().height+wn+Un;Te.style.height=We,Ra(ca=>ca!==en?en:ca);const Fn=[...I];Fn.length>H?Fn[H]=en:Fn.push(en),J(Fn)},[St,B,J,H,Ie]);let Ft=4;for(let Te=H+1;Tea$({...i,disableAnimation:j}),[Ro(i)]),Bn=K.includes("top")?1:-1,Ha={hidden:{opacity:0,y:-50*Bn},visible:{opacity:1,y:0},exit:{opacity:0,y:-50*Bn}},[Jt,Dt]=v.useState(!1),[Be,_t]=v.useState(0),ct=(Te,We)=>{const zt=K.includes("right"),wn=K.includes("left"),Un=K==="top-center",en=K==="bottom-center";if(zt&&Te>=xb||wn&&Te<=-xb||Un&&We<=-Eb||en&&We>=Eb)return!0},Sr=Te=>{const We={top:0,bottom:0,right:0,left:0};return Te==="bottom-center"?(We.bottom=1,We):Te==="top-center"?(We.top=1,We):Te.includes("right")?(We.right=1,We):Te.includes("left")?(We.left=1,We):(We.left=1,We.right=1,We)};let Gt;Jt&&K==="bottom-center"||K==="top-center"?Gt=Math.max(0,1-Be/(Eb+5)):Jt&&(Gt=Math.max(0,1-Be/(xb+20)));const ke=v.useCallback((Te={})=>{const wn={"--top-extension":"16px","--bottom-extension":"16px"};return{ref:pt,className:ht.base({class:ot(At,$?.base)}),"data-has-title":ve(!Tb(p)),"data-has-description":ve(!Tb(b)),"data-placement":K,"data-drag-value":Be,"data-toast":!0,"aria-label":"toast","data-toast-exiting":ve(Ie),onTransitionEnd:j?void 0:()=>{Ie&&(N.close(x.key),at.current||(at.current=!0,U?.()))},style:{opacity:Gt,...wn},...it(Te,O,bt,re)}},[ht,$,bt,re,x,x.key,Gt,Ie,N,x.key,j]),et=v.useCallback((Te={})=>({className:ht.wrapper({class:$?.wrapper}),...Te}),[]),Vt=v.useCallback((Te={})=>({"aria-label":"descriptionIcon",className:ht.icon({class:$?.icon}),...Te}),[]),pn=v.useCallback((Te={})=>({className:ht.loadingComponent({class:$?.loadingComponent}),"aria-label":"loadingIcon",color:"current",...Te}),[]),Kt=v.useCallback((Te={})=>({classNames:{wrapper:ht.loadingComponent({class:$?.loadingComponent})},"aria-label":"loadingIcon",color:"current",...Te}),[]),_a=v.useCallback((Te={})=>({className:ht.content({class:$?.content}),...it(Te,O,Ut)}),[Ut]),En=v.useCallback((Te={})=>({className:ht.title({class:$?.title}),...it(Te,O,kt)}),[kt]),bn=v.useCallback((Te={})=>({className:ht.description({class:$?.description}),...it(Te,O,Ae)}),[Ae]),El=v.useCallback((Te={})=>({className:ht.closeButton({class:$?.closeButton}),"aria-label":"closeButton","data-hidden":ve(P),...it(Te,{onPress:()=>{qe(!0),at.current||(at.current=!0,U?.()),setTimeout(()=>document.body.focus(),0)}})}),[qe,U]),Cr=v.useCallback((Te={})=>({className:ht.closeIcon({class:$?.closeIcon}),"aria-label":"closeIcon",...Te}),[]),Ye=v.useCallback((Te={})=>{const We=L?_-1:Math.min(2,_-1),zt=B-H-1<=We,wn=K==="bottom-center"||K==="top-center"?"y":"x",Un={left:0,right:0,top:0,bottom:0},en=Sr(K),Fn=K.includes("top")?{top:L||Jt?Ft+W:(B-1-H)*8+W,bottom:"auto"}:K.includes("bottom")?{bottom:L||Jt?Ft+W:(B-1-H)*8+W,top:"auto"}:{};return{animate:{opacity:zt?1:0,pointerEvents:zt?"all":"none",scaleX:L||Jt?1:1-(B-1-H)*.1,height:L||Jt?fn:Vn,y:0,...Fn},drag:wn,dragConstraints:Un,exit:{opacity:0,transition:{duration:.3}},initial:{opacity:0,scale:1,y:-40*Bn},transition:{duration:.3,ease:"easeOut"},variants:Ha,dragElastic:en,onDragEnd:(ca,Ot)=>{const{x:Xe,y:Ct}=Ot.offset;if(Dt(!1),ct(Xe,Ct)){qe(!0);return}_t(0)},onDrag:(ca,Ot)=>{let Xe=0;K==="top-center"?Xe=-Ot.offset.y:K==="bottom-center"?Xe=Ot.offset.y:K.includes("right")?Xe=Ot.offset.x:K.includes("left")&&(Xe=-Ot.offset.x),Xe>=0&&_t(Xe)},onDragStart:()=>{Dt(!0)},"data-drag":ve(Jt),"data-placement":K,"data-drag-value":Be,className:ht.motionDiv({class:$?.motionDiv}),...Te,...ne}},[B,H,K,L,Ie,Ft,Bn,fn,Vn,Ha,$,Jt,ve,Dt,ct,ht,W,_]);return{Component:ge,title:p,description:b,icon:k,loadingComponent:h,domRef:pt,severity:E,closeIcon:C,classNames:$,color:i.color,hideIcon:A,placement:K,state:N,toast:x,disableAnimation:j,isProgressBarVisible:!!ue,total:B,index:H,getWrapperProps:et,getToastProps:ke,getTitleProps:En,getContentProps:_a,getDescriptionProps:bn,getCloseButtonProps:El,getIconProps:Vt,getMotionDivProps:Ye,getCloseIconProps:Cr,getLoadingComponentProps:pn,getSpinnerComponentProps:Kt,progressBarRef:we,endContent:S,slots:ht,isRegionExpanded:L,liftHeight:Ft,frontHeight:Vn,initialHeight:fn,isLoading:nt}}var bz=()=>vd(()=>import("./src-UW24ZMRV-VnAVJcYj.js"),__vite__mapDeps([2,1])).then(e=>e.default),G4=e=>{const{ripples:n=[],motionProps:r,color:l="currentColor",style:i,onClear:u}=e;return T.jsx(T.Fragment,{children:n.map(d=>{const p=Wy(.01*d.size,.2,d.size>100?.75:.5);return T.jsx(cd,{features:bz,children:T.jsx(ud,{mode:"popLayout",children:T.jsx(pd.span,{animate:{transform:"scale(2)",opacity:0},className:"heroui-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:d.y,left:d.x,width:`${d.size}px`,height:`${d.size}px`,...i},transition:{duration:p},onAnimationComplete:()=>{u(d.key)},...r})})},d.key)})})};G4.displayName="HeroUI.Ripple";var vz=G4;function mz(e={}){const[n,r]=v.useState([]),l=v.useCallback(u=>{const d=u.target,p=Math.max(d.clientWidth,d.clientHeight);r(b=>[...b,{key:Yy(b.length.toString()),size:p,x:u.x-p/2,y:u.y-p/2}])},[]),i=v.useCallback(u=>{r(d=>d.filter(p=>p.key!==u))},[]);return{ripples:n,onClear:i,onPress:l,...e}}var Uv=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{Uv.delete(e)});function gz(e,n){if(e===n)return e;let r=Uv.get(e);if(r)return r.forEach(i=>i.current=n),n;let l=Uv.get(n);return l?(l.forEach(i=>i.current=e),e):n}function hz(...e){return(...n)=>{for(let r of e)typeof r=="function"&&r(...n)}}function K4(e){var n,r,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(n=0;n=65&&i.charCodeAt(2)<=90?n[i]=hz(u,d):(i==="className"||i==="UNSAFE_className")&&typeof u=="string"&&typeof d=="string"?n[i]=yz(u,d):i==="id"&&u&&d?n.id=gz(u,d):n[i]=d!==void 0?d:u}}return n}var xz=new Set(["id"]),Ez=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),wz=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Tz=new Set(["dir","lang","hidden","inert","translate"]),_y=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Sz=/^(data-.*)$/;function Cz(e,n={}){let{labelable:r,isLink:l,global:i,events:u=i,propNames:d}=n,p={};for(const b in e)Object.prototype.hasOwnProperty.call(e,b)&&(xz.has(b)||r&&Ez.has(b)||l&&wz.has(b)||i&&Tz.has(b)||u&&_y.has(b)||b.endsWith("Capture")&&_y.has(b.slice(0,-7))||d?.has(b)||Sz.test(b))&&(p[b]=e[b]);return p}function Mz(e={}){let{autoFocus:n=!1,isTextInput:r,within:l}=e,i=v.useRef({isFocused:!1,isFocusVisible:n||U4()}),[u,d]=v.useState(!1),[p,b]=v.useState(()=>i.current.isFocused&&i.current.isFocusVisible),m=v.useCallback(()=>b(i.current.isFocused&&i.current.isFocusVisible),[]),$=v.useCallback(C=>{i.current.isFocused=C,d(C),m()},[m]);rz(C=>{i.current.isFocusVisible=C,m()},[],{isTextInput:r});let{focusProps:x}=F4({isDisabled:l,onFocusChange:$}),{focusWithinProps:S}=cz({isDisabled:!l,onFocusWithinChange:$});return{isFocused:u,isFocusVisible:p,focusProps:l?S:x}}function Lz(e,n){let{elementType:r="button",isDisabled:l,onPress:i,onPressStart:u,onPressEnd:d,onPressUp:p,onPressChange:b,preventFocusOnPress:m,allowFocusWhenDisabled:$,onClick:x,href:S,target:C,rel:A,type:w="button",allowTextSelectionOnPress:L}=e,P;r==="button"?P={type:w,disabled:l}:P={role:"button",href:r==="a"&&!l?S:void 0,target:r==="a"?C:void 0,type:r==="input"?w:void 0,disabled:r==="input"?l:void 0,"aria-disabled":!l||r==="input"?void 0:l,rel:r==="a"?A:void 0};let{pressProps:N,isPressed:B}=WD({onClick:x,onPressStart:u,onPressEnd:d,onPressUp:p,onPressChange:b,onPress:i,isDisabled:l,preventFocusOnPress:m,allowTextSelectionOnPress:L,ref:n}),{focusableProps:H}=uz(e,n);$&&(H.tabIndex=l?-1:H.tabIndex);let I=Hy(H,N,Cz(e,{labelable:!0}));return{isPressed:B,buttonProps:Hy(P,I,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}var[PO,Pz]=Fv({name:"ButtonGroupContext",strict:!1});function Az(e){var n,r,l,i,u,d,p,b,m;const $=Pz(),x=oa(),S=!!$,{ref:C,as:A,children:w,startContent:L,endContent:P,autoFocus:N,className:B,spinner:H,isLoading:I=!1,disableRipple:G=!1,fullWidth:J=(n=$?.fullWidth)!=null?n:!1,radius:W=$?.radius,size:ne=(r=$?.size)!=null?r:"md",color:ue=(l=$?.color)!=null?l:"default",variant:g=(i=$?.variant)!=null?i:"solid",disableAnimation:k=(d=(u=$?.disableAnimation)!=null?u:x?.disableAnimation)!=null?d:!1,isDisabled:U=(p=$?.isDisabled)!=null?p:!1,isIconOnly:E=(b=$?.isIconOnly)!=null?b:!1,spinnerPlacement:_="start",onPress:h,onClick:D,...O}=e,q=A||"button",re=typeof q=="string",z=Oa(C),j=(m=G||x?.disableRipple)!=null?m:k,{isFocusVisible:Z,isFocused:K,focusProps:se}=Mz({autoFocus:N}),oe=U||I,ce=v.useMemo(()=>I2({size:ne,color:ue,variant:g,radius:W,fullWidth:J,isDisabled:oe,isInGroup:S,disableAnimation:k,isIconOnly:E,className:B}),[ne,ue,g,W,J,oe,S,E,k,B]),{onPress:we,onClear:he,ripples:me}=mz(),nt=v.useCallback(Ae=>{j||oe||k||z.current&&we(Ae)},[j,oe,k,z,we]),{buttonProps:Ke,isPressed:Ie}=Lz({elementType:A,isDisabled:oe,onPress:Ao(h,nt),onClick:D,...O},z),{isHovered:qe,hoverProps:at}=D0({isDisabled:oe}),ge=v.useCallback((Ae={})=>({"data-disabled":ve(oe),"data-focus":ve(K),"data-pressed":ve(Ie),"data-focus-visible":ve(Z),"data-hover":ve(qe),"data-loading":ve(I),...it(Ke,se,at,nl(O,{enabled:re}),nl(Ae)),className:ce}),[I,oe,K,Ie,re,Z,qe,Ke,se,at,O,ce]),pt=Ae=>v.isValidElement(Ae)?v.cloneElement(Ae,{"aria-hidden":!0,focusable:!1}):null,At=pt(L),bt=pt(P),Ut=v.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[ne],[ne]),kt=v.useCallback(()=>({ripples:me,onClear:he}),[me,he]);return{Component:q,children:w,domRef:z,spinner:H,styles:ce,startContent:At,endContent:bt,isLoading:I,spinnerPlacement:_,spinnerSize:Ut,disableRipple:j,getButtonProps:ge,getRippleProps:kt,isIconOnly:E}}var I4=ja((e,n)=>{const{Component:r,domRef:l,children:i,spinnerSize:u,spinner:d=T.jsx(r0,{color:"current",size:u}),spinnerPlacement:p,startContent:b,endContent:m,isLoading:$,disableRipple:x,getButtonProps:S,getRippleProps:C,isIconOnly:A}=Az({...e,ref:n});return T.jsxs(r,{ref:l,...S(),children:[b,$&&p==="start"&&d,$&&A?null:i,$&&p==="end"&&d,m,!x&&T.jsx(vz,{...C()})]})});I4.displayName="HeroUI.Button";var kz=I4,wb={default:Yp,primary:Yp,secondary:Yp,success:OT,warning:NT,danger:HT},q4=ja((e,n)=>{const{severity:r,Component:l,icon:i,loadingComponent:u,domRef:d,endContent:p,color:b,hideIcon:m,closeIcon:$,disableAnimation:x,progressBarRef:S,classNames:C,slots:A,getWrapperProps:w,isProgressBarVisible:L,getToastProps:P,getContentProps:N,getTitleProps:B,getDescriptionProps:H,getCloseButtonProps:I,getIconProps:G,getMotionDivProps:J,getCloseIconProps:W,getLoadingComponentProps:ne,getSpinnerComponentProps:ue,isLoading:g}=pz({...e,ref:n}),k=typeof i=="function"?i(G()):v.isValidElement(i)&&v.cloneElement(i,G()),U=r?wb[r]:wb[b]||wb.default,E=u&&v.isValidElement(u)?v.cloneElement(u,ne()):null,_=g?E||T.jsx(r0,{...ue()}):null,h=typeof $=="function"?$({}):v.isValidElement($)&&v.cloneElement($,{}),D=T.jsxs(l,{ref:d,...P(),children:[T.jsxs("div",{...N(),children:[m&&!g?null:_||k||T.jsx(U,{...G()}),T.jsxs("div",{...w(),children:[T.jsx("div",{...B(),children:e.toast.content.title}),T.jsx("div",{...H(),children:e.toast.content.description})]})]}),L&&T.jsx("div",{className:A.progressTrack({class:C?.progressTrack}),children:T.jsx("div",{ref:S,className:A.progressIndicator({class:C?.progressIndicator})})}),T.jsx(kz,{isIconOnly:!0,...I(),children:h||T.jsx(RT,{...W()})}),p]});return T.jsx(T.Fragment,{children:x?D:T.jsx(pd.div,{...J(),children:D})})});q4.displayName="HeroUI.Toast";var Dz=q4;function zz(e){let n=v.useCallback(i=>e.subscribe(i),[e]),r=v.useCallback(()=>e.visibleToasts,[e]);return{visibleToasts:E4.useSyncExternalStore(n,r,r),add:(i,u)=>e.add(i,u),close:i=>e.close(i),pauseAll:()=>e.pauseAll(),resumeAll:()=>e.resumeAll()}}class Oz{runWithWrapUpdate(n,r){this.wrapUpdate?this.wrapUpdate(n,r):n()}subscribe(n){return this.subscriptions.add(n),()=>this.subscriptions.delete(n)}add(n,r={}){let l="_"+Math.random().toString(36).slice(2),i={...r,content:n,key:l,timer:r.timeout?new Nz(()=>this.close(l),r.timeout):void 0};return this.queue.unshift(i),this.updateVisibleToasts("add"),l}close(n){let r=this.queue.findIndex(u=>u.key===n);if(r>=0){var l,i;(l=(i=this.queue[r]).onClose)===null||l===void 0||l.call(i),this.queue.splice(r,1)}this.updateVisibleToasts("remove")}updateVisibleToasts(n){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let r of this.subscriptions)r()},n)}pauseAll(){for(let n of this.visibleToasts)n.timer&&n.timer.pause()}resumeAll(){for(let n of this.visibleToasts)n.timer&&n.timer.resume()}clear(){this.queue=[],this.updateVisibleToasts("clear")}constructor(n){this.queue=[],this.subscriptions=new Set,this.visibleToasts=[];var r;this.maxVisibleToasts=(r=n?.maxVisibleToasts)!==null&&r!==void 0?r:1/0,this.wrapUpdate=n?.wrapUpdate}}class Nz{reset(n){this.remaining=n,this.resume()}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime)}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback()},this.remaining))}constructor(n,r){this.startTime=null,this.remaining=r,this.callback=n}}var jz=()=>vd(()=>import("./index-lQterTXP.js"),__vite__mapDeps([3,1])).then(e=>e.domMax),os=null,Rz=()=>(os||(os=new Oz({maxVisibleToasts:1/0})),os),Hz=({placement:e="bottom-right",disableAnimation:n=!1,maxVisibleToasts:r=3,toastOffset:l=0,toastProps:i={},regionProps:u})=>{var d;const p=zz(Rz()),b=oa(),m=(d=n??b?.disableAnimation)!=null?d:!1;return T.jsx(cd,{features:jz,children:p.visibleToasts.length>0&&T.jsx(Bz,{disableAnimation:m,maxVisibleToasts:r,placement:e,toastOffset:l,toastProps:i,toastQueue:p,...u})})},is=({...e})=>os?os.add(e):null,_z=new Map,Vz=e=>_z.has(e);function Bz({toastQueue:e,placement:n,disableAnimation:r,maxVisibleToasts:l,toastOffset:i,toastProps:u={},className:d,classNames:p,...b}){var m,$;const x=v.useRef(null),{regionProps:S}=SD(b,e,x),{hoverProps:C,isHovered:A}=D0({isDisabled:!1}),[w,L]=v.useState(!1),P=v.useMemo(()=>AT({disableAnimation:r}),[r]),N=ot(p?.base,d);v.useEffect(()=>{function J(W){x.current&&!x.current.contains(W.target)&&L(!1)}return document.addEventListener("touchstart",J),()=>{document.removeEventListener("touchstart",J)}},[]);const[B,H]=v.useState([]),I=($=(m=e.visibleToasts)==null?void 0:m.length)!=null?$:0,G=v.useCallback(()=>{L(!0)},[]);return T.jsx("div",{...it(S,C),ref:x,className:P.base({class:N}),"data-placement":n,onTouchStart:G,children:T.jsx(ud,{children:[...e.visibleToasts].reverse().map((J,W)=>{if(r&&I-W>l)return null;if(r||I-W<=4||A&&I-W<=l+1){const ne=Vz(J.key);return T.jsx(Dz,{state:e,toast:J,...it(u,J.content,{isClosing:ne}),disableAnimation:r,heights:B,index:W,isRegionExpanded:A||w,maxVisibleToasts:l,placement:n,setHeights:H,toastOffset:i,total:I},J.key)}return null})})})}const Vy=e=>{let n;const r=new Set,l=(m,$)=>{const x=typeof m=="function"?m(n):m;if(!Object.is(x,n)){const S=n;n=$??(typeof x!="object"||x===null)?x:Object.assign({},n,x),r.forEach(C=>C(n,S))}},i=()=>n,p={setState:l,getState:i,getInitialState:()=>b,subscribe:m=>(r.add(m),()=>r.delete(m))},b=n=e(l,i,p);return p},Uz=(e=>e?Vy(e):Vy),Fz=e=>e;function Gz(e,n=Fz){const r=ie.useSyncExternalStore(e.subscribe,ie.useCallback(()=>n(e.getState()),[e,n]),ie.useCallback(()=>n(e.getInitialState()),[e,n]));return ie.useDebugValue(r),r}const By=e=>{const n=Uz(e),r=l=>Gz(n,l);return Object.assign(r,n),r},Kz=(e=>e?By(e):By),sa=window.location.origin,Iz=()=>null,ua=async(e,n={})=>{const r=Iz(),l={"Content-Type":"application/json",...n.headers};r&&(l.Authorization=r);const i=await fetch(e,{...n,headers:l});if(!i.ok)throw new Error(`API Error: ${i.status} ${i.statusText}`);return i.json()},Uy=async(e=!0)=>ua(`${sa}/getsetting?need_device_list=${e}`),qz=async e=>ua(`${sa}/savesetting`,{method:"POST",body:JSON.stringify(e)}),Yz=async()=>ua(`${sa}/getversion`),Wz=async(e="")=>await ua(`${sa}/getvolume?did=${e}`),Xz=async(e,n)=>await ua(`${sa}/setvolume`,{method:"POST",body:JSON.stringify({did:e,volume:n})}),Zz=async()=>ua(`${sa}/musiclist`),Qz=async(e="")=>ua(`${sa}/searchmusic?name=${encodeURIComponent(e)}`),Fy=async(e,n="",r="")=>ua(`${sa}/playmusiclist`,{method:"POST",body:JSON.stringify({did:e,listname:n,musicname:r})}),Jz=async(e="")=>await ua(`${sa}/playingmusic?did=${e}`),xl=async(e,n)=>ua(`${sa}/cmd`,{method:"POST",body:JSON.stringify({did:e,cmd:n})}),eO=e=>xl(e,"关机"),tO=e=>xl(e,"下一首"),nO=e=>xl(e,"上一首"),aO=e=>xl(e,"刷新列表"),rO=(e,n)=>xl(e,n?"shuffle_on":"shuffle_off"),lO=(e,n)=>xl(e,`loop_${n}`),oO=(e,n)=>xl(e,{all_loop:"全部循环",single_loop:"单曲循环",random:"随机播放",single:"单曲播放",sequential:"顺序播放"}[n]),zs=Kz((e,n)=>({devices:[],selectedDevice:"",playlists:{},selectedPlaylist:"",currentPlaylist:[],musicList:[],currentMusic:null,isPlaying:!1,playProgress:{offset:0,duration:0},volume:50,isShuffleOn:!1,loopMode:"off",playMode:"sequential",loading:!1,error:null,settings:null,version:null,loadDevices:async()=>{try{e({loading:!0});const r=await Uy(!0);if(r&&r.device_list){const l=r.device_list.map(i=>({did:i.miotDID,...i}));e({devices:l}),l.length>0&&!n().selectedDevice&&e({selectedDevice:l[0].did})}}catch(r){e({error:"Failed to load devices: "+r.message})}finally{e({loading:!1})}},loadMusicList:async()=>{try{const r=await Zz();if(typeof r=="object"&&r!==null)if(e({playlists:r}),r.所有歌曲&&Array.isArray(r.所有歌曲))e({musicList:r.所有歌曲});else if(r.全部&&Array.isArray(r.全部))e({musicList:r.全部});else{const l=Object.keys(r)[0];l&&Array.isArray(r[l])&&e({musicList:r[l]})}}catch(r){console.error("Failed to load music list:",r)}},loadCurrentMusic:async()=>{const{selectedDevice:r}=n();if(r)try{const l=await Jz(r);l&&l.ret==="OK"&&e({currentMusic:{name:l.cur_music,playlist:l.cur_playlist},isPlaying:l.is_playing,playProgress:{offset:l.offset||0,duration:l.duration||0}})}catch(l){console.error("Failed to load current music:",l)}},loadVolume:async()=>{const{selectedDevice:r}=n();if(r)try{const l=await Wz(r);l&&l.ret==="OK"&&typeof l.volume=="number"&&e({volume:l.volume})}catch(l){console.error("Failed to load volume:",l)}},setDevice:r=>{e({selectedDevice:r})},setPlaylist:r=>{const{playlists:l}=n();e({selectedPlaylist:r}),r&&l[r]&&e({currentPlaylist:l[r],musicList:l[r]})},playMusicFromPlaylist:async(r,l="")=>{const{selectedDevice:i}=n();if(!i){e({error:"Please select a device first"});return}try{await Fy(i,r,l),await n().loadCurrentMusic()}catch(u){e({error:"Failed to play music: "+u.message})}},togglePlayPause:async()=>{const{selectedDevice:r}=n();if(r)try{n().isPlaying?(await eO(r),await n().loadCurrentMusic()):(await Fy(r,n().selectedPlaylist,n().currentMusic.name),await n().loadCurrentMusic())}catch(l){e({error:"Failed to toggle play/pause: "+l.message})}},playNext:async()=>{const{selectedDevice:r}=n();if(r)try{await tO(r),await n().loadCurrentMusic()}catch(l){e({error:"Failed to play next: "+l.message})}},playPrevious:async()=>{const{selectedDevice:r}=n();if(r)try{await nO(r),await n().loadCurrentMusic()}catch(l){e({error:"Failed to play previous: "+l.message})}},setVolume:async r=>{const{selectedDevice:l}=n();if(l)try{e({volume:r})}catch(i){e({error:"Failed to set volume: "+i.message})}},setVolumeEnd:async r=>{const{selectedDevice:l}=n();if(l)try{await Xz(l,r)}catch(i){e({error:"Failed to set volume: "+i.message})}},toggleShuffle:async()=>{const{selectedDevice:r,isShuffleOn:l}=n();if(r)try{const i=!l;e({isShuffleOn:i}),await rO(r,i)}catch(i){e({error:"Failed to toggle shuffle: "+i.message})}},toggleLoop:async()=>{const{selectedDevice:r,loopMode:l}=n();if(r)try{const i=["off","all","one"],u=i.indexOf(l),d=i[(u+1)%i.length];e({loopMode:d}),await lO(r,d)}catch(i){e({error:"Failed to toggle loop: "+i.message})}},searchMusic:async r=>{try{e({loading:!0});const l=await Qz(r);return Array.isArray(l)&&e({musicList:l}),l}catch(l){return e({error:"Failed to search: "+l.message}),[]}finally{e({loading:!1})}},refreshMusicList:async()=>{const{selectedDevice:r}=n();if(!r){is({title:"刷新失败",description:"请先选择设备",color:"danger"});return}try{await aO(r),await n().loadMusicList(),is({title:"刷新成功",description:"音乐列表已刷新",color:"success"})}catch(l){is({title:"刷新失败",description:l.message,color:"danger"})}},refreshPlaylists:async()=>{await n().loadMusicList()},setError:r=>{e({error:r})},clearError:()=>{e({error:null})},loadSettings:async()=>{try{e({loading:!0});const r=await Uy(!1);return e({settings:r}),r}catch(r){throw e({error:"Failed to load settings: "+r.message}),r}finally{e({loading:!1})}},saveSettings:async r=>{try{return e({loading:!0}),await qz(r),e({settings:r}),{success:!0}}catch(l){throw e({error:"Failed to save settings: "+l.message}),l}finally{e({loading:!1})}},getVersion:async()=>{try{const r=await Yz();return e({version:r.version}),r.version}catch(r){throw e({error:"Failed to get version: "+r.message}),r}},setPlayMode:async r=>{const{selectedDevice:l}=n();if(l)try{e({playMode:r}),await oO(l,r)}catch(i){e({error:"Failed to set play mode: "+i.message})}}})),iO=({onOpenSettings:e})=>{const{playlists:n,selectedPlaylist:r,setPlaylist:l,refreshMusicList:i}=zs();return T.jsxs("div",{className:"w-64 bg-white/40 backdrop-blur-md border-r border-gray-200/50 flex flex-col",children:[T.jsx("div",{className:"p-6 border-b border-gray-200/50",children:T.jsx("div",{className:"flex items-center gap-3",children:T.jsxs("div",{children:[T.jsx("h1",{className:"text-lg font-bold text-gray-800",children:"SoundScape"}),T.jsx("p",{className:"text-xs text-gray-600",children:"xiaomusic音乐播放器"})]})})}),T.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-thin",children:T.jsxs("div",{className:"p-4",children:[T.jsxs("div",{className:"flex items-center justify-between mb-3",children:[T.jsx("h2",{className:"text-sm font-semibold text-gray-700",children:"播放列表"}),T.jsx("button",{onClick:i,className:"text-gray-400 hover:text-[#31c27c] transition-colors",title:"刷新列表",children:T.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})})]}),T.jsx("div",{className:"space-y-1",children:Object.keys(n).map(u=>T.jsx("button",{onClick:()=>l(u),className:`w-full text-left px-3 py-2 rounded-lg text-sm transition-all ${r===u?"bg-[#31c27c] text-white shadow-md shadow-[#31c27c]/20":"text-gray-700 hover:bg-white/50"}`,children:T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",children:T.jsx("path",{d:"M18 3a1 1 0 00-1.196-.98l-10 2A1 1 0 006 5v9.114A4.369 4.369 0 005 14c-1.657 0-3 .895-3 2s1.343 2 3 2 3-.895 3-2V7.82l8-1.6v5.894A4.37 4.37 0 0015 12c-1.657 0-3 .895-3 2s1.343 2 3 2 3-.895 3-2V3z"})}),T.jsx("span",{className:"truncate",children:u}),n[u]&&T.jsx("span",{className:"ml-auto text-xs opacity-60",children:n[u].length})]})},u))})]})}),T.jsx("div",{className:"p-4 border-t border-gray-200/50",children:T.jsxs("button",{onClick:e,className:"w-full flex items-center gap-3 px-3 py-2 rounded-lg text-gray-700 hover:bg-white/50 transition-all",children:[T.jsxs("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),T.jsx("span",{className:"text-sm font-medium",children:"设置"})]})})]})},sO=()=>T.jsxs("div",{className:"relative w-8 h-8",children:[T.jsx("svg",{className:"w-8 h-8 text-white animate-pulse",fill:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{d:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"})}),T.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:T.jsxs("div",{className:"flex items-center gap-1",children:[T.jsx("div",{className:"w-1 h-3 bg-white rounded-full animate-pulse",style:{animationDelay:"0ms",animationDuration:"800ms"}}),T.jsx("div",{className:"w-1 h-4 bg-white rounded-full animate-pulse",style:{animationDelay:"200ms",animationDuration:"800ms"}}),T.jsx("div",{className:"w-1 h-2 bg-white rounded-full animate-pulse",style:{animationDelay:"400ms",animationDuration:"800ms"}}),T.jsx("div",{className:"w-1 h-5 bg-white rounded-full animate-pulse",style:{animationDelay:"600ms",animationDuration:"800ms"}}),T.jsx("div",{className:"w-1 h-3 bg-white rounded-full animate-pulse",style:{animationDelay:"800ms",animationDuration:"800ms"}})]})}),T.jsx("div",{className:"absolute -inset-2 bg-white/20 rounded-full animate-ping",style:{animationDuration:"2s"}})]}),uO=()=>T.jsxs("div",{className:"relative w-8 h-8",children:[T.jsxs("svg",{className:"w-8 h-8 text-white",fill:"currentColor",viewBox:"0 0 24 24",children:[T.jsx("rect",{x:"6",y:"4",width:"4",height:"16",rx:"1"}),T.jsx("rect",{x:"14",y:"4",width:"4",height:"16",rx:"1"})]}),T.jsx("div",{className:"absolute -top-1 -right-1 text-white text-xs font-bold animate-bounce",style:{animationDuration:"3s"},children:"Z"})]}),cO=()=>{const{devices:e,selectedDevice:n,currentMusic:r,isPlaying:l,volume:i,isShuffleOn:u,loopMode:d,playMode:p,playProgress:b,setDevice:m,togglePlayPause:$,playNext:x,playPrevious:S,setVolume:C,setVolumeEnd:A,toggleShuffle:w,toggleLoop:L,setPlayMode:P}=zs(),[N,B]=v.useState(!1),[H,I]=v.useState(!1),G=v.useRef(null),J=v.useRef(null);v.useEffect(()=>{const U=E=>{G.current&&!G.current.contains(E.target)&&B(!1)};if(N)return document.addEventListener("mousedown",U),()=>document.removeEventListener("mousedown",U)},[N]),v.useEffect(()=>{const U=E=>{J.current&&!J.current.contains(E.target)&&I(!1)};if(H)return document.addEventListener("mousedown",U),()=>document.removeEventListener("mousedown",U)},[H]);const W=()=>r?r.name||r.title||r.musicname||"未知歌曲":"未播放",ne=U=>{if(!U||U===0)return"0:00";const E=Math.floor(U/60),_=Math.floor(U%60);return`${E}:${_.toString().padStart(2,"0")}`},ue=b.duration>0?b.offset/b.duration*100:0,g=()=>{switch(p){case"all_loop":return T.jsxs("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:[T.jsx("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"}),T.jsx("path",{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"})]});case"single_loop":return T.jsxs("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:[T.jsx("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"}),T.jsx("circle",{cx:"12",cy:"12",r:"3"})]});case"random":return T.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{d:"M10.59 9.17L5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41l-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.04 2.04-3.13-3.13z"})});case"single":return T.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{d:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"})});default:return T.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{d:"M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v-2H3v2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z"})})}},k=()=>({all_loop:"全部循环",single_loop:"单曲循环",random:"随机播放",single:"单曲播放",sequential:"顺序播放"})[p]||"顺序播放";return T.jsxs("div",{className:"flex flex-col bg-white/40 backdrop-blur-md border-t border-gray-200/50",children:[T.jsx("div",{className:"h-1 bg-gray-200 overflow-hidden",children:T.jsx("div",{className:"h-full bg-[#31c27c] transition-all duration-300",style:{width:`${ue}%`}})}),T.jsxs("div",{className:"h-20 flex items-center justify-between px-6",children:[T.jsxs("div",{className:"flex items-center gap-4 flex-1 min-w-0",children:[T.jsx("div",{className:`w-14 h-14 rounded-xl bg-gradient-to-br from-[#31c27c] to-[#28a869] flex items-center justify-center flex-shrink-0 shadow-lg ${l?"animate-pulse":""}`,children:l?T.jsx(sO,{}):T.jsx(uO,{})}),T.jsxs("div",{className:"min-w-0 flex-1",children:[T.jsx("h3",{className:"text-sm font-semibold text-gray-800 truncate",children:W()}),r?.artist&&T.jsx("p",{className:"text-xs text-gray-600 truncate",children:r.artist})]})]}),T.jsxs("div",{className:"flex items-center gap-4 flex-1 justify-center",children:[T.jsxs("div",{className:"relative flex items-center",ref:J,children:[T.jsx("button",{onClick:()=>I(!H),className:"text-gray-600 hover:text-gray-800 transition-colors flex items-center justify-center",title:`播放模式: ${k()}`,children:g()}),H&&T.jsxs("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-3 bg-white/95 backdrop-blur-xl rounded-2xl shadow-2xl border border-gray-200/50 p-4 animate-in fade-in slide-in-from-bottom-2 min-w-[140px]",children:[T.jsxs("div",{className:"flex flex-col gap-2",children:[T.jsx("button",{onClick:()=>{P("all_loop"),I(!1)},className:`px-3 py-2 text-sm rounded-lg transition-colors text-left ${p==="all_loop"?"bg-[#31c27c] text-white":"text-gray-700 hover:bg-gray-100"}`,children:"全部循环"}),T.jsx("button",{onClick:()=>{P("single_loop"),I(!1)},className:`px-3 py-2 text-sm rounded-lg transition-colors text-left ${p==="single_loop"?"bg-[#31c27c] text-white":"text-gray-700 hover:bg-gray-100"}`,children:"单曲循环"}),T.jsx("button",{onClick:()=>{P("random"),I(!1)},className:`px-3 py-2 text-sm rounded-lg transition-colors text-left ${p==="random"?"bg-[#31c27c] text-white":"text-gray-700 hover:bg-gray-100"}`,children:"随机播放"}),T.jsx("button",{onClick:()=>{P("single"),I(!1)},className:`px-3 py-2 text-sm rounded-lg transition-colors text-left ${p==="single"?"bg-[#31c27c] text-white":"text-gray-700 hover:bg-gray-100"}`,children:"单曲播放"}),T.jsx("button",{onClick:()=>{P("sequential"),I(!1)},className:`px-3 py-2 text-sm rounded-lg transition-colors text-left ${p==="sequential"?"bg-[#31c27c] text-white":"text-gray-700 hover:bg-gray-100"}`,children:"顺序播放"})]}),T.jsx("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 -mt-1",children:T.jsx("div",{className:"w-3 h-3 bg-white/95 border-r border-b border-gray-200/50 rotate-45"})})]})]}),T.jsx("button",{onClick:S,className:"text-gray-600 hover:text-gray-800 transition-colors",title:"上一曲",children:T.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 20 20",children:T.jsx("path",{d:"M8.445 14.832A1 1 0 0010 14v-2.798l5.445 3.63A1 1 0 0017 14V6a1 1 0 00-1.555-.832L10 8.798V6a1 1 0 00-1.555-.832l-6 4a1 1 0 000 1.664l6 4z"})})}),T.jsx("button",{onClick:$,className:"w-12 h-12 rounded-full bg-[#31c27c] hover:bg-[#28a869] text-white flex items-center justify-center transition-all shadow-lg hover:shadow-xl",title:l?"暂停":"播放",children:l?T.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 20 20",children:T.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zM7 8a1 1 0 012 0v4a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v4a1 1 0 102 0V8a1 1 0 00-1-1z",clipRule:"evenodd"})}):T.jsx("svg",{className:"w-6 h-6 ml-0.5",fill:"currentColor",viewBox:"0 0 20 20",children:T.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z",clipRule:"evenodd"})})}),T.jsx("button",{onClick:x,className:"text-gray-600 hover:text-gray-800 transition-colors",title:"下一曲",children:T.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 20 20",children:T.jsx("path",{d:"M4.555 5.168A1 1 0 003 6v8a1 1 0 001.555.832L10 11.202V14a1 1 0 001.555.832l6-4a1 1 0 000-1.664l-6-4A1 1 0 0010 6v2.798l-5.445-3.63z"})})}),T.jsxs("div",{className:"relative flex items-center",ref:G,children:[T.jsx("button",{onClick:()=>B(!N),className:"text-gray-600 hover:text-gray-800 transition-colors flex items-center justify-center",title:"音量控制",children:T.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",children:T.jsx("path",{fillRule:"evenodd",d:"M9.383 3.076A1 1 0 0110 4v12a1 1 0 01-1.707.707L4.586 13H2a1 1 0 01-1-1V8a1 1 0 011-1h2.586l3.707-3.707a1 1 0 011.09-.217zM14.657 2.929a1 1 0 011.414 0A9.972 9.972 0 0119 10a9.972 9.972 0 01-2.929 7.071 1 1 0 01-1.414-1.414A7.971 7.971 0 0017 10c0-2.21-.894-4.208-2.343-5.657a1 1 0 010-1.414zm-2.829 2.828a1 1 0 011.415 0A5.983 5.983 0 0115 10a5.984 5.984 0 01-1.757 4.243 1 1 0 01-1.415-1.415A3.984 3.984 0 0013 10a3.983 3.983 0 00-1.172-2.828 1 1 0 010-1.415z",clipRule:"evenodd"})})}),N&&T.jsxs("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-3 bg-white/95 backdrop-blur-xl rounded-2xl shadow-2xl border border-gray-200/50 p-5 animate-in fade-in slide-in-from-bottom-2",children:[T.jsxs("div",{className:"flex flex-col items-center gap-4",children:[T.jsx("span",{className:"text-xs font-semibold text-gray-700",children:"音量"}),T.jsx(vk,{size:"sm",step:1,maxValue:100,minValue:0,value:i,onChange:C,onChangeEnd:A,orientation:"vertical",className:"h-32",classNames:{track:"bg-gray-200",filler:"bg-[#31c27c]",thumb:"bg-[#31c27c] shadow-md"}}),T.jsxs("span",{className:"text-lg font-bold text-[#31c27c]",children:[i,"%"]})]}),T.jsx("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 -mt-1",children:T.jsx("div",{className:"w-3 h-3 bg-white/95 border-r border-b border-gray-200/50 rotate-45"})})]})]})]}),T.jsxs("div",{className:"flex items-center gap-4 flex-1 justify-end",children:[T.jsxs("span",{className:"text-xs text-gray-600 font-medium",children:[ne(b.offset),"/",ne(b.duration)]}),T.jsx("select",{value:n,onChange:U=>m(U.target.value),className:"text-xs bg-white/50 border border-gray-200 rounded-lg px-3 py-2 text-gray-700 focus:outline-none focus:ring-2 focus:ring-[#31c27c]",children:e.map(U=>T.jsx("option",{value:U.did,children:U.name||U.did},U.did))})]})]})]})},dO=()=>{const{selectedPlaylist:e,musicList:n,currentMusic:r,loading:l,playMusicFromPlaylist:i,searchMusic:u,refreshMusicList:d}=zs(),[p,b]=v.useState(""),m=()=>{p.trim()&&u(p)},$=()=>{b(""),d()},x=w=>{b(w),w.trim()===""&&d()},C=r?r.name||r.musicname||r.title:null,A=n;return T.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[T.jsx("div",{className:"bg-white/40 backdrop-blur-md border-b border-gray-200/50",children:T.jsxs("div",{className:"p-6",children:[T.jsxs("div",{className:"flex gap-3 mb-6",children:[T.jsxs("div",{className:"flex-1 relative",children:[T.jsx("input",{type:"text",placeholder:"搜索歌曲...",value:p,onChange:w=>x(w.target.value),onKeyPress:w=>w.key==="Enter"&&m(),className:"w-full px-4 py-3 pl-11 bg-white/50 border border-gray-200 rounded-full text-sm text-gray-800 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-[#31c27c] focus:bg-white/70 transition-all"}),T.jsx("svg",{className:"w-5 h-5 text-gray-400 absolute left-4 top-1/2 transform -translate-y-1/2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),p&&T.jsx("button",{onClick:$,className:"absolute right-4 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600",children:T.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",children:T.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})})]}),T.jsx("button",{onClick:m,className:"px-6 py-3 bg-[#31c27c] hover:bg-[#28a869] text-white rounded-full text-sm font-medium transition-all shadow-md hover:shadow-lg",children:"搜索"})]}),e&&T.jsxs("div",{className:"flex items-center gap-2 justify-between",children:[T.jsxs("div",{children:[T.jsx("span",{className:"text-sm text-gray-600",children:"当前列表:"}),T.jsx("span",{className:"px-3 py-1 rounded-full text-sm font-medium bg-[#31c27c] text-white shadow-md ml-2",children:e})]}),T.jsx("div",{className:"flex items-center gap-3",children:T.jsxs("span",{className:"text-sm text-gray-600",children:["共 ",A.length," 首"]})})]})]})}),T.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-thin",children:T.jsx("div",{className:"p-6",children:l?T.jsxs("div",{className:"text-center py-12 text-white/70",children:[T.jsx("div",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-[#31c27c]"}),T.jsx("p",{className:"mt-2 text-sm",children:"加载中..."})]}):A.length===0?T.jsxs("div",{className:"text-center py-12 text-gray-500",children:[T.jsx("svg",{className:"w-16 h-16 mx-auto mb-4 text-gray-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"})}),T.jsx("p",{className:"text-sm",children:"暂无歌曲"})]}):T.jsx("div",{className:"bg-white/50 backdrop-blur-md rounded-2xl shadow-lg overflow-hidden border border-gray-200/50",children:T.jsxs("table",{className:"w-full",children:[T.jsx("thead",{className:"bg-gray-50/50 border-b border-gray-200",children:T.jsxs("tr",{children:[T.jsx("th",{className:"px-6 py-3 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider w-16",children:"#"}),T.jsx("th",{className:"px-6 py-3 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider",children:"歌曲"}),T.jsx("th",{className:"px-6 py-3 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider w-32",children:"操作"})]})}),T.jsx("tbody",{className:"divide-y divide-gray-200",children:A.map((w,L)=>{const P=typeof w=="string"?w:w.name||w.musicname||w.title||`Track ${L+1}`,N=C===P;return T.jsxs("tr",{className:`hover:bg-gray-50/70 transition-colors cursor-pointer group ${N?"bg-[#31c27c]/10":""}`,onDoubleClick:()=>{i(e,P)},children:[T.jsx("td",{className:"px-6 py-4",children:T.jsx("span",{className:`text-sm ${N?"text-[#31c27c] font-semibold":"text-gray-500"}`,children:L+1})}),T.jsx("td",{className:"px-6 py-4",children:T.jsx("div",{className:"flex items-center gap-3",children:T.jsx("div",{className:"min-w-0",children:T.jsx("p",{className:`text-sm font-medium truncate ${N?"text-[#31c27c]":"text-gray-800"}`,children:P})})})}),T.jsx("td",{className:"px-6 py-4",children:T.jsx("button",{onClick:B=>{B.stopPropagation(),i(e,P)},className:"text-[#31c27c] hover:text-[#28a869] transition-colors opacity-0 group-hover:opacity-100",children:T.jsx("svg",{className:"w-8 h-8",fill:"currentColor",viewBox:"0 0 20 20",children:T.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z",clipRule:"evenodd"})})})})]},L)})})]})})})}),T.jsx(cO,{})]})},fO=({onClose:e})=>{const[n,r]=v.useState("basic"),{settings:l,version:i,loadSettings:u,saveSettings:d,getVersion:p}=zs(),[b,m]=v.useState({}),[$,x]=v.useState(!1),S=[{id:"basic",label:"账号设置",icon:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"},{id:"preference",label:"目录配置",icon:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},{id:"users",label:"服务配置",icon:"M5 12h14M12 5l7 7-7 7"},{id:"schedule",label:"语音控制配置",icon:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"},{id:"storage",label:"对话提示音配置",icon:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"},{id:"about",label:"关于",icon:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}];v.useEffect(()=>{l?m(l):u()},[l,u]),v.useEffect(()=>{l&&m(l)},[l]),v.useEffect(()=>{i||p()},[i,p]);const C=(w,L)=>{m(P=>({...P,[w]:L}))},A=async()=>{try{x(!0),await d(b),is({title:"保存成功",description:"设置已成功保存",color:"success",placement:"top-center"})}catch(w){is({title:"保存失败",description:w.message,color:"danger"})}finally{x(!1)}};return T.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/30 backdrop-blur-sm",children:T.jsxs("div",{className:"w-full h-full max-w-6xl max-h-[90vh] m-6 flex bg-white backdrop-blur-xl rounded-2xl shadow-2xl border border-gray-200 overflow-hidden",children:[T.jsx("div",{className:"w-64 border-r border-gray-300 flex flex-col",children:T.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-thin p-4",children:T.jsx("div",{className:"space-y-1",children:S.map(w=>T.jsxs("button",{onClick:()=>r(w.id),className:`w-full flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm transition-all ${n===w.id?"bg-[#31c27c] text-white shadow-sm":"text-gray-700 hover:bg-white/50"}`,children:[T.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:w.icon})}),T.jsx("span",{children:w.label})]},w.id))})})}),T.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[T.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-gray-300 ",children:[T.jsxs("div",{className:"flex items-center gap-3",children:[T.jsxs("svg",{className:"w-6 h-6 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),T.jsx("h2",{className:"text-xl font-bold text-gray-800",children:S.find(w=>w.id===n)?.label||"基本信息"})]}),T.jsx("button",{onClick:e,className:"p-2 rounded-lg hover:bg-gray-100 transition-colors",title:"关闭",children:T.jsx("svg",{className:"w-6 h-6 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),T.jsxs("div",{className:"flex-1 overflow-y-auto scrollbar-thin p-6",children:[n==="basic"&&T.jsxs("div",{className:"max-w-2xl space-y-8",children:[T.jsx(Ge,{label:"小米账号",labelPlacement:"outside",placeholder:"请输入小米账号",value:b.account||"",onChange:w=>C("account",w.target.value)}),T.jsx(Ge,{label:"密码",labelPlacement:"outside",type:"password",placeholder:"请输入密码",value:b.password||"",onChange:w=>C("password",w.target.value)}),T.jsx("div",{className:"border-gray-200",children:T.jsx(uo,{color:"success",className:"text-white",onPress:A,isLoading:$,children:"保存更改"})})]}),n==="preference"&&T.jsxs("div",{className:"max-w-2xl space-y-8",children:[T.jsx(Ge,{label:"音乐目录",labelPlacement:"outside",placeholder:"请输入音乐目录路径",value:b.music_path||"",onChange:w=>C("music_path",w.target.value)}),T.jsx(Ge,{label:"音乐下载目录",labelPlacement:"outside",placeholder:"请输入下载目录路径",value:b.download_path||"",onChange:w=>C("download_path",w.target.value)}),T.jsx(Ge,{label:"临时文件目录",labelPlacement:"outside",placeholder:"请输入临时文件目录路径",value:b.temp_path||"",onChange:w=>C("temp_path",w.target.value)}),T.jsx(Ge,{label:"配置文件目录",labelPlacement:"outside",placeholder:"请输入配置文件目录路径",value:b.conf_path||"",onChange:w=>C("conf_path",w.target.value)}),T.jsx(Ge,{label:"缓存文件目录",labelPlacement:"outside",placeholder:"请输入缓存目录路径",value:b.cache_dir||"",onChange:w=>C("cache_dir",w.target.value)}),T.jsx(Ge,{label:"日志文件",labelPlacement:"outside",placeholder:"请输入日志文件路径",value:b.log_file||"",onChange:w=>C("log_file",w.target.value)}),T.jsx(Ge,{label:"FFmpeg路径",labelPlacement:"outside",placeholder:"请输入FFmpeg路径",value:b.ffmpeg_location||"",onChange:w=>C("ffmpeg_location",w.target.value)}),T.jsx("div",{className:"border-gray-200",children:T.jsx(uo,{color:"success",className:"text-white",onClick:A,isLoading:$,children:"保存更改"})})]}),n==="users"&&T.jsxs("div",{className:"max-w-2xl space-y-8",children:[T.jsx(Ge,{label:"主机名/IP",labelPlacement:"outside",placeholder:"请输入主机名或IP地址",value:b.hostname||"",onChange:w=>C("hostname",w.target.value)}),T.jsx(Ge,{label:"本地端口",labelPlacement:"outside",type:"number",placeholder:"请输入端口号",value:b.port||"",onChange:w=>C("port",w.target.value)}),T.jsx(Ge,{label:"公共端口",labelPlacement:"outside",type:"number",placeholder:"请输入公共端口号",value:b.public_port||"",onChange:w=>C("public_port",w.target.value)}),T.jsx(Ge,{label:"代理地址",labelPlacement:"outside",placeholder:"请输入代理地址",value:b.proxy||"",onChange:w=>C("proxy",w.target.value)}),T.jsx("div",{className:"flex items-center gap-2",children:T.jsx(pc,{color:"success",isSelected:b.disable_httpauth||!1,onValueChange:w=>C("disable_httpauth",w),children:"禁用HTTP认证"})}),!b.disable_httpauth&&T.jsxs(T.Fragment,{children:[T.jsx(Ge,{label:"HTTP认证用户名",labelPlacement:"outside",placeholder:"请输入用户名",value:b.httpauth_username||"",onChange:w=>C("httpauth_username",w.target.value)}),T.jsx(Ge,{label:"HTTP认证密码",labelPlacement:"outside",type:"password",placeholder:"请输入密码",value:b.httpauth_password||"",onChange:w=>C("httpauth_password",w.target.value)})]}),T.jsx("div",{className:"border-gray-200",children:T.jsx(uo,{color:"success",className:"text-white",onClick:A,isLoading:$,children:"保存更改"})})]}),n==="schedule"&&T.jsxs("div",{className:"max-w-2xl space-y-8",children:[T.jsx(Ge,{label:"允许唤醒的命令",labelPlacement:"outside",placeholder:"请输入允许的命令,用逗号分隔",value:b.active_cmd||"",onChange:w=>C("active_cmd",w.target.value)}),T.jsx(Ge,{label:"播放本地歌曲口令",labelPlacement:"outside",placeholder:"请输入口令,用逗号分隔",value:b.keywords_playlocal||"",onChange:w=>C("keywords_playlocal",w.target.value)}),T.jsx(Ge,{label:"播放歌曲口令",labelPlacement:"outside",placeholder:"请输入口令,用逗号分隔",value:b.keywords_play||"",onChange:w=>C("keywords_play",w.target.value)}),T.jsx(Ge,{label:"播放列表口令",labelPlacement:"outside",placeholder:"请输入口令,用逗号分隔",value:b.keywords_playlist||"",onChange:w=>C("keywords_playlist",w.target.value)}),T.jsx(Ge,{label:"停止口令",labelPlacement:"outside",placeholder:"请输入口令,用逗号分隔",value:b.keywords_stop||"",onChange:w=>C("keywords_stop",w.target.value)}),T.jsx(Ge,{label:"本地搜索播放口令",labelPlacement:"outside",placeholder:"请输入口令,用逗号分隔",value:b.keywords_search_playlocal||"",onChange:w=>C("keywords_search_playlocal",w.target.value)}),T.jsx(Ge,{label:"搜索播放口令",labelPlacement:"outside",placeholder:"请输入口令,用逗号分隔",value:b.keywords_search_play||"",onChange:w=>C("keywords_search_play",w.target.value)}),T.jsx("div",{className:"flex items-center gap-2",children:T.jsx(pc,{color:"success",isSelected:b.enable_cmd_del_music||!1,onValueChange:w=>C("enable_cmd_del_music",w),children:"开启语音删除歌曲"})}),T.jsx("div",{className:"border-gray-200",children:T.jsx(uo,{color:"success",className:"text-white",onClick:A,isLoading:$,children:"保存更改"})})]}),n==="storage"&&T.jsxs("div",{className:"max-w-2xl space-y-8",children:[T.jsx("div",{className:"flex items-center gap-2",children:T.jsx(pc,{color:"success",isSelected:b.enable_pull_ask||!1,onValueChange:w=>C("enable_pull_ask",w),children:"获取对话记录"})}),T.jsx(Ge,{label:"获取对话间隔(秒)",labelPlacement:"outside",type:"number",placeholder:"请输入间隔秒数",value:b.pull_ask_sec||"",onChange:w=>C("pull_ask_sec",w.target.value)}),T.jsx("div",{className:"flex items-center gap-2 mb-10",children:T.jsx(pc,{color:"success",isSelected:b.get_ask_by_mina||!1,onValueChange:w=>C("get_ask_by_mina",w),children:"特殊型号获取对话记录"})}),T.jsx(Ge,{label:"停止提示音",labelPlacement:"outside",placeholder:"请输入停止提示音内容",value:b.stop_tts_msg||"",onChange:w=>C("stop_tts_msg",w.target.value)}),T.jsx(Ge,{label:"单曲循环提示音",labelPlacement:"outside",placeholder:"请输入单曲循环提示音内容",value:b.play_type_one_tts_msg||"",onChange:w=>C("play_type_one_tts_msg",w.target.value)}),T.jsx(Ge,{label:"全部循环提示音",labelPlacement:"outside",placeholder:"请输入全部循环提示音内容",value:b.play_type_all_tts_msg||"",onChange:w=>C("play_type_all_tts_msg",w.target.value)}),T.jsx(Ge,{label:"随机播放提示音",labelPlacement:"outside",placeholder:"请输入随机播放提示音内容",value:b.play_type_rnd_tts_msg||"",onChange:w=>C("play_type_rnd_tts_msg",w.target.value)}),T.jsx(Ge,{label:"单曲播放提示音",labelPlacement:"outside",placeholder:"请输入单曲播放提示音内容",value:b.play_type_sin_tts_msg||"",onChange:w=>C("play_type_sin_tts_msg",w.target.value)}),T.jsx(Ge,{label:"顺序播放提示音",labelPlacement:"outside",placeholder:"请输入顺序播放提示音内容",value:b.play_type_seq_tts_msg||"",onChange:w=>C("play_type_seq_tts_msg",w.target.value)}),T.jsx("div",{className:"border-gray-200",children:T.jsx(uo,{color:"success",className:"text-white",onClick:A,isLoading:$,children:"保存更改"})})]}),n==="about"&&T.jsx("div",{className:"flex items-center justify-center h-full",children:T.jsx("div",{className:"max-w-lg w-full space-y-8",children:T.jsxs("div",{className:"text-center space-y-8",children:[T.jsx("div",{className:"flex justify-center",children:T.jsx("div",{className:"w-24 h-24 bg-gradient-to-br from-[#31c27c] to-[#28a869] rounded-2xl flex items-center justify-center shadow-lg",children:T.jsx("svg",{className:"w-12 h-12 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"})})})}),T.jsxs("div",{className:"",children:[T.jsx("h3",{className:"text-2xl font-bold text-gray-800",children:"SoundScape"}),T.jsxs("p",{className:"text-gray-600 leading-relaxed",children:["本项目是为 ",T.jsx("a",{href:"https://github.com/hanxi/xiaomusic",target:"_blank",rel:"noopener noreferrer",className:"text-[#31c27c] hover:text-[#28a869] underline",children:"xiaomusic"})," 使用的前端项目"]})]}),T.jsxs("div",{className:"bg-gray-50 rounded-xl p-6 space-y-4 text-left mx-auto max-w-sm",children:[T.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-gray-200",children:[T.jsx("span",{className:"text-gray-600",children:"版本"}),T.jsx("span",{className:"font-medium text-gray-800",children:i})]}),T.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-gray-200",children:[T.jsx("span",{className:"text-gray-600",children:"前端项目地址"}),T.jsx("span",{className:"text-gray-400 text-sm",children:T.jsx("a",{href:"https://github.com/jhao0413/SoundScape",target:"_blank",rel:"noopener noreferrer",className:"text-[#31c27c] hover:text-[#28a869] text-sm underline",children:"SoundScape"})})]}),T.jsxs("div",{className:"flex items-center justify-between py-2",children:[T.jsx("span",{className:"text-gray-600",children:"文档地址"}),T.jsx("a",{href:"https://xdocs.hanxi.cc/",target:"_blank",rel:"noopener noreferrer",className:"text-[#31c27c] hover:text-[#28a869] text-sm underline",children:"xdocs.hanxi.cc"})]})]}),T.jsx("div",{className:"pt-4",children:T.jsxs(uo,{color:"success",className:"text-white",onClick:()=>window.open("https://github.com/hanxi/xiaomusic","_blank"),children:[T.jsx("svg",{className:"w-5 h-5 mr-2",fill:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})}),"访问后端项目"]})})]})})})]})]})]})})};function pO(){const{selectedDevice:e,error:n,playlists:r,loadDevices:l,loadMusicList:i,loadCurrentMusic:u,clearError:d,isPlaying:p,setPlaylist:b}=zs(),[m,$]=v.useState(!1);return v.useEffect(()=>{l(),i()},[l,i]),v.useEffect(()=>{if(Object.keys(r).length>0){const x=Object.keys(r),S=x[x.length-1];b(S)}},[r,b]),v.useEffect(()=>{if(!e)return;const x=setInterval(()=>{p?u():clearInterval(x)},1e3);return()=>clearInterval(x)},[e,u,p]),T.jsxs("div",{className:"h-screen flex flex-col overflow-hidden relative",children:[T.jsxs("div",{className:"absolute inset-0 z-0",children:[T.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:"url(https://images.unsplash.com/photo-1511379938547-c1f69419868d?q=80&w=2070)"}}),T.jsx("div",{className:"absolute inset-0 backdrop-blur-3xl bg-white/70"}),T.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-blue-50/50 via-purple-50/50 to-pink-50/50"})]}),n&&T.jsx("div",{className:"fixed top-6 right-6 z-50 bg-white/95 backdrop-blur-xl shadow-2xl rounded-2xl p-4 border border-gray-200 animate-in slide-in-from-top",children:T.jsxs("div",{className:"flex items-center gap-3",children:[T.jsx("span",{className:"text-red-500",children:"⚠️"}),T.jsx("p",{className:"text-sm text-gray-800",children:n}),T.jsx("button",{onClick:d,className:"text-gray-400 hover:text-gray-600 ml-2 transition-colors",children:"✕"})]})}),T.jsx("div",{className:"relative z-10 flex flex-col h-screen p-6",children:T.jsx("div",{className:"flex flex-col flex-1 overflow-hidden bg-white/60 backdrop-blur-2xl rounded-3xl shadow-2xl border border-white/40",children:T.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[T.jsx(iO,{onOpenSettings:()=>$(!0)}),T.jsx(dO,{})]})})}),m&&T.jsx(fO,{onClose:()=>$(!1)})]})}function bO(){return T.jsx(pO,{})}pE.createRoot(document.getElementById("root")).render(T.jsx(v.StrictMode,{children:T.jsxs(C8,{children:[T.jsx(Hz,{placement:"top-center"}),T.jsx(bO,{})]})}));export{EO as $,$2 as A,dd as B,Wu as C,ud as D,cd as E,xw as F,pd as G,vO as H,jw as I,jc as J,t8 as K,i2 as L,us as M,c2 as N,kw as O,Ss as P,yw as Q,s2 as R,zw as S,Bw as T,fd as U,$O as V,Wv as W,kb as X,E2 as Y,yO as Z,Gr as _,gO as a,xO as a0,Ab as a1,Tw as a2,b2 as a3,Uw as a4,ww as a5,qv as a6,Sw as a7,Nc as a8,o8 as a9,qw as aa,w2 as ab,P2 as ac,i8 as ad,u8 as ae,T2 as af,s8 as ag,C2 as ah,h2 as ai,Xw as b,mO as c,Se as d,bw as e,B1 as f,wO as g,al as h,v2 as i,T as j,hO as k,Gw as l,Dw as m,mw as n,h8 as o,Gp as p,Ew as q,v as r,M2 as s,sd as t,u2 as u,Yv as v,m2 as w,Zw as x,Lw as y,Aw as z}; diff --git a/xiaomusic/static/soundSpace/assets/index-B2IsL-Au.js b/xiaomusic/static/soundSpace/assets/index-lQterTXP.js similarity index 99% rename from xiaomusic/static/soundSpace/assets/index-B2IsL-Au.js rename to xiaomusic/static/soundSpace/assets/index-lQterTXP.js index 8b6f933..10d5255 100644 --- a/xiaomusic/static/soundSpace/assets/index-B2IsL-Au.js +++ b/xiaomusic/static/soundSpace/assets/index-lQterTXP.js @@ -1 +1 @@ -import{r as g,u as ht,f as S,L as _t,j as K,n as O,a as C,c as B,b as Rt,i as pt,p as Dt,d as hn,e as hi,S as fi,g as di,m as fn,h as W,k as jt,l as It,s as le,o as mi,q as pi,t as R,M as Lt,v as dn,w as gi,x as ce,y as mn,z as yi,A as vi,B as xi,C as Si}from"./index-BlfQbszy.js";import{D as Ma,E as Va,F as ba,N as Ba,P as ja,K as Ia,I as Oa,Q as ka,R as Fa,J as Ua,G as Wa,O as za,H as Ha}from"./index-BlfQbszy.js";import{c as Ti,m as Pi,a as wt,s as q,b as Ei,i as I,d as Mt,e as Ai,f as Di,g as pn,p as wi,h as A,j as ct,k as T,l as Ci,n as Ri,o as Li,q as he,r as gn,F as yn,t as fe,u as X,v as Jt,w as Qt,x as vn,y as Mi,z as de,S as Vi,A as xn,B as N,C as gt,D as yt,E as me,G as bi,H as Bi,I as ji,J as Y,K as Sn,L as Tn,M as Pn,N as Ii,O as Oi,P as Vt,Q as ki,R as En,T as An,U as Fi,V as Ui,W as Wi,X as Ot,Y as zi,Z as Hi,_ as _i,$ as Gi,a0 as Ni,a1 as Dn,a2 as wn,a3 as $i,a4 as Xi,a5 as Cn,a6 as Rn,a7 as Yi,a8 as Ki,a9 as Ct,aa as qi,ab as Zi,ac as Ln,ad as Ji,ae as Qi,af as ts,ag as es,ah as Gt,ai as ns,aj as Nt,ak as is,al as ss}from"./features-animation-d7XZ5Dr3.js";import{am as Ga,at as Na,au as $a,av as Xa,aw as Ya,ax as Ka,ay as qa,an as Za,az as Ja,aA as Qa,aB as tu,aC as eu,ao as nu,aq as iu,ap as su,ar as ou,aD as ru,as as au,aE as uu}from"./features-animation-d7XZ5Dr3.js";const os=g.createContext(null);function rs(){const t=g.useRef(!1);return ht(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function Mn(){const t=rs(),[e,n]=g.useState(0),i=g.useCallback(()=>{t.current&&n(e+1)},[e]);return[g.useCallback(()=>S.postRender(i),[i]),e]}const as=t=>!t.isLayoutDirty&&t.willUpdate(!1);function pe(){const t=new Set,e=new WeakMap,n=()=>t.forEach(as);return{add:i=>{t.add(i),e.set(i,i.addEventListener("willUpdate",n))},remove:i=>{t.delete(i);const s=e.get(i);s&&(s(),e.delete(i)),n()},dirty:n}}const Vn=t=>t===!0,us=t=>Vn(t===!0)||t==="id",ls=({children:t,id:e,inherit:n=!0})=>{const i=g.useContext(_t),s=g.useContext(os),[u,o]=Mn(),a=g.useRef(null),r=i.id||s;a.current===null&&(us(n)&&r&&(e=e?r+"-"+e:r),a.current={id:e,group:Vn(n)&&i.group||pe()});const l=g.useMemo(()=>({...a.current,forceRender:u}),[o]);return K.jsx(_t.Provider,{value:l,children:t})};function bn(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(Ti(i),Pi);return{type:"keyframes",ease:u=>i.next(s*u).value/e,duration:wt(s)}}class cs{constructor(e){this.animation=e}get duration(){var e,n,i;const s=((n=(e=this.animation)===null||e===void 0?void 0:e.effect)===null||n===void 0?void 0:n.getComputedTiming().duration)||((i=this.options)===null||i===void 0?void 0:i.duration)||300;return wt(Number(s))}get time(){var e;return this.animation?wt(((e=this.animation)===null||e===void 0?void 0:e.currentTime)||0):0}set time(e){this.animation&&(this.animation.currentTime=q(e))}get speed(){return this.animation?this.animation.playbackRate:1}set speed(e){this.animation&&(this.animation.playbackRate=e)}get state(){return this.animation?this.animation.playState:"finished"}get startTime(){return this.animation?this.animation.startTime:null}get finished(){return this.animation?this.animation.finished:Promise.resolve()}play(){this.animation&&this.animation.play()}pause(){this.animation&&this.animation.pause()}stop(){!this.animation||this.state==="idle"||this.state==="finished"||(this.animation.commitStyles&&this.animation.commitStyles(),this.cancel())}flatten(){var e;this.animation&&((e=this.animation.effect)===null||e===void 0||e.updateTiming({easing:"linear"}))}attachTimeline(e){return this.animation&&Ei(this.animation,e),O}complete(){this.animation&&this.animation.finish()}cancel(){try{this.animation&&this.animation.cancel()}catch{}}}function hs(t){return t==="x"||t==="y"?I[t]?null:(I[t]=!0,()=>{I[t]=!1}):I.x||I.y?null:(I.x=I.y=!0,()=>{I.x=I.y=!1})}function rt(t,e,n,i){return Mt(t,e,Ai(n),i)}const ge=(t,e)=>Math.abs(t-e);function fs(t,e){const n=ge(t.x,e.x),i=ge(t.y,e.y);return Math.sqrt(n**2+i**2)}class Bn{constructor(e,n,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:u=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Ft(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=fs(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:m}=h,{timestamp:p}=C;this.history.push({...m,timestamp:p});const{onStart:y,onMove:v}=this.handlers;f||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=kt(f,this.transformPagePoint),S.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:m,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Ft(h.type==="pointercancel"?this.lastMoveEventInfo:kt(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,y),m&&m(h,y)},!Di(e))return;this.dragSnapToOrigin=u,this.handlers=n,this.transformPagePoint=i,this.contextWindow=s||window;const o=pn(e),a=kt(o,this.transformPagePoint),{point:r}=a,{timestamp:l}=C;this.history=[{...r,timestamp:l}];const{onSessionStart:c}=n;c&&c(e,Ft(a,this.history)),this.removeListeners=wi(rt(this.contextWindow,"pointermove",this.handlePointerMove),rt(this.contextWindow,"pointerup",this.handlePointerUp),rt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),B(this.updatePoint)}}function kt(t,e){return e?{point:e(t.point)}:t}function ye(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ft({point:t},e){return{point:t,delta:ye(t,jn(e)),offset:ye(t,ds(e)),velocity:ms(e,.1)}}function ds(t){return t[0]}function jn(t){return t[t.length-1]}function ms(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=jn(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>q(e)));)n--;if(!i)return{x:0,y:0};const u=wt(s.timestamp-i.timestamp);if(u===0)return{x:0,y:0};const o={x:(s.x-i.x)/u,y:(s.y-i.y)/u};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const In=1e-4,ps=1-In,gs=1+In,On=.01,ys=0-On,vs=0+On;function L(t){return t.max-t.min}function xs(t,e,n){return Math.abs(t-e)<=n}function ve(t,e,n,i=.5){t.origin=i,t.originPoint=A(e.min,e.max,t.origin),t.scale=L(n)/L(e),t.translate=A(n.min,n.max,t.origin)-t.originPoint,(t.scale>=ps&&t.scale<=gs||isNaN(t.scale))&&(t.scale=1),(t.translate>=ys&&t.translate<=vs||isNaN(t.translate))&&(t.translate=0)}function at(t,e,n,i){ve(t.x,e.x,n.x,i?i.originX:void 0),ve(t.y,e.y,n.y,i?i.originY:void 0)}function xe(t,e,n){t.min=n.min+e.min,t.max=t.min+L(e)}function Ss(t,e,n){xe(t.x,e.x,n.x),xe(t.y,e.y,n.y)}function Se(t,e,n){t.min=e.min-n.min,t.max=t.min+L(e)}function ut(t,e,n){Se(t.x,e.x,n.x),Se(t.y,e.y,n.y)}function Ts(t,{min:e,max:n},i){return e!==void 0&&tn&&(t=i?A(n,t,i.max):Math.min(t,n)),t}function Te(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Ps(t,{top:e,left:n,bottom:i,right:s}){return{x:Te(t.x,n,s),y:Te(t.y,e,i)}}function Pe(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.mini?n=ct(e.min,e.max-i,t.min):i>s&&(n=ct(t.min,t.max-s,e.min)),Rt(0,1,n)}function Ds(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const $t=.35;function ws(t=$t){return t===!1?t=0:t===!0&&(t=$t),{x:Ee(t,"left","right"),y:Ee(t,"top","bottom")}}function Ee(t,e,n){return{min:Ae(t,e),max:Ae(t,n)}}function Ae(t,e){return typeof t=="number"?t:t[e]||0}function V(t){return[t("x"),t("y")]}const kn=({current:t})=>t?t.ownerDocument.defaultView:null,Cs=new WeakMap;class Rs{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=T(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(pn(c).point)},u=(c,h)=>{const{drag:f,dragPropagation:d,onDragStart:m}=this.getProps();if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=hs(f),!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),V(y=>{let v=this.getAxisMotionValue(y).get()||0;if(Dt.test(v)){const{projection:x}=this.visualElement;if(x&&x.layout){const P=x.layout.layoutBox[y];P&&(v=L(P)*(parseFloat(v)/100))}}this.originPoint[y]=v}),m&&S.postRender(()=>m(c,h)),he(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},o=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:m,onDrag:p}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=h;if(d&&this.currentDirection===null){this.currentDirection=Ls(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),p&&p(c,h)},a=(c,h)=>this.stop(c,h),r=()=>V(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Bn(e,{onSessionStart:s,onStart:u,onMove:o,onSessionEnd:a,resumeAnimation:r},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:kn(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:u}=this.getProps();u&&S.postRender(()=>u(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:s}=this.getProps();if(!i||!vt(e,s,this.currentDirection))return;const u=this.getAxisMotionValue(e);let o=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(o=Ts(o,this.constraints[e],this.elastic[e])),u.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,u=this.constraints;n&&pt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Ps(s.layoutBox,n):this.constraints=!1,this.elastic=ws(i),u!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&V(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Ds(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!pt(e))return!1;const i=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const u=Ci(i,s.root,this.visualElement.getTransformPagePoint());let o=Es(s.layout.layoutBox,u);if(n){const a=n(Ri(o));this.hasMutatedConstraints=!!a,a&&(o=Li(a))}return o}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:u,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),r=this.constraints||{},l=V(c=>{if(!vt(c,n,this.currentDirection))return;let h=r&&r[c]||{};o&&(h={min:0,max:0});const f=s?200:1e6,d=s?40:1e7,m={type:"inertia",velocity:i?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...u,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(l).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return he(this.visualElement,e),i.start(gn(e,i,0,n,this.visualElement,!1))}stopAnimation(){V(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){V(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),s=i[n];return s||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){V(n=>{const{drag:i}=this.getProps();if(!vt(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,u=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];u.set(e[n]-A(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!pt(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};V(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const r=a.get();s[o]=As({min:r,max:r},this.constraints[o])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),V(o=>{if(!vt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:r,max:l}=this.constraints[o];a.set(A(r,l,s[o]))})}addListeners(){if(!this.visualElement.current)return;Cs.set(this.visualElement,this);const e=this.visualElement.current,n=rt(e,"pointerdown",r=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(r)}),i=()=>{const{dragConstraints:r}=this.getProps();pt(r)&&r.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,u=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),S.read(i);const o=Mt(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",(({delta:r,hasLayoutChanged:l})=>{this.isDragging&&l&&(V(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=r[c].translate,h.set(h.get()+r[c].translate))}),this.visualElement.render())}));return()=>{o(),n(),u(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:u=!1,dragElastic:o=$t,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:u,dragElastic:o,dragMomentum:a}}}function vt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Ls(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Ms extends yn{constructor(e){super(e),this.removeGroupControls=O,this.removeListeners=O,this.controls=new Rs(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||O}unmount(){this.removeGroupControls(),this.removeListeners()}}const De=t=>(e,n)=>{t&&S.postRender(()=>t(e,n))};class Vs extends yn{constructor(){super(...arguments),this.removePointerDownListener=O}onPointerDown(e){this.session=new Bn(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kn(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:De(e),onStart:De(n),onMove:i,onEnd:(u,o)=>{delete this.session,s&&S.postRender(()=>s(u,o))}}}mount(){this.removePointerDownListener=rt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const St={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function we(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const nt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(hn.test(t))t=parseFloat(t);else return t;const n=we(t,e.target.x),i=we(t,e.target.y);return`${n}% ${i}%`}},bs={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=fe.parse(t);if(s.length>5)return i;const u=fe.createTransformer(t),o=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,r=n.y.scale*e.y;s[0+o]/=a,s[1+o]/=r;const l=A(a,r,.5);return typeof s[2+o]=="number"&&(s[2+o]/=l),typeof s[3+o]=="number"&&(s[3+o]/=l),u(s)}};class Bs extends g.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:s}=this.props,{projection:u}=e;di(js),u&&(n.group&&n.group.add(u),i&&i.register&&s&&i.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),St.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:s,isPresent:u}=this.props,o=i.projection;return o&&(o.isPresent=u,s||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==u&&(u?o.promote():o.relegate()||S.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),fn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Fn(t){const[e,n]=hi(),i=g.useContext(_t);return K.jsx(Bs,{...t,layoutGroup:i,switchLayoutGroup:g.useContext(fi),isPresent:e,safeToRemove:n})}const js={borderRadius:{...nt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nt,borderTopRightRadius:nt,borderBottomLeftRadius:nt,borderBottomRightRadius:nt,boxShadow:bs};function Un(t,e,n){const i=W(t)?t:X(t);return i.start(gn("",i,e,n)),i.animation}function Wn(t){return t instanceof SVGElement&&t.tagName!=="svg"}const Is=(t,e)=>t.depth-e.depth;class Os{constructor(){this.children=[],this.isDirty=!1}add(e){Jt(this.children,e),this.isDirty=!0}remove(e){Qt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Is),this.isDirty=!1,this.children.forEach(e)}}function ks(t,e){const n=vn.now(),i=({timestamp:s})=>{const u=s-n;u>=e&&(B(i),t(u-e))};return S.read(i,!0),()=>B(i)}const zn=["TopLeft","TopRight","BottomLeft","BottomRight"],Fs=zn.length,Ce=t=>typeof t=="string"?parseFloat(t):t,Re=t=>typeof t=="number"||hn.test(t);function Us(t,e,n,i,s,u){s?(t.opacity=A(0,n.opacity!==void 0?n.opacity:1,Ws(i)),t.opacityExit=A(e.opacity!==void 0?e.opacity:1,0,zs(i))):u&&(t.opacity=A(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let o=0;oie?1:n(ct(t,e,i))}function Me(t,e){t.min=e.min,t.max=e.max}function M(t,e){Me(t.x,e.x),Me(t.y,e.y)}function Ve(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function be(t,e,n,i,s){return t-=e,t=de(t,1/n,i),s!==void 0&&(t=de(t,1/s,i)),t}function Hs(t,e=0,n=1,i=.5,s,u=t,o=t){if(Dt.test(e)&&(e=parseFloat(e),e=A(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=A(u.min,u.max,i);t===u&&(a-=e),t.min=be(t.min,e,n,a,s),t.max=be(t.max,e,n,a,s)}function Be(t,e,[n,i,s],u,o){Hs(t,e[n],e[i],e[s],e.scale,u,o)}const _s=["x","scaleX","originX"],Gs=["y","scaleY","originY"];function je(t,e,n,i){Be(t.x,e,_s,n?n.x:void 0,i?i.x:void 0),Be(t.y,e,Gs,n?n.y:void 0,i?i.y:void 0)}function Ie(t){return t.translate===0&&t.scale===1}function _n(t){return Ie(t.x)&&Ie(t.y)}function Oe(t,e){return t.min===e.min&&t.max===e.max}function Ns(t,e){return Oe(t.x,e.x)&&Oe(t.y,e.y)}function ke(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Gn(t,e){return ke(t.x,e.x)&&ke(t.y,e.y)}function Fe(t){return L(t.x)/L(t.y)}function Ue(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class $s{constructor(){this.members=[]}add(e){Jt(this.members,e),e.scheduleRender()}remove(e){if(Qt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(s=>e===s);if(n===0)return!1;let i;for(let s=n;s>=0;s--){const u=this.members[s];if(u.isPresent!==!1){i=u;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(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);const{crossfade:s}=e.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.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)}}function Xs(t,e,n){let i="";const s=t.x.translate/e.x,u=t.y.translate/e.y,o=n?.z||0;if((s||u||o)&&(i=`translate3d(${s}px, ${u}px, ${o}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;l&&(i=`perspective(${l}px) ${i}`),c&&(i+=`rotate(${c}deg) `),h&&(i+=`rotateX(${h}deg) `),f&&(i+=`rotateY(${f}deg) `),d&&(i+=`skewX(${d}deg) `),m&&(i+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,r=t.y.scale*e.y;return(a!==1||r!==1)&&(i+=`scale(${a}, ${r})`),i||"none"}const z={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ot=typeof window<"u"&&window.MotionDebug!==void 0,Ut=["","X","Y","Z"],Ys={visibility:"hidden"},We=1e3;let Ks=0;function Wt(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Nn(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Sn(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:u}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",S,!(s||u))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Nn(i)}function $n({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(o={},a=e?.()){this.id=Ks++,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,ot&&(z.totalNodes=z.resolvedTargetDeltas=z.recalculatedProjection=0),this.nodes.forEach(Js),this.nodes.forEach(io),this.nodes.forEach(so),this.nodes.forEach(Qs),ot&&window.MotionDebug.record(z)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let r=0;rthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=ks(f,250),St.hasAnimatedSinceResize&&(St.hasAnimatedSinceResize=!1,this.nodes.forEach(He))})}r&&this.root.registerSharedNode(r,this),this.options.animate!==!1&&c&&(r||l)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||lo,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=c.getProps(),x=!this.targetLayout||!Gn(this.targetLayout,m)||d,P=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,P);const E={...xn(p,"layout"),onPlay:y,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else f||He(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,B(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(oo),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Nn(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{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 r=0;r{const D=E/1e3;_e(h.x,o.x,D),_e(h.y,o.y,D),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ut(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ao(this.relativeTarget,this.relativeTargetOrigin,f,D),P&&Ns(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=T()),M(P,this.relativeTarget)),p&&(this.animationValues=c,Us(c,l,this.latestValues,D,x,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=D},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(B(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=S.update(()=>{St.hasAnimatedSinceResize=!0,this.currentAnimation=Un(0,We,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.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);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(We),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:r,layout:l,latestValues:c}=o;if(!(!a||!r||!l)){if(this!==o&&this.layout&&l&&Xn(this.options.animationType,this.layout.layoutBox,l.layoutBox)){r=this.target||T();const h=L(this.layout.layoutBox.x);r.x.min=o.target.x.min,r.x.max=r.x.min+h;const f=L(this.layout.layoutBox.y);r.y.min=o.target.y.min,r.y.max=r.y.min+f}M(a,r),yt(a,c),at(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new $s),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:r}={}){const l=this.getStack();l&&l.promote(this,r),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:r}=o;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(a=!0),!a)return;const l={};r.z&&Wt("z",o,l,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ze),this.root.sharedNodes.clear()}}}function qs(t){t.updateLayout()}function Zs(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:u}=t.options,o=n.source!==t.layout.source;u==="size"?V(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=L(f);f.min=i[h].min,f.max=f.min+d}):Xn(u,n.layoutBox,i)&&V(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=L(i[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=Y();at(a,i,n.layoutBox);const r=Y();o?at(r,t.applyTransform(s,!0),n.measuredBox):at(r,i,n.layoutBox);const l=!_n(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const m=T();ut(m,n.layoutBox,f.layoutBox);const p=T();ut(p,i,d.layoutBox),Gn(m,p)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=m,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:r,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Js(t){ot&&z.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Qs(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function to(t){t.clearSnapshot()}function ze(t){t.clearMeasurements()}function eo(t){t.isLayoutDirty=!1}function no(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function He(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function io(t){t.resolveTargetDelta()}function so(t){t.calcProjection()}function oo(t){t.resetSkewAndRotation()}function ro(t){t.removeLeadSnapshot()}function _e(t,e,n){t.translate=A(e.translate,0,n),t.scale=A(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ge(t,e,n,i){t.min=A(e.min,n.min,i),t.max=A(e.max,n.max,i)}function ao(t,e,n,i){Ge(t.x,e.x,n.x,i),Ge(t.y,e.y,n.y,i)}function uo(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const lo={duration:.45,ease:[.4,0,.1,1]},Ne=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),$e=Ne("applewebkit/")&&!Ne("chrome/")?Math.round:O;function Xe(t){t.min=$e(t.min),t.max=$e(t.max)}function co(t){Xe(t.x),Xe(t.y)}function Xn(t,e,n){return t==="position"||t==="preserve-aspect"&&!xs(Fe(e),Fe(n),.2)}function ho(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const fo=$n({attachResizeListener:(t,e)=>Mt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),_={current:void 0},Yn=$n({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!_.current){const t=new fo({});t.mount(window),t.setOptions({layoutScroll:!0}),_.current=t}return _.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Kn={pan:{Feature:Vs},drag:{Feature:Ms,ProjectionNode:Yn,MeasureLayout:Fn}},qn={layout:{ProjectionNode:Yn,MeasureLayout:Fn}},mo=mi({...Tn,...Ii,...Kn,...qn},Pn),Zn=pi(mo),qr={...Oi,...Kn,...qn},Zr={renderer:Pn,...Tn};function po(t,e,n){g.useInsertionEffect(()=>t.on(e,n),[t,e,n])}function Jn(t,e){let n;const i=()=>{const{currentTime:s}=e,o=(s===null?0:s.value)/100;n!==o&&t(o),n=o};return S.update(i,!0),()=>B(i)}const Tt=new WeakMap;let U;function go(t,e){if(e){const{inlineSize:n,blockSize:i}=e[0];return{width:n,height:i}}else return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}function yo({target:t,contentRect:e,borderBoxSize:n}){var i;(i=Tt.get(t))===null||i===void 0||i.forEach(s=>{s({target:t,contentSize:e,get size(){return go(t,n)}})})}function vo(t){t.forEach(yo)}function xo(){typeof ResizeObserver>"u"||(U=new ResizeObserver(vo))}function So(t,e){U||xo();const n=Vt(t);return n.forEach(i=>{let s=Tt.get(i);s||(s=new Set,Tt.set(i,s)),s.add(e),U?.observe(i)}),()=>{n.forEach(i=>{const s=Tt.get(i);s?.delete(e),s?.size||U?.unobserve(i)})}}const Pt=new Set;let lt;function To(){lt=()=>{const t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};Pt.forEach(n=>n(e))},window.addEventListener("resize",lt)}function Po(t){return Pt.add(t),lt||To(),()=>{Pt.delete(t),!Pt.size&<&&(lt=void 0)}}function Eo(t,e){return typeof t=="function"?Po(t):So(t,e)}const Ao=50,Ye=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Do=()=>({time:0,x:Ye(),y:Ye()}),wo={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Ke(t,e,n,i){const s=n[e],{length:u,position:o}=wo[e],a=s.current,r=n.time;s.current=t[`scroll${o}`],s.scrollLength=t[`scroll${u}`]-t[`client${u}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=ct(0,s.scrollLength,s.current);const l=i-r;s.velocity=l>Ao?0:ki(s.current-a,l)}function Co(t,e,n){Ke(t,"x",e,n),Ke(t,"y",e,n),e.time=n}function Ro(t,e){const n={x:0,y:0};let i=t;for(;i&&i!==e;)if(i instanceof HTMLElement)n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if(i.tagName==="svg"){const s=i.getBoundingClientRect();i=i.parentElement;const u=i.getBoundingClientRect();n.x+=s.left-u.left,n.y+=s.top-u.top}else if(i instanceof SVGGraphicsElement){const{x:s,y:u}=i.getBBox();n.x+=s,n.y+=u;let o=null,a=i.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=i.parentNode;i=o}else break;return n}const Xt={start:0,center:.5,end:1};function qe(t,e,n=0){let i=0;if(t in Xt&&(t=Xt[t]),typeof t=="string"){const s=parseFloat(t);t.endsWith("px")?i=s:t.endsWith("%")?t=s/100:t.endsWith("vw")?i=s/100*document.documentElement.clientWidth:t.endsWith("vh")?i=s/100*document.documentElement.clientHeight:t=s}return typeof t=="number"&&(i=e*t),n+i}const Lo=[0,0];function Mo(t,e,n,i){let s=Array.isArray(t)?t:Lo,u=0,o=0;return typeof t=="number"?s=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?s=t.split(" "):s=[t,Xt[t]?t:"0"]),u=qe(s[0],n,i),o=qe(s[1],e),u-o}const Vo={All:[[0,0],[1,1]]},bo={x:0,y:0};function Bo(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function jo(t,e,n){const{offset:i=Vo.All}=n,{target:s=t,axis:u="y"}=n,o=u==="y"?"height":"width",a=s!==t?Ro(s,t):bo,r=s===t?{width:t.scrollWidth,height:t.scrollHeight}:Bo(s),l={width:t.clientWidth,height:t.clientHeight};e[u].offset.length=0;let c=!e[u].interpolate;const h=i.length;for(let f=0;fIo(t,i.target,n),update:s=>{Co(t,n,s),(i.offset||i.target)&&jo(t,n,i)},notify:()=>e(n)}}const it=new WeakMap,Ze=new WeakMap,zt=new WeakMap,Je=t=>t===document.documentElement?window:t;function te(t,{container:e=document.documentElement,...n}={}){let i=zt.get(e);i||(i=new Set,zt.set(e,i));const s=Do(),u=Oo(e,t,s,n);if(i.add(u),!it.has(e)){const a=()=>{for(const f of i)f.measure()},r=()=>{for(const f of i)f.update(C.timestamp)},l=()=>{for(const f of i)f.notify()},c=()=>{S.read(a,!1,!0),S.read(r,!1,!0),S.update(l,!1,!0)};it.set(e,c);const h=Je(e);window.addEventListener("resize",c,{passive:!0}),e!==document.documentElement&&Ze.set(e,Eo(e,c)),h.addEventListener("scroll",c,{passive:!0})}const o=it.get(e);return S.read(o,!1,!0),()=>{var a;B(o);const r=zt.get(e);if(!r||(r.delete(u),r.size))return;const l=it.get(e);it.delete(e),l&&(Je(e).removeEventListener("scroll",l),(a=Ze.get(e))===null||a===void 0||a(),window.removeEventListener("resize",l))}}function ko({source:t,container:e,axis:n="y"}){t&&(e=t);const i={value:0},s=te(u=>{i.value=u[n].progress*100},{container:e,axis:n});return{currentTime:i,cancel:s}}const Ht=new Map;function Qn({source:t,container:e=document.documentElement,axis:n="y"}={}){t&&(e=t),Ht.has(e)||Ht.set(e,{});const i=Ht.get(e);return i[n]||(i[n]=Fi()?new ScrollTimeline({source:e,axis:n}):ko({source:e,axis:n})),i[n]}function Fo(t){return t.length===2}function ti(t){return t&&(t.target||t.offset)}function Uo(t,e){return Fo(t)||ti(e)?te(n=>{t(n[e.axis].progress,n)},e):Jn(t,Qn(e))}function Wo(t,e){if(t.flatten(),ti(e))return t.pause(),te(n=>{t.time=t.duration*n[e.axis].progress},e);{const n=Qn(e);return t.attachTimeline?t.attachTimeline(n,i=>(i.pause(),Jn(s=>{i.time=i.duration*s},n))):O}}function zo(t,{axis:e="y",...n}={}){const i={axis:e,...n};return typeof t=="function"?Uo(t,i):Wo(t,i)}function Qe(t,e){Ui(!!(!e||e.current))}const Ho=()=>({scrollX:X(0),scrollY:X(0),scrollXProgress:X(0),scrollYProgress:X(0)});function ei({container:t,target:e,layoutEffect:n=!0,...i}={}){const s=R(Ho);return(n?ht:g.useEffect)(()=>(Qe("target",e),Qe("container",t),zo((o,{x:a,y:r})=>{s.scrollX.set(a.current),s.scrollXProgress.set(a.progress),s.scrollY.set(r.current),s.scrollYProgress.set(r.progress)},{...i,container:t?.current||void 0,target:e?.current||void 0})),[t,e,JSON.stringify(i.offset)]),s}function Jr(t){return ei({container:t})}function Qr(){return ei()}function G(t){const e=R(()=>X(t)),{isStatic:n}=g.useContext(Lt);if(n){const[,i]=g.useState(t);g.useEffect(()=>e.on("change",i),[])}return e}function ee(t,e){const n=G(e()),i=()=>n.set(e());return i(),ht(()=>{const s=()=>S.preRender(i,!1,!0),u=t.map(o=>o.on("change",s));return()=>{u.forEach(o=>o()),B(i)}}),n}function ta(t,...e){const n=t.length;function i(){let s="";for(let u=0;u{}),a=()=>{const l=i.current;l&&l.time===0&&l.sample(C.delta),r(),i.current=Wi({keyframes:[s.get(),u.current],velocity:s.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...e,onUpdate:o.current})},r=()=>{i.current&&i.current.stop()};return g.useInsertionEffect(()=>s.attach((l,c)=>n?c(l):(u.current=l,o.current=c,S.update(a),s.get()),r),[JSON.stringify(e)]),ht(()=>{if(W(t))return t.on("change",l=>s.set(tn(l)))},[s]),s}function _o(t){const e=g.useRef(0),{isStatic:n}=g.useContext(Lt);g.useEffect(()=>{if(n)return;const i=({timestamp:s,delta:u})=>{e.current||(e.current=s),t(s-e.current,u)};return S.update(i,!0),()=>B(i)},[t])}function na(){const t=G(0);return _o(e=>t.set(e)),t}const Go=t=>t&&typeof t=="object"&&t.mix,No=t=>Go(t)?t.mix:void 0;function $o(...t){const e=!Array.isArray(t[0]),n=e?0:-1,i=t[0+n],s=t[1+n],u=t[2+n],o=t[3+n],a=En(s,u,{mixer:No(u[0]),...o});return e?a(i):a}function Xo(t){Ot.current=[],t();const e=ee(Ot.current,t);return Ot.current=void 0,e}function Yt(t,e,n,i){if(typeof t=="function")return Xo(t);const s=typeof e=="function"?e:$o(e,n,i);return Array.isArray(t)?en(t,s):en([t],([u])=>s(u))}function en(t,e){const n=R(()=>[]);return ee(t,()=>{n.length=0;const i=t.length;for(let s=0;s{const i=t.getVelocity();e.set(i),i&&S.update(n)};return po(t,"change",()=>{S.update(n,!1,!0)}),e}function Yo(t){if(dn.has(t))return"transform";if(zi.has(t))return gi(t)}class Ko extends Hi{constructor(){super(...arguments),this.values=[]}add(e){const n=Yo(e);n&&(Jt(this.values,n),this.update())}update(){this.set(this.values.length?this.values.join(", "):"auto")}}function sa(){return R(()=>new Ko("auto"))}function qo(){!_i.current&&Gi();const[t]=g.useState(Ni.current);return t}function oa(){const t=qo(),{reducedMotion:e}=g.useContext(Lt);return e==="never"?!1:e==="always"?!0:t}function Zo(t){t.values.forEach(e=>e.stop())}function Kt(t,e){[...e].reverse().forEach(i=>{const s=t.getVariant(i);s&&wn(t,s),t.variantChildren&&t.variantChildren.forEach(u=>{Kt(u,e)})})}function Jo(t,e){if(Array.isArray(e))return Kt(t,e);if(typeof e=="string")return Kt(t,[e]);wn(t,e)}function Qo(){const t=new Set,e={subscribe(n){return t.add(n),()=>void t.delete(n)},start(n,i){const s=[];return t.forEach(u=>{s.push(Dn(u,n,{transitionOverride:i}))}),Promise.all(s)},set(n){return t.forEach(i=>{Jo(i,n)})},stop(){t.forEach(n=>{Zo(n)})},mount(){return()=>{e.stop()}}};return e}function ni(t){return g.useEffect(()=>()=>t(),[])}const ii=(t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t};function si(t,e){return $i(t)?t[ii(0,t.length,e)]:t}function ne(t){return typeof t=="object"&&!Array.isArray(t)}function oi(t,e,n,i){return typeof t=="string"&&ne(e)?Vt(t,n,i):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function tr(t,e,n){return t*(e+1)}function nn(t,e,n,i){var s;return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:(s=i.get(e))!==null&&s!==void 0?s:t}function er(t,e,n){for(let i=0;ie&&s.at{const w=ar(E),{delay:bt=0,times:j=An(w),type:Bt="keyframes",repeat:ft,repeatType:Nr,repeatDelay:$r=0,...ci}=D;let{ease:F=e.ease||"easeOut",duration:b}=D;const ie=typeof bt=="function"?bt(Z,J):bt,se=w.length,oe=Cn(Bt)?Bt:s?.[Bt];if(se<=2&&oe){let Q=100;if(se===2&&cr(w)){const tt=w[1]-w[0];Q=Math.abs(tt)}const dt={...ci};b!==void 0&&(dt.duration=q(b));const mt=bn(dt,Q,oe);F=mt.ease,b=mt.duration}b??(b=u);const re=h+ie;j.length===1&&j[0]===0&&(j[1]=1);const ae=j.length-w.length;if(ae>0&&Xi(j,ae),w.length===1&&w.unshift(null),ft){b=tr(b,ft);const Q=[...w],dt=[...j];F=Array.isArray(F)?[...F]:[F];const mt=[...F];for(let tt=0;tt{for(const p in d){const y=d[p];y.sort(sr);const v=[],x=[],P=[];for(let D=0;Dtypeof t=="number",cr=t=>t.every(lr);function hr(t,e){return t in e}class fr extends Rn{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,n){if(hr(n,e)){const i=e[n];if(typeof i=="string"||typeof i=="number")return i}}getBaseTargetFromProps(){}removeValueFromRenderState(e,n){delete n.output[e]}measureInstanceViewportBox(){return T()}build(e,n){Object.assign(e.output,n)}renderInstance(e,{output:n}){Object.assign(e,n)}sortInstanceNodePosition(){return 0}}function dr(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Wn(t)?new Yi(e):new Ki(e);n.mount(t),Ct.set(t,n)}function mr(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new fr(e);n.mount(t),Ct.set(t,n)}function pr(t,e){return W(t)||typeof t=="number"||typeof t=="string"&&!ne(e)}function ri(t,e,n,i){const s=[];if(pr(t,e))s.push(Un(t,ne(e)&&e.default||e,n&&(n.default||n)));else{const u=oi(t,e,i),o=u.length;for(let a=0;a{i.push(...ri(a,u,o))}),i}function yr(t){return Array.isArray(t)&&t.some(Array.isArray)}function ai(t){function e(n,i,s){let u=[];yr(n)?u=gr(n,i,t):u=ri(n,i,s,t);const o=new Ln(u);return t&&t.animations.push(o),o}return e}const ra=ai();function aa(){const t=R(()=>({current:null,animations:[]})),e=R(()=>ai(t));return ni(()=>{t.animations.forEach(n=>n.stop())}),[t,e]}function vr(t,e,n){t.style.setProperty(`--${e}`,n)}function xr(t,e,n){t.style[e]=n}const Sr=Ji(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0}),Et=new WeakMap;function Tr(t,e,n){for(let i=0;in.startsWith("--")?e.style.getPropertyValue(n):window.getComputedStyle(e)[n];if(Array.isArray(i)||(i=[i]),Tr(n,i,a),Cn(s.type)){const c=bn(s,100,s.type);s.ease=ts()?c.ease:rn,s.duration=q(c.duration),s.type="keyframes"}else s.ease=s.ease||rn;const r=()=>{this.setValue(e,n,ns(i,s)),this.cancel(),this.resolveFinishedPromise()},l=()=>{this.setValue=u?vr:xr,this.options=s,this.updateFinishedPromise(),this.removeAnimation=()=>{const c=Et.get(e);c&&c.delete(n)}};es()?(super(Gt(e,n,i,s)),l(),s.autoplay===!1&&this.animation.pause(),this.animation.onfinish=r,an(e).set(n,this)):(super(),l(),r())}then(e,n){return this.currentFinishedPromise.then(e,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}play(){this.state==="finished"&&this.updateFinishedPromise(),super.play()}cancel(){this.removeAnimation(),super.cancel()}}function Er(t,e,n,i){const s=Vt(t,i),u=s.length,o=[];for(let a=0;a{function e(n,i,s){return new Ln(Er(n,i,s,t))}return e},ua=ui();function la(){const t=R(()=>({current:null,animations:[]})),e=R(()=>ui(t));return ni(()=>{t.animations.forEach(n=>n.stop())}),[t,e]}function Ar(){const t=R(Qo);return ht(t.mount,[]),t}const ca=Ar;function ha(t,e,n,i){g.useEffect(()=>{const s=t.current;if(n&&s)return Mt(s,e,n,i)},[t,e,n,i])}class Dr{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,n){this.componentControls.forEach(i=>{i.start(e.nativeEvent||e,n)})}}const wr=()=>new Dr;function fa(){return R(wr)}function Cr(t){return t!==null&&typeof t=="object"&&mn in t}function da(t){if(Cr(t))return t[mn]}function Rr(){return Lr}function Lr(t){_.current&&(_.current.isUpdating=!1,_.current.blockUpdate(),t&&t())}function ma(){return g.useCallback(()=>{const e=_.current;e&&e.resetTree()},[])}function pa(...t){const e=g.useRef(0),[n,i]=g.useState(t[e.current]),s=g.useCallback(u=>{e.current=typeof u!="number"?ii(0,t.length,e.current+1):u,i(t[e.current])},[t.length,...t]);return[n,s]}const Mr={some:0,all:1};function Vr(t,e,{root:n,margin:i,amount:s="some"}={}){const u=Vt(t),o=new WeakMap,a=l=>{l.forEach(c=>{const h=o.get(c.target);if(c.isIntersecting!==!!h)if(c.isIntersecting){const f=e(c);typeof f=="function"?o.set(c.target,f):r.unobserve(c.target)}else typeof h=="function"&&(h(c),o.delete(c.target))})},r=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof s=="number"?s:Mr[s]});return u.forEach(l=>r.observe(l)),()=>r.disconnect()}function ga(t,{root:e,margin:n,amount:i,once:s=!1}={}){const[u,o]=g.useState(!1);return g.useEffect(()=>{if(!t.current||s&&u)return;const a=()=>(o(!0),s?void 0:()=>o(!1)),r={root:e&&e.current||void 0,margin:n,amount:i};return Vr(t.current,a,r)},[e,t,n,s,i]),u}function ya(){const[t,e]=Mn(),n=Rr(),i=g.useRef(-1);return g.useEffect(()=>{S.postRender(()=>S.postRender(()=>{e===i.current&&(Nt.current=!1)}))},[e]),s=>{n(()=>{Nt.current=!0,t(),s(),i.current=e+1})}}function va(){Nt.current=!1}const At=(t,e)=>{const n=dn.has(e)?"transform":e;return`${t}: ${n}`},H=new Map,st=new Map;function un(t,e,n){var i;const s=At(t,e),u=H.get(s);if(!u)return null;const{animation:o,startTime:a}=u;function r(){var l;(l=window.MotionCancelOptimisedAnimation)===null||l===void 0||l.call(window,t,e,n)}return o.onfinish=r,a===null||!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,t)?(r(),null):a}let xt,$;const qt=new Set;function br(){qt.forEach(t=>{t.animation.play(),t.animation.startTime=t.startTime}),qt.clear()}function xa(t,e,n,i,s){if(window.MotionIsMounted)return;const u=t.dataset[yi];if(!u)return;window.MotionHandoffAnimation=un;const o=At(u,e);$||($=Gt(t,e,[n[0],n[0]],{duration:1e4,ease:"linear"}),H.set(o,{animation:$,startTime:null}),window.MotionHandoffAnimation=un,window.MotionHasOptimisedAnimation=(r,l)=>{if(!r)return!1;if(!l)return st.has(r);const c=At(r,l);return!!H.get(c)},window.MotionHandoffMarkAsComplete=r=>{st.has(r)&&st.set(r,!0)},window.MotionHandoffIsComplete=r=>st.get(r)===!0,window.MotionCancelOptimisedAnimation=(r,l,c,h)=>{const f=At(r,l),d=H.get(f);d&&(c&&h===void 0?c.postRender(()=>{c.postRender(()=>{d.animation.cancel()})}):d.animation.cancel(),c&&h?(qt.add(d),c.render(br)):(H.delete(f),H.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(r,l,c)=>{var h,f;const d=Sn(r);if(!d)return;const m=(h=window.MotionHasOptimisedAnimation)===null||h===void 0?void 0:h.call(window,d,l),p=(f=r.props.values)===null||f===void 0?void 0:f[l];if(!m||!p)return;const y=c.on("change",v=>{var x;p.get()!==v&&((x=window.MotionCancelOptimisedAnimation)===null||x===void 0||x.call(window,d,l),y())});return y});const a=()=>{$.cancel();const r=Gt(t,e,n,i);xt===void 0&&(xt=performance.now()),r.startTime=xt,H.set(o,{animation:r,startTime:xt}),s&&s(r)};st.set(u,!1),$.ready?$.ready.then(a).catch(O):a()}const Zt=()=>({});class Br extends Rn{constructor(){super(...arguments),this.measureInstanceViewportBox=T}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return Zt()}getBaseTargetFromProps(){}readValueFromInstance(e,n,i){return i.initialState[n]||0}sortInstanceNodePosition(){return 0}}const jr=vi({scrapeMotionValuesFromProps:Zt,createRenderState:Zt});function Sa(t){const[e,n]=g.useState(t),i=jr({},!1),s=R(()=>new Br({props:{onUpdate:o=>{n({...o})}},visualState:i,presenceContext:null},{initialState:t}));g.useLayoutEffect(()=>(s.mount({}),()=>s.unmount()),[s]);const u=R(()=>o=>Dn(s,o));return[e,u]}let Ir=0;const Ta=({children:t})=>(g.useEffect(()=>{},[]),K.jsx(ls,{id:R(()=>`asl-${Ir++}`),children:t})),Or=1e5,ln=t=>t>.001?1/t:Or;function Pa(t){let e=G(1),n=G(1);const{visualElement:i}=g.useContext(xi);t?(e=t.scaleX||e,n=t.scaleY||n):i&&(e=i.getValue("scaleX",1),n=i.getValue("scaleY",1));const s=Yt(e,ln),u=Yt(n,ln);return{scaleX:s,scaleY:u}}const li=g.createContext(null);function kr(t,e,n,i){if(!i)return t;const s=t.findIndex(c=>c.value===e);if(s===-1)return t;const u=i>0?1:-1,o=t[s+u];if(!o)return t;const a=t[s],r=o.layout,l=A(r.min,r.max,.5);return u===1&&a.layout.max+n>l||u===-1&&a.layout.min+nZn[e]),r=[],l=g.useRef(!1),c={axis:n,registerItem:(h,f)=>{const d=r.findIndex(m=>h===m.value);d!==-1?r[d].layout=f[n]:r.push({value:h,layout:f[n]}),r.sort(zr)},updateOrder:(h,f,d)=>{if(l.current)return;const m=kr(r,h,f,d);r!==m&&(l.current=!0,i(m.map(Wr).filter(p=>s.indexOf(p)!==-1)))}};return g.useEffect(()=>{l.current=!1}),K.jsx(a,{...u,ref:o,ignoreStrict:!0,children:K.jsx(li.Provider,{value:c,children:t})})}const Ur=g.forwardRef(Fr);function Wr(t){return t.value}function zr(t,e){return t.layout.min-e.layout.min}function cn(t,e=0){return W(t)?t:G(e)}function Hr({children:t,style:e={},value:n,as:i="li",onDrag:s,layout:u=!0,...o},a){const r=R(()=>Zn[i]),l=g.useContext(li),c={x:cn(e.x),y:cn(e.y)},h=Yt([c.x,c.y],([p,y])=>p||y?1:"unset"),{axis:f,registerItem:d,updateOrder:m}=l;return K.jsx(r,{drag:f,...o,dragSnapToOrigin:!0,style:{...e,x:c.x,y:c.y,zIndex:h},layout:u,onDrag:(p,y)=>{const{velocity:v}=y;v[f]&&m(n,c[f].get(),v[f]),s&&s(p,y)},onLayoutMeasure:p=>d(n,p),ref:a,ignoreStrict:!0,children:t})}const _r=g.forwardRef(Hr),Ea=Object.freeze(Object.defineProperty({__proto__:null,Group:Ur,Item:_r},Symbol.toStringTag,{value:"Module"}));function Gr(t,e){if(t==="first")return 0;{const n=e-1;return t==="last"?n:n/2}}function Aa(t=.1,{startDelay:e=0,from:n=0,ease:i}={}){return(s,u)=>{const o=typeof n=="number"?n:Gr(n,u),a=Math.abs(o-s);let r=t*a;if(i){const l=u*t;r=ss(i)(r/l)*l}return e+r}}const Da=S,wa=Si.reduce((t,e)=>(t[e]=n=>B(n),t),{});function Ca(t,e="end"){return n=>{n=e==="end"?Math.min(n,.999):Math.max(n,.001);const i=n*t,s=e==="end"?Math.floor(i):Math.ceil(i);return Rt(0,1,s/t)}}export{Ga as AcceleratedAnimation,Ma as AnimatePresence,Ta as AnimateSharedLayout,os as DeprecatedLayoutGroupContext,Dr as DragControls,Os as FlatTree,ls as LayoutGroup,_t as LayoutGroupContext,Va as LazyMotion,ba as MotionConfig,Lt as MotionConfigContext,xi as MotionContext,Ba as MotionGlobalConfig,Hi as MotionValue,ja as PresenceContext,Ea as Reorder,fi as SwitchLayoutGroupContext,Rn as VisualElement,rt as addPointerEvent,Ai as addPointerInfo,di as addScaleCorrector,ra as animate,ua as animateMini,Wi as animateValue,Dn as animateVisualElement,Qo as animationControls,Tn as animations,Na as anticipate,$a as backIn,Xa as backInOut,Ya as backOut,Ia as buildTransform,L as calcLength,B as cancelFrame,wa as cancelSync,Ka as circIn,qa as circInOut,Mi as circOut,Rt as clamp,Za as color,fe as complex,T as createBox,Oa as createRendererMotionComponent,ai as createScopedAnimate,Ja as cubicBezier,ks as delay,va as disableInstantTransitions,ge as distance,fs as distance2D,Oi as domAnimation,qr as domMax,Zr as domMin,Qa as easeIn,tu as easeInOut,eu as easeOut,ka as filterProps,nu as findSpring,S as frame,C as frameData,jt as frameSteps,Vr as inView,iu as inertia,En as interpolate,Qi as invariant,Fa as isBrowser,su as isDragActive,Cr as isMotionComponent,W as isMotionValue,Ua as isValidMotionProp,ou as keyframes,Wa as m,vi as makeUseVisualState,ru as mirrorEasing,au as mix,Zn as motion,X as motionValue,O as noop,za as optimizedAppearDataAttribute,wi as pipe,ct as progress,hn as px,It as resolveMotionValue,uu as reverseEasing,zo as scroll,te as scrollInfo,Zi as spring,Aa as stagger,xa as startOptimizedAppearAnimation,Ca as steps,Da as sync,vn as time,$o as transform,da as unwrapMotionComponent,aa as useAnimate,la as useAnimateMini,ca as useAnimation,Ar as useAnimationControls,_o as useAnimationFrame,pa as useCycle,Sa as useDeprecatedAnimatedState,Pa as useDeprecatedInvertedScale,ha as useDomEvent,fa as useDragControls,Jr as useElementScroll,Mn as useForceUpdate,ga as useInView,Rr as useInstantLayoutTransition,ya as useInstantTransition,Ha as useIsPresent,ht as useIsomorphicLayoutEffect,ta as useMotionTemplate,G as useMotionValue,po as useMotionValueEvent,hi as usePresence,qo as useReducedMotion,oa as useReducedMotionConfig,ma as useResetProjection,ei as useScroll,ea as useSpring,na as useTime,Yt as useTransform,ni as useUnmountEffect,ia as useVelocity,Qr as useViewportScroll,sa as useWillChange,Ct as visualElementStore,ii as wrap}; +import{r as g,u as ht,f as S,L as _t,j as K,n as O,a as C,c as B,b as Rt,i as pt,p as Dt,d as hn,e as hi,S as fi,g as di,m as fn,h as W,k as jt,l as It,s as le,o as mi,q as pi,t as R,M as Lt,v as dn,w as gi,x as ce,y as mn,z as yi,A as vi,B as xi,C as Si}from"./index-ihgeXEwv.js";import{D as Ma,E as Va,F as ba,N as Ba,P as ja,K as Ia,I as Oa,Q as ka,R as Fa,J as Ua,G as Wa,O as za,H as Ha}from"./index-ihgeXEwv.js";import{c as Ti,m as Pi,a as wt,s as q,b as Ei,i as I,d as Mt,e as Ai,f as Di,g as pn,p as wi,h as A,j as ct,k as T,l as Ci,n as Ri,o as Li,q as he,r as gn,F as yn,t as fe,u as X,v as Jt,w as Qt,x as vn,y as Mi,z as de,S as Vi,A as xn,B as N,C as gt,D as yt,E as me,G as bi,H as Bi,I as ji,J as Y,K as Sn,L as Tn,M as Pn,N as Ii,O as Oi,P as Vt,Q as ki,R as En,T as An,U as Fi,V as Ui,W as Wi,X as Ot,Y as zi,Z as Hi,_ as _i,$ as Gi,a0 as Ni,a1 as Dn,a2 as wn,a3 as $i,a4 as Xi,a5 as Cn,a6 as Rn,a7 as Yi,a8 as Ki,a9 as Ct,aa as qi,ab as Zi,ac as Ln,ad as Ji,ae as Qi,af as ts,ag as es,ah as Gt,ai as ns,aj as Nt,ak as is,al as ss}from"./features-animation-BRiA9rfd.js";import{am as Ga,at as Na,au as $a,av as Xa,aw as Ya,ax as Ka,ay as qa,an as Za,az as Ja,aA as Qa,aB as tu,aC as eu,ao as nu,aq as iu,ap as su,ar as ou,aD as ru,as as au,aE as uu}from"./features-animation-BRiA9rfd.js";const os=g.createContext(null);function rs(){const t=g.useRef(!1);return ht(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function Mn(){const t=rs(),[e,n]=g.useState(0),i=g.useCallback(()=>{t.current&&n(e+1)},[e]);return[g.useCallback(()=>S.postRender(i),[i]),e]}const as=t=>!t.isLayoutDirty&&t.willUpdate(!1);function pe(){const t=new Set,e=new WeakMap,n=()=>t.forEach(as);return{add:i=>{t.add(i),e.set(i,i.addEventListener("willUpdate",n))},remove:i=>{t.delete(i);const s=e.get(i);s&&(s(),e.delete(i)),n()},dirty:n}}const Vn=t=>t===!0,us=t=>Vn(t===!0)||t==="id",ls=({children:t,id:e,inherit:n=!0})=>{const i=g.useContext(_t),s=g.useContext(os),[u,o]=Mn(),a=g.useRef(null),r=i.id||s;a.current===null&&(us(n)&&r&&(e=e?r+"-"+e:r),a.current={id:e,group:Vn(n)&&i.group||pe()});const l=g.useMemo(()=>({...a.current,forceRender:u}),[o]);return K.jsx(_t.Provider,{value:l,children:t})};function bn(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(Ti(i),Pi);return{type:"keyframes",ease:u=>i.next(s*u).value/e,duration:wt(s)}}class cs{constructor(e){this.animation=e}get duration(){var e,n,i;const s=((n=(e=this.animation)===null||e===void 0?void 0:e.effect)===null||n===void 0?void 0:n.getComputedTiming().duration)||((i=this.options)===null||i===void 0?void 0:i.duration)||300;return wt(Number(s))}get time(){var e;return this.animation?wt(((e=this.animation)===null||e===void 0?void 0:e.currentTime)||0):0}set time(e){this.animation&&(this.animation.currentTime=q(e))}get speed(){return this.animation?this.animation.playbackRate:1}set speed(e){this.animation&&(this.animation.playbackRate=e)}get state(){return this.animation?this.animation.playState:"finished"}get startTime(){return this.animation?this.animation.startTime:null}get finished(){return this.animation?this.animation.finished:Promise.resolve()}play(){this.animation&&this.animation.play()}pause(){this.animation&&this.animation.pause()}stop(){!this.animation||this.state==="idle"||this.state==="finished"||(this.animation.commitStyles&&this.animation.commitStyles(),this.cancel())}flatten(){var e;this.animation&&((e=this.animation.effect)===null||e===void 0||e.updateTiming({easing:"linear"}))}attachTimeline(e){return this.animation&&Ei(this.animation,e),O}complete(){this.animation&&this.animation.finish()}cancel(){try{this.animation&&this.animation.cancel()}catch{}}}function hs(t){return t==="x"||t==="y"?I[t]?null:(I[t]=!0,()=>{I[t]=!1}):I.x||I.y?null:(I.x=I.y=!0,()=>{I.x=I.y=!1})}function rt(t,e,n,i){return Mt(t,e,Ai(n),i)}const ge=(t,e)=>Math.abs(t-e);function fs(t,e){const n=ge(t.x,e.x),i=ge(t.y,e.y);return Math.sqrt(n**2+i**2)}class Bn{constructor(e,n,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:u=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Ft(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=fs(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:m}=h,{timestamp:p}=C;this.history.push({...m,timestamp:p});const{onStart:y,onMove:v}=this.handlers;f||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=kt(f,this.transformPagePoint),S.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:m,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Ft(h.type==="pointercancel"?this.lastMoveEventInfo:kt(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,y),m&&m(h,y)},!Di(e))return;this.dragSnapToOrigin=u,this.handlers=n,this.transformPagePoint=i,this.contextWindow=s||window;const o=pn(e),a=kt(o,this.transformPagePoint),{point:r}=a,{timestamp:l}=C;this.history=[{...r,timestamp:l}];const{onSessionStart:c}=n;c&&c(e,Ft(a,this.history)),this.removeListeners=wi(rt(this.contextWindow,"pointermove",this.handlePointerMove),rt(this.contextWindow,"pointerup",this.handlePointerUp),rt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),B(this.updatePoint)}}function kt(t,e){return e?{point:e(t.point)}:t}function ye(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ft({point:t},e){return{point:t,delta:ye(t,jn(e)),offset:ye(t,ds(e)),velocity:ms(e,.1)}}function ds(t){return t[0]}function jn(t){return t[t.length-1]}function ms(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=jn(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>q(e)));)n--;if(!i)return{x:0,y:0};const u=wt(s.timestamp-i.timestamp);if(u===0)return{x:0,y:0};const o={x:(s.x-i.x)/u,y:(s.y-i.y)/u};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const In=1e-4,ps=1-In,gs=1+In,On=.01,ys=0-On,vs=0+On;function L(t){return t.max-t.min}function xs(t,e,n){return Math.abs(t-e)<=n}function ve(t,e,n,i=.5){t.origin=i,t.originPoint=A(e.min,e.max,t.origin),t.scale=L(n)/L(e),t.translate=A(n.min,n.max,t.origin)-t.originPoint,(t.scale>=ps&&t.scale<=gs||isNaN(t.scale))&&(t.scale=1),(t.translate>=ys&&t.translate<=vs||isNaN(t.translate))&&(t.translate=0)}function at(t,e,n,i){ve(t.x,e.x,n.x,i?i.originX:void 0),ve(t.y,e.y,n.y,i?i.originY:void 0)}function xe(t,e,n){t.min=n.min+e.min,t.max=t.min+L(e)}function Ss(t,e,n){xe(t.x,e.x,n.x),xe(t.y,e.y,n.y)}function Se(t,e,n){t.min=e.min-n.min,t.max=t.min+L(e)}function ut(t,e,n){Se(t.x,e.x,n.x),Se(t.y,e.y,n.y)}function Ts(t,{min:e,max:n},i){return e!==void 0&&tn&&(t=i?A(n,t,i.max):Math.min(t,n)),t}function Te(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Ps(t,{top:e,left:n,bottom:i,right:s}){return{x:Te(t.x,n,s),y:Te(t.y,e,i)}}function Pe(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.mini?n=ct(e.min,e.max-i,t.min):i>s&&(n=ct(t.min,t.max-s,e.min)),Rt(0,1,n)}function Ds(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const $t=.35;function ws(t=$t){return t===!1?t=0:t===!0&&(t=$t),{x:Ee(t,"left","right"),y:Ee(t,"top","bottom")}}function Ee(t,e,n){return{min:Ae(t,e),max:Ae(t,n)}}function Ae(t,e){return typeof t=="number"?t:t[e]||0}function V(t){return[t("x"),t("y")]}const kn=({current:t})=>t?t.ownerDocument.defaultView:null,Cs=new WeakMap;class Rs{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=T(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(pn(c).point)},u=(c,h)=>{const{drag:f,dragPropagation:d,onDragStart:m}=this.getProps();if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=hs(f),!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),V(y=>{let v=this.getAxisMotionValue(y).get()||0;if(Dt.test(v)){const{projection:x}=this.visualElement;if(x&&x.layout){const P=x.layout.layoutBox[y];P&&(v=L(P)*(parseFloat(v)/100))}}this.originPoint[y]=v}),m&&S.postRender(()=>m(c,h)),he(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},o=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:m,onDrag:p}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=h;if(d&&this.currentDirection===null){this.currentDirection=Ls(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),p&&p(c,h)},a=(c,h)=>this.stop(c,h),r=()=>V(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Bn(e,{onSessionStart:s,onStart:u,onMove:o,onSessionEnd:a,resumeAnimation:r},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:kn(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:u}=this.getProps();u&&S.postRender(()=>u(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:s}=this.getProps();if(!i||!vt(e,s,this.currentDirection))return;const u=this.getAxisMotionValue(e);let o=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(o=Ts(o,this.constraints[e],this.elastic[e])),u.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,u=this.constraints;n&&pt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Ps(s.layoutBox,n):this.constraints=!1,this.elastic=ws(i),u!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&V(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Ds(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!pt(e))return!1;const i=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const u=Ci(i,s.root,this.visualElement.getTransformPagePoint());let o=Es(s.layout.layoutBox,u);if(n){const a=n(Ri(o));this.hasMutatedConstraints=!!a,a&&(o=Li(a))}return o}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:u,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),r=this.constraints||{},l=V(c=>{if(!vt(c,n,this.currentDirection))return;let h=r&&r[c]||{};o&&(h={min:0,max:0});const f=s?200:1e6,d=s?40:1e7,m={type:"inertia",velocity:i?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...u,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(l).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return he(this.visualElement,e),i.start(gn(e,i,0,n,this.visualElement,!1))}stopAnimation(){V(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){V(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),s=i[n];return s||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){V(n=>{const{drag:i}=this.getProps();if(!vt(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,u=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];u.set(e[n]-A(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!pt(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};V(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const r=a.get();s[o]=As({min:r,max:r},this.constraints[o])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),V(o=>{if(!vt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:r,max:l}=this.constraints[o];a.set(A(r,l,s[o]))})}addListeners(){if(!this.visualElement.current)return;Cs.set(this.visualElement,this);const e=this.visualElement.current,n=rt(e,"pointerdown",r=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(r)}),i=()=>{const{dragConstraints:r}=this.getProps();pt(r)&&r.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,u=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),S.read(i);const o=Mt(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",(({delta:r,hasLayoutChanged:l})=>{this.isDragging&&l&&(V(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=r[c].translate,h.set(h.get()+r[c].translate))}),this.visualElement.render())}));return()=>{o(),n(),u(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:u=!1,dragElastic:o=$t,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:u,dragElastic:o,dragMomentum:a}}}function vt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Ls(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Ms extends yn{constructor(e){super(e),this.removeGroupControls=O,this.removeListeners=O,this.controls=new Rs(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||O}unmount(){this.removeGroupControls(),this.removeListeners()}}const De=t=>(e,n)=>{t&&S.postRender(()=>t(e,n))};class Vs extends yn{constructor(){super(...arguments),this.removePointerDownListener=O}onPointerDown(e){this.session=new Bn(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kn(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:De(e),onStart:De(n),onMove:i,onEnd:(u,o)=>{delete this.session,s&&S.postRender(()=>s(u,o))}}}mount(){this.removePointerDownListener=rt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const St={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function we(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const nt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(hn.test(t))t=parseFloat(t);else return t;const n=we(t,e.target.x),i=we(t,e.target.y);return`${n}% ${i}%`}},bs={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=fe.parse(t);if(s.length>5)return i;const u=fe.createTransformer(t),o=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,r=n.y.scale*e.y;s[0+o]/=a,s[1+o]/=r;const l=A(a,r,.5);return typeof s[2+o]=="number"&&(s[2+o]/=l),typeof s[3+o]=="number"&&(s[3+o]/=l),u(s)}};class Bs extends g.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:s}=this.props,{projection:u}=e;di(js),u&&(n.group&&n.group.add(u),i&&i.register&&s&&i.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),St.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:s,isPresent:u}=this.props,o=i.projection;return o&&(o.isPresent=u,s||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==u&&(u?o.promote():o.relegate()||S.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),fn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Fn(t){const[e,n]=hi(),i=g.useContext(_t);return K.jsx(Bs,{...t,layoutGroup:i,switchLayoutGroup:g.useContext(fi),isPresent:e,safeToRemove:n})}const js={borderRadius:{...nt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nt,borderTopRightRadius:nt,borderBottomLeftRadius:nt,borderBottomRightRadius:nt,boxShadow:bs};function Un(t,e,n){const i=W(t)?t:X(t);return i.start(gn("",i,e,n)),i.animation}function Wn(t){return t instanceof SVGElement&&t.tagName!=="svg"}const Is=(t,e)=>t.depth-e.depth;class Os{constructor(){this.children=[],this.isDirty=!1}add(e){Jt(this.children,e),this.isDirty=!0}remove(e){Qt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Is),this.isDirty=!1,this.children.forEach(e)}}function ks(t,e){const n=vn.now(),i=({timestamp:s})=>{const u=s-n;u>=e&&(B(i),t(u-e))};return S.read(i,!0),()=>B(i)}const zn=["TopLeft","TopRight","BottomLeft","BottomRight"],Fs=zn.length,Ce=t=>typeof t=="string"?parseFloat(t):t,Re=t=>typeof t=="number"||hn.test(t);function Us(t,e,n,i,s,u){s?(t.opacity=A(0,n.opacity!==void 0?n.opacity:1,Ws(i)),t.opacityExit=A(e.opacity!==void 0?e.opacity:1,0,zs(i))):u&&(t.opacity=A(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let o=0;oie?1:n(ct(t,e,i))}function Me(t,e){t.min=e.min,t.max=e.max}function M(t,e){Me(t.x,e.x),Me(t.y,e.y)}function Ve(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function be(t,e,n,i,s){return t-=e,t=de(t,1/n,i),s!==void 0&&(t=de(t,1/s,i)),t}function Hs(t,e=0,n=1,i=.5,s,u=t,o=t){if(Dt.test(e)&&(e=parseFloat(e),e=A(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=A(u.min,u.max,i);t===u&&(a-=e),t.min=be(t.min,e,n,a,s),t.max=be(t.max,e,n,a,s)}function Be(t,e,[n,i,s],u,o){Hs(t,e[n],e[i],e[s],e.scale,u,o)}const _s=["x","scaleX","originX"],Gs=["y","scaleY","originY"];function je(t,e,n,i){Be(t.x,e,_s,n?n.x:void 0,i?i.x:void 0),Be(t.y,e,Gs,n?n.y:void 0,i?i.y:void 0)}function Ie(t){return t.translate===0&&t.scale===1}function _n(t){return Ie(t.x)&&Ie(t.y)}function Oe(t,e){return t.min===e.min&&t.max===e.max}function Ns(t,e){return Oe(t.x,e.x)&&Oe(t.y,e.y)}function ke(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Gn(t,e){return ke(t.x,e.x)&&ke(t.y,e.y)}function Fe(t){return L(t.x)/L(t.y)}function Ue(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class $s{constructor(){this.members=[]}add(e){Jt(this.members,e),e.scheduleRender()}remove(e){if(Qt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(s=>e===s);if(n===0)return!1;let i;for(let s=n;s>=0;s--){const u=this.members[s];if(u.isPresent!==!1){i=u;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(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);const{crossfade:s}=e.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.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)}}function Xs(t,e,n){let i="";const s=t.x.translate/e.x,u=t.y.translate/e.y,o=n?.z||0;if((s||u||o)&&(i=`translate3d(${s}px, ${u}px, ${o}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;l&&(i=`perspective(${l}px) ${i}`),c&&(i+=`rotate(${c}deg) `),h&&(i+=`rotateX(${h}deg) `),f&&(i+=`rotateY(${f}deg) `),d&&(i+=`skewX(${d}deg) `),m&&(i+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,r=t.y.scale*e.y;return(a!==1||r!==1)&&(i+=`scale(${a}, ${r})`),i||"none"}const z={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ot=typeof window<"u"&&window.MotionDebug!==void 0,Ut=["","X","Y","Z"],Ys={visibility:"hidden"},We=1e3;let Ks=0;function Wt(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Nn(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Sn(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:u}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",S,!(s||u))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Nn(i)}function $n({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(o={},a=e?.()){this.id=Ks++,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,ot&&(z.totalNodes=z.resolvedTargetDeltas=z.recalculatedProjection=0),this.nodes.forEach(Js),this.nodes.forEach(io),this.nodes.forEach(so),this.nodes.forEach(Qs),ot&&window.MotionDebug.record(z)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let r=0;rthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=ks(f,250),St.hasAnimatedSinceResize&&(St.hasAnimatedSinceResize=!1,this.nodes.forEach(He))})}r&&this.root.registerSharedNode(r,this),this.options.animate!==!1&&c&&(r||l)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||lo,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=c.getProps(),x=!this.targetLayout||!Gn(this.targetLayout,m)||d,P=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,P);const E={...xn(p,"layout"),onPlay:y,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else f||He(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,B(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(oo),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Nn(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{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 r=0;r{const D=E/1e3;_e(h.x,o.x,D),_e(h.y,o.y,D),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ut(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ao(this.relativeTarget,this.relativeTargetOrigin,f,D),P&&Ns(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=T()),M(P,this.relativeTarget)),p&&(this.animationValues=c,Us(c,l,this.latestValues,D,x,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=D},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(B(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=S.update(()=>{St.hasAnimatedSinceResize=!0,this.currentAnimation=Un(0,We,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.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);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(We),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:r,layout:l,latestValues:c}=o;if(!(!a||!r||!l)){if(this!==o&&this.layout&&l&&Xn(this.options.animationType,this.layout.layoutBox,l.layoutBox)){r=this.target||T();const h=L(this.layout.layoutBox.x);r.x.min=o.target.x.min,r.x.max=r.x.min+h;const f=L(this.layout.layoutBox.y);r.y.min=o.target.y.min,r.y.max=r.y.min+f}M(a,r),yt(a,c),at(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new $s),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:r}={}){const l=this.getStack();l&&l.promote(this,r),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:r}=o;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(a=!0),!a)return;const l={};r.z&&Wt("z",o,l,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ze),this.root.sharedNodes.clear()}}}function qs(t){t.updateLayout()}function Zs(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:u}=t.options,o=n.source!==t.layout.source;u==="size"?V(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=L(f);f.min=i[h].min,f.max=f.min+d}):Xn(u,n.layoutBox,i)&&V(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=L(i[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=Y();at(a,i,n.layoutBox);const r=Y();o?at(r,t.applyTransform(s,!0),n.measuredBox):at(r,i,n.layoutBox);const l=!_n(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const m=T();ut(m,n.layoutBox,f.layoutBox);const p=T();ut(p,i,d.layoutBox),Gn(m,p)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=m,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:r,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Js(t){ot&&z.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Qs(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function to(t){t.clearSnapshot()}function ze(t){t.clearMeasurements()}function eo(t){t.isLayoutDirty=!1}function no(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function He(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function io(t){t.resolveTargetDelta()}function so(t){t.calcProjection()}function oo(t){t.resetSkewAndRotation()}function ro(t){t.removeLeadSnapshot()}function _e(t,e,n){t.translate=A(e.translate,0,n),t.scale=A(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ge(t,e,n,i){t.min=A(e.min,n.min,i),t.max=A(e.max,n.max,i)}function ao(t,e,n,i){Ge(t.x,e.x,n.x,i),Ge(t.y,e.y,n.y,i)}function uo(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const lo={duration:.45,ease:[.4,0,.1,1]},Ne=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),$e=Ne("applewebkit/")&&!Ne("chrome/")?Math.round:O;function Xe(t){t.min=$e(t.min),t.max=$e(t.max)}function co(t){Xe(t.x),Xe(t.y)}function Xn(t,e,n){return t==="position"||t==="preserve-aspect"&&!xs(Fe(e),Fe(n),.2)}function ho(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const fo=$n({attachResizeListener:(t,e)=>Mt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),_={current:void 0},Yn=$n({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!_.current){const t=new fo({});t.mount(window),t.setOptions({layoutScroll:!0}),_.current=t}return _.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Kn={pan:{Feature:Vs},drag:{Feature:Ms,ProjectionNode:Yn,MeasureLayout:Fn}},qn={layout:{ProjectionNode:Yn,MeasureLayout:Fn}},mo=mi({...Tn,...Ii,...Kn,...qn},Pn),Zn=pi(mo),qr={...Oi,...Kn,...qn},Zr={renderer:Pn,...Tn};function po(t,e,n){g.useInsertionEffect(()=>t.on(e,n),[t,e,n])}function Jn(t,e){let n;const i=()=>{const{currentTime:s}=e,o=(s===null?0:s.value)/100;n!==o&&t(o),n=o};return S.update(i,!0),()=>B(i)}const Tt=new WeakMap;let U;function go(t,e){if(e){const{inlineSize:n,blockSize:i}=e[0];return{width:n,height:i}}else return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}function yo({target:t,contentRect:e,borderBoxSize:n}){var i;(i=Tt.get(t))===null||i===void 0||i.forEach(s=>{s({target:t,contentSize:e,get size(){return go(t,n)}})})}function vo(t){t.forEach(yo)}function xo(){typeof ResizeObserver>"u"||(U=new ResizeObserver(vo))}function So(t,e){U||xo();const n=Vt(t);return n.forEach(i=>{let s=Tt.get(i);s||(s=new Set,Tt.set(i,s)),s.add(e),U?.observe(i)}),()=>{n.forEach(i=>{const s=Tt.get(i);s?.delete(e),s?.size||U?.unobserve(i)})}}const Pt=new Set;let lt;function To(){lt=()=>{const t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};Pt.forEach(n=>n(e))},window.addEventListener("resize",lt)}function Po(t){return Pt.add(t),lt||To(),()=>{Pt.delete(t),!Pt.size&<&&(lt=void 0)}}function Eo(t,e){return typeof t=="function"?Po(t):So(t,e)}const Ao=50,Ye=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Do=()=>({time:0,x:Ye(),y:Ye()}),wo={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Ke(t,e,n,i){const s=n[e],{length:u,position:o}=wo[e],a=s.current,r=n.time;s.current=t[`scroll${o}`],s.scrollLength=t[`scroll${u}`]-t[`client${u}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=ct(0,s.scrollLength,s.current);const l=i-r;s.velocity=l>Ao?0:ki(s.current-a,l)}function Co(t,e,n){Ke(t,"x",e,n),Ke(t,"y",e,n),e.time=n}function Ro(t,e){const n={x:0,y:0};let i=t;for(;i&&i!==e;)if(i instanceof HTMLElement)n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if(i.tagName==="svg"){const s=i.getBoundingClientRect();i=i.parentElement;const u=i.getBoundingClientRect();n.x+=s.left-u.left,n.y+=s.top-u.top}else if(i instanceof SVGGraphicsElement){const{x:s,y:u}=i.getBBox();n.x+=s,n.y+=u;let o=null,a=i.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=i.parentNode;i=o}else break;return n}const Xt={start:0,center:.5,end:1};function qe(t,e,n=0){let i=0;if(t in Xt&&(t=Xt[t]),typeof t=="string"){const s=parseFloat(t);t.endsWith("px")?i=s:t.endsWith("%")?t=s/100:t.endsWith("vw")?i=s/100*document.documentElement.clientWidth:t.endsWith("vh")?i=s/100*document.documentElement.clientHeight:t=s}return typeof t=="number"&&(i=e*t),n+i}const Lo=[0,0];function Mo(t,e,n,i){let s=Array.isArray(t)?t:Lo,u=0,o=0;return typeof t=="number"?s=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?s=t.split(" "):s=[t,Xt[t]?t:"0"]),u=qe(s[0],n,i),o=qe(s[1],e),u-o}const Vo={All:[[0,0],[1,1]]},bo={x:0,y:0};function Bo(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function jo(t,e,n){const{offset:i=Vo.All}=n,{target:s=t,axis:u="y"}=n,o=u==="y"?"height":"width",a=s!==t?Ro(s,t):bo,r=s===t?{width:t.scrollWidth,height:t.scrollHeight}:Bo(s),l={width:t.clientWidth,height:t.clientHeight};e[u].offset.length=0;let c=!e[u].interpolate;const h=i.length;for(let f=0;fIo(t,i.target,n),update:s=>{Co(t,n,s),(i.offset||i.target)&&jo(t,n,i)},notify:()=>e(n)}}const it=new WeakMap,Ze=new WeakMap,zt=new WeakMap,Je=t=>t===document.documentElement?window:t;function te(t,{container:e=document.documentElement,...n}={}){let i=zt.get(e);i||(i=new Set,zt.set(e,i));const s=Do(),u=Oo(e,t,s,n);if(i.add(u),!it.has(e)){const a=()=>{for(const f of i)f.measure()},r=()=>{for(const f of i)f.update(C.timestamp)},l=()=>{for(const f of i)f.notify()},c=()=>{S.read(a,!1,!0),S.read(r,!1,!0),S.update(l,!1,!0)};it.set(e,c);const h=Je(e);window.addEventListener("resize",c,{passive:!0}),e!==document.documentElement&&Ze.set(e,Eo(e,c)),h.addEventListener("scroll",c,{passive:!0})}const o=it.get(e);return S.read(o,!1,!0),()=>{var a;B(o);const r=zt.get(e);if(!r||(r.delete(u),r.size))return;const l=it.get(e);it.delete(e),l&&(Je(e).removeEventListener("scroll",l),(a=Ze.get(e))===null||a===void 0||a(),window.removeEventListener("resize",l))}}function ko({source:t,container:e,axis:n="y"}){t&&(e=t);const i={value:0},s=te(u=>{i.value=u[n].progress*100},{container:e,axis:n});return{currentTime:i,cancel:s}}const Ht=new Map;function Qn({source:t,container:e=document.documentElement,axis:n="y"}={}){t&&(e=t),Ht.has(e)||Ht.set(e,{});const i=Ht.get(e);return i[n]||(i[n]=Fi()?new ScrollTimeline({source:e,axis:n}):ko({source:e,axis:n})),i[n]}function Fo(t){return t.length===2}function ti(t){return t&&(t.target||t.offset)}function Uo(t,e){return Fo(t)||ti(e)?te(n=>{t(n[e.axis].progress,n)},e):Jn(t,Qn(e))}function Wo(t,e){if(t.flatten(),ti(e))return t.pause(),te(n=>{t.time=t.duration*n[e.axis].progress},e);{const n=Qn(e);return t.attachTimeline?t.attachTimeline(n,i=>(i.pause(),Jn(s=>{i.time=i.duration*s},n))):O}}function zo(t,{axis:e="y",...n}={}){const i={axis:e,...n};return typeof t=="function"?Uo(t,i):Wo(t,i)}function Qe(t,e){Ui(!!(!e||e.current))}const Ho=()=>({scrollX:X(0),scrollY:X(0),scrollXProgress:X(0),scrollYProgress:X(0)});function ei({container:t,target:e,layoutEffect:n=!0,...i}={}){const s=R(Ho);return(n?ht:g.useEffect)(()=>(Qe("target",e),Qe("container",t),zo((o,{x:a,y:r})=>{s.scrollX.set(a.current),s.scrollXProgress.set(a.progress),s.scrollY.set(r.current),s.scrollYProgress.set(r.progress)},{...i,container:t?.current||void 0,target:e?.current||void 0})),[t,e,JSON.stringify(i.offset)]),s}function Jr(t){return ei({container:t})}function Qr(){return ei()}function G(t){const e=R(()=>X(t)),{isStatic:n}=g.useContext(Lt);if(n){const[,i]=g.useState(t);g.useEffect(()=>e.on("change",i),[])}return e}function ee(t,e){const n=G(e()),i=()=>n.set(e());return i(),ht(()=>{const s=()=>S.preRender(i,!1,!0),u=t.map(o=>o.on("change",s));return()=>{u.forEach(o=>o()),B(i)}}),n}function ta(t,...e){const n=t.length;function i(){let s="";for(let u=0;u{}),a=()=>{const l=i.current;l&&l.time===0&&l.sample(C.delta),r(),i.current=Wi({keyframes:[s.get(),u.current],velocity:s.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...e,onUpdate:o.current})},r=()=>{i.current&&i.current.stop()};return g.useInsertionEffect(()=>s.attach((l,c)=>n?c(l):(u.current=l,o.current=c,S.update(a),s.get()),r),[JSON.stringify(e)]),ht(()=>{if(W(t))return t.on("change",l=>s.set(tn(l)))},[s]),s}function _o(t){const e=g.useRef(0),{isStatic:n}=g.useContext(Lt);g.useEffect(()=>{if(n)return;const i=({timestamp:s,delta:u})=>{e.current||(e.current=s),t(s-e.current,u)};return S.update(i,!0),()=>B(i)},[t])}function na(){const t=G(0);return _o(e=>t.set(e)),t}const Go=t=>t&&typeof t=="object"&&t.mix,No=t=>Go(t)?t.mix:void 0;function $o(...t){const e=!Array.isArray(t[0]),n=e?0:-1,i=t[0+n],s=t[1+n],u=t[2+n],o=t[3+n],a=En(s,u,{mixer:No(u[0]),...o});return e?a(i):a}function Xo(t){Ot.current=[],t();const e=ee(Ot.current,t);return Ot.current=void 0,e}function Yt(t,e,n,i){if(typeof t=="function")return Xo(t);const s=typeof e=="function"?e:$o(e,n,i);return Array.isArray(t)?en(t,s):en([t],([u])=>s(u))}function en(t,e){const n=R(()=>[]);return ee(t,()=>{n.length=0;const i=t.length;for(let s=0;s{const i=t.getVelocity();e.set(i),i&&S.update(n)};return po(t,"change",()=>{S.update(n,!1,!0)}),e}function Yo(t){if(dn.has(t))return"transform";if(zi.has(t))return gi(t)}class Ko extends Hi{constructor(){super(...arguments),this.values=[]}add(e){const n=Yo(e);n&&(Jt(this.values,n),this.update())}update(){this.set(this.values.length?this.values.join(", "):"auto")}}function sa(){return R(()=>new Ko("auto"))}function qo(){!_i.current&&Gi();const[t]=g.useState(Ni.current);return t}function oa(){const t=qo(),{reducedMotion:e}=g.useContext(Lt);return e==="never"?!1:e==="always"?!0:t}function Zo(t){t.values.forEach(e=>e.stop())}function Kt(t,e){[...e].reverse().forEach(i=>{const s=t.getVariant(i);s&&wn(t,s),t.variantChildren&&t.variantChildren.forEach(u=>{Kt(u,e)})})}function Jo(t,e){if(Array.isArray(e))return Kt(t,e);if(typeof e=="string")return Kt(t,[e]);wn(t,e)}function Qo(){const t=new Set,e={subscribe(n){return t.add(n),()=>void t.delete(n)},start(n,i){const s=[];return t.forEach(u=>{s.push(Dn(u,n,{transitionOverride:i}))}),Promise.all(s)},set(n){return t.forEach(i=>{Jo(i,n)})},stop(){t.forEach(n=>{Zo(n)})},mount(){return()=>{e.stop()}}};return e}function ni(t){return g.useEffect(()=>()=>t(),[])}const ii=(t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t};function si(t,e){return $i(t)?t[ii(0,t.length,e)]:t}function ne(t){return typeof t=="object"&&!Array.isArray(t)}function oi(t,e,n,i){return typeof t=="string"&&ne(e)?Vt(t,n,i):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function tr(t,e,n){return t*(e+1)}function nn(t,e,n,i){var s;return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:(s=i.get(e))!==null&&s!==void 0?s:t}function er(t,e,n){for(let i=0;ie&&s.at{const w=ar(E),{delay:bt=0,times:j=An(w),type:Bt="keyframes",repeat:ft,repeatType:Nr,repeatDelay:$r=0,...ci}=D;let{ease:F=e.ease||"easeOut",duration:b}=D;const ie=typeof bt=="function"?bt(Z,J):bt,se=w.length,oe=Cn(Bt)?Bt:s?.[Bt];if(se<=2&&oe){let Q=100;if(se===2&&cr(w)){const tt=w[1]-w[0];Q=Math.abs(tt)}const dt={...ci};b!==void 0&&(dt.duration=q(b));const mt=bn(dt,Q,oe);F=mt.ease,b=mt.duration}b??(b=u);const re=h+ie;j.length===1&&j[0]===0&&(j[1]=1);const ae=j.length-w.length;if(ae>0&&Xi(j,ae),w.length===1&&w.unshift(null),ft){b=tr(b,ft);const Q=[...w],dt=[...j];F=Array.isArray(F)?[...F]:[F];const mt=[...F];for(let tt=0;tt{for(const p in d){const y=d[p];y.sort(sr);const v=[],x=[],P=[];for(let D=0;Dtypeof t=="number",cr=t=>t.every(lr);function hr(t,e){return t in e}class fr extends Rn{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,n){if(hr(n,e)){const i=e[n];if(typeof i=="string"||typeof i=="number")return i}}getBaseTargetFromProps(){}removeValueFromRenderState(e,n){delete n.output[e]}measureInstanceViewportBox(){return T()}build(e,n){Object.assign(e.output,n)}renderInstance(e,{output:n}){Object.assign(e,n)}sortInstanceNodePosition(){return 0}}function dr(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Wn(t)?new Yi(e):new Ki(e);n.mount(t),Ct.set(t,n)}function mr(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new fr(e);n.mount(t),Ct.set(t,n)}function pr(t,e){return W(t)||typeof t=="number"||typeof t=="string"&&!ne(e)}function ri(t,e,n,i){const s=[];if(pr(t,e))s.push(Un(t,ne(e)&&e.default||e,n&&(n.default||n)));else{const u=oi(t,e,i),o=u.length;for(let a=0;a{i.push(...ri(a,u,o))}),i}function yr(t){return Array.isArray(t)&&t.some(Array.isArray)}function ai(t){function e(n,i,s){let u=[];yr(n)?u=gr(n,i,t):u=ri(n,i,s,t);const o=new Ln(u);return t&&t.animations.push(o),o}return e}const ra=ai();function aa(){const t=R(()=>({current:null,animations:[]})),e=R(()=>ai(t));return ni(()=>{t.animations.forEach(n=>n.stop())}),[t,e]}function vr(t,e,n){t.style.setProperty(`--${e}`,n)}function xr(t,e,n){t.style[e]=n}const Sr=Ji(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0}),Et=new WeakMap;function Tr(t,e,n){for(let i=0;in.startsWith("--")?e.style.getPropertyValue(n):window.getComputedStyle(e)[n];if(Array.isArray(i)||(i=[i]),Tr(n,i,a),Cn(s.type)){const c=bn(s,100,s.type);s.ease=ts()?c.ease:rn,s.duration=q(c.duration),s.type="keyframes"}else s.ease=s.ease||rn;const r=()=>{this.setValue(e,n,ns(i,s)),this.cancel(),this.resolveFinishedPromise()},l=()=>{this.setValue=u?vr:xr,this.options=s,this.updateFinishedPromise(),this.removeAnimation=()=>{const c=Et.get(e);c&&c.delete(n)}};es()?(super(Gt(e,n,i,s)),l(),s.autoplay===!1&&this.animation.pause(),this.animation.onfinish=r,an(e).set(n,this)):(super(),l(),r())}then(e,n){return this.currentFinishedPromise.then(e,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}play(){this.state==="finished"&&this.updateFinishedPromise(),super.play()}cancel(){this.removeAnimation(),super.cancel()}}function Er(t,e,n,i){const s=Vt(t,i),u=s.length,o=[];for(let a=0;a{function e(n,i,s){return new Ln(Er(n,i,s,t))}return e},ua=ui();function la(){const t=R(()=>({current:null,animations:[]})),e=R(()=>ui(t));return ni(()=>{t.animations.forEach(n=>n.stop())}),[t,e]}function Ar(){const t=R(Qo);return ht(t.mount,[]),t}const ca=Ar;function ha(t,e,n,i){g.useEffect(()=>{const s=t.current;if(n&&s)return Mt(s,e,n,i)},[t,e,n,i])}class Dr{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,n){this.componentControls.forEach(i=>{i.start(e.nativeEvent||e,n)})}}const wr=()=>new Dr;function fa(){return R(wr)}function Cr(t){return t!==null&&typeof t=="object"&&mn in t}function da(t){if(Cr(t))return t[mn]}function Rr(){return Lr}function Lr(t){_.current&&(_.current.isUpdating=!1,_.current.blockUpdate(),t&&t())}function ma(){return g.useCallback(()=>{const e=_.current;e&&e.resetTree()},[])}function pa(...t){const e=g.useRef(0),[n,i]=g.useState(t[e.current]),s=g.useCallback(u=>{e.current=typeof u!="number"?ii(0,t.length,e.current+1):u,i(t[e.current])},[t.length,...t]);return[n,s]}const Mr={some:0,all:1};function Vr(t,e,{root:n,margin:i,amount:s="some"}={}){const u=Vt(t),o=new WeakMap,a=l=>{l.forEach(c=>{const h=o.get(c.target);if(c.isIntersecting!==!!h)if(c.isIntersecting){const f=e(c);typeof f=="function"?o.set(c.target,f):r.unobserve(c.target)}else typeof h=="function"&&(h(c),o.delete(c.target))})},r=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof s=="number"?s:Mr[s]});return u.forEach(l=>r.observe(l)),()=>r.disconnect()}function ga(t,{root:e,margin:n,amount:i,once:s=!1}={}){const[u,o]=g.useState(!1);return g.useEffect(()=>{if(!t.current||s&&u)return;const a=()=>(o(!0),s?void 0:()=>o(!1)),r={root:e&&e.current||void 0,margin:n,amount:i};return Vr(t.current,a,r)},[e,t,n,s,i]),u}function ya(){const[t,e]=Mn(),n=Rr(),i=g.useRef(-1);return g.useEffect(()=>{S.postRender(()=>S.postRender(()=>{e===i.current&&(Nt.current=!1)}))},[e]),s=>{n(()=>{Nt.current=!0,t(),s(),i.current=e+1})}}function va(){Nt.current=!1}const At=(t,e)=>{const n=dn.has(e)?"transform":e;return`${t}: ${n}`},H=new Map,st=new Map;function un(t,e,n){var i;const s=At(t,e),u=H.get(s);if(!u)return null;const{animation:o,startTime:a}=u;function r(){var l;(l=window.MotionCancelOptimisedAnimation)===null||l===void 0||l.call(window,t,e,n)}return o.onfinish=r,a===null||!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,t)?(r(),null):a}let xt,$;const qt=new Set;function br(){qt.forEach(t=>{t.animation.play(),t.animation.startTime=t.startTime}),qt.clear()}function xa(t,e,n,i,s){if(window.MotionIsMounted)return;const u=t.dataset[yi];if(!u)return;window.MotionHandoffAnimation=un;const o=At(u,e);$||($=Gt(t,e,[n[0],n[0]],{duration:1e4,ease:"linear"}),H.set(o,{animation:$,startTime:null}),window.MotionHandoffAnimation=un,window.MotionHasOptimisedAnimation=(r,l)=>{if(!r)return!1;if(!l)return st.has(r);const c=At(r,l);return!!H.get(c)},window.MotionHandoffMarkAsComplete=r=>{st.has(r)&&st.set(r,!0)},window.MotionHandoffIsComplete=r=>st.get(r)===!0,window.MotionCancelOptimisedAnimation=(r,l,c,h)=>{const f=At(r,l),d=H.get(f);d&&(c&&h===void 0?c.postRender(()=>{c.postRender(()=>{d.animation.cancel()})}):d.animation.cancel(),c&&h?(qt.add(d),c.render(br)):(H.delete(f),H.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(r,l,c)=>{var h,f;const d=Sn(r);if(!d)return;const m=(h=window.MotionHasOptimisedAnimation)===null||h===void 0?void 0:h.call(window,d,l),p=(f=r.props.values)===null||f===void 0?void 0:f[l];if(!m||!p)return;const y=c.on("change",v=>{var x;p.get()!==v&&((x=window.MotionCancelOptimisedAnimation)===null||x===void 0||x.call(window,d,l),y())});return y});const a=()=>{$.cancel();const r=Gt(t,e,n,i);xt===void 0&&(xt=performance.now()),r.startTime=xt,H.set(o,{animation:r,startTime:xt}),s&&s(r)};st.set(u,!1),$.ready?$.ready.then(a).catch(O):a()}const Zt=()=>({});class Br extends Rn{constructor(){super(...arguments),this.measureInstanceViewportBox=T}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return Zt()}getBaseTargetFromProps(){}readValueFromInstance(e,n,i){return i.initialState[n]||0}sortInstanceNodePosition(){return 0}}const jr=vi({scrapeMotionValuesFromProps:Zt,createRenderState:Zt});function Sa(t){const[e,n]=g.useState(t),i=jr({},!1),s=R(()=>new Br({props:{onUpdate:o=>{n({...o})}},visualState:i,presenceContext:null},{initialState:t}));g.useLayoutEffect(()=>(s.mount({}),()=>s.unmount()),[s]);const u=R(()=>o=>Dn(s,o));return[e,u]}let Ir=0;const Ta=({children:t})=>(g.useEffect(()=>{},[]),K.jsx(ls,{id:R(()=>`asl-${Ir++}`),children:t})),Or=1e5,ln=t=>t>.001?1/t:Or;function Pa(t){let e=G(1),n=G(1);const{visualElement:i}=g.useContext(xi);t?(e=t.scaleX||e,n=t.scaleY||n):i&&(e=i.getValue("scaleX",1),n=i.getValue("scaleY",1));const s=Yt(e,ln),u=Yt(n,ln);return{scaleX:s,scaleY:u}}const li=g.createContext(null);function kr(t,e,n,i){if(!i)return t;const s=t.findIndex(c=>c.value===e);if(s===-1)return t;const u=i>0?1:-1,o=t[s+u];if(!o)return t;const a=t[s],r=o.layout,l=A(r.min,r.max,.5);return u===1&&a.layout.max+n>l||u===-1&&a.layout.min+nZn[e]),r=[],l=g.useRef(!1),c={axis:n,registerItem:(h,f)=>{const d=r.findIndex(m=>h===m.value);d!==-1?r[d].layout=f[n]:r.push({value:h,layout:f[n]}),r.sort(zr)},updateOrder:(h,f,d)=>{if(l.current)return;const m=kr(r,h,f,d);r!==m&&(l.current=!0,i(m.map(Wr).filter(p=>s.indexOf(p)!==-1)))}};return g.useEffect(()=>{l.current=!1}),K.jsx(a,{...u,ref:o,ignoreStrict:!0,children:K.jsx(li.Provider,{value:c,children:t})})}const Ur=g.forwardRef(Fr);function Wr(t){return t.value}function zr(t,e){return t.layout.min-e.layout.min}function cn(t,e=0){return W(t)?t:G(e)}function Hr({children:t,style:e={},value:n,as:i="li",onDrag:s,layout:u=!0,...o},a){const r=R(()=>Zn[i]),l=g.useContext(li),c={x:cn(e.x),y:cn(e.y)},h=Yt([c.x,c.y],([p,y])=>p||y?1:"unset"),{axis:f,registerItem:d,updateOrder:m}=l;return K.jsx(r,{drag:f,...o,dragSnapToOrigin:!0,style:{...e,x:c.x,y:c.y,zIndex:h},layout:u,onDrag:(p,y)=>{const{velocity:v}=y;v[f]&&m(n,c[f].get(),v[f]),s&&s(p,y)},onLayoutMeasure:p=>d(n,p),ref:a,ignoreStrict:!0,children:t})}const _r=g.forwardRef(Hr),Ea=Object.freeze(Object.defineProperty({__proto__:null,Group:Ur,Item:_r},Symbol.toStringTag,{value:"Module"}));function Gr(t,e){if(t==="first")return 0;{const n=e-1;return t==="last"?n:n/2}}function Aa(t=.1,{startDelay:e=0,from:n=0,ease:i}={}){return(s,u)=>{const o=typeof n=="number"?n:Gr(n,u),a=Math.abs(o-s);let r=t*a;if(i){const l=u*t;r=ss(i)(r/l)*l}return e+r}}const Da=S,wa=Si.reduce((t,e)=>(t[e]=n=>B(n),t),{});function Ca(t,e="end"){return n=>{n=e==="end"?Math.min(n,.999):Math.max(n,.001);const i=n*t,s=e==="end"?Math.floor(i):Math.ceil(i);return Rt(0,1,s/t)}}export{Ga as AcceleratedAnimation,Ma as AnimatePresence,Ta as AnimateSharedLayout,os as DeprecatedLayoutGroupContext,Dr as DragControls,Os as FlatTree,ls as LayoutGroup,_t as LayoutGroupContext,Va as LazyMotion,ba as MotionConfig,Lt as MotionConfigContext,xi as MotionContext,Ba as MotionGlobalConfig,Hi as MotionValue,ja as PresenceContext,Ea as Reorder,fi as SwitchLayoutGroupContext,Rn as VisualElement,rt as addPointerEvent,Ai as addPointerInfo,di as addScaleCorrector,ra as animate,ua as animateMini,Wi as animateValue,Dn as animateVisualElement,Qo as animationControls,Tn as animations,Na as anticipate,$a as backIn,Xa as backInOut,Ya as backOut,Ia as buildTransform,L as calcLength,B as cancelFrame,wa as cancelSync,Ka as circIn,qa as circInOut,Mi as circOut,Rt as clamp,Za as color,fe as complex,T as createBox,Oa as createRendererMotionComponent,ai as createScopedAnimate,Ja as cubicBezier,ks as delay,va as disableInstantTransitions,ge as distance,fs as distance2D,Oi as domAnimation,qr as domMax,Zr as domMin,Qa as easeIn,tu as easeInOut,eu as easeOut,ka as filterProps,nu as findSpring,S as frame,C as frameData,jt as frameSteps,Vr as inView,iu as inertia,En as interpolate,Qi as invariant,Fa as isBrowser,su as isDragActive,Cr as isMotionComponent,W as isMotionValue,Ua as isValidMotionProp,ou as keyframes,Wa as m,vi as makeUseVisualState,ru as mirrorEasing,au as mix,Zn as motion,X as motionValue,O as noop,za as optimizedAppearDataAttribute,wi as pipe,ct as progress,hn as px,It as resolveMotionValue,uu as reverseEasing,zo as scroll,te as scrollInfo,Zi as spring,Aa as stagger,xa as startOptimizedAppearAnimation,Ca as steps,Da as sync,vn as time,$o as transform,da as unwrapMotionComponent,aa as useAnimate,la as useAnimateMini,ca as useAnimation,Ar as useAnimationControls,_o as useAnimationFrame,pa as useCycle,Sa as useDeprecatedAnimatedState,Pa as useDeprecatedInvertedScale,ha as useDomEvent,fa as useDragControls,Jr as useElementScroll,Mn as useForceUpdate,ga as useInView,Rr as useInstantLayoutTransition,ya as useInstantTransition,Ha as useIsPresent,ht as useIsomorphicLayoutEffect,ta as useMotionTemplate,G as useMotionValue,po as useMotionValueEvent,hi as usePresence,qo as useReducedMotion,oa as useReducedMotionConfig,ma as useResetProjection,ei as useScroll,ea as useSpring,na as useTime,Yt as useTransform,ni as useUnmountEffect,ia as useVelocity,Qr as useViewportScroll,sa as useWillChange,Ct as visualElementStore,ii as wrap}; diff --git a/xiaomusic/static/soundSpace/assets/src-UW24ZMRV-BgSHC2q0.js b/xiaomusic/static/soundSpace/assets/src-UW24ZMRV-BgSHC2q0.js deleted file mode 100644 index 5673970..0000000 --- a/xiaomusic/static/soundSpace/assets/src-UW24ZMRV-BgSHC2q0.js +++ /dev/null @@ -1 +0,0 @@ -import{O as a}from"./features-animation-d7XZ5Dr3.js";import"./index-BlfQbszy.js";var t=a;export{t as default}; diff --git a/xiaomusic/static/soundSpace/assets/src-UW24ZMRV-VnAVJcYj.js b/xiaomusic/static/soundSpace/assets/src-UW24ZMRV-VnAVJcYj.js new file mode 100644 index 0000000..7fb395f --- /dev/null +++ b/xiaomusic/static/soundSpace/assets/src-UW24ZMRV-VnAVJcYj.js @@ -0,0 +1 @@ +import{O as a}from"./features-animation-BRiA9rfd.js";import"./index-ihgeXEwv.js";var t=a;export{t as default}; diff --git a/xiaomusic/static/soundSpace/index.html b/xiaomusic/static/soundSpace/index.html index e34f936..203e502 100644 --- a/xiaomusic/static/soundSpace/index.html +++ b/xiaomusic/static/soundSpace/index.html @@ -2,11 +2,11 @@ - + soundscape - - + +