a()?void 0:g()).then(()=>{t?m(f):w()})})};return{promise:o,cancel:i,continue:()=>(l==null||l(),o),cancelRetry:s,continueRetry:u,canStart:h,start:()=>(h()?w():g().then(w),o)}}function Pv(){let e=[],t=0,n=s=>{s()},r=s=>{s()},l=s=>setTimeout(s,0);const o=s=>{t?e.push(s):l(()=>{n(s)})},i=()=>{const s=e;e=[],s.length&&l(()=>{r(()=>{s.forEach(u=>{n(u)})})})};return{batch:s=>{let u;t++;try{u=s()}finally{t--,t||i()}return u},batchCalls:s=>(...u)=>{o(()=>{s(...u)})},schedule:o,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{l=s}}}var xe=Pv(),sn,Ha,Rf=(Ha=class{constructor(){$(this,sn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hv(this.gcTime)&&M(this,sn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Do?1/0:5*60*1e3))}clearGcTimeout(){S(this,sn)&&(clearTimeout(S(this,sn)),M(this,sn,void 0))}},sn=new WeakMap,Ha),Kn,Gn,Ie,he,tl,un,Ke,st,Ka,_v=(Ka=class extends Rf{constructor(t){super();$(this,Ke);$(this,Kn);$(this,Gn);$(this,Ie);$(this,he);$(this,tl);$(this,un);M(this,un,!1),M(this,tl,t.defaultOptions),this.setOptions(t.options),this.observers=[],M(this,Ie,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,M(this,Kn,Rv(this.options)),this.state=t.state??S(this,Kn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=S(this,he))==null?void 0:t.promise}setOptions(t){this.options={...S(this,tl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,Ie).remove(this)}setData(t,n){const r=gv(this.state.data,t,this.options);return de(this,Ke,st).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){de(this,Ke,st).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,l;const n=(r=S(this,he))==null?void 0:r.promise;return(l=S(this,he))==null||l.cancel(t),n?n.then(He).catch(He):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,Kn))}isActive(){return this.observers.some(t=>vv(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cu||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!mv(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,he))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,he))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),S(this,Ie).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(S(this,he)&&(S(this,un)?S(this,he).cancel({revert:!0}):S(this,he).cancelRetry()),this.scheduleGc()),S(this,Ie).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||de(this,Ke,st).call(this,{type:"invalidate"})}fetch(t,n){var u,a,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(S(this,he))return S(this,he).continueRetry(),S(this,he).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(m=>m.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,l=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(M(this,un,!0),r.signal)})},o=()=>{const d=Ef(this.options,n),m={queryKey:this.queryKey,meta:this.meta};return l(m),M(this,un,!1),this.options.persister?this.options.persister(d,m,this):d(m)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};l(i),(u=this.options.behavior)==null||u.onFetch(i,this),M(this,Gn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=i.fetchOptions)==null?void 0:a.meta))&&de(this,Ke,st).call(this,{type:"fetch",meta:(h=i.fetchOptions)==null?void 0:h.meta});const s=d=>{var m,g,w,v;pi(d)&&d.silent||de(this,Ke,st).call(this,{type:"error",error:d}),pi(d)||((g=(m=S(this,Ie).config).onError)==null||g.call(m,d,this),(v=(w=S(this,Ie).config).onSettled)==null||v.call(w,this.state.data,d,this)),this.scheduleGc()};return M(this,he,Nf({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var m,g,w,v;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(x){s(x);return}(g=(m=S(this,Ie).config).onSuccess)==null||g.call(m,d,this),(v=(w=S(this,Ie).config).onSettled)==null||v.call(w,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,m)=>{de(this,Ke,st).call(this,{type:"failed",failureCount:d,error:m})},onPause:()=>{de(this,Ke,st).call(this,{type:"pause"})},onContinue:()=>{de(this,Ke,st).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),S(this,he).start()}},Kn=new WeakMap,Gn=new WeakMap,Ie=new WeakMap,he=new WeakMap,tl=new WeakMap,un=new WeakMap,Ke=new WeakSet,st=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Nv(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const l=t.error;return pi(l)&&l.revert&&S(this,Gn)?{...S(this,Gn),fetchStatus:"idle"}:{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),xe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),S(this,Ie).notify({query:this,type:"updated",action:t})})},Ka);function Nv(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Pf(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Rv(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var et,Ga,jv=(Ga=class extends Io{constructor(t={}){super();$(this,et);this.config=t,M(this,et,new Map)}build(t,n,r){const l=n.queryKey,o=n.queryHash??au(l,n);let i=this.get(o);return i||(i=new _v({cache:this,queryKey:l,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(l)}),this.add(i)),i}add(t){S(this,et).has(t.queryHash)||(S(this,et).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=S(this,et).get(t.queryHash);n&&(t.destroy(),n===t&&S(this,et).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){xe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return S(this,et).get(t)}getAll(){return[...S(this,et).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ta(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ta(t,r)):n}notify(t){xe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){xe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){xe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},et=new WeakMap,Ga),tt,ge,an,nt,Ct,ba,zv=(ba=class extends Rf{constructor(t){super();$(this,nt);$(this,tt);$(this,ge);$(this,an);this.mutationId=t.mutationId,M(this,ge,t.mutationCache),M(this,tt,[]),this.state=t.state||Lv(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){S(this,tt).includes(t)||(S(this,tt).push(t),this.clearGcTimeout(),S(this,ge).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){M(this,tt,S(this,tt).filter(n=>n!==t)),this.scheduleGc(),S(this,ge).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){S(this,tt).length||(this.state.status==="pending"?this.scheduleGc():S(this,ge).remove(this))}continue(){var t;return((t=S(this,an))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,o,i,s,u,a,h,d,m,g,w,v,x,f,c,p,y,E,N,z;M(this,an,Nf({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(_,D)=>{de(this,nt,Ct).call(this,{type:"failed",failureCount:_,error:D})},onPause:()=>{de(this,nt,Ct).call(this,{type:"pause"})},onContinue:()=>{de(this,nt,Ct).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,ge).canRun(this)}));const n=this.state.status==="pending",r=!S(this,an).canStart();try{if(!n){de(this,nt,Ct).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(l=S(this,ge).config).onMutate)==null?void 0:o.call(l,t,this));const D=await((s=(i=this.options).onMutate)==null?void 0:s.call(i,t));D!==this.state.context&&de(this,nt,Ct).call(this,{type:"pending",context:D,variables:t,isPaused:r})}const _=await S(this,an).start();return await((a=(u=S(this,ge).config).onSuccess)==null?void 0:a.call(u,_,t,this.state.context,this)),await((d=(h=this.options).onSuccess)==null?void 0:d.call(h,_,t,this.state.context)),await((g=(m=S(this,ge).config).onSettled)==null?void 0:g.call(m,_,null,this.state.variables,this.state.context,this)),await((v=(w=this.options).onSettled)==null?void 0:v.call(w,_,null,t,this.state.context)),de(this,nt,Ct).call(this,{type:"success",data:_}),_}catch(_){try{throw await((f=(x=S(this,ge).config).onError)==null?void 0:f.call(x,_,t,this.state.context,this)),await((p=(c=this.options).onError)==null?void 0:p.call(c,_,t,this.state.context)),await((E=(y=S(this,ge).config).onSettled)==null?void 0:E.call(y,void 0,_,this.state.variables,this.state.context,this)),await((z=(N=this.options).onSettled)==null?void 0:z.call(N,void 0,_,t,this.state.context)),_}finally{de(this,nt,Ct).call(this,{type:"error",error:_})}}finally{S(this,ge).runNext(this)}}},tt=new WeakMap,ge=new WeakMap,an=new WeakMap,nt=new WeakSet,Ct=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),xe.batch(()=>{S(this,tt).forEach(r=>{r.onMutationUpdate(t)}),S(this,ge).notify({mutation:this,type:"updated",action:t})})},ba);function Lv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var je,nl,qa,Tv=(qa=class extends Io{constructor(t={}){super();$(this,je);$(this,nl);this.config=t,M(this,je,new Map),M(this,nl,Date.now())}build(t,n,r){const l=new zv({mutationCache:this,mutationId:++pl(this,nl)._,options:t.defaultMutationOptions(n),state:r});return this.add(l),l}add(t){const n=Ll(t),r=S(this,je).get(n)??[];r.push(t),S(this,je).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Ll(t);if(S(this,je).has(n)){const l=(r=S(this,je).get(n))==null?void 0:r.filter(o=>o!==t);l&&(l.length===0?S(this,je).delete(n):S(this,je).set(n,l))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=S(this,je).get(Ll(t)))==null?void 0:r.find(l=>l.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=S(this,je).get(Ll(t)))==null?void 0:r.find(l=>l!==t&&l.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){xe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...S(this,je).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Oa(n,r))}findAll(t={}){return this.getAll().filter(n=>Oa(t,n))}notify(t){xe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return xe.batch(()=>Promise.all(t.map(n=>n.continue().catch(He))))}},je=new WeakMap,nl=new WeakMap,qa);function Ll(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Ia(e){return{onFetch:(t,n)=>{var h,d,m,g,w;const r=t.options,l=(m=(d=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:d.fetchMore)==null?void 0:m.direction,o=((g=t.state.data)==null?void 0:g.pages)||[],i=((w=t.state.data)==null?void 0:w.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const a=async()=>{let v=!1;const x=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},f=Ef(t.options,t.fetchOptions),c=async(p,y,E)=>{if(v)return Promise.reject();if(y==null&&p.pages.length)return Promise.resolve(p);const N={queryKey:t.queryKey,pageParam:y,direction:E?"backward":"forward",meta:t.options.meta};x(N);const z=await f(N),{maxPages:_}=t.options,D=E?xv:wv;return{pages:D(p.pages,z,_),pageParams:D(p.pageParams,y,_)}};if(l&&o.length){const p=l==="backward",y=p?Ov:Da,E={pages:o,pageParams:i},N=y(r,E);s=await c(E,N,p)}else{const p=e??o.length;do{const y=u===0?i[0]??r.initialPageParam:Da(r,s);if(u>0&&y==null)break;s=await c(s,y),u++}while(u{var v,x;return(x=(v=t.options).persister)==null?void 0:x.call(v,a,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=a}}}function Da(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Ov(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var X,Lt,Tt,bn,qn,Ot,Yn,Xn,Ya,Mv=(Ya=class{constructor(e={}){$(this,X);$(this,Lt);$(this,Tt);$(this,bn);$(this,qn);$(this,Ot);$(this,Yn);$(this,Xn);M(this,X,e.queryCache||new jv),M(this,Lt,e.mutationCache||new Tv),M(this,Tt,e.defaultOptions||{}),M(this,bn,new Map),M(this,qn,new Map),M(this,Ot,0)}mount(){pl(this,Ot)._++,S(this,Ot)===1&&(M(this,Yn,Cf.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,X).onFocus())})),M(this,Xn,go.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,X).onOnline())})))}unmount(){var e,t;pl(this,Ot)._--,S(this,Ot)===0&&((e=S(this,Yn))==null||e.call(this),M(this,Yn,void 0),(t=S(this,Xn))==null||t.call(this),M(this,Xn,void 0))}isFetching(e){return S(this,X).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return S(this,Lt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,X).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=S(this,X).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(La(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return S(this,X).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),l=S(this,X).get(r.queryHash),o=l==null?void 0:l.state.data,i=pv(t,o);if(i!==void 0)return S(this,X).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return xe.batch(()=>S(this,X).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,X).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=S(this,X);xe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=S(this,X),r={type:"active",...e};return xe.batch(()=>(n.findAll(e).forEach(l=>{l.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=xe.batch(()=>S(this,X).findAll(e).map(l=>l.cancel(n)));return Promise.all(r).then(He).catch(He)}invalidateQueries(e,t={}){return xe.batch(()=>{if(S(this,X).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=xe.batch(()=>S(this,X).findAll(e).filter(l=>!l.isDisabled()).map(l=>{let o=l.fetch(void 0,n);return n.throwOnError||(o=o.catch(He)),l.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(He)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=S(this,X).build(this,t);return n.isStaleByTime(La(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(He).catch(He)}fetchInfiniteQuery(e){return e.behavior=Ia(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(He).catch(He)}ensureInfiniteQueryData(e){return e.behavior=Ia(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return go.isOnline()?S(this,Lt).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,X)}getMutationCache(){return S(this,Lt)}getDefaultOptions(){return S(this,Tt)}setDefaultOptions(e){M(this,Tt,e)}setQueryDefaults(e,t){S(this,bn).set(Jr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...S(this,bn).values()],n={};return t.forEach(r=>{el(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){S(this,qn).set(Jr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...S(this,qn).values()];let n={};return t.forEach(r=>{el(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...S(this,Tt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=au(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===cu&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...S(this,Tt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){S(this,X).clear(),S(this,Lt).clear()}},X=new WeakMap,Lt=new WeakMap,Tt=new WeakMap,bn=new WeakMap,qn=new WeakMap,Ot=new WeakMap,Yn=new WeakMap,Xn=new WeakMap,Ya),jf=P.createContext(void 0),lg=e=>{const t=P.useContext(jf);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Fv=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),C.jsx(jf.Provider,{value:e,children:t}));const Iv=P.createContext(null),hi={didCatch:!1,error:null};let Dv=class extends P.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=hi}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,l=arguments.length,o=new Array(l),i=0;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}/**
+ */function cs(){return cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function ov(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function iv(e,t){return e.button===0&&(!t||t==="_self")&&!ov(e)}const sv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],uv="6";try{window.__reactRouterVersion=uv}catch{}const av="startTransition",ja=tp[av];function cv(e){let{basename:t,children:n,future:r,window:l}=e,o=P.useRef();o.current==null&&(o.current=pm({window:l,v5Compat:!0}));let i=o.current,[s,u]=P.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},h=P.useCallback(d=>{a&&ja?ja(()=>u(d)):u(d)},[u,a]);return P.useLayoutEffect(()=>i.listen(h),[i,h]),P.useEffect(()=>tv(r),[r]),P.createElement(nv,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i,future:r})}const dv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Or=P.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:s,target:u,to:a,preventScrollReset:h,viewTransition:d}=t,m=lv(t,sv),{basename:g}=P.useContext(wn),w,v=!1;if(typeof a=="string"&&fv.test(a)&&(w=a,dv))try{let p=new URL(window.location.href),y=a.startsWith("//")?new URL(p.protocol+a):new URL(a),E=su(y.pathname,g);y.origin===p.origin&&E!=null?a=E+y.search+y.hash:v=!0}catch{}let x=Um(a,{relative:l}),f=pv(a,{replace:i,state:s,target:u,preventScrollReset:h,relative:l,viewTransition:d});function c(p){r&&r(p),p.defaultPrevented||f(p)}return P.createElement("a",cs({},m,{href:w||x,onClick:v||o?r:c,ref:n,target:u}))});var za;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(za||(za={}));var La;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(La||(La={}));function pv(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,viewTransition:s}=t===void 0?{}:t,u=Bm(),a=al(),h=xf(e,{relative:i});return P.useCallback(d=>{if(iv(d,n)){d.preventDefault();let m=r!==void 0?r:vo(a)===vo(h);u(e,{replace:m,state:l,preventScrollReset:o,relative:i,viewTransition:s})}},[a,u,h,r,l,n,e,o,i,s])}var Io=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Do=typeof window>"u"||"Deno"in globalThis;function He(){}function hv(e,t){return typeof e=="function"?e(t):e}function mv(e){return typeof e=="number"&&e>=0&&e!==1/0}function vv(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ta(e,t){return typeof e=="function"?e(t):e}function yv(e,t){return typeof e=="function"?e(t):e}function Oa(e,t){const{type:n="all",exact:r,fetchStatus:l,predicate:o,queryKey:i,stale:s}=e;if(i){if(r){if(t.queryHash!==au(i,t.options))return!1}else if(!el(t.queryKey,i))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||l&&l!==t.state.fetchStatus||o&&!o(t))}function Ma(e,t){const{exact:n,status:r,predicate:l,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Jr(t.options.mutationKey)!==Jr(o))return!1}else if(!el(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||l&&!l(t))}function au(e,t){return((t==null?void 0:t.queryKeyHashFn)||Jr)(e)}function Jr(e){return JSON.stringify(e,(t,n)=>ds(n)?Object.keys(n).sort().reduce((r,l)=>(r[l]=n[l],r),{}):n)}function el(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!el(e[n],t[n])):!1}function Ef(e,t){if(e===t)return e;const n=Fa(e)&&Fa(t);if(n||ds(e)&&ds(t)){const r=n?e:Object.keys(e),l=r.length,o=n?t:Object.keys(t),i=o.length,s=n?[]:{};let u=0;for(let a=0;a{setTimeout(t,e)})}function wv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ef(e,t):t}function xv(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Sv(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var cu=Symbol();function Cf(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===cu?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var on,jt,Qn,Wa,kv=(Wa=class extends Io{constructor(){super();$(this,on);$(this,jt);$(this,Qn);M(this,Qn,t=>{if(!Do&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){S(this,jt)||this.setEventListener(S(this,Qn))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,jt))==null||t.call(this),M(this,jt,void 0))}setEventListener(t){var n;M(this,Qn,t),(n=S(this,jt))==null||n.call(this),M(this,jt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){S(this,on)!==t&&(M(this,on,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof S(this,on)=="boolean"?S(this,on):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},on=new WeakMap,jt=new WeakMap,Qn=new WeakMap,Wa),Pf=new kv,Wn,zt,Hn,Ha,Ev=(Ha=class extends Io{constructor(){super();$(this,Wn,!0);$(this,zt);$(this,Hn);M(this,Hn,t=>{if(!Do&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){S(this,zt)||this.setEventListener(S(this,Hn))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,zt))==null||t.call(this),M(this,zt,void 0))}setEventListener(t){var n;M(this,Hn,t),(n=S(this,zt))==null||n.call(this),M(this,zt,t(this.setOnline.bind(this)))}setOnline(t){S(this,Wn)!==t&&(M(this,Wn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return S(this,Wn)}},Wn=new WeakMap,zt=new WeakMap,Hn=new WeakMap,Ha),go=new Ev;function Cv(){let e,t;const n=new Promise((l,o)=>{e=l,t=o});n.status="pending",n.catch(()=>{});function r(l){Object.assign(n,l),delete n.resolve,delete n.reject}return n.resolve=l=>{r({status:"fulfilled",value:l}),e(l)},n.reject=l=>{r({status:"rejected",reason:l}),t(l)},n}function Pv(e){return Math.min(1e3*2**e,3e4)}function _f(e){return(e??"online")==="online"?go.isOnline():!0}var Nf=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function pi(e){return e instanceof Nf}function Rf(e){let t=!1,n=0,r=!1,l;const o=Cv(),i=v=>{var x;r||(m(new Nf(v)),(x=e.abort)==null||x.call(e))},s=()=>{t=!0},u=()=>{t=!1},a=()=>Pf.isFocused()&&(e.networkMode==="always"||go.isOnline())&&e.canRun(),h=()=>_f(e.networkMode)&&e.canRun(),d=v=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,v),l==null||l(),o.resolve(v))},m=v=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,v),l==null||l(),o.reject(v))},g=()=>new Promise(v=>{var x;l=f=>{(r||a())&&v(f)},(x=e.onPause)==null||x.call(e)}).then(()=>{var v;l=void 0,r||(v=e.onContinue)==null||v.call(e)}),w=()=>{if(r)return;let v;const x=n===0?e.initialPromise:void 0;try{v=x??e.fn()}catch(f){v=Promise.reject(f)}Promise.resolve(v).then(d).catch(f=>{var N;if(r)return;const c=e.retry??(Do?0:3),p=e.retryDelay??Pv,y=typeof p=="function"?p(n,f):p,E=c===!0||typeof c=="number"&&na()?void 0:g()).then(()=>{t?m(f):w()})})};return{promise:o,cancel:i,continue:()=>(l==null||l(),o),cancelRetry:s,continueRetry:u,canStart:h,start:()=>(h()?w():g().then(w),o)}}function _v(){let e=[],t=0,n=s=>{s()},r=s=>{s()},l=s=>setTimeout(s,0);const o=s=>{t?e.push(s):l(()=>{n(s)})},i=()=>{const s=e;e=[],s.length&&l(()=>{r(()=>{s.forEach(u=>{n(u)})})})};return{batch:s=>{let u;t++;try{u=s()}finally{t--,t||i()}return u},batchCalls:s=>(...u)=>{o(()=>{s(...u)})},schedule:o,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{l=s}}}var xe=_v(),sn,Ka,jf=(Ka=class{constructor(){$(this,sn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mv(this.gcTime)&&M(this,sn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Do?1/0:5*60*1e3))}clearGcTimeout(){S(this,sn)&&(clearTimeout(S(this,sn)),M(this,sn,void 0))}},sn=new WeakMap,Ka),Kn,Gn,Ie,he,tl,un,Ke,st,Ga,Nv=(Ga=class extends jf{constructor(t){super();$(this,Ke);$(this,Kn);$(this,Gn);$(this,Ie);$(this,he);$(this,tl);$(this,un);M(this,un,!1),M(this,tl,t.defaultOptions),this.setOptions(t.options),this.observers=[],M(this,Ie,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,M(this,Kn,jv(this.options)),this.state=t.state??S(this,Kn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=S(this,he))==null?void 0:t.promise}setOptions(t){this.options={...S(this,tl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,Ie).remove(this)}setData(t,n){const r=wv(this.state.data,t,this.options);return de(this,Ke,st).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){de(this,Ke,st).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,l;const n=(r=S(this,he))==null?void 0:r.promise;return(l=S(this,he))==null||l.cancel(t),n?n.then(He).catch(He):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,Kn))}isActive(){return this.observers.some(t=>yv(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cu||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!vv(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,he))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,he))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),S(this,Ie).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(S(this,he)&&(S(this,un)?S(this,he).cancel({revert:!0}):S(this,he).cancelRetry()),this.scheduleGc()),S(this,Ie).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||de(this,Ke,st).call(this,{type:"invalidate"})}fetch(t,n){var u,a,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(S(this,he))return S(this,he).continueRetry(),S(this,he).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(m=>m.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,l=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(M(this,un,!0),r.signal)})},o=()=>{const d=Cf(this.options,n),m={queryKey:this.queryKey,meta:this.meta};return l(m),M(this,un,!1),this.options.persister?this.options.persister(d,m,this):d(m)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};l(i),(u=this.options.behavior)==null||u.onFetch(i,this),M(this,Gn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=i.fetchOptions)==null?void 0:a.meta))&&de(this,Ke,st).call(this,{type:"fetch",meta:(h=i.fetchOptions)==null?void 0:h.meta});const s=d=>{var m,g,w,v;pi(d)&&d.silent||de(this,Ke,st).call(this,{type:"error",error:d}),pi(d)||((g=(m=S(this,Ie).config).onError)==null||g.call(m,d,this),(v=(w=S(this,Ie).config).onSettled)==null||v.call(w,this.state.data,d,this)),this.scheduleGc()};return M(this,he,Rf({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var m,g,w,v;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(x){s(x);return}(g=(m=S(this,Ie).config).onSuccess)==null||g.call(m,d,this),(v=(w=S(this,Ie).config).onSettled)==null||v.call(w,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,m)=>{de(this,Ke,st).call(this,{type:"failed",failureCount:d,error:m})},onPause:()=>{de(this,Ke,st).call(this,{type:"pause"})},onContinue:()=>{de(this,Ke,st).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),S(this,he).start()}},Kn=new WeakMap,Gn=new WeakMap,Ie=new WeakMap,he=new WeakMap,tl=new WeakMap,un=new WeakMap,Ke=new WeakSet,st=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Rv(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const l=t.error;return pi(l)&&l.revert&&S(this,Gn)?{...S(this,Gn),fetchStatus:"idle"}:{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),xe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),S(this,Ie).notify({query:this,type:"updated",action:t})})},Ga);function Rv(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_f(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function jv(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var et,ba,zv=(ba=class extends Io{constructor(t={}){super();$(this,et);this.config=t,M(this,et,new Map)}build(t,n,r){const l=n.queryKey,o=n.queryHash??au(l,n);let i=this.get(o);return i||(i=new Nv({cache:this,queryKey:l,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(l)}),this.add(i)),i}add(t){S(this,et).has(t.queryHash)||(S(this,et).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=S(this,et).get(t.queryHash);n&&(t.destroy(),n===t&&S(this,et).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){xe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return S(this,et).get(t)}getAll(){return[...S(this,et).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Oa(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Oa(t,r)):n}notify(t){xe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){xe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){xe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},et=new WeakMap,ba),tt,ge,an,nt,Ct,qa,Lv=(qa=class extends jf{constructor(t){super();$(this,nt);$(this,tt);$(this,ge);$(this,an);this.mutationId=t.mutationId,M(this,ge,t.mutationCache),M(this,tt,[]),this.state=t.state||Tv(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){S(this,tt).includes(t)||(S(this,tt).push(t),this.clearGcTimeout(),S(this,ge).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){M(this,tt,S(this,tt).filter(n=>n!==t)),this.scheduleGc(),S(this,ge).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){S(this,tt).length||(this.state.status==="pending"?this.scheduleGc():S(this,ge).remove(this))}continue(){var t;return((t=S(this,an))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,o,i,s,u,a,h,d,m,g,w,v,x,f,c,p,y,E,N,z;M(this,an,Rf({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(_,D)=>{de(this,nt,Ct).call(this,{type:"failed",failureCount:_,error:D})},onPause:()=>{de(this,nt,Ct).call(this,{type:"pause"})},onContinue:()=>{de(this,nt,Ct).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,ge).canRun(this)}));const n=this.state.status==="pending",r=!S(this,an).canStart();try{if(!n){de(this,nt,Ct).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(l=S(this,ge).config).onMutate)==null?void 0:o.call(l,t,this));const D=await((s=(i=this.options).onMutate)==null?void 0:s.call(i,t));D!==this.state.context&&de(this,nt,Ct).call(this,{type:"pending",context:D,variables:t,isPaused:r})}const _=await S(this,an).start();return await((a=(u=S(this,ge).config).onSuccess)==null?void 0:a.call(u,_,t,this.state.context,this)),await((d=(h=this.options).onSuccess)==null?void 0:d.call(h,_,t,this.state.context)),await((g=(m=S(this,ge).config).onSettled)==null?void 0:g.call(m,_,null,this.state.variables,this.state.context,this)),await((v=(w=this.options).onSettled)==null?void 0:v.call(w,_,null,t,this.state.context)),de(this,nt,Ct).call(this,{type:"success",data:_}),_}catch(_){try{throw await((f=(x=S(this,ge).config).onError)==null?void 0:f.call(x,_,t,this.state.context,this)),await((p=(c=this.options).onError)==null?void 0:p.call(c,_,t,this.state.context)),await((E=(y=S(this,ge).config).onSettled)==null?void 0:E.call(y,void 0,_,this.state.variables,this.state.context,this)),await((z=(N=this.options).onSettled)==null?void 0:z.call(N,void 0,_,t,this.state.context)),_}finally{de(this,nt,Ct).call(this,{type:"error",error:_})}}finally{S(this,ge).runNext(this)}}},tt=new WeakMap,ge=new WeakMap,an=new WeakMap,nt=new WeakSet,Ct=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),xe.batch(()=>{S(this,tt).forEach(r=>{r.onMutationUpdate(t)}),S(this,ge).notify({mutation:this,type:"updated",action:t})})},qa);function Tv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var je,nl,Ya,Ov=(Ya=class extends Io{constructor(t={}){super();$(this,je);$(this,nl);this.config=t,M(this,je,new Map),M(this,nl,Date.now())}build(t,n,r){const l=new Lv({mutationCache:this,mutationId:++pl(this,nl)._,options:t.defaultMutationOptions(n),state:r});return this.add(l),l}add(t){const n=Ll(t),r=S(this,je).get(n)??[];r.push(t),S(this,je).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Ll(t);if(S(this,je).has(n)){const l=(r=S(this,je).get(n))==null?void 0:r.filter(o=>o!==t);l&&(l.length===0?S(this,je).delete(n):S(this,je).set(n,l))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=S(this,je).get(Ll(t)))==null?void 0:r.find(l=>l.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=S(this,je).get(Ll(t)))==null?void 0:r.find(l=>l!==t&&l.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){xe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...S(this,je).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ma(n,r))}findAll(t={}){return this.getAll().filter(n=>Ma(t,n))}notify(t){xe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return xe.batch(()=>Promise.all(t.map(n=>n.continue().catch(He))))}},je=new WeakMap,nl=new WeakMap,Ya);function Ll(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Da(e){return{onFetch:(t,n)=>{var h,d,m,g,w;const r=t.options,l=(m=(d=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:d.fetchMore)==null?void 0:m.direction,o=((g=t.state.data)==null?void 0:g.pages)||[],i=((w=t.state.data)==null?void 0:w.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const a=async()=>{let v=!1;const x=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},f=Cf(t.options,t.fetchOptions),c=async(p,y,E)=>{if(v)return Promise.reject();if(y==null&&p.pages.length)return Promise.resolve(p);const N={queryKey:t.queryKey,pageParam:y,direction:E?"backward":"forward",meta:t.options.meta};x(N);const z=await f(N),{maxPages:_}=t.options,D=E?Sv:xv;return{pages:D(p.pages,z,_),pageParams:D(p.pageParams,y,_)}};if(l&&o.length){const p=l==="backward",y=p?Mv:Aa,E={pages:o,pageParams:i},N=y(r,E);s=await c(E,N,p)}else{const p=e??o.length;do{const y=u===0?i[0]??r.initialPageParam:Aa(r,s);if(u>0&&y==null)break;s=await c(s,y),u++}while(u{var v,x;return(x=(v=t.options).persister)==null?void 0:x.call(v,a,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=a}}}function Aa(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Mv(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var X,Lt,Tt,bn,qn,Ot,Yn,Xn,Xa,Fv=(Xa=class{constructor(e={}){$(this,X);$(this,Lt);$(this,Tt);$(this,bn);$(this,qn);$(this,Ot);$(this,Yn);$(this,Xn);M(this,X,e.queryCache||new zv),M(this,Lt,e.mutationCache||new Ov),M(this,Tt,e.defaultOptions||{}),M(this,bn,new Map),M(this,qn,new Map),M(this,Ot,0)}mount(){pl(this,Ot)._++,S(this,Ot)===1&&(M(this,Yn,Pf.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,X).onFocus())})),M(this,Xn,go.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,X).onOnline())})))}unmount(){var e,t;pl(this,Ot)._--,S(this,Ot)===0&&((e=S(this,Yn))==null||e.call(this),M(this,Yn,void 0),(t=S(this,Xn))==null||t.call(this),M(this,Xn,void 0))}isFetching(e){return S(this,X).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return S(this,Lt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,X).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=S(this,X).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ta(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return S(this,X).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),l=S(this,X).get(r.queryHash),o=l==null?void 0:l.state.data,i=hv(t,o);if(i!==void 0)return S(this,X).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return xe.batch(()=>S(this,X).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,X).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=S(this,X);xe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=S(this,X),r={type:"active",...e};return xe.batch(()=>(n.findAll(e).forEach(l=>{l.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=xe.batch(()=>S(this,X).findAll(e).map(l=>l.cancel(n)));return Promise.all(r).then(He).catch(He)}invalidateQueries(e,t={}){return xe.batch(()=>{if(S(this,X).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=xe.batch(()=>S(this,X).findAll(e).filter(l=>!l.isDisabled()).map(l=>{let o=l.fetch(void 0,n);return n.throwOnError||(o=o.catch(He)),l.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(He)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=S(this,X).build(this,t);return n.isStaleByTime(Ta(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(He).catch(He)}fetchInfiniteQuery(e){return e.behavior=Da(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(He).catch(He)}ensureInfiniteQueryData(e){return e.behavior=Da(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return go.isOnline()?S(this,Lt).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,X)}getMutationCache(){return S(this,Lt)}getDefaultOptions(){return S(this,Tt)}setDefaultOptions(e){M(this,Tt,e)}setQueryDefaults(e,t){S(this,bn).set(Jr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...S(this,bn).values()],n={};return t.forEach(r=>{el(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){S(this,qn).set(Jr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...S(this,qn).values()];let n={};return t.forEach(r=>{el(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...S(this,Tt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=au(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===cu&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...S(this,Tt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){S(this,X).clear(),S(this,Lt).clear()}},X=new WeakMap,Lt=new WeakMap,Tt=new WeakMap,bn=new WeakMap,qn=new WeakMap,Ot=new WeakMap,Yn=new WeakMap,Xn=new WeakMap,Xa),zf=P.createContext(void 0),og=e=>{const t=P.useContext(zf);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Iv=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),C.jsx(zf.Provider,{value:e,children:t}));const Dv=P.createContext(null),hi={didCatch:!1,error:null};let Av=class extends P.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=hi}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,l=arguments.length,o=new Array(l),i=0;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */var Uv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
+ */var Bv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const Bv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),se=(e,t)=>{const n=P.forwardRef(({color:r="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:s="",children:u,...a},h)=>P.createElement("svg",{ref:h,...Uv,width:l,height:l,stroke:r,strokeWidth:i?Number(o)*24/Number(l):o,className:["lucide",`lucide-${Bv(e)}`,s].join(" "),...a},[...t.map(([d,m])=>P.createElement(d,m)),...Array.isArray(u)?u:[u]]));return n.displayName=`${e}`,n};/**
+ */const $v=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),se=(e,t)=>{const n=P.forwardRef(({color:r="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:s="",children:u,...a},h)=>P.createElement("svg",{ref:h,...Bv,width:l,height:l,stroke:r,strokeWidth:i?Number(o)*24/Number(l):o,className:["lucide",`lucide-${$v(e)}`,s].join(" "),...a},[...t.map(([d,m])=>P.createElement(d,m)),...Array.isArray(u)?u:[u]]));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const $v=se("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
+ */const Vv=se("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const Vv=se("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}]]);/**
+ */const Qv=se("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const Qv=se("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
+ */const Wv=se("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const Wv=se("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
+ */const Hv=se("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const Hv=se("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
+ */const Kv=se("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const Kv=se("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
+ */const Gv=se("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const Gv=se("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
+ */const bv=se("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const bv=se("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/**
+ */const qv=se("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const qv=se("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
+ */const Yv=se("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const Yv=se("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
+ */const Xv=se("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const Xv=se("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
+ */const Zv=se("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const Zv=se("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
+ */const Jv=se("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const Jv=se("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
+ */const ey=se("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const ey=se("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/**
+ */const ty=se("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const ty=se("PanelsTopLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);/**
+ */const ny=se("PanelsTopLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const ny=se("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/**
+ */const ry=se("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const ry=se("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
+ */const ly=se("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const ly=se("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);function oy({error:e}){return C.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:C.jsxs("div",{className:"max-w-md w-full p-6 bg-white/80 backdrop-blur-lg rounded-lg shadow-lg",children:[C.jsx("div",{className:"flex items-center justify-center text-red-500 mb-4",children:C.jsx($v,{size:48})}),C.jsx("h2",{className:"text-2xl font-bold text-gray-900 text-center mb-4",children:"Something went wrong"}),C.jsx("pre",{className:"text-sm bg-gray-100 p-4 rounded overflow-auto",children:e.message}),C.jsx("button",{onClick:()=>window.location.reload(),className:"mt-4 w-full bg-cornflower-blue text-white py-2 px-4 rounded hover:bg-blue-600 transition-colors",children:"Try again"})]})})}function iy({children:e}){return C.jsx(Dv,{FallbackComponent:oy,children:e})}function zf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t{const t=cy(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(du);return s[0]===""&&s.length!==1&&s.shift(),Lf(s,t)||ay(i)},getConflictingClassGroupIds:(i,s)=>{const u=n[i]||[];return s&&r[i]?[...u,...r[i]]:u}}},Lf=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),l=r?Lf(e.slice(1),r):void 0;if(l)return l;if(t.validators.length===0)return;const o=e.join(du);return(i=t.validators.find(({validator:s})=>s(o)))==null?void 0:i.classGroupId},Aa=/^\[(.+)\]$/,ay=e=>{if(Aa.test(e)){const t=Aa.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},cy=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return fy(Object.entries(e.classGroups),n).forEach(([o,i])=>{fs(i,r,o,t)}),r},fs=(e,t,n,r)=>{e.forEach(l=>{if(typeof l=="string"){const o=l===""?t:Ua(t,l);o.classGroupId=n;return}if(typeof l=="function"){if(dy(l)){fs(l(r),t,n,r);return}t.validators.push({validator:l,classGroupId:n});return}Object.entries(l).forEach(([o,i])=>{fs(i,Ua(t,o),n,r)})})},Ua=(e,t)=>{let n=e;return t.split(du).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},dy=e=>e.isThemeGetter,fy=(e,t)=>t?e.map(([n,r])=>{const l=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,s])=>[t+i,s])):o);return[n,l]}):e,py=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const l=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return l(o,i),i},set(o,i){n.has(o)?n.set(o,i):l(o,i)}}},Tf="!",hy=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,l=t[0],o=t.length,i=s=>{const u=[];let a=0,h=0,d;for(let x=0;xh?d-h:void 0;return{modifiers:u,hasImportantModifier:g,baseClassName:w,maybePostfixModifierPosition:v}};return n?s=>n({className:s,parseClassName:i}):i},my=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},vy=e=>({cache:py(e.cacheSize),parseClassName:hy(e),...uy(e)}),yy=/\s+/,gy=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:l}=t,o=[],i=e.trim().split(yy);let s="";for(let u=i.length-1;u>=0;u-=1){const a=i[u],{modifiers:h,hasImportantModifier:d,baseClassName:m,maybePostfixModifierPosition:g}=n(a);let w=!!g,v=r(w?m.substring(0,g):m);if(!v){if(!w){s=a+(s.length>0?" "+s:s);continue}if(v=r(m),!v){s=a+(s.length>0?" "+s:s);continue}w=!1}const x=my(h).join(":"),f=d?x+Tf:x,c=f+v;if(o.includes(c))continue;o.push(c);const p=l(v,w);for(let y=0;y0?" "+s:s)}return s};function wy(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(h),e());return n=vy(a),r=n.cache.get,l=n.cache.set,o=s,s(u)}function s(u){const a=r(u);if(a)return a;const h=gy(u,n);return l(u,h),h}return function(){return o(wy.apply(null,arguments))}}const W=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Mf=/^\[(?:([a-z-]+):)?(.+)\]$/i,Sy=/^\d+\/\d+$/,ky=new Set(["px","full","screen"]),Ey=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Cy=/\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$/,Py=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_y=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ny=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,it=e=>Vn(e)||ky.has(e)||Sy.test(e),St=e=>ar(e,"length",Fy),Vn=e=>!!e&&!Number.isNaN(Number(e)),mi=e=>ar(e,"number",Vn),gr=e=>!!e&&Number.isInteger(Number(e)),Ry=e=>e.endsWith("%")&&Vn(e.slice(0,-1)),O=e=>Mf.test(e),kt=e=>Ey.test(e),jy=new Set(["length","size","percentage"]),zy=e=>ar(e,jy,Ff),Ly=e=>ar(e,"position",Ff),Ty=new Set(["image","url"]),Oy=e=>ar(e,Ty,Dy),My=e=>ar(e,"",Iy),wr=()=>!0,ar=(e,t,n)=>{const r=Mf.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Fy=e=>Cy.test(e)&&!Py.test(e),Ff=()=>!1,Iy=e=>_y.test(e),Dy=e=>Ny.test(e),Ay=()=>{const e=W("colors"),t=W("spacing"),n=W("blur"),r=W("brightness"),l=W("borderColor"),o=W("borderRadius"),i=W("borderSpacing"),s=W("borderWidth"),u=W("contrast"),a=W("grayscale"),h=W("hueRotate"),d=W("invert"),m=W("gap"),g=W("gradientColorStops"),w=W("gradientColorStopPositions"),v=W("inset"),x=W("margin"),f=W("opacity"),c=W("padding"),p=W("saturate"),y=W("scale"),E=W("sepia"),N=W("skew"),z=W("space"),_=W("translate"),D=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],ye=()=>["auto",O,t],B=()=>[O,t],gt=()=>["",it,St],Xt=()=>["auto",Vn,O],cl=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],wt=()=>["solid","dashed","dotted","double","none"],kn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",O],T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[Vn,O];return{cacheSize:500,separator:":",theme:{colors:[wr],spacing:[it,St],blur:["none","",kt,O],brightness:U(),borderColor:[e],borderRadius:["none","","full",kt,O],borderSpacing:B(),borderWidth:gt(),contrast:U(),grayscale:L(),hueRotate:U(),invert:L(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[Ry,St],inset:ye(),margin:ye(),opacity:U(),padding:B(),saturate:U(),scale:U(),sepia:L(),skew:U(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[kt]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","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:[...cl(),O]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",gr,O]}],basis:[{basis:ye()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",gr,O]}],"grid-cols":[{"grid-cols":[wr]}],"col-start-end":[{col:["auto",{span:["full",gr,O]},O]}],"col-start":[{"col-start":Xt()}],"col-end":[{"col-end":Xt()}],"grid-rows":[{"grid-rows":[wr]}],"row-start-end":[{row:["auto",{span:[gr,O]},O]}],"row-start":[{"row-start":Xt()}],"row-end":[{"row-end":Xt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[c]}],px:[{px:[c]}],py:[{py:[c]}],ps:[{ps:[c]}],pe:[{pe:[c]}],pt:[{pt:[c]}],pr:[{pr:[c]}],pb:[{pb:[c]}],pl:[{pl:[c]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[z]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[z]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,t]}],"min-w":[{"min-w":[O,t,"min","max","fit"]}],"max-w":[{"max-w":[O,t,"none","full","min","max","fit","prose",{screen:[kt]},kt]}],h:[{h:[O,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,t,"auto","min","max","fit"]}],"font-size":[{text:["base",kt,St]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",mi]}],"font-family":[{font:[wr]}],"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:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",Vn,mi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",it,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[f]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...wt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",it,St]}],"underline-offset":[{"underline-offset":["auto",it,O]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[f]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...cl(),Ly]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zy]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Oy]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[f]}],"border-style":[{border:[...wt(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[f]}],"divide-style":[{divide:wt()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...wt()]}],"outline-offset":[{"outline-offset":[it,O]}],"outline-w":[{outline:[it,St]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:gt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[f]}],"ring-offset-w":[{"ring-offset":[it,St]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",kt,My]}],"shadow-color":[{shadow:[wr]}],opacity:[{opacity:[f]}],"mix-blend":[{"mix-blend":[...kn(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":kn()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",kt,O]}],grayscale:[{grayscale:[a]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[d]}],saturate:[{saturate:[p]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[a]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[f]}],"backdrop-saturate":[{"backdrop-saturate":[p]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[gr,O]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[it,St,mi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},Uy=xy(Ay);function Ba(...e){return Uy(sy(e))}function ig(e){return new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function sg(e){return`${e} Mbps`}const $a=[{name:"Home",href:"/",icon:bv},{name:"About",href:"/about",icon:Yv},{name:"Features",href:"/features",icon:ty},{name:"Gallery",href:"/gallery",icon:qv},{name:"Download",href:"/download",icon:Wv},{name:"Developers",href:"/developers",icon:Qv},{name:"Donate",href:"/donate",icon:Kv}];function By(){return C.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("path",{d:"M16 2L3 9V23L16 30L29 23V9L16 2Z",stroke:"#6495ED",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),C.jsx("path",{d:"M16 2V16M16 16V30M16 16L29 9M16 16L3 9",stroke:"#6495ED",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function $y(){const[e,t]=P.useState(!1),n=al();return C.jsxs("nav",{className:"fixed w-full z-50 bg-white/80 backdrop-blur-lg border-b border-gray-200",children:[C.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:C.jsxs("div",{className:"flex justify-between h-16",children:[C.jsx("div",{className:"flex",children:C.jsxs(Or,{to:"/",className:"flex-shrink-0 flex items-center",children:[C.jsx(By,{}),C.jsx("span",{className:"ml-2 text-xl font-bold text-gray-900",children:"Snigdha OS"})]})}),C.jsx("div",{className:"hidden sm:flex sm:items-center sm:space-x-8",children:$a.map(r=>C.jsxs(Or,{to:r.href,className:Ba("px-3 py-2 rounded-md text-sm font-medium transition-colors flex items-center gap-2",n.pathname===r.href?"text-cornflower-blue":"text-gray-600 hover:text-cornflower-blue"),children:[C.jsx(r.icon,{className:"h-4 w-4"}),r.name]},r.name))}),C.jsx("div",{className:"flex items-center sm:hidden",children:C.jsx("button",{onClick:()=>t(!e),className:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100",children:e?C.jsx(ry,{className:"h-6 w-6"}):C.jsx(Zv,{className:"h-6 w-6"})})})]})}),e&&C.jsx("div",{className:"sm:hidden bg-white/90 backdrop-blur-lg",children:C.jsx("div",{className:"px-2 pt-2 pb-3 space-y-1",children:$a.map(r=>C.jsxs(Or,{to:r.href,className:Ba("block px-3 py-2 rounded-md text-base font-medium flex items-center gap-2",n.pathname===r.href?"text-cornflower-blue bg-blue-50":"text-gray-600 hover:text-cornflower-blue hover:bg-blue-50"),onClick:()=>t(!1),children:[C.jsx(r.icon,{className:"h-4 w-4"}),r.name]},r.name))})})]})}const Tl={main:[{name:"Gallery",href:"/gallery"},{name:"Developers",href:"/developers"},{name:"Donate",href:"/donate"}],resources:[{name:"Documentation",href:"/docs",icon:Vv},{name:"Blog",href:"/blog",icon:ey},{name:"Support",href:"/support",icon:Gv}],community:[{name:"Community",href:"/community",icon:Jv},{name:"GitHub",href:"https://github.com/Snigdha-OS",icon:Hv},{name:"Twitter",href:"https://twitter.com",icon:ny},{name:"YouTube",href:"https://youtube.com",icon:ly}]};function Vy(){const e=new Date().getFullYear();return C.jsx("footer",{className:"bg-gray-900 text-gray-300",children:C.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[C.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[C.jsxs("div",{className:"space-y-4",children:[C.jsx("h3",{className:"text-lg font-semibold text-white",children:"Snigdha OS"}),C.jsx("p",{className:"text-sm",children:"The most advanced penetration testing distribution, designed for security professionals and enthusiasts."}),C.jsx("div",{className:"flex space-x-4",children:Tl.community.map(t=>C.jsx("a",{href:t.href,className:"hover:text-white transition-colors",target:"_blank",rel:"noopener noreferrer",children:C.jsx(t.icon,{className:"h-5 w-5"})},t.name))})]}),C.jsxs("div",{children:[C.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Navigation"}),C.jsx("ul",{className:"space-y-3",children:Tl.main.map(t=>C.jsx("li",{children:C.jsx(Or,{to:t.href,className:"hover:text-white transition-colors",children:t.name})},t.name))})]}),C.jsxs("div",{children:[C.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Resources"}),C.jsx("ul",{className:"space-y-3",children:Tl.resources.map(t=>C.jsx("li",{children:C.jsxs(Or,{to:t.href,className:"flex items-center gap-2 hover:text-white transition-colors",children:[C.jsx(t.icon,{className:"h-4 w-4"}),t.name]})},t.name))})]}),C.jsxs("div",{children:[C.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Community"}),C.jsx("ul",{className:"space-y-3",children:Tl.community.map(t=>C.jsx("li",{children:C.jsxs("a",{href:t.href,className:"flex items-center gap-2 hover:text-white transition-colors",target:"_blank",rel:"noopener noreferrer",children:[C.jsx(t.icon,{className:"h-4 w-4"}),t.name]})},t.name))})]})]}),C.jsx("div",{className:"mt-12 pt-8 border-t border-gray-800 text-sm text-center",children:C.jsxs("p",{children:["© ",e," Snigdha OS. All rights reserved."]})})]})})}const Qy="modulepreload",Wy=function(e){return"/"+e},Va={},Sn=function(t,n,r){let l=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));l=Promise.allSettled(n.map(u=>{if(u=Wy(u),u in Va)return;Va[u]=!0;const a=u.endsWith(".css"),h=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const d=document.createElement("link");if(d.rel=a?"stylesheet":Qy,a||(d.as="script"),d.crossOrigin="",d.href=u,s&&d.setAttribute("nonce",s),document.head.appendChild(d),a)return new Promise((m,g)=>{d.addEventListener("load",m),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return l.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},Hy=P.lazy(()=>Sn(()=>import("./Home-Bfss_oJS.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),Ky=P.lazy(()=>Sn(()=>import("./About-ChKBCMBI.js"),__vite__mapDeps([7,1,3]))),Gy=P.lazy(()=>Sn(()=>import("./Features-nSjenAti.js"),__vite__mapDeps([8,1,2]))),by=P.lazy(()=>Sn(()=>import("./Download-qfXa79fe.js"),__vite__mapDeps([9,1,6,5,10]))),qy=P.lazy(()=>Sn(()=>import("./Developers-CfXvFnZ7.js"),__vite__mapDeps([11,12,1,10,3,4]))),Yy=P.lazy(()=>Sn(()=>import("./Donate-DyOQSQtj.js"),__vite__mapDeps([13,1,6,3,4,12]))),Xy=P.lazy(()=>Sn(()=>import("./Gallery-CZtWqqFq.js"),__vite__mapDeps([14,1])));function Zy(){return C.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:C.jsx(Xv,{className:"h-8 w-8 animate-spin text-cornflower-blue"})})}function Jy(){return C.jsx(P.Suspense,{fallback:C.jsx(Zy,{}),children:C.jsxs(nv,{children:[C.jsx(Et,{path:"/",element:C.jsx(Hy,{})}),C.jsx(Et,{path:"/about",element:C.jsx(Ky,{})}),C.jsx(Et,{path:"/features",element:C.jsx(Gy,{})}),C.jsx(Et,{path:"/download",element:C.jsx(by,{})}),C.jsx(Et,{path:"/developers",element:C.jsx(qy,{})}),C.jsx(Et,{path:"/donate",element:C.jsx(Yy,{})}),C.jsx(Et,{path:"/gallery",element:C.jsx(Xy,{})})]})})}const eg=new Mv({defaultOptions:{queries:{staleTime:1e3*60*5,retry:1}}});function tg(){return C.jsx(iy,{children:C.jsx(Fv,{client:eg,children:C.jsx(av,{basename:"/snigdha-os",children:C.jsxs("div",{className:"min-h-screen bg-gray-50 font-fira-sans flex flex-col",children:[C.jsx($y,{}),C.jsx("main",{className:"flex-grow pt-16",children:C.jsx(Jy,{})}),C.jsx(Vy,{})]})})})})}cf(document.getElementById("root")).render(C.jsx(P.StrictMode,{children:C.jsx(tg,{})}));export{Vv as B,Wv as D,Hv as G,Kv as H,Or as L,Io as S,ry as X,Xv as a,ig as b,se as c,vv as d,La as e,sg as f,He as g,hv as h,Do as i,C as j,Cf as k,Nv as l,gv as m,xe as n,kf as o,Ev as p,P as r,rg as s,mv as t,lg as u};
+ */const oy=se("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);function iy({error:e}){return C.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:C.jsxs("div",{className:"max-w-md w-full p-6 bg-white/80 backdrop-blur-lg rounded-lg shadow-lg",children:[C.jsx("div",{className:"flex items-center justify-center text-red-500 mb-4",children:C.jsx(Vv,{size:48})}),C.jsx("h2",{className:"text-2xl font-bold text-gray-900 text-center mb-4",children:"Something went wrong"}),C.jsx("pre",{className:"text-sm bg-gray-100 p-4 rounded overflow-auto",children:e.message}),C.jsx("button",{onClick:()=>window.location.reload(),className:"mt-4 w-full bg-cornflower-blue text-white py-2 px-4 rounded hover:bg-blue-600 transition-colors",children:"Try again"})]})})}function sy({children:e}){return C.jsx(Av,{FallbackComponent:iy,children:e})}function Lf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t{const t=dy(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(du);return s[0]===""&&s.length!==1&&s.shift(),Tf(s,t)||cy(i)},getConflictingClassGroupIds:(i,s)=>{const u=n[i]||[];return s&&r[i]?[...u,...r[i]]:u}}},Tf=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),l=r?Tf(e.slice(1),r):void 0;if(l)return l;if(t.validators.length===0)return;const o=e.join(du);return(i=t.validators.find(({validator:s})=>s(o)))==null?void 0:i.classGroupId},Ua=/^\[(.+)\]$/,cy=e=>{if(Ua.test(e)){const t=Ua.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},dy=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return py(Object.entries(e.classGroups),n).forEach(([o,i])=>{fs(i,r,o,t)}),r},fs=(e,t,n,r)=>{e.forEach(l=>{if(typeof l=="string"){const o=l===""?t:Ba(t,l);o.classGroupId=n;return}if(typeof l=="function"){if(fy(l)){fs(l(r),t,n,r);return}t.validators.push({validator:l,classGroupId:n});return}Object.entries(l).forEach(([o,i])=>{fs(i,Ba(t,o),n,r)})})},Ba=(e,t)=>{let n=e;return t.split(du).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},fy=e=>e.isThemeGetter,py=(e,t)=>t?e.map(([n,r])=>{const l=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,s])=>[t+i,s])):o);return[n,l]}):e,hy=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const l=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return l(o,i),i},set(o,i){n.has(o)?n.set(o,i):l(o,i)}}},Of="!",my=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,l=t[0],o=t.length,i=s=>{const u=[];let a=0,h=0,d;for(let x=0;xh?d-h:void 0;return{modifiers:u,hasImportantModifier:g,baseClassName:w,maybePostfixModifierPosition:v}};return n?s=>n({className:s,parseClassName:i}):i},vy=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},yy=e=>({cache:hy(e.cacheSize),parseClassName:my(e),...ay(e)}),gy=/\s+/,wy=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:l}=t,o=[],i=e.trim().split(gy);let s="";for(let u=i.length-1;u>=0;u-=1){const a=i[u],{modifiers:h,hasImportantModifier:d,baseClassName:m,maybePostfixModifierPosition:g}=n(a);let w=!!g,v=r(w?m.substring(0,g):m);if(!v){if(!w){s=a+(s.length>0?" "+s:s);continue}if(v=r(m),!v){s=a+(s.length>0?" "+s:s);continue}w=!1}const x=vy(h).join(":"),f=d?x+Of:x,c=f+v;if(o.includes(c))continue;o.push(c);const p=l(v,w);for(let y=0;y0?" "+s:s)}return s};function xy(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(h),e());return n=yy(a),r=n.cache.get,l=n.cache.set,o=s,s(u)}function s(u){const a=r(u);if(a)return a;const h=wy(u,n);return l(u,h),h}return function(){return o(xy.apply(null,arguments))}}const W=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ff=/^\[(?:([a-z-]+):)?(.+)\]$/i,ky=/^\d+\/\d+$/,Ey=new Set(["px","full","screen"]),Cy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Py=/\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$/,_y=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ny=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ry=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,it=e=>Vn(e)||Ey.has(e)||ky.test(e),St=e=>ar(e,"length",Iy),Vn=e=>!!e&&!Number.isNaN(Number(e)),mi=e=>ar(e,"number",Vn),gr=e=>!!e&&Number.isInteger(Number(e)),jy=e=>e.endsWith("%")&&Vn(e.slice(0,-1)),O=e=>Ff.test(e),kt=e=>Cy.test(e),zy=new Set(["length","size","percentage"]),Ly=e=>ar(e,zy,If),Ty=e=>ar(e,"position",If),Oy=new Set(["image","url"]),My=e=>ar(e,Oy,Ay),Fy=e=>ar(e,"",Dy),wr=()=>!0,ar=(e,t,n)=>{const r=Ff.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Iy=e=>Py.test(e)&&!_y.test(e),If=()=>!1,Dy=e=>Ny.test(e),Ay=e=>Ry.test(e),Uy=()=>{const e=W("colors"),t=W("spacing"),n=W("blur"),r=W("brightness"),l=W("borderColor"),o=W("borderRadius"),i=W("borderSpacing"),s=W("borderWidth"),u=W("contrast"),a=W("grayscale"),h=W("hueRotate"),d=W("invert"),m=W("gap"),g=W("gradientColorStops"),w=W("gradientColorStopPositions"),v=W("inset"),x=W("margin"),f=W("opacity"),c=W("padding"),p=W("saturate"),y=W("scale"),E=W("sepia"),N=W("skew"),z=W("space"),_=W("translate"),D=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],ye=()=>["auto",O,t],B=()=>[O,t],gt=()=>["",it,St],Xt=()=>["auto",Vn,O],cl=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],wt=()=>["solid","dashed","dotted","double","none"],kn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",O],T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[Vn,O];return{cacheSize:500,separator:":",theme:{colors:[wr],spacing:[it,St],blur:["none","",kt,O],brightness:U(),borderColor:[e],borderRadius:["none","","full",kt,O],borderSpacing:B(),borderWidth:gt(),contrast:U(),grayscale:L(),hueRotate:U(),invert:L(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[jy,St],inset:ye(),margin:ye(),opacity:U(),padding:B(),saturate:U(),scale:U(),sepia:L(),skew:U(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[kt]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","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:[...cl(),O]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",gr,O]}],basis:[{basis:ye()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",gr,O]}],"grid-cols":[{"grid-cols":[wr]}],"col-start-end":[{col:["auto",{span:["full",gr,O]},O]}],"col-start":[{"col-start":Xt()}],"col-end":[{"col-end":Xt()}],"grid-rows":[{"grid-rows":[wr]}],"row-start-end":[{row:["auto",{span:[gr,O]},O]}],"row-start":[{"row-start":Xt()}],"row-end":[{"row-end":Xt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[c]}],px:[{px:[c]}],py:[{py:[c]}],ps:[{ps:[c]}],pe:[{pe:[c]}],pt:[{pt:[c]}],pr:[{pr:[c]}],pb:[{pb:[c]}],pl:[{pl:[c]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[z]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[z]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,t]}],"min-w":[{"min-w":[O,t,"min","max","fit"]}],"max-w":[{"max-w":[O,t,"none","full","min","max","fit","prose",{screen:[kt]},kt]}],h:[{h:[O,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,t,"auto","min","max","fit"]}],"font-size":[{text:["base",kt,St]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",mi]}],"font-family":[{font:[wr]}],"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:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",Vn,mi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",it,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[f]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...wt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",it,St]}],"underline-offset":[{"underline-offset":["auto",it,O]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[f]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...cl(),Ty]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ly]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},My]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[f]}],"border-style":[{border:[...wt(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[f]}],"divide-style":[{divide:wt()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...wt()]}],"outline-offset":[{"outline-offset":[it,O]}],"outline-w":[{outline:[it,St]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:gt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[f]}],"ring-offset-w":[{"ring-offset":[it,St]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",kt,Fy]}],"shadow-color":[{shadow:[wr]}],opacity:[{opacity:[f]}],"mix-blend":[{"mix-blend":[...kn(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":kn()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",kt,O]}],grayscale:[{grayscale:[a]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[d]}],saturate:[{saturate:[p]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[a]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[f]}],"backdrop-saturate":[{"backdrop-saturate":[p]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[gr,O]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[it,St,mi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},By=Sy(Uy);function $a(...e){return By(uy(e))}function sg(e){return new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function ug(e){return`${e} Mbps`}const Va=[{name:"Home",href:"/",icon:qv},{name:"About",href:"/about",icon:Xv},{name:"Features",href:"/features",icon:ny},{name:"Gallery",href:"/gallery",icon:Yv},{name:"Download",href:"/download",icon:Hv},{name:"Developers",href:"/developers",icon:Wv},{name:"Donate",href:"/donate",icon:Gv}];function $y(){return C.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("path",{d:"M16 2L3 9V23L16 30L29 23V9L16 2Z",stroke:"#6495ED",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),C.jsx("path",{d:"M16 2V16M16 16V30M16 16L29 9M16 16L3 9",stroke:"#6495ED",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Vy(){const[e,t]=P.useState(!1),n=al();return C.jsxs("nav",{className:"fixed w-full z-50 bg-white/80 backdrop-blur-lg border-b border-gray-200",children:[C.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:C.jsxs("div",{className:"flex justify-between h-16",children:[C.jsx("div",{className:"flex",children:C.jsxs(Or,{to:"/",className:"flex-shrink-0 flex items-center",children:[C.jsx($y,{}),C.jsx("span",{className:"ml-2 text-xl font-bold text-gray-900",children:"Snigdha OS"})]})}),C.jsx("div",{className:"hidden sm:flex sm:items-center sm:space-x-8",children:Va.map(r=>C.jsxs(Or,{to:r.href,className:$a("px-3 py-2 rounded-md text-sm font-medium transition-colors flex items-center gap-2",n.pathname===r.href?"text-cornflower-blue":"text-gray-600 hover:text-cornflower-blue"),children:[C.jsx(r.icon,{className:"h-4 w-4"}),r.name]},r.name))}),C.jsx("div",{className:"flex items-center sm:hidden",children:C.jsx("button",{onClick:()=>t(!e),className:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100",children:e?C.jsx(ly,{className:"h-6 w-6"}):C.jsx(Jv,{className:"h-6 w-6"})})})]})}),e&&C.jsx("div",{className:"sm:hidden bg-white/90 backdrop-blur-lg",children:C.jsx("div",{className:"px-2 pt-2 pb-3 space-y-1",children:Va.map(r=>C.jsxs(Or,{to:r.href,className:$a("block px-3 py-2 rounded-md text-base font-medium flex items-center gap-2",n.pathname===r.href?"text-cornflower-blue bg-blue-50":"text-gray-600 hover:text-cornflower-blue hover:bg-blue-50"),onClick:()=>t(!1),children:[C.jsx(r.icon,{className:"h-4 w-4"}),r.name]},r.name))})})]})}const Tl={main:[{name:"Gallery",href:"/gallery"},{name:"Developers",href:"/developers"},{name:"Donate",href:"/donate"}],resources:[{name:"Documentation",href:"/docs",icon:Qv},{name:"Blog",href:"/blog",icon:ty},{name:"Support",href:"/support",icon:bv}],community:[{name:"Community",href:"/community",icon:ey},{name:"GitHub",href:"https://github.com/Snigdha-OS",icon:Kv},{name:"Twitter",href:"https://twitter.com",icon:ry},{name:"YouTube",href:"https://youtube.com",icon:oy}]};function Qy(){const e=new Date().getFullYear();return C.jsx("footer",{className:"bg-gray-900 text-gray-300",children:C.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[C.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[C.jsxs("div",{className:"space-y-4",children:[C.jsx("h3",{className:"text-lg font-semibold text-white",children:"Snigdha OS"}),C.jsx("p",{className:"text-sm",children:"The most advanced penetration testing distribution, designed for security professionals and enthusiasts."}),C.jsx("div",{className:"flex space-x-4",children:Tl.community.map(t=>C.jsx("a",{href:t.href,className:"hover:text-white transition-colors",target:"_blank",rel:"noopener noreferrer",children:C.jsx(t.icon,{className:"h-5 w-5"})},t.name))})]}),C.jsxs("div",{children:[C.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Navigation"}),C.jsx("ul",{className:"space-y-3",children:Tl.main.map(t=>C.jsx("li",{children:C.jsx(Or,{to:t.href,className:"hover:text-white transition-colors",children:t.name})},t.name))})]}),C.jsxs("div",{children:[C.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Resources"}),C.jsx("ul",{className:"space-y-3",children:Tl.resources.map(t=>C.jsx("li",{children:C.jsxs(Or,{to:t.href,className:"flex items-center gap-2 hover:text-white transition-colors",children:[C.jsx(t.icon,{className:"h-4 w-4"}),t.name]})},t.name))})]}),C.jsxs("div",{children:[C.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Community"}),C.jsx("ul",{className:"space-y-3",children:Tl.community.map(t=>C.jsx("li",{children:C.jsxs("a",{href:t.href,className:"flex items-center gap-2 hover:text-white transition-colors",target:"_blank",rel:"noopener noreferrer",children:[C.jsx(t.icon,{className:"h-4 w-4"}),t.name]})},t.name))})]})]}),C.jsx("div",{className:"mt-12 pt-8 border-t border-gray-800 text-sm text-center",children:C.jsxs("p",{children:["© ",e," Snigdha OS. All rights reserved."]})})]})})}const Wy="modulepreload",Hy=function(e){return"/"+e},Qa={},Sn=function(t,n,r){let l=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));l=Promise.allSettled(n.map(u=>{if(u=Hy(u),u in Qa)return;Qa[u]=!0;const a=u.endsWith(".css"),h=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const d=document.createElement("link");if(d.rel=a?"stylesheet":Wy,a||(d.as="script"),d.crossOrigin="",d.href=u,s&&d.setAttribute("nonce",s),document.head.appendChild(d),a)return new Promise((m,g)=>{d.addEventListener("load",m),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return l.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},Ky=P.lazy(()=>Sn(()=>import("./Home-Qa0rFLlE.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),Gy=P.lazy(()=>Sn(()=>import("./About-BB5XrzB2.js"),__vite__mapDeps([7,1,3]))),by=P.lazy(()=>Sn(()=>import("./Features-BdejuIrn.js"),__vite__mapDeps([8,1,2]))),qy=P.lazy(()=>Sn(()=>import("./Download-kx5JUnYN.js"),__vite__mapDeps([9,1,6,5,10]))),Yy=P.lazy(()=>Sn(()=>import("./Developers-D2nUOQ_H.js"),__vite__mapDeps([11,1,10,3,4]))),Xy=P.lazy(()=>Sn(()=>import("./Donate-DKOtQpeq.js"),__vite__mapDeps([12,1,6,3,4]))),Zy=P.lazy(()=>Sn(()=>import("./Gallery-Dn3tKQdH.js"),__vite__mapDeps([13,1])));function Jy(){return C.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:C.jsx(Zv,{className:"h-8 w-8 animate-spin text-cornflower-blue"})})}function eg(){return C.jsx(P.Suspense,{fallback:C.jsx(Jy,{}),children:C.jsxs(rv,{children:[C.jsx(Et,{path:"/",element:C.jsx(Ky,{})}),C.jsx(Et,{path:"/about",element:C.jsx(Gy,{})}),C.jsx(Et,{path:"/features",element:C.jsx(by,{})}),C.jsx(Et,{path:"/download",element:C.jsx(qy,{})}),C.jsx(Et,{path:"/developers",element:C.jsx(Yy,{})}),C.jsx(Et,{path:"/donate",element:C.jsx(Xy,{})}),C.jsx(Et,{path:"/gallery",element:C.jsx(Zy,{})})]})})}const tg=new Fv({defaultOptions:{queries:{staleTime:1e3*60*5,retry:1}}});function ng(){return C.jsx(sy,{children:C.jsx(Iv,{client:tg,children:C.jsx(cv,{children:C.jsxs("div",{className:"min-h-screen bg-gray-50 font-fira-sans flex flex-col",children:[C.jsx(Vy,{}),C.jsx("main",{className:"flex-grow pt-16",children:C.jsx(eg,{})}),C.jsx(Qy,{})]})})})})}df(document.getElementById("root")).render(C.jsx(P.StrictMode,{children:C.jsx(ng,{})}));export{Qv as B,Hv as D,Kv as G,Gv as H,Or as L,Io as S,ly as X,Zv as a,yv as b,se as c,Ta as d,mv as e,ug as f,Pf as g,Rv as h,Do as i,C as j,wv as k,xe as l,Ef as m,He as n,sg as o,Cv as p,P as r,lg as s,vv as t,og as u};
diff --git a/assets/map-pin-B4Alk5XN.js b/assets/map-pin-BL6Lq7Z0.js
similarity index 89%
rename from assets/map-pin-B4Alk5XN.js
rename to assets/map-pin-BL6Lq7Z0.js
index b1ab0b01..e4cc295e 100644
--- a/assets/map-pin-B4Alk5XN.js
+++ b/assets/map-pin-BL6Lq7Z0.js
@@ -1,4 +1,4 @@
-import{c}from"./index-B6OB8wzf.js";/**
+import{c}from"./index-DqLTW_kH.js";/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
diff --git a/assets/proxy-7YlnQFop.js b/assets/proxy-Bjl3UtPz.js
similarity index 50%
rename from assets/proxy-7YlnQFop.js
rename to assets/proxy-Bjl3UtPz.js
index 0e1eefbb..83ce68c4 100644
--- a/assets/proxy-7YlnQFop.js
+++ b/assets/proxy-Bjl3UtPz.js
@@ -1 +1 @@
-import{r as S,j as he}from"./index-B6OB8wzf.js";function Ji(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>t(...s);return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}function $t(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const fe=t=>Array.isArray(t);function bs(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Me(t,e,n,s){if(typeof e=="function"){const[i,r]=cn(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=cn(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function zt(t,e,n){const s=t.getProps();return Me(s,e,n!==void 0?n:s.custom,t)}const Re=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ee=["initial",...Re],Ct=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],st=new Set(Ct),$=t=>t*1e3,z=t=>t/1e3,Qi={type:"spring",stiffness:500,damping:25,restSpeed:10},to=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),eo={type:"keyframes",duration:.8},no={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},so=(t,{keyframes:e})=>e.length>2?eo:st.has(t)?t.startsWith("scale")?to(e[1]):Qi:no;function Le(t,e){return t?t[e]||t.default||t:void 0}const io={skipAnimations:!1,useManualTiming:!1},oo=t=>t!==null;function Ht(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(oo),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}const j=t=>t;let de=j;function ro(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),t()),u(o)}const l={schedule:(u,c=!1,h=!1)=>{const d=h&&s?e:n;return c&&r.add(u),d.has(u)||d.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=u,s){i=!0;return}s=!0,[e,n]=[n,e],e.forEach(a),e.clear(),s=!1,i&&(i=!1,l.process(u))}};return l}const Lt=["read","resolveKeyframes","update","preRender","render","postRender"],ao=40;function ws(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Lt.reduce((m,v)=>(m[v]=ro(r),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=o,d=()=>{const m=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(m-i.timestamp,ao),1),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(d))},p=()=>{n=!0,s=!0,i.isProcessing||t(d)};return{schedule:Lt.reduce((m,v)=>{const T=o[v];return m[v]=(b,P=!1,w=!1)=>(n||p(),T.schedule(b,P,w)),m},{}),cancel:m=>{for(let v=0;v(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,lo=1e-7,uo=12;function co(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Vs(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>lo&&++aco(r,0,1,t,n);return r=>r===0||r===1?r:Vs(i(r),e,s)}const Cs=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ds=t=>e=>1-t(1-e),Ms=Dt(.33,1.53,.69,.99),Fe=Ds(Ms),Rs=Cs(Fe),Es=t=>(t*=2)<1?.5*Fe(t):.5*(2-Math.pow(2,-10*(t-1))),Be=t=>1-Math.sin(Math.acos(t)),Ls=Ds(Be),Fs=Cs(Be),Bs=t=>/^0[^.\s]+$/u.test(t);function ho(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Bs(t):!0}const ks=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),js=t=>e=>typeof e=="string"&&e.startsWith(t),Is=js("--"),fo=js("var(--"),ke=t=>fo(t)?mo.test(t.split("/*")[0].trim()):!1,mo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,po=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function go(t){const e=po.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Os(t,e,n=1){const[s,i]=go(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return ks(o)?parseFloat(o):o}return ke(i)?Os(i,e,n+1):i}const H=(t,e,n)=>n>e?e:ntypeof t=="number",parse:parseFloat,transform:t=>t},At={...dt,transform:t=>H(0,1,t)},Ft={...dt,default:1},Mt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),X=Mt("deg"),K=Mt("%"),x=Mt("px"),yo=Mt("vh"),vo=Mt("vw"),hn={...K,parse:t=>K.parse(t)/100,transform:t=>K.transform(t*100)},xo=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),fn=t=>t===dt||t===x,dn=(t,e)=>parseFloat(t.split(", ")[e]),mn=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return dn(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?dn(r[1],t):0}},To=new Set(["x","y","z"]),Po=Ct.filter(t=>!To.has(t));function So(t){const e=[];return Po.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const ct={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:mn(4,13),y:mn(5,14)};ct.translateX=ct.x;ct.translateY=ct.y;const Ns=t=>e=>e.test(t),Ao={test:t=>t==="auto",parse:t=>t},Us=[dt,x,K,X,vo,yo,Ao],pn=t=>Us.find(Ns(t)),nt=new Set;let me=!1,pe=!1;function _s(){if(pe){const t=Array.from(nt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=So(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,me=!1,nt.forEach(t=>t.complete()),nt.clear()}function Ks(){nt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(pe=!0)})}function bo(){Ks(),_s()}class je{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?(nt.add(this),me||(me=!0,V.read(Ks),V.resolveKeyframes(_s))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;rMath.round(t*1e5)/1e5,Ie=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wo(t){return t==null}const Vo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Oe=(t,e)=>n=>!!(typeof n=="string"&&Vo.test(n)&&n.startsWith(t)||e&&!wo(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ws=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(Ie);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Co=t=>H(0,255,t),Qt={...dt,transform:t=>Math.round(Co(t))},et={test:Oe("rgb","red"),parse:Ws("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Qt.transform(t)+", "+Qt.transform(e)+", "+Qt.transform(n)+", "+vt(At.transform(s))+")"};function Do(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 ge={test:Oe("#"),parse:Do,transform:et.transform},ot={test:Oe("hsl","hue"),parse:Ws("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+K.transform(vt(e))+", "+K.transform(vt(n))+", "+vt(At.transform(s))+")"},L={test:t=>et.test(t)||ge.test(t)||ot.test(t),parse:t=>et.test(t)?et.parse(t):ot.test(t)?ot.parse(t):ge.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?et.transform(t):ot.transform(t)},Mo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ro(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ie))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Mo))===null||n===void 0?void 0:n.length)||0)>0}const Gs="number",$s="color",Eo="var",Lo="var(",gn="${}",Fo=/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 bt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(Fo,l=>(L.test(l)?(s.color.push(r),i.push($s),n.push(L.parse(l))):l.startsWith(Lo)?(s.var.push(r),i.push(Eo),n.push(l)):(s.number.push(r),i.push(Gs),n.push(parseFloat(l))),++r,gn)).split(gn);return{values:n,split:a,indexes:s,types:i}}function zs(t){return bt(t).values}function Hs(t){const{split:e,types:n}=bt(t),s=e.length;return i=>{let r="";for(let o=0;otypeof t=="number"?0:t;function ko(t){const e=zs(t);return Hs(t)(e.map(Bo))}const q={test:Ro,parse:zs,createTransformer:Hs,getAnimatableNone:ko},jo=new Set(["brightness","contrast","saturate","opacity"]);function Io(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Ie)||[];if(!s)return t;const i=n.replace(s,"");let r=jo.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Oo=/\b([a-z-]*)\(.*?\)/gu,ye={...q,getAnimatableNone:t=>{const e=t.match(Oo);return e?e.map(Io).join(" "):t}},No={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,backgroundPositionX:x,backgroundPositionY:x},Uo={rotate:X,rotateX:X,rotateY:X,rotateZ:X,scale:Ft,scaleX:Ft,scaleY:Ft,scaleZ:Ft,skew:X,skewX:X,skewY:X,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:At,originX:hn,originY:hn,originZ:x},yn={...dt,transform:Math.round},Ne={...No,...Uo,zIndex:yn,size:x,fillOpacity:At,strokeOpacity:At,numOctaves:yn},_o={...Ne,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:ye,WebkitFilter:ye},Ue=t=>_o[t];function Xs(t,e){let n=Ue(t);return n!==ye&&(n=q),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ko=new Set(["auto","none","0"]);function Wo(t,e,n){let s=0,i;for(;s{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function _e(t){return typeof t=="function"}let kt;function Go(){kt=void 0}const W={now:()=>(kt===void 0&&W.set(E.isProcessing||io.useManualTiming?E.timestamp:performance.now()),kt),set:t=>{kt=t,queueMicrotask(Go)}},vn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(q.test(t)||t==="0")&&!t.startsWith("url("));function $o(t){const e=t[0];if(t.length===1)return!0;for(let n=0;nHo?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&bo(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=W.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!zo(e,s,i,r))if(o)this.options.duration=0;else{l==null||l(Ht(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}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 ht=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},Zs=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r{const c=u*o,h=c*t,f=c-n,d=ve(u,o),p=Math.exp(-h);return te-f/d*p},r=u=>{const h=u*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(u,2)*t,p=Math.exp(-h),g=ve(Math.pow(u,2),o);return(-i(u)+te>0?-1:1)*((f-d)*p)/g}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-te+c*h},r=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=Zo(i,r,a);if(t=$(t),isNaN(l))return{stiffness:D.stiffness,damping:D.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const qo=12;function Zo(t,e,n){let s=n;for(let i=1;i=xe?1/0:e}const Jo=["duration","bounce"],Qo=["stiffness","damping","mass"];function xn(t,e){return e.some(n=>t[n]!==void 0)}function tr(t){let e={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...t};if(!xn(t,Qo)&&xn(t,Jo))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*H(.05,1,1-t.bounce)*Math.sqrt(i);e={...e,mass:D.mass,stiffness:i,damping:r}}else{const n=Yo(t);e={...e,...n,mass:D.mass},e.isResolvedFromDuration=!0}return e}function ei(t=D.visualDuration,e=D.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}=tr({...n,velocity:-z(n.velocity||0)}),p=f||0,g=u/(2*Math.sqrt(l*c)),y=o-r,m=z(Math.sqrt(l/c)),v=Math.abs(y)<5;s||(s=v?D.restSpeed.granular:D.restSpeed.default),i||(i=v?D.restDelta.granular:D.restDelta.default);let T;if(g<1){const P=ve(m,g);T=w=>{const R=Math.exp(-g*m*w);return o-R*((p+g*m*y)/P*Math.sin(P*w)+y*Math.cos(P*w))}}else if(g===1)T=P=>o-Math.exp(-m*P)*(y+(p+m*y)*P);else{const P=m*Math.sqrt(g*g-1);T=w=>{const R=Math.exp(-g*m*w),A=Math.min(P*w,300);return o-R*((p+g*m*y)*Math.sinh(A)+P*y*Math.cosh(A))/P}}const b={calculatedDuration:d&&h||null,next:P=>{const w=T(P);if(d)a.done=P>=h;else{let R=0;g<1&&(R=P===0?$(p):Qs(T,P,w));const A=Math.abs(R)<=s,k=Math.abs(o-w)<=i;a.done=A&&k}return a.value=a.done?o:w,a},toString:()=>{const P=Math.min(ti(b),xe),w=Zs(R=>b.next(P*R).value,P,30);return P+"ms "+w}};return b}function Tn({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=A=>a!==void 0&&Al,p=A=>a===void 0?l:l===void 0||Math.abs(a-A)-g*Math.exp(-A/s),T=A=>m+v(A),b=A=>{const k=v(A),O=T(A);f.done=Math.abs(k)<=u,f.value=f.done?m:O};let P,w;const R=A=>{d(f.value)&&(P=A,w=ei({keyframes:[f.value,p(f.value)],velocity:Qs(T,A,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return R(0),{calculatedDuration:null,next:A=>{let k=!1;return!w&&P===void 0&&(k=!0,b(A),R(A)),P!==void 0&&A>=P?w.next(A-P):(!k&&b(A),f)}}}const er=Dt(.42,0,1,1),nr=Dt(0,0,.58,1),ni=Dt(.42,0,.58,1),sr=t=>Array.isArray(t)&&typeof t[0]!="number",Ke=t=>Array.isArray(t)&&typeof t[0]=="number",Pn={linear:j,easeIn:er,easeInOut:ni,easeOut:nr,circIn:Be,circInOut:Fs,circOut:Ls,backIn:Fe,backInOut:Rs,backOut:Ms,anticipate:Es},Sn=t=>{if(Ke(t)){de(t.length===4);const[e,n,s,i]=t;return Dt(e,n,s,i)}else if(typeof t=="string")return de(Pn[t]!==void 0),Pn[t];return t},ir=(t,e)=>n=>e(t(n)),Rt=(...t)=>t.reduce(ir),C=(t,e,n)=>t+(e-t)*n;function ee(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 or({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=ee(l,a,t+1/3),r=ee(l,a,t),o=ee(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Ot(t,e){return n=>n>0?e:t}const ne=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},rr=[ge,et,ot],ar=t=>rr.find(e=>e.test(t));function An(t){const e=ar(t);if(!e)return!1;let n=e.parse(t);return e===ot&&(n=or(n)),n}const bn=(t,e)=>{const n=An(t),s=An(e);if(!n||!s)return Ot(t,e);const i={...n};return r=>(i.red=ne(n.red,s.red,r),i.green=ne(n.green,s.green,r),i.blue=ne(n.blue,s.blue,r),i.alpha=C(n.alpha,s.alpha,r),et.transform(i))},Te=new Set(["none","hidden"]);function lr(t,e){return Te.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ur(t,e){return n=>C(t,e,n)}function We(t){return typeof t=="number"?ur:typeof t=="string"?ke(t)?Ot:L.test(t)?bn:fr:Array.isArray(t)?si:typeof t=="object"?L.test(t)?bn:cr:Ot}function si(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>We(r)(r,e[o]));return r=>{for(let o=0;o{for(const r in s)n[r]=s[r](i);return n}}function hr(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r{const n=q.createTransformer(e),s=bt(t),i=bt(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?Te.has(t)&&!i.values.length||Te.has(e)&&!s.values.length?lr(t,e):Rt(si(hr(s,i),i.values),n):Ot(t,e)};function ii(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?C(t,e,n):We(t)(t,e)}function dr(t,e,n){const s=[],i=n||ii,r=t.length-1;for(let o=0;oe[0];if(r===2&&t[0]===t[1])return()=>e[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=dr(e,s,i),a=o.length,l=u=>{let c=0;if(a>1)for(;cl(H(t[0],t[r-1],u)):l}function pr(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=ht(0,e,s);t.push(C(n,1,i))}}function gr(t){const e=[0];return pr(e,t.length-1),e}function yr(t,e){return t.map(n=>n*e)}function vr(t,e){return t.map(()=>e||ni).splice(0,t.length-1)}function Nt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=sr(s)?s.map(Sn):Sn(s),r={done:!1,value:e[0]},o=yr(n&&n.length===e.length?n:gr(e),t),a=mr(o,e,{ease:Array.isArray(i)?i:vr(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const xr=t=>{const e=({timestamp:n})=>t(n);return{start:()=>V.update(e,!0),stop:()=>Y(e),now:()=>E.isProcessing?E.timestamp:W.now()}},Tr={decay:Tn,inertia:Tn,tween:Nt,keyframes:Nt,spring:ei},Pr=t=>t/100;class Ge extends qs{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==null?void 0:i.KeyframeResolver)||je,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=_e(n)?n:Tr[n]||Nt;let l,u;a!==Nt&&typeof e[0]!="number"&&(l=Rt(Pr,ii(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=ti(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:A}=this.options;return{done:!0,value:A[A.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:p,repeatDelay:g,onUpdate:y}=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 m=this.currentTime-f*(this.speed>=0?1:-1),v=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let T=this.currentTime,b=r;if(d){const A=Math.min(this.currentTime,c)/h;let k=Math.floor(A),O=A%1;!O&&A>=1&&(O=1),O===1&&k--,k=Math.min(k,d+1),!!(k%2)&&(p==="reverse"?(O=1-O,g&&(O-=g/h)):p==="mirror"&&(b=o)),T=H(0,1,O)*h}const P=v?{done:!1,value:l[0]}:b.next(T);a&&(P.value=a(P.value));let{done:w}=P;!v&&u!==null&&(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return R&&i!==void 0&&(P.value=Ht(l,this.options,i)),y&&y(P.value),R&&this.finish(),P}get duration(){const{resolved:e}=this;return e?z(e.calculatedDuration):0}get time(){return z(this.currentTime)}set time(e){e=$(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=z(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=xr,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)}}const Sr=new Set(["opacity","clipPath","filter","transform"]);function $e(t){let e;return()=>(e===void 0&&(e=t()),e)}const Ar={linearEasing:void 0};function br(t,e){const n=$e(t);return()=>{var s;return(s=Ar[e])!==null&&s!==void 0?s:n()}}const Ut=br(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function oi(t){return!!(typeof t=="function"&&Ut()||!t||typeof t=="string"&&(t in Pe||Ut())||Ke(t)||Array.isArray(t)&&t.every(oi))}const pt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Pe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pt([0,.65,.55,1]),circOut:pt([.55,0,1,.45]),backIn:pt([.31,.01,.66,-.59]),backOut:pt([.33,1.53,.69,.99])};function ri(t,e){if(t)return typeof t=="function"&&Ut()?Zs(t,e):Ke(t)?pt(t):Array.isArray(t)?t.map(n=>ri(n,e)||Pe.easeOut):Pe[t]}function wr(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=ri(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"})}function wn(t,e){t.timeline=e,t.onfinish=null}const Vr=$e(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_t=10,Cr=2e4;function Dr(t){return _e(t.type)||t.type==="spring"||!oi(t.ease)}function Mr(t,e){const n=new Ge({...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){var s;let{duration:i=300,times:r,ease:o,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(typeof o=="string"&&Ut()&&Rr(o)&&(o=ai[o]),Dr(this.options)){const{onComplete:f,onUpdate:d,motionValue:p,element:g,...y}=this.options,m=Mr(e,y);e=m.keyframes,e.length===1&&(e[1]=e[0]),i=m.duration,r=m.times,o=m.ease,a="keyframes"}const h=wr(l.owner.current,u,e,{...this.options,duration:i,times:r,ease:o});return h.startTime=c??this.calcStartTime(),this.pendingTimeline?(wn(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:f}=this.options;l.set(Ht(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:r,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return z(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return z(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=$(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 j;const{animation:s}=n;wn(s,e)}return j}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,p=new Ge({...d,keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0}),g=$(this.time);u.setWithVelocity(p.sample(g-_t).value,p.sample(g).value,_t)}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;return Vr()&&s&&Sr.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}const Er=$e(()=>window.ScrollTimeline!==void 0);class Lr{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;sEr()&&i.attachTimeline?i.attachTimeline(e):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")}}function Fr({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 ze=(t,e,n,s={},i,r)=>o=>{const a=Le(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-$(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};Fr(a)||(c={...c,...so(t,c)}),c.duration&&(c.duration=$(c.duration)),c.repeatDelay&&(c.repeatDelay=$(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)),h&&!r&&e.get()!==void 0){const f=Ht(c.keyframes,a);if(f!==void 0)return V.update(()=>{c.onUpdate(f),c.onComplete()}),new Lr([])}return!r&&Vn.supports(c)?new Vn(c):new Ge(c)},Br=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),kr=t=>fe(t)?t[t.length-1]||0:t;function He(t,e){t.indexOf(e)===-1&&t.push(e)}function Xe(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Ye{constructor(){this.subscriptions=[]}add(e){return He(this.subscriptions,e),()=>Xe(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));class Ir{constructor(e,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=W.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=W.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=jr(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 Ye);const s=this.events[e].add(n);return e==="change"?()=>{s(),V.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 this.current}getPrevious(){return this.prev}getVelocity(){const e=W.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Cn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Cn);return Js(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 wt(t,e){return new Ir(t,e)}function Or(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,wt(n))}function Nr(t,e){const n=zt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=kr(r[o]);Or(t,o,a)}}const qe=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ur="framerAppearId",li="data-"+qe(Ur);function ui(t){return t.props[li]}const F=t=>!!(t&&t.getVelocity);function _r(t){return!!(F(t)&&t.add)}function Se(t,e){const n=t.getValue("willChange");if(_r(n))return n.add(e)}function Kr({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function ci(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&&Kr(c,h))continue;const p={delay:n,...Le(o||{},h)};let g=!1;if(window.MotionHandoffAnimation){const m=ui(t);if(m){const v=window.MotionHandoffAnimation(m,h,V);v!==null&&(p.startTime=v,g=!0)}}Se(t,h),f.start(ze(h,f,d,t.shouldReduceMotion&&st.has(h)?{type:!1}:p,t,g));const y=f.animation;y&&u.push(y)}return a&&Promise.all(u).then(()=>{V.update(()=>{a&&Nr(t,a)})}),u}function Ae(t,e,n={}){var s;const i=zt(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(ci(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=r;return Wr(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 Wr(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(Gr).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(Ae(u,e,{...r,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function Gr(t,e){return t.sortNodePosition(e)}function $r(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Ae(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Ae(t,e,n);else{const i=typeof e=="function"?zt(t,e,n.custom):e;s=Promise.all(ci(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const zr=Ee.length;function hi(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?hi(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})=>$r(t,n,s)))}function qr(t){let e=Yr(t),n=Dn(),s=!0;const i=l=>(u,c)=>{var h;const f=zt(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:p,...g}=f;u={...u,...g,...p}}return u};function r(l){e=l(t)}function o(l){const{props:u}=t,c=hi(t.parent)||{},h=[],f=new Set;let d={},p=1/0;for(let y=0;yp&&b,k=!1;const O=Array.isArray(T)?T:[T];let it=O.reduce(i(m),{});P===!1&&(it={});const{prevResolvedValues:ln={}}=v,Zi={...ln,...it},un=B=>{A=!0,f.has(B)&&(k=!0,f.delete(B)),v.needsAnimating[B]=!0;const G=t.getValue(B);G&&(G.liveStyle=!1)};for(const B in Zi){const G=it[B],qt=ln[B];if(d.hasOwnProperty(B))continue;let Zt=!1;fe(G)&&fe(qt)?Zt=!bs(G,qt):Zt=G!==qt,Zt?G!=null?un(B):f.add(B):G!==void 0&&f.has(B)?un(B):v.protectedKeys[B]=!0}v.prevProp=T,v.prevResolvedValues=it,v.isActive&&(d={...d,...it}),s&&t.blockInitialAnimation&&(A=!1),A&&(!(w&&R)||k)&&h.push(...O.map(B=>({animation:B,options:{type:m}})))}if(f.size){const y={};f.forEach(m=>{const v=t.getBaseTarget(m),T=t.getValue(m);T&&(T.liveStyle=!0),y[m]=v??null}),h.push({animation:y})}let g=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,g?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=Dn(),s=!0}}}function Zr(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!bs(e,t):!1}function J(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dn(){return{animate:J(!0),whileInView:J(),whileHover:J(),whileTap:J(),whileDrag:J(),whileFocus:J(),exit:J()}}class Z{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Jr extends Z{constructor(e){super(e),e.animationState||(e.animationState=qr(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 Qr=0;class ta extends Z{constructor(){super(...arguments),this.id=Qr++}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 ea={animation:{Feature:Jr},exit:{Feature:ta}},_={x:!1,y:!1};function fi(){return _.x||_.y}function na(t,e,n){var s;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const r=(s=void 0)!==null&&s!==void 0?s:i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}function di(t,e){const n=na(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Mn(t){return e=>{e.pointerType==="touch"||fi()||t(e)}}function sa(t,e,n={}){const[s,i,r]=di(t,n),o=Mn(a=>{const{target:l}=a,u=e(a);if(!u||!l)return;const c=Mn(h=>{u(h),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return s.forEach(a=>{a.addEventListener("pointerenter",o,i)}),r}const Ze=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,gt=new WeakSet;function Rn(t){return e=>{e.key==="Enter"&&t(e)}}function se(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ia=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Rn(()=>{if(gt.has(n))return;se(n,"down");const i=Rn(()=>{se(n,"up")}),r=()=>se(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)},oa=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ra(t){return oa.has(t.tagName)||t.tabIndex!==-1}const mi=(t,e)=>e?t===e?!0:mi(t,e.parentElement):!1;function En(t){return Ze(t)&&!fi()}function aa(t,e,n={}){const[s,i,r]=di(t,n),o=a=>{const l=a.currentTarget;if(!En(a)||gt.has(l))return;gt.add(l);const u=e(a),c=(d,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!En(d)||!gt.has(l))&&(gt.delete(l),u&&u(d,{success:p}))},h=d=>{c(d,n.useGlobalTarget||mi(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{ra(a)||(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a.addEventListener("focus",u=>ia(u,i),i)}),r}function la(t){return t==="x"||t==="y"?_[t]?null:(_[t]=!0,()=>{_[t]=!1}):_.x||_.y?null:(_.x=_.y=!0,()=>{_.x=_.y=!1})}function Et(t){return{point:{x:t.pageX,y:t.pageY}}}const ua=t=>e=>Ze(e)&&t(e,Et(e));function Vt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function xt(t,e,n,s){return Vt(t,e,ua(n),s)}const Ln=(t,e)=>Math.abs(t-e);function ca(t,e){const n=Ln(t.x,e.x),s=Ln(t.y,e.y);return Math.sqrt(n**2+s**2)}class pi{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:r=!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=oe(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=ca(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:p}=h,{timestamp:g}=E;this.history.push({...p,timestamp:g});const{onStart:y,onMove:m}=this.handlers;f||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ie(f,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:p,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=oe(h.type==="pointercancel"?this.lastMoveEventInfo:ie(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,y),p&&p(h,y)},!Ze(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const o=Et(e),a=ie(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=E;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,oe(a,this.history)),this.removeListeners=Rt(xt(this.contextWindow,"pointermove",this.handlePointerMove),xt(this.contextWindow,"pointerup",this.handlePointerUp),xt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Y(this.updatePoint)}}function ie(t,e){return e?{point:e(t.point)}:t}function Fn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function oe({point:t},e){return{point:t,delta:Fn(t,gi(e)),offset:Fn(t,ha(e)),velocity:fa(e,.1)}}function ha(t){return t[0]}function gi(t){return t[t.length-1]}function fa(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=gi(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>$(e)));)n--;if(!s)return{x:0,y:0};const r=z(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function rt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const yi=1e-4,da=1-yi,ma=1+yi,vi=.01,pa=0-vi,ga=0+vi;function I(t){return t.max-t.min}function ya(t,e,n){return Math.abs(t-e)<=n}function Bn(t,e,n,s=.5){t.origin=s,t.originPoint=C(e.min,e.max,t.origin),t.scale=I(n)/I(e),t.translate=C(n.min,n.max,t.origin)-t.originPoint,(t.scale>=da&&t.scale<=ma||isNaN(t.scale))&&(t.scale=1),(t.translate>=pa&&t.translate<=ga||isNaN(t.translate))&&(t.translate=0)}function Tt(t,e,n,s){Bn(t.x,e.x,n.x,s?s.originX:void 0),Bn(t.y,e.y,n.y,s?s.originY:void 0)}function kn(t,e,n){t.min=n.min+e.min,t.max=t.min+I(e)}function va(t,e,n){kn(t.x,e.x,n.x),kn(t.y,e.y,n.y)}function jn(t,e,n){t.min=e.min-n.min,t.max=t.min+I(e)}function Pt(t,e,n){jn(t.x,e.x,n.x),jn(t.y,e.y,n.y)}function xa(t,{min:e,max:n},s){return e!==void 0&&tn&&(t=s?C(n,t,s.max):Math.min(t,n)),t}function In(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 Ta(t,{top:e,left:n,bottom:s,right:i}){return{x:In(t.x,n,i),y:In(t.y,e,s)}}function On(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.mins?n=ht(e.min,e.max-s,t.min):s>i&&(n=ht(t.min,t.max-i,e.min)),H(0,1,n)}function Aa(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 be=.35;function ba(t=be){return t===!1?t=0:t===!0&&(t=be),{x:Nn(t,"left","right"),y:Nn(t,"top","bottom")}}function Nn(t,e,n){return{min:Un(t,e),max:Un(t,n)}}function Un(t,e){return typeof t=="number"?t:t[e]||0}const _n=()=>({translate:0,scale:1,origin:0,originPoint:0}),at=()=>({x:_n(),y:_n()}),Kn=()=>({min:0,max:0}),M=()=>({x:Kn(),y:Kn()});function U(t){return[t("x"),t("y")]}function xi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function wa({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Va(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 re(t){return t===void 0||t===1}function we({scale:t,scaleX:e,scaleY:n}){return!re(t)||!re(e)||!re(n)}function Q(t){return we(t)||Ti(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ti(t){return Wn(t.x)||Wn(t.y)}function Wn(t){return t&&t!=="0%"}function Kt(t,e,n){const s=t-n,i=e*s;return n+i}function Gn(t,e,n,s,i){return i!==void 0&&(t=Kt(t,i,s)),Kt(t,n,s)+e}function Ve(t,e=0,n=1,s,i){t.min=Gn(t.min,e,n,s,i),t.max=Gn(t.max,e,n,s,i)}function Pi(t,{x:e,y:n}){Ve(t.x,e.translate,e.scale,e.originPoint),Ve(t.y,n.translate,n.scale,n.originPoint)}const $n=.999999999999,zn=1.0000000000001;function Ca(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a$n&&(e.x=1),e.y$n&&(e.y=1)}function lt(t,e){t.min=t.min+e,t.max=t.max+e}function Hn(t,e,n,s,i=.5){const r=C(t.min,t.max,i);Ve(t,e,n,r,s)}function ut(t,e){Hn(t.x,e.x,e.scaleX,e.scale,e.originX),Hn(t.y,e.y,e.scaleY,e.scale,e.originY)}function Si(t,e){return xi(Va(t.getBoundingClientRect(),e))}function Da(t,e,n){const s=Si(t,n),{scroll:i}=e;return i&&(lt(s.x,i.offset.x),lt(s.y,i.offset.y)),s}const Ai=({current:t})=>t?t.ownerDocument.defaultView:null,Ma=new WeakMap;class Ra{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=M(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Et(c).point)},r=(c,h)=>{const{drag:f,dragPropagation:d,onDragStart:p}=this.getProps();if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=la(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),U(y=>{let m=this.getAxisMotionValue(y).get()||0;if(K.test(m)){const{projection:v}=this.visualElement;if(v&&v.layout){const T=v.layout.layoutBox[y];T&&(m=I(T)*(parseFloat(m)/100))}}this.originPoint[y]=m}),p&&V.postRender(()=>p(c,h)),Se(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},o=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:p,onDrag:g}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=h;if(d&&this.currentDirection===null){this.currentDirection=Ea(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),g&&g(c,h)},a=(c,h)=>this.stop(c,h),l=()=>U(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new pi(e,{onSessionStart:i,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ai(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:r}=this.getProps();r&&V.postRender(()=>r(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:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Bt(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=xa(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,r=this.constraints;n&&rt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Ta(i.layoutBox,n):this.constraints=!1,this.elastic=ba(s),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&U(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Aa(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!rt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=Da(s,i.root,this.visualElement.getTransformPagePoint());let o=Pa(i.layout.layoutBox,r);if(n){const a=n(wa(o));this.hasMutatedConstraints=!!a,a&&(o=xi(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=U(c=>{if(!Bt(c,n,this.currentDirection))return;let h=l[c]||{};o&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Se(this.visualElement,e),s.start(ze(e,s,0,n,this.visualElement,!1))}stopAnimation(){U(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){U(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()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){U(n=>{const{drag:s}=this.getProps();if(!Bt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];r.set(e[n]-C(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!rt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};U(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Sa({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),U(o=>{if(!Bt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(C(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Ma.set(this.visualElement,this);const e=this.visualElement.current,n=xt(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();rt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),V.read(s);const o=Vt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(U(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=be,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Bt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Ea(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class La extends Z{constructor(e){super(e),this.removeGroupControls=j,this.removeListeners=j,this.controls=new Ra(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||j}unmount(){this.removeGroupControls(),this.removeListeners()}}const Xn=t=>(e,n)=>{t&&V.postRender(()=>t(e,n))};class Fa extends Z{constructor(){super(...arguments),this.removePointerDownListener=j}onPointerDown(e){this.session=new pi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ai(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Xn(e),onStart:Xn(n),onMove:s,onEnd:(r,o)=>{delete this.session,i&&V.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=xt(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 Je=S.createContext(null);function Ba(){const t=S.useContext(Je);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=S.useId();S.useEffect(()=>s(i),[]);const r=S.useCallback(()=>n&&n(i),[i,n]);return!e&&n?[!1,r]:[!0]}const bi=S.createContext({}),wi=S.createContext({}),jt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Yn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const mt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(x.test(t))t=parseFloat(t);else return t;const n=Yn(t,e.target.x),s=Yn(t,e.target.y);return`${n}% ${s}%`}},ka={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=q.parse(t);if(i.length>5)return s;const r=q.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const u=C(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),r(i)}},Wt={};function ja(t){Object.assign(Wt,t)}const{schedule:Qe,cancel:wu}=ws(queueMicrotask,!1);class Ia extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;ja(Oa),r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),jt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,o=s.projection;return o&&(o.isPresent=r,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||V.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Qe.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Vi(t){const[e,n]=Ba(),s=S.useContext(bi);return he.jsx(Ia,{...t,layoutGroup:s,switchLayoutGroup:S.useContext(wi),isPresent:e,safeToRemove:n})}const Oa={borderRadius:{...mt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mt,borderTopRightRadius:mt,borderBottomLeftRadius:mt,borderBottomRightRadius:mt,boxShadow:ka},Ci=["TopLeft","TopRight","BottomLeft","BottomRight"],Na=Ci.length,qn=t=>typeof t=="string"?parseFloat(t):t,Zn=t=>typeof t=="number"||x.test(t);function Ua(t,e,n,s,i,r){i?(t.opacity=C(0,n.opacity!==void 0?n.opacity:1,_a(s)),t.opacityExit=C(e.opacity!==void 0?e.opacity:1,0,Ka(s))):r&&(t.opacity=C(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;ose?1:n(ht(t,e,s))}function Qn(t,e){t.min=e.min,t.max=e.max}function N(t,e){Qn(t.x,e.x),Qn(t.y,e.y)}function ts(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function es(t,e,n,s,i){return t-=e,t=Kt(t,1/n,s),i!==void 0&&(t=Kt(t,1/i,s)),t}function Wa(t,e=0,n=1,s=.5,i,r=t,o=t){if(K.test(e)&&(e=parseFloat(e),e=C(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=C(r.min,r.max,s);t===r&&(a-=e),t.min=es(t.min,e,n,a,i),t.max=es(t.max,e,n,a,i)}function ns(t,e,[n,s,i],r,o){Wa(t,e[n],e[s],e[i],e.scale,r,o)}const Ga=["x","scaleX","originX"],$a=["y","scaleY","originY"];function ss(t,e,n,s){ns(t.x,e,Ga,n?n.x:void 0,s?s.x:void 0),ns(t.y,e,$a,n?n.y:void 0,s?s.y:void 0)}function is(t){return t.translate===0&&t.scale===1}function Mi(t){return is(t.x)&&is(t.y)}function os(t,e){return t.min===e.min&&t.max===e.max}function za(t,e){return os(t.x,e.x)&&os(t.y,e.y)}function rs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ri(t,e){return rs(t.x,e.x)&&rs(t.y,e.y)}function as(t){return I(t.x)/I(t.y)}function ls(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Ha{constructor(){this.members=[]}add(e){He(this.members,e),e.scheduleRender()}remove(e){if(Xe(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(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){s=r;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Xa(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:p}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Ya=(t,e)=>t.depth-e.depth;class qa{constructor(){this.children=[],this.isDirty=!1}add(e){He(this.children,e),this.isDirty=!0}remove(e){Xe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ya),this.isDirty=!1,this.children.forEach(e)}}function It(t){const e=F(t)?t.get():t;return Br(e)?e.toValue():e}function Za(t,e){const n=W.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(Y(s),t(r-e))};return V.read(s,!0),()=>Y(s)}function Ja(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Qa(t,e,n){const s=F(t)?t:wt(t);return s.start(ze("",s,e,n)),s.animation}const tt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},yt=typeof window<"u"&&window.MotionDebug!==void 0,ae=["","X","Y","Z"],tl={visibility:"hidden"},us=1e3;let el=0;function le(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Ei(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=ui(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Ei(s)}function Li({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=el++,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,yt&&(tt.totalNodes=tt.resolvedTargetDeltas=tt.recalculatedProjection=0),this.nodes.forEach(il),this.nodes.forEach(ul),this.nodes.forEach(cl),this.nodes.forEach(ol),yt&&window.MotionDebug.record(tt)},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 l=0;lthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Za(f,250),jt.hasAnimatedSinceResize&&(jt.hasAnimatedSinceResize=!1,this.nodes.forEach(hs))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||pl,{onLayoutAnimationStart:y,onLayoutAnimationComplete:m}=c.getProps(),v=!this.targetLayout||!Ri(this.targetLayout,p)||d,T=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||T||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,T);const b={...Le(g,"layout"),onPlay:y,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else f||hs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}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,Y(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(hl),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&&Ei(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 l=0;l{const P=b/1e3;fs(h.x,o.x,P),fs(h.y,o.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Pt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dl(this.relativeTarget,this.relativeTargetOrigin,f,P),T&&za(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=M()),N(T,this.relativeTarget)),g&&(this.animationValues=c,Ua(c,u,this.latestValues,P,v,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},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&&(Y(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{jt.hasAnimatedSinceResize=!0,this.currentAnimation=Qa(0,us,{...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(us),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Fi(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||M();const h=I(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=I(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}N(a,l),ut(a,c),Tt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Ha),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.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:l}={}){const u=this.getStack();u&&u.promote(this,l),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:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&le("z",o,u,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(cs),this.root.sharedNodes.clear()}}}function nl(t){t.updateLayout()}function sl(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:s,measuredBox:i}=t.layout,{animationType:r}=t.options,o=n.source!==t.layout.source;r==="size"?U(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=I(f);f.min=s[h].min,f.max=f.min+d}):Fi(r,n.layoutBox,s)&&U(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=I(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=at();Tt(a,s,n.layoutBox);const l=at();o?Tt(l,t.applyTransform(i,!0),n.measuredBox):Tt(l,s,n.layoutBox);const u=!Mi(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 p=M();Pt(p,n.layoutBox,f.layoutBox);const g=M();Pt(g,s,d.layoutBox),Ri(p,g)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function il(t){yt&&tt.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 ol(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rl(t){t.clearSnapshot()}function cs(t){t.clearMeasurements()}function al(t){t.isLayoutDirty=!1}function ll(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function hs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ul(t){t.resolveTargetDelta()}function cl(t){t.calcProjection()}function hl(t){t.resetSkewAndRotation()}function fl(t){t.removeLeadSnapshot()}function fs(t,e,n){t.translate=C(e.translate,0,n),t.scale=C(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ds(t,e,n,s){t.min=C(e.min,n.min,s),t.max=C(e.max,n.max,s)}function dl(t,e,n,s){ds(t.x,e.x,n.x,s),ds(t.y,e.y,n.y,s)}function ml(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const pl={duration:.45,ease:[.4,0,.1,1]},ms=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ps=ms("applewebkit/")&&!ms("chrome/")?Math.round:j;function gs(t){t.min=ps(t.min),t.max=ps(t.max)}function gl(t){gs(t.x),gs(t.y)}function Fi(t,e,n){return t==="position"||t==="preserve-aspect"&&!ya(as(e),as(n),.2)}function yl(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const vl=Li({attachResizeListener:(t,e)=>Vt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ue={current:void 0},Bi=Li({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ue.current){const t=new vl({});t.mount(window),t.setOptions({layoutScroll:!0}),ue.current=t}return ue.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),xl={pan:{Feature:Fa},drag:{Feature:La,ProjectionNode:Bi,MeasureLayout:Vi}};function ys(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&&V.postRender(()=>r(e,Et(e)))}class Tl extends Z{mount(){const{current:e}=this.node;e&&(this.unmount=sa(e,n=>(ys(this.node,n,"Start"),s=>ys(this.node,s,"End"))))}unmount(){}}class Pl 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=Rt(Vt(this.node.current,"focus",()=>this.onFocus()),Vt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function vs(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&&V.postRender(()=>r(e,Et(e)))}class Sl extends Z{mount(){const{current:e}=this.node;e&&(this.unmount=aa(e,n=>(vs(this.node,n,"Start"),(s,{success:i})=>vs(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ce=new WeakMap,ce=new WeakMap,Al=t=>{const e=Ce.get(t.target);e&&e(t)},bl=t=>{t.forEach(Al)};function wl({root:t,...e}){const n=t||document;ce.has(n)||ce.set(n,{});const s=ce.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(bl,{root:t,...e})),s[i]}function Vl(t,e,n){const s=wl(e);return Ce.set(t,n),s.observe(t),()=>{Ce.delete(t),s.unobserve(t)}}const Cl={some:0,all:1};class Dl 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:Cl[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 Vl(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(Ml(e,n))&&this.startObserver()}unmount(){}}function Ml({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Rl={inView:{Feature:Dl},tap:{Feature:Sl},focus:{Feature:Pl},hover:{Feature:Tl}},El={layout:{ProjectionNode:Bi,MeasureLayout:Vi}},ki=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Xt=S.createContext({}),tn=typeof window<"u",Ll=tn?S.useLayoutEffect:S.useEffect,ji=S.createContext({strict:!1});function Fl(t,e,n,s,i){var r,o;const{visualElement:a}=S.useContext(Xt),l=S.useContext(ji),u=S.useContext(Je),c=S.useContext(ki).reducedMotion,h=S.useRef(null);s=s||l.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=h.current,d=S.useContext(wi);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Bl(h.current,n,i,d);const p=S.useRef(!1);S.useInsertionEffect(()=>{f&&p.current&&f.update(n,u)});const g=n[li],y=S.useRef(!!g&&!(!((r=window.MotionHandoffIsComplete)===null||r===void 0)&&r.call(window,g))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,g)));return Ll(()=>{f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Qe.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),S.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,g)}),y.current=!1))}),f}function Bl(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ii(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&rt(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function Ii(t){if(t)return t.options.allowProjection!==!1?t.projection:Ii(t.parent)}function kl(t,e,n){return S.useCallback(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):rt(n)&&(n.current=s))},[e])}function Yt(t){return $t(t.animate)||Ee.some(e=>St(t[e]))}function Oi(t){return!!(Yt(t)||t.variants)}function jl(t,e){if(Yt(t)){const{initial:n,animate:s}=t;return{initial:n===!1||St(n)?n:void 0,animate:St(s)?s:void 0}}return t.inherit!==!1?e:{}}function Il(t){const{initial:e,animate:n}=jl(t,S.useContext(Xt));return S.useMemo(()=>({initial:e,animate:n}),[xs(e),xs(n)])}function xs(t){return Array.isArray(t)?t.join(" "):t}const Ts={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ft={};for(const t in Ts)ft[t]={isEnabled:e=>Ts[t].some(n=>!!e[n])};function Ol(t){for(const e in t)ft[e]={...ft[e],...t[e]}}const Nl=Symbol.for("motionComponentSymbol");function Ul({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&Ol(t);function r(a,l){let u;const c={...S.useContext(ki),...a,layoutId:_l(a)},{isStatic:h}=c,f=Il(a),d=s(a,h);if(!h&&tn){Kl();const p=Wl(c);u=p.MeasureLayout,f.visualElement=Fl(i,d,c,e,p.ProjectionNode)}return he.jsxs(Xt.Provider,{value:f,children:[u&&f.visualElement?he.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,kl(d,f.visualElement,l),d,h,f.visualElement)]})}const o=S.forwardRef(r);return o[Nl]=i,o}function _l({layoutId:t}){const e=S.useContext(bi).id;return e&&t!==void 0?e+"-"+t:t}function Kl(t,e){S.useContext(ji).strict}function Wl(t){const{drag:e,layout:n}=ft;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const Gl=["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 en(t){return typeof t!="string"||t.includes("-")?!1:!!(Gl.indexOf(t)>-1||/[A-Z]/u.test(t))}function Ni(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const r in n)t.style.setProperty(r,n[r])}const Ui=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 _i(t,e,n,s){Ni(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Ui.has(i)?i:qe(i),e.attrs[i])}function Ki(t,{layout:e,layoutId:n}){return st.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Wt[t]||t==="opacity")}function nn(t,e,n){var s;const{style:i}=t,r={};for(const o in i)(F(i[o])||e.style&&F(e.style[o])||Ki(o,t)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(r[o]=i[o]);return r}function Wi(t,e,n){const s=nn(t,e,n);for(const i in t)if(F(t[i])||F(e[i])){const r=Ct.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}function $l(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}function zl({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},s,i,r){const o={latestValues:Hl(s,i,r,t),renderState:e()};return n&&(o.mount=a=>n(s,a,o)),o}const Gi=t=>(e,n)=>{const s=S.useContext(Xt),i=S.useContext(Je),r=()=>zl(t,e,s,i);return n?r():$l(r)};function Hl(t,e,n,s){const i={},r=s(t,{});for(const f in r)i[f]=It(r[f]);let{initial:o,animate:a}=t;const l=Yt(t),u=Oi(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const h=c?a:o;if(h&&typeof h!="boolean"&&!$t(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d({style:{},transform:{},transformOrigin:{},vars:{}}),$i=()=>({...sn(),attrs:{}}),zi=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Xl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Yl=Ct.length;function ql(t,e,n){let s="",i=!0;for(let r=0;rtypeof t=="string"&&t.toLowerCase()==="svg",eu={useVisualState:Gi({scrapeMotionValuesFromProps:Wi,createRenderState:$i,onMount:(t,e,{renderState:n,latestValues:s})=>{V.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),V.render(()=>{rn(n,s,an(e.tagName),t.transformTemplate),_i(e,n)})}})},nu={useVisualState:Gi({scrapeMotionValuesFromProps:nn,createRenderState:sn})};function Hi(t,e,n){for(const s in e)!F(e[s])&&!Ki(s,n)&&(t[s]=e[s])}function su({transformTemplate:t},e){return S.useMemo(()=>{const n=sn();return on(n,e,t),Object.assign({},n.vars,n.style)},[e])}function iu(t,e){const n=t.style||{},s={};return Hi(s,n,t),Object.assign(s,su(t,e)),s}function ou(t,e){const n={},s=iu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const ru=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 Gt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ru.has(t)}let Xi=t=>!Gt(t);function au(t){t&&(Xi=e=>e.startsWith("on")?!Gt(e):t(e))}try{au(require("@emotion/is-prop-valid").default)}catch{}function lu(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Xi(i)||n===!0&&Gt(i)||!e&&!Gt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function uu(t,e,n,s){const i=S.useMemo(()=>{const r=$i();return rn(r,e,an(s),t.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};Hi(r,t.style,t),i.style={...r,...i.style}}return i}function cu(t=!1){return(n,s,i,{latestValues:r},o)=>{const l=(en(n)?uu:ou)(s,r,o,n),u=lu(s,typeof n=="string",t),c=n!==S.Fragment?{...u,...l,ref:i}:{},{children:h}=s,f=S.useMemo(()=>F(h)?h.get():h,[h]);return S.createElement(n,{...c,children:f})}}function hu(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...en(s)?eu:nu,preloadedFeatures:t,useRender:cu(i),createVisualElement:e,Component:s};return Ul(o)}}const De={current:null},Yi={current:!1};function fu(){if(Yi.current=!0,!!tn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>De.current=t.matches;t.addListener(e),e()}else De.current=!1}function du(t,e,n){for(const s in e){const i=e[s],r=n[s];if(F(i))t.addValue(s,i);else if(F(r))t.addValue(s,wt(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,wt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Ss=new WeakMap,mu=[...Us,L,q],pu=t=>mu.find(Ns(t)),As=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class gu{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=je,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 f=W.now();this.renderScheduledAtthis.bindToMotionValue(s,n)),Yi.current||fu(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:De.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ss.delete(this.current),this.projection&&this.projection.unmount(),Y(this.notifyUpdate),Y(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=st.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&V.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 ft){const n=ft[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):M()}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=wt(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"&&(ks(i)||Bs(i))?i=parseFloat(i):!pu(i)&&q.test(n)&&(i=Xs(e,n)),this.setBaseTarget(e,F(i)?i.get():i)),F(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=Me(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&&!F(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 Ye),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class qi extends gu{constructor(){super(...arguments),this.KeyframeResolver=Ys}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;F(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function yu(t){return window.getComputedStyle(t)}class vu extends qi{constructor(){super(...arguments),this.type="html",this.renderInstance=Ni}readValueFromInstance(e,n){if(st.has(n)){const s=Ue(n);return s&&s.default||0}else{const s=yu(e),i=(Is(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Si(e,n)}build(e,n,s){on(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return nn(e,n,s)}}class xu extends qi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=M}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(st.has(n)){const s=Ue(n);return s&&s.default||0}return n=Ui.has(n)?n:qe(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Wi(e,n,s)}build(e,n,s){rn(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){_i(e,n,s,i)}mount(e){this.isSVGTag=an(e.tagName),super.mount(e)}}const Tu=(t,e)=>en(t)?new xu(e):new vu(e,{allowProjection:t!==S.Fragment}),Pu=hu({...ea,...Rl,...xl,...El},Tu),Cu=Ji(Pu);export{Cu as m};
+import{r as S,j as he}from"./index-DqLTW_kH.js";function Ji(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>t(...s);return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}function $t(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const fe=t=>Array.isArray(t);function bs(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Me(t,e,n,s){if(typeof e=="function"){const[i,r]=cn(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=cn(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function zt(t,e,n){const s=t.getProps();return Me(s,e,n!==void 0?n:s.custom,t)}const Re=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ee=["initial",...Re],Ct=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],st=new Set(Ct),$=t=>t*1e3,z=t=>t/1e3,Qi={type:"spring",stiffness:500,damping:25,restSpeed:10},to=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),eo={type:"keyframes",duration:.8},no={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},so=(t,{keyframes:e})=>e.length>2?eo:st.has(t)?t.startsWith("scale")?to(e[1]):Qi:no;function Le(t,e){return t?t[e]||t.default||t:void 0}const io={skipAnimations:!1,useManualTiming:!1},oo=t=>t!==null;function Ht(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(oo),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}const j=t=>t;let de=j;function ro(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),t()),u(o)}const l={schedule:(u,c=!1,h=!1)=>{const d=h&&s?e:n;return c&&r.add(u),d.has(u)||d.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=u,s){i=!0;return}s=!0,[e,n]=[n,e],e.forEach(a),e.clear(),s=!1,i&&(i=!1,l.process(u))}};return l}const Lt=["read","resolveKeyframes","update","preRender","render","postRender"],ao=40;function ws(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Lt.reduce((m,v)=>(m[v]=ro(r),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=o,d=()=>{const m=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(m-i.timestamp,ao),1),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(d))},p=()=>{n=!0,s=!0,i.isProcessing||t(d)};return{schedule:Lt.reduce((m,v)=>{const T=o[v];return m[v]=(b,P=!1,w=!1)=>(n||p(),T.schedule(b,P,w)),m},{}),cancel:m=>{for(let v=0;v(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,lo=1e-7,uo=12;function co(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Vs(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>lo&&++aco(r,0,1,t,n);return r=>r===0||r===1?r:Vs(i(r),e,s)}const Cs=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ds=t=>e=>1-t(1-e),Ms=Dt(.33,1.53,.69,.99),Fe=Ds(Ms),Rs=Cs(Fe),Es=t=>(t*=2)<1?.5*Fe(t):.5*(2-Math.pow(2,-10*(t-1))),Be=t=>1-Math.sin(Math.acos(t)),Ls=Ds(Be),Fs=Cs(Be),Bs=t=>/^0[^.\s]+$/u.test(t);function ho(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Bs(t):!0}const ks=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),js=t=>e=>typeof e=="string"&&e.startsWith(t),Is=js("--"),fo=js("var(--"),ke=t=>fo(t)?mo.test(t.split("/*")[0].trim()):!1,mo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,po=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function go(t){const e=po.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Os(t,e,n=1){const[s,i]=go(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return ks(o)?parseFloat(o):o}return ke(i)?Os(i,e,n+1):i}const H=(t,e,n)=>n>e?e:ntypeof t=="number",parse:parseFloat,transform:t=>t},At={...dt,transform:t=>H(0,1,t)},Ft={...dt,default:1},Mt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),X=Mt("deg"),K=Mt("%"),x=Mt("px"),yo=Mt("vh"),vo=Mt("vw"),hn={...K,parse:t=>K.parse(t)/100,transform:t=>K.transform(t*100)},xo=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),fn=t=>t===dt||t===x,dn=(t,e)=>parseFloat(t.split(", ")[e]),mn=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return dn(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?dn(r[1],t):0}},To=new Set(["x","y","z"]),Po=Ct.filter(t=>!To.has(t));function So(t){const e=[];return Po.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const ct={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:mn(4,13),y:mn(5,14)};ct.translateX=ct.x;ct.translateY=ct.y;const Ns=t=>e=>e.test(t),Ao={test:t=>t==="auto",parse:t=>t},Us=[dt,x,K,X,vo,yo,Ao],pn=t=>Us.find(Ns(t)),nt=new Set;let me=!1,pe=!1;function _s(){if(pe){const t=Array.from(nt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=So(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,me=!1,nt.forEach(t=>t.complete()),nt.clear()}function Ks(){nt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(pe=!0)})}function bo(){Ks(),_s()}class je{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?(nt.add(this),me||(me=!0,V.read(Ks),V.resolveKeyframes(_s))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;rMath.round(t*1e5)/1e5,Ie=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wo(t){return t==null}const Vo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Oe=(t,e)=>n=>!!(typeof n=="string"&&Vo.test(n)&&n.startsWith(t)||e&&!wo(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ws=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(Ie);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Co=t=>H(0,255,t),Qt={...dt,transform:t=>Math.round(Co(t))},et={test:Oe("rgb","red"),parse:Ws("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Qt.transform(t)+", "+Qt.transform(e)+", "+Qt.transform(n)+", "+vt(At.transform(s))+")"};function Do(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 ge={test:Oe("#"),parse:Do,transform:et.transform},ot={test:Oe("hsl","hue"),parse:Ws("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+K.transform(vt(e))+", "+K.transform(vt(n))+", "+vt(At.transform(s))+")"},L={test:t=>et.test(t)||ge.test(t)||ot.test(t),parse:t=>et.test(t)?et.parse(t):ot.test(t)?ot.parse(t):ge.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?et.transform(t):ot.transform(t)},Mo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ro(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ie))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Mo))===null||n===void 0?void 0:n.length)||0)>0}const Gs="number",$s="color",Eo="var",Lo="var(",gn="${}",Fo=/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 bt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(Fo,l=>(L.test(l)?(s.color.push(r),i.push($s),n.push(L.parse(l))):l.startsWith(Lo)?(s.var.push(r),i.push(Eo),n.push(l)):(s.number.push(r),i.push(Gs),n.push(parseFloat(l))),++r,gn)).split(gn);return{values:n,split:a,indexes:s,types:i}}function zs(t){return bt(t).values}function Hs(t){const{split:e,types:n}=bt(t),s=e.length;return i=>{let r="";for(let o=0;otypeof t=="number"?0:t;function ko(t){const e=zs(t);return Hs(t)(e.map(Bo))}const q={test:Ro,parse:zs,createTransformer:Hs,getAnimatableNone:ko},jo=new Set(["brightness","contrast","saturate","opacity"]);function Io(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Ie)||[];if(!s)return t;const i=n.replace(s,"");let r=jo.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Oo=/\b([a-z-]*)\(.*?\)/gu,ye={...q,getAnimatableNone:t=>{const e=t.match(Oo);return e?e.map(Io).join(" "):t}},No={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,backgroundPositionX:x,backgroundPositionY:x},Uo={rotate:X,rotateX:X,rotateY:X,rotateZ:X,scale:Ft,scaleX:Ft,scaleY:Ft,scaleZ:Ft,skew:X,skewX:X,skewY:X,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:At,originX:hn,originY:hn,originZ:x},yn={...dt,transform:Math.round},Ne={...No,...Uo,zIndex:yn,size:x,fillOpacity:At,strokeOpacity:At,numOctaves:yn},_o={...Ne,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:ye,WebkitFilter:ye},Ue=t=>_o[t];function Xs(t,e){let n=Ue(t);return n!==ye&&(n=q),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ko=new Set(["auto","none","0"]);function Wo(t,e,n){let s=0,i;for(;s{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function _e(t){return typeof t=="function"}let kt;function Go(){kt=void 0}const W={now:()=>(kt===void 0&&W.set(E.isProcessing||io.useManualTiming?E.timestamp:performance.now()),kt),set:t=>{kt=t,queueMicrotask(Go)}},vn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(q.test(t)||t==="0")&&!t.startsWith("url("));function $o(t){const e=t[0];if(t.length===1)return!0;for(let n=0;nHo?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&bo(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=W.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!zo(e,s,i,r))if(o)this.options.duration=0;else{l==null||l(Ht(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}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 ht=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},Zs=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r{const c=u*o,h=c*t,f=c-n,d=ve(u,o),p=Math.exp(-h);return te-f/d*p},r=u=>{const h=u*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(u,2)*t,p=Math.exp(-h),g=ve(Math.pow(u,2),o);return(-i(u)+te>0?-1:1)*((f-d)*p)/g}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-te+c*h},r=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=Zo(i,r,a);if(t=$(t),isNaN(l))return{stiffness:D.stiffness,damping:D.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const qo=12;function Zo(t,e,n){let s=n;for(let i=1;i=xe?1/0:e}const Jo=["duration","bounce"],Qo=["stiffness","damping","mass"];function xn(t,e){return e.some(n=>t[n]!==void 0)}function tr(t){let e={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...t};if(!xn(t,Qo)&&xn(t,Jo))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*H(.05,1,1-t.bounce)*Math.sqrt(i);e={...e,mass:D.mass,stiffness:i,damping:r}}else{const n=Yo(t);e={...e,...n,mass:D.mass},e.isResolvedFromDuration=!0}return e}function ei(t=D.visualDuration,e=D.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}=tr({...n,velocity:-z(n.velocity||0)}),p=f||0,g=u/(2*Math.sqrt(l*c)),y=o-r,m=z(Math.sqrt(l/c)),v=Math.abs(y)<5;s||(s=v?D.restSpeed.granular:D.restSpeed.default),i||(i=v?D.restDelta.granular:D.restDelta.default);let T;if(g<1){const P=ve(m,g);T=w=>{const R=Math.exp(-g*m*w);return o-R*((p+g*m*y)/P*Math.sin(P*w)+y*Math.cos(P*w))}}else if(g===1)T=P=>o-Math.exp(-m*P)*(y+(p+m*y)*P);else{const P=m*Math.sqrt(g*g-1);T=w=>{const R=Math.exp(-g*m*w),A=Math.min(P*w,300);return o-R*((p+g*m*y)*Math.sinh(A)+P*y*Math.cosh(A))/P}}const b={calculatedDuration:d&&h||null,next:P=>{const w=T(P);if(d)a.done=P>=h;else{let R=0;g<1&&(R=P===0?$(p):Qs(T,P,w));const A=Math.abs(R)<=s,k=Math.abs(o-w)<=i;a.done=A&&k}return a.value=a.done?o:w,a},toString:()=>{const P=Math.min(ti(b),xe),w=Zs(R=>b.next(P*R).value,P,30);return P+"ms "+w}};return b}function Tn({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=A=>a!==void 0&&Al,p=A=>a===void 0?l:l===void 0||Math.abs(a-A)-g*Math.exp(-A/s),T=A=>m+v(A),b=A=>{const k=v(A),O=T(A);f.done=Math.abs(k)<=u,f.value=f.done?m:O};let P,w;const R=A=>{d(f.value)&&(P=A,w=ei({keyframes:[f.value,p(f.value)],velocity:Qs(T,A,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return R(0),{calculatedDuration:null,next:A=>{let k=!1;return!w&&P===void 0&&(k=!0,b(A),R(A)),P!==void 0&&A>=P?w.next(A-P):(!k&&b(A),f)}}}const er=Dt(.42,0,1,1),nr=Dt(0,0,.58,1),ni=Dt(.42,0,.58,1),sr=t=>Array.isArray(t)&&typeof t[0]!="number",Ke=t=>Array.isArray(t)&&typeof t[0]=="number",Pn={linear:j,easeIn:er,easeInOut:ni,easeOut:nr,circIn:Be,circInOut:Fs,circOut:Ls,backIn:Fe,backInOut:Rs,backOut:Ms,anticipate:Es},Sn=t=>{if(Ke(t)){de(t.length===4);const[e,n,s,i]=t;return Dt(e,n,s,i)}else if(typeof t=="string")return de(Pn[t]!==void 0),Pn[t];return t},ir=(t,e)=>n=>e(t(n)),Rt=(...t)=>t.reduce(ir),C=(t,e,n)=>t+(e-t)*n;function ee(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 or({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=ee(l,a,t+1/3),r=ee(l,a,t),o=ee(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Ot(t,e){return n=>n>0?e:t}const ne=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},rr=[ge,et,ot],ar=t=>rr.find(e=>e.test(t));function An(t){const e=ar(t);if(!e)return!1;let n=e.parse(t);return e===ot&&(n=or(n)),n}const bn=(t,e)=>{const n=An(t),s=An(e);if(!n||!s)return Ot(t,e);const i={...n};return r=>(i.red=ne(n.red,s.red,r),i.green=ne(n.green,s.green,r),i.blue=ne(n.blue,s.blue,r),i.alpha=C(n.alpha,s.alpha,r),et.transform(i))},Te=new Set(["none","hidden"]);function lr(t,e){return Te.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ur(t,e){return n=>C(t,e,n)}function We(t){return typeof t=="number"?ur:typeof t=="string"?ke(t)?Ot:L.test(t)?bn:fr:Array.isArray(t)?si:typeof t=="object"?L.test(t)?bn:cr:Ot}function si(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>We(r)(r,e[o]));return r=>{for(let o=0;o{for(const r in s)n[r]=s[r](i);return n}}function hr(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r{const n=q.createTransformer(e),s=bt(t),i=bt(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?Te.has(t)&&!i.values.length||Te.has(e)&&!s.values.length?lr(t,e):Rt(si(hr(s,i),i.values),n):Ot(t,e)};function ii(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?C(t,e,n):We(t)(t,e)}function dr(t,e,n){const s=[],i=n||ii,r=t.length-1;for(let o=0;oe[0];if(r===2&&t[0]===t[1])return()=>e[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=dr(e,s,i),a=o.length,l=u=>{let c=0;if(a>1)for(;cl(H(t[0],t[r-1],u)):l}function pr(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=ht(0,e,s);t.push(C(n,1,i))}}function gr(t){const e=[0];return pr(e,t.length-1),e}function yr(t,e){return t.map(n=>n*e)}function vr(t,e){return t.map(()=>e||ni).splice(0,t.length-1)}function Nt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=sr(s)?s.map(Sn):Sn(s),r={done:!1,value:e[0]},o=yr(n&&n.length===e.length?n:gr(e),t),a=mr(o,e,{ease:Array.isArray(i)?i:vr(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const xr=t=>{const e=({timestamp:n})=>t(n);return{start:()=>V.update(e,!0),stop:()=>Y(e),now:()=>E.isProcessing?E.timestamp:W.now()}},Tr={decay:Tn,inertia:Tn,tween:Nt,keyframes:Nt,spring:ei},Pr=t=>t/100;class Ge extends qs{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==null?void 0:i.KeyframeResolver)||je,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=_e(n)?n:Tr[n]||Nt;let l,u;a!==Nt&&typeof e[0]!="number"&&(l=Rt(Pr,ii(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=ti(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:A}=this.options;return{done:!0,value:A[A.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:p,repeatDelay:g,onUpdate:y}=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 m=this.currentTime-f*(this.speed>=0?1:-1),v=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let T=this.currentTime,b=r;if(d){const A=Math.min(this.currentTime,c)/h;let k=Math.floor(A),O=A%1;!O&&A>=1&&(O=1),O===1&&k--,k=Math.min(k,d+1),!!(k%2)&&(p==="reverse"?(O=1-O,g&&(O-=g/h)):p==="mirror"&&(b=o)),T=H(0,1,O)*h}const P=v?{done:!1,value:l[0]}:b.next(T);a&&(P.value=a(P.value));let{done:w}=P;!v&&u!==null&&(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return R&&i!==void 0&&(P.value=Ht(l,this.options,i)),y&&y(P.value),R&&this.finish(),P}get duration(){const{resolved:e}=this;return e?z(e.calculatedDuration):0}get time(){return z(this.currentTime)}set time(e){e=$(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=z(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=xr,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)}}const Sr=new Set(["opacity","clipPath","filter","transform"]);function $e(t){let e;return()=>(e===void 0&&(e=t()),e)}const Ar={linearEasing:void 0};function br(t,e){const n=$e(t);return()=>{var s;return(s=Ar[e])!==null&&s!==void 0?s:n()}}const Ut=br(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function oi(t){return!!(typeof t=="function"&&Ut()||!t||typeof t=="string"&&(t in Pe||Ut())||Ke(t)||Array.isArray(t)&&t.every(oi))}const pt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Pe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pt([0,.65,.55,1]),circOut:pt([.55,0,1,.45]),backIn:pt([.31,.01,.66,-.59]),backOut:pt([.33,1.53,.69,.99])};function ri(t,e){if(t)return typeof t=="function"&&Ut()?Zs(t,e):Ke(t)?pt(t):Array.isArray(t)?t.map(n=>ri(n,e)||Pe.easeOut):Pe[t]}function wr(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=ri(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"})}function wn(t,e){t.timeline=e,t.onfinish=null}const Vr=$e(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_t=10,Cr=2e4;function Dr(t){return _e(t.type)||t.type==="spring"||!oi(t.ease)}function Mr(t,e){const n=new Ge({...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){var s;let{duration:i=300,times:r,ease:o,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(typeof o=="string"&&Ut()&&Rr(o)&&(o=ai[o]),Dr(this.options)){const{onComplete:f,onUpdate:d,motionValue:p,element:g,...y}=this.options,m=Mr(e,y);e=m.keyframes,e.length===1&&(e[1]=e[0]),i=m.duration,r=m.times,o=m.ease,a="keyframes"}const h=wr(l.owner.current,u,e,{...this.options,duration:i,times:r,ease:o});return h.startTime=c??this.calcStartTime(),this.pendingTimeline?(wn(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:f}=this.options;l.set(Ht(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:r,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return z(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return z(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=$(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 j;const{animation:s}=n;wn(s,e)}return j}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,p=new Ge({...d,keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0}),g=$(this.time);u.setWithVelocity(p.sample(g-_t).value,p.sample(g).value,_t)}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;return Vr()&&s&&Sr.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}const Er=$e(()=>window.ScrollTimeline!==void 0);class Lr{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;sEr()&&i.attachTimeline?i.attachTimeline(e):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")}}function Fr({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 ze=(t,e,n,s={},i,r)=>o=>{const a=Le(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-$(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};Fr(a)||(c={...c,...so(t,c)}),c.duration&&(c.duration=$(c.duration)),c.repeatDelay&&(c.repeatDelay=$(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)),h&&!r&&e.get()!==void 0){const f=Ht(c.keyframes,a);if(f!==void 0)return V.update(()=>{c.onUpdate(f),c.onComplete()}),new Lr([])}return!r&&Vn.supports(c)?new Vn(c):new Ge(c)},Br=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),kr=t=>fe(t)?t[t.length-1]||0:t;function He(t,e){t.indexOf(e)===-1&&t.push(e)}function Xe(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Ye{constructor(){this.subscriptions=[]}add(e){return He(this.subscriptions,e),()=>Xe(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));class Ir{constructor(e,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=W.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=W.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=jr(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 Ye);const s=this.events[e].add(n);return e==="change"?()=>{s(),V.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 this.current}getPrevious(){return this.prev}getVelocity(){const e=W.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Cn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Cn);return Js(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 wt(t,e){return new Ir(t,e)}function Or(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,wt(n))}function Nr(t,e){const n=zt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=kr(r[o]);Or(t,o,a)}}const qe=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ur="framerAppearId",li="data-"+qe(Ur);function ui(t){return t.props[li]}const F=t=>!!(t&&t.getVelocity);function _r(t){return!!(F(t)&&t.add)}function Se(t,e){const n=t.getValue("willChange");if(_r(n))return n.add(e)}function Kr({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function ci(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&&Kr(c,h))continue;const p={delay:n,...Le(o||{},h)};let g=!1;if(window.MotionHandoffAnimation){const m=ui(t);if(m){const v=window.MotionHandoffAnimation(m,h,V);v!==null&&(p.startTime=v,g=!0)}}Se(t,h),f.start(ze(h,f,d,t.shouldReduceMotion&&st.has(h)?{type:!1}:p,t,g));const y=f.animation;y&&u.push(y)}return a&&Promise.all(u).then(()=>{V.update(()=>{a&&Nr(t,a)})}),u}function Ae(t,e,n={}){var s;const i=zt(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(ci(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=r;return Wr(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 Wr(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(Gr).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(Ae(u,e,{...r,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function Gr(t,e){return t.sortNodePosition(e)}function $r(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Ae(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Ae(t,e,n);else{const i=typeof e=="function"?zt(t,e,n.custom):e;s=Promise.all(ci(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const zr=Ee.length;function hi(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?hi(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})=>$r(t,n,s)))}function qr(t){let e=Yr(t),n=Dn(),s=!0;const i=l=>(u,c)=>{var h;const f=zt(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:p,...g}=f;u={...u,...g,...p}}return u};function r(l){e=l(t)}function o(l){const{props:u}=t,c=hi(t.parent)||{},h=[],f=new Set;let d={},p=1/0;for(let y=0;yp&&b,k=!1;const O=Array.isArray(T)?T:[T];let it=O.reduce(i(m),{});P===!1&&(it={});const{prevResolvedValues:ln={}}=v,Zi={...ln,...it},un=B=>{A=!0,f.has(B)&&(k=!0,f.delete(B)),v.needsAnimating[B]=!0;const G=t.getValue(B);G&&(G.liveStyle=!1)};for(const B in Zi){const G=it[B],qt=ln[B];if(d.hasOwnProperty(B))continue;let Zt=!1;fe(G)&&fe(qt)?Zt=!bs(G,qt):Zt=G!==qt,Zt?G!=null?un(B):f.add(B):G!==void 0&&f.has(B)?un(B):v.protectedKeys[B]=!0}v.prevProp=T,v.prevResolvedValues=it,v.isActive&&(d={...d,...it}),s&&t.blockInitialAnimation&&(A=!1),A&&(!(w&&R)||k)&&h.push(...O.map(B=>({animation:B,options:{type:m}})))}if(f.size){const y={};f.forEach(m=>{const v=t.getBaseTarget(m),T=t.getValue(m);T&&(T.liveStyle=!0),y[m]=v??null}),h.push({animation:y})}let g=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,g?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=Dn(),s=!0}}}function Zr(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!bs(e,t):!1}function J(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dn(){return{animate:J(!0),whileInView:J(),whileHover:J(),whileTap:J(),whileDrag:J(),whileFocus:J(),exit:J()}}class Z{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Jr extends Z{constructor(e){super(e),e.animationState||(e.animationState=qr(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 Qr=0;class ta extends Z{constructor(){super(...arguments),this.id=Qr++}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 ea={animation:{Feature:Jr},exit:{Feature:ta}},_={x:!1,y:!1};function fi(){return _.x||_.y}function na(t,e,n){var s;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const r=(s=void 0)!==null&&s!==void 0?s:i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}function di(t,e){const n=na(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Mn(t){return e=>{e.pointerType==="touch"||fi()||t(e)}}function sa(t,e,n={}){const[s,i,r]=di(t,n),o=Mn(a=>{const{target:l}=a,u=e(a);if(!u||!l)return;const c=Mn(h=>{u(h),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return s.forEach(a=>{a.addEventListener("pointerenter",o,i)}),r}const Ze=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,gt=new WeakSet;function Rn(t){return e=>{e.key==="Enter"&&t(e)}}function se(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ia=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Rn(()=>{if(gt.has(n))return;se(n,"down");const i=Rn(()=>{se(n,"up")}),r=()=>se(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)},oa=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ra(t){return oa.has(t.tagName)||t.tabIndex!==-1}const mi=(t,e)=>e?t===e?!0:mi(t,e.parentElement):!1;function En(t){return Ze(t)&&!fi()}function aa(t,e,n={}){const[s,i,r]=di(t,n),o=a=>{const l=a.currentTarget;if(!En(a)||gt.has(l))return;gt.add(l);const u=e(a),c=(d,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!En(d)||!gt.has(l))&&(gt.delete(l),u&&u(d,{success:p}))},h=d=>{c(d,n.useGlobalTarget||mi(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{ra(a)||(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a.addEventListener("focus",u=>ia(u,i),i)}),r}function la(t){return t==="x"||t==="y"?_[t]?null:(_[t]=!0,()=>{_[t]=!1}):_.x||_.y?null:(_.x=_.y=!0,()=>{_.x=_.y=!1})}function Et(t){return{point:{x:t.pageX,y:t.pageY}}}const ua=t=>e=>Ze(e)&&t(e,Et(e));function Vt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function xt(t,e,n,s){return Vt(t,e,ua(n),s)}const Ln=(t,e)=>Math.abs(t-e);function ca(t,e){const n=Ln(t.x,e.x),s=Ln(t.y,e.y);return Math.sqrt(n**2+s**2)}class pi{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:r=!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=oe(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=ca(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:p}=h,{timestamp:g}=E;this.history.push({...p,timestamp:g});const{onStart:y,onMove:m}=this.handlers;f||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ie(f,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:p,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=oe(h.type==="pointercancel"?this.lastMoveEventInfo:ie(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,y),p&&p(h,y)},!Ze(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const o=Et(e),a=ie(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=E;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,oe(a,this.history)),this.removeListeners=Rt(xt(this.contextWindow,"pointermove",this.handlePointerMove),xt(this.contextWindow,"pointerup",this.handlePointerUp),xt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Y(this.updatePoint)}}function ie(t,e){return e?{point:e(t.point)}:t}function Fn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function oe({point:t},e){return{point:t,delta:Fn(t,gi(e)),offset:Fn(t,ha(e)),velocity:fa(e,.1)}}function ha(t){return t[0]}function gi(t){return t[t.length-1]}function fa(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=gi(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>$(e)));)n--;if(!s)return{x:0,y:0};const r=z(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function rt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const yi=1e-4,da=1-yi,ma=1+yi,vi=.01,pa=0-vi,ga=0+vi;function I(t){return t.max-t.min}function ya(t,e,n){return Math.abs(t-e)<=n}function Bn(t,e,n,s=.5){t.origin=s,t.originPoint=C(e.min,e.max,t.origin),t.scale=I(n)/I(e),t.translate=C(n.min,n.max,t.origin)-t.originPoint,(t.scale>=da&&t.scale<=ma||isNaN(t.scale))&&(t.scale=1),(t.translate>=pa&&t.translate<=ga||isNaN(t.translate))&&(t.translate=0)}function Tt(t,e,n,s){Bn(t.x,e.x,n.x,s?s.originX:void 0),Bn(t.y,e.y,n.y,s?s.originY:void 0)}function kn(t,e,n){t.min=n.min+e.min,t.max=t.min+I(e)}function va(t,e,n){kn(t.x,e.x,n.x),kn(t.y,e.y,n.y)}function jn(t,e,n){t.min=e.min-n.min,t.max=t.min+I(e)}function Pt(t,e,n){jn(t.x,e.x,n.x),jn(t.y,e.y,n.y)}function xa(t,{min:e,max:n},s){return e!==void 0&&tn&&(t=s?C(n,t,s.max):Math.min(t,n)),t}function In(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 Ta(t,{top:e,left:n,bottom:s,right:i}){return{x:In(t.x,n,i),y:In(t.y,e,s)}}function On(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.mins?n=ht(e.min,e.max-s,t.min):s>i&&(n=ht(t.min,t.max-i,e.min)),H(0,1,n)}function Aa(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 be=.35;function ba(t=be){return t===!1?t=0:t===!0&&(t=be),{x:Nn(t,"left","right"),y:Nn(t,"top","bottom")}}function Nn(t,e,n){return{min:Un(t,e),max:Un(t,n)}}function Un(t,e){return typeof t=="number"?t:t[e]||0}const _n=()=>({translate:0,scale:1,origin:0,originPoint:0}),at=()=>({x:_n(),y:_n()}),Kn=()=>({min:0,max:0}),M=()=>({x:Kn(),y:Kn()});function U(t){return[t("x"),t("y")]}function xi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function wa({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Va(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 re(t){return t===void 0||t===1}function we({scale:t,scaleX:e,scaleY:n}){return!re(t)||!re(e)||!re(n)}function Q(t){return we(t)||Ti(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ti(t){return Wn(t.x)||Wn(t.y)}function Wn(t){return t&&t!=="0%"}function Kt(t,e,n){const s=t-n,i=e*s;return n+i}function Gn(t,e,n,s,i){return i!==void 0&&(t=Kt(t,i,s)),Kt(t,n,s)+e}function Ve(t,e=0,n=1,s,i){t.min=Gn(t.min,e,n,s,i),t.max=Gn(t.max,e,n,s,i)}function Pi(t,{x:e,y:n}){Ve(t.x,e.translate,e.scale,e.originPoint),Ve(t.y,n.translate,n.scale,n.originPoint)}const $n=.999999999999,zn=1.0000000000001;function Ca(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a$n&&(e.x=1),e.y$n&&(e.y=1)}function lt(t,e){t.min=t.min+e,t.max=t.max+e}function Hn(t,e,n,s,i=.5){const r=C(t.min,t.max,i);Ve(t,e,n,r,s)}function ut(t,e){Hn(t.x,e.x,e.scaleX,e.scale,e.originX),Hn(t.y,e.y,e.scaleY,e.scale,e.originY)}function Si(t,e){return xi(Va(t.getBoundingClientRect(),e))}function Da(t,e,n){const s=Si(t,n),{scroll:i}=e;return i&&(lt(s.x,i.offset.x),lt(s.y,i.offset.y)),s}const Ai=({current:t})=>t?t.ownerDocument.defaultView:null,Ma=new WeakMap;class Ra{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=M(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Et(c).point)},r=(c,h)=>{const{drag:f,dragPropagation:d,onDragStart:p}=this.getProps();if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=la(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),U(y=>{let m=this.getAxisMotionValue(y).get()||0;if(K.test(m)){const{projection:v}=this.visualElement;if(v&&v.layout){const T=v.layout.layoutBox[y];T&&(m=I(T)*(parseFloat(m)/100))}}this.originPoint[y]=m}),p&&V.postRender(()=>p(c,h)),Se(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},o=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:p,onDrag:g}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=h;if(d&&this.currentDirection===null){this.currentDirection=Ea(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),g&&g(c,h)},a=(c,h)=>this.stop(c,h),l=()=>U(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new pi(e,{onSessionStart:i,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ai(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:r}=this.getProps();r&&V.postRender(()=>r(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:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Bt(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=xa(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,r=this.constraints;n&&rt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Ta(i.layoutBox,n):this.constraints=!1,this.elastic=ba(s),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&U(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Aa(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!rt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=Da(s,i.root,this.visualElement.getTransformPagePoint());let o=Pa(i.layout.layoutBox,r);if(n){const a=n(wa(o));this.hasMutatedConstraints=!!a,a&&(o=xi(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=U(c=>{if(!Bt(c,n,this.currentDirection))return;let h=l&&l[c]||{};o&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Se(this.visualElement,e),s.start(ze(e,s,0,n,this.visualElement,!1))}stopAnimation(){U(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){U(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()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){U(n=>{const{drag:s}=this.getProps();if(!Bt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];r.set(e[n]-C(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!rt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};U(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Sa({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),U(o=>{if(!Bt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(C(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Ma.set(this.visualElement,this);const e=this.visualElement.current,n=xt(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();rt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),V.read(s);const o=Vt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(U(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=be,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Bt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Ea(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class La extends Z{constructor(e){super(e),this.removeGroupControls=j,this.removeListeners=j,this.controls=new Ra(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||j}unmount(){this.removeGroupControls(),this.removeListeners()}}const Xn=t=>(e,n)=>{t&&V.postRender(()=>t(e,n))};class Fa extends Z{constructor(){super(...arguments),this.removePointerDownListener=j}onPointerDown(e){this.session=new pi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ai(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Xn(e),onStart:Xn(n),onMove:s,onEnd:(r,o)=>{delete this.session,i&&V.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=xt(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 Je=S.createContext(null);function Ba(){const t=S.useContext(Je);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=S.useId();S.useEffect(()=>s(i),[]);const r=S.useCallback(()=>n&&n(i),[i,n]);return!e&&n?[!1,r]:[!0]}const bi=S.createContext({}),wi=S.createContext({}),jt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Yn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const mt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(x.test(t))t=parseFloat(t);else return t;const n=Yn(t,e.target.x),s=Yn(t,e.target.y);return`${n}% ${s}%`}},ka={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=q.parse(t);if(i.length>5)return s;const r=q.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const u=C(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),r(i)}},Wt={};function ja(t){Object.assign(Wt,t)}const{schedule:Qe,cancel:wu}=ws(queueMicrotask,!1);class Ia extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;ja(Oa),r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),jt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,o=s.projection;return o&&(o.isPresent=r,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||V.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Qe.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Vi(t){const[e,n]=Ba(),s=S.useContext(bi);return he.jsx(Ia,{...t,layoutGroup:s,switchLayoutGroup:S.useContext(wi),isPresent:e,safeToRemove:n})}const Oa={borderRadius:{...mt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mt,borderTopRightRadius:mt,borderBottomLeftRadius:mt,borderBottomRightRadius:mt,boxShadow:ka},Ci=["TopLeft","TopRight","BottomLeft","BottomRight"],Na=Ci.length,qn=t=>typeof t=="string"?parseFloat(t):t,Zn=t=>typeof t=="number"||x.test(t);function Ua(t,e,n,s,i,r){i?(t.opacity=C(0,n.opacity!==void 0?n.opacity:1,_a(s)),t.opacityExit=C(e.opacity!==void 0?e.opacity:1,0,Ka(s))):r&&(t.opacity=C(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;ose?1:n(ht(t,e,s))}function Qn(t,e){t.min=e.min,t.max=e.max}function N(t,e){Qn(t.x,e.x),Qn(t.y,e.y)}function ts(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function es(t,e,n,s,i){return t-=e,t=Kt(t,1/n,s),i!==void 0&&(t=Kt(t,1/i,s)),t}function Wa(t,e=0,n=1,s=.5,i,r=t,o=t){if(K.test(e)&&(e=parseFloat(e),e=C(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=C(r.min,r.max,s);t===r&&(a-=e),t.min=es(t.min,e,n,a,i),t.max=es(t.max,e,n,a,i)}function ns(t,e,[n,s,i],r,o){Wa(t,e[n],e[s],e[i],e.scale,r,o)}const Ga=["x","scaleX","originX"],$a=["y","scaleY","originY"];function ss(t,e,n,s){ns(t.x,e,Ga,n?n.x:void 0,s?s.x:void 0),ns(t.y,e,$a,n?n.y:void 0,s?s.y:void 0)}function is(t){return t.translate===0&&t.scale===1}function Mi(t){return is(t.x)&&is(t.y)}function os(t,e){return t.min===e.min&&t.max===e.max}function za(t,e){return os(t.x,e.x)&&os(t.y,e.y)}function rs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ri(t,e){return rs(t.x,e.x)&&rs(t.y,e.y)}function as(t){return I(t.x)/I(t.y)}function ls(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Ha{constructor(){this.members=[]}add(e){He(this.members,e),e.scheduleRender()}remove(e){if(Xe(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(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){s=r;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Xa(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:p}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Ya=(t,e)=>t.depth-e.depth;class qa{constructor(){this.children=[],this.isDirty=!1}add(e){He(this.children,e),this.isDirty=!0}remove(e){Xe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ya),this.isDirty=!1,this.children.forEach(e)}}function It(t){const e=F(t)?t.get():t;return Br(e)?e.toValue():e}function Za(t,e){const n=W.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(Y(s),t(r-e))};return V.read(s,!0),()=>Y(s)}function Ja(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Qa(t,e,n){const s=F(t)?t:wt(t);return s.start(ze("",s,e,n)),s.animation}const tt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},yt=typeof window<"u"&&window.MotionDebug!==void 0,ae=["","X","Y","Z"],tl={visibility:"hidden"},us=1e3;let el=0;function le(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Ei(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=ui(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Ei(s)}function Li({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=el++,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,yt&&(tt.totalNodes=tt.resolvedTargetDeltas=tt.recalculatedProjection=0),this.nodes.forEach(il),this.nodes.forEach(ul),this.nodes.forEach(cl),this.nodes.forEach(ol),yt&&window.MotionDebug.record(tt)},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 l=0;lthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Za(f,250),jt.hasAnimatedSinceResize&&(jt.hasAnimatedSinceResize=!1,this.nodes.forEach(hs))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||pl,{onLayoutAnimationStart:y,onLayoutAnimationComplete:m}=c.getProps(),v=!this.targetLayout||!Ri(this.targetLayout,p)||d,T=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||T||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,T);const b={...Le(g,"layout"),onPlay:y,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else f||hs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}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,Y(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(hl),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&&Ei(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 l=0;l{const P=b/1e3;fs(h.x,o.x,P),fs(h.y,o.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Pt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dl(this.relativeTarget,this.relativeTargetOrigin,f,P),T&&za(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=M()),N(T,this.relativeTarget)),g&&(this.animationValues=c,Ua(c,u,this.latestValues,P,v,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},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&&(Y(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{jt.hasAnimatedSinceResize=!0,this.currentAnimation=Qa(0,us,{...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(us),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Fi(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||M();const h=I(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=I(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}N(a,l),ut(a,c),Tt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Ha),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.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:l}={}){const u=this.getStack();u&&u.promote(this,l),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:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&le("z",o,u,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(cs),this.root.sharedNodes.clear()}}}function nl(t){t.updateLayout()}function sl(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:s,measuredBox:i}=t.layout,{animationType:r}=t.options,o=n.source!==t.layout.source;r==="size"?U(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=I(f);f.min=s[h].min,f.max=f.min+d}):Fi(r,n.layoutBox,s)&&U(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=I(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=at();Tt(a,s,n.layoutBox);const l=at();o?Tt(l,t.applyTransform(i,!0),n.measuredBox):Tt(l,s,n.layoutBox);const u=!Mi(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 p=M();Pt(p,n.layoutBox,f.layoutBox);const g=M();Pt(g,s,d.layoutBox),Ri(p,g)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function il(t){yt&&tt.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 ol(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rl(t){t.clearSnapshot()}function cs(t){t.clearMeasurements()}function al(t){t.isLayoutDirty=!1}function ll(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function hs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ul(t){t.resolveTargetDelta()}function cl(t){t.calcProjection()}function hl(t){t.resetSkewAndRotation()}function fl(t){t.removeLeadSnapshot()}function fs(t,e,n){t.translate=C(e.translate,0,n),t.scale=C(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ds(t,e,n,s){t.min=C(e.min,n.min,s),t.max=C(e.max,n.max,s)}function dl(t,e,n,s){ds(t.x,e.x,n.x,s),ds(t.y,e.y,n.y,s)}function ml(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const pl={duration:.45,ease:[.4,0,.1,1]},ms=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ps=ms("applewebkit/")&&!ms("chrome/")?Math.round:j;function gs(t){t.min=ps(t.min),t.max=ps(t.max)}function gl(t){gs(t.x),gs(t.y)}function Fi(t,e,n){return t==="position"||t==="preserve-aspect"&&!ya(as(e),as(n),.2)}function yl(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const vl=Li({attachResizeListener:(t,e)=>Vt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ue={current:void 0},Bi=Li({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ue.current){const t=new vl({});t.mount(window),t.setOptions({layoutScroll:!0}),ue.current=t}return ue.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),xl={pan:{Feature:Fa},drag:{Feature:La,ProjectionNode:Bi,MeasureLayout:Vi}};function ys(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&&V.postRender(()=>r(e,Et(e)))}class Tl extends Z{mount(){const{current:e}=this.node;e&&(this.unmount=sa(e,n=>(ys(this.node,n,"Start"),s=>ys(this.node,s,"End"))))}unmount(){}}class Pl 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=Rt(Vt(this.node.current,"focus",()=>this.onFocus()),Vt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function vs(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&&V.postRender(()=>r(e,Et(e)))}class Sl extends Z{mount(){const{current:e}=this.node;e&&(this.unmount=aa(e,n=>(vs(this.node,n,"Start"),(s,{success:i})=>vs(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ce=new WeakMap,ce=new WeakMap,Al=t=>{const e=Ce.get(t.target);e&&e(t)},bl=t=>{t.forEach(Al)};function wl({root:t,...e}){const n=t||document;ce.has(n)||ce.set(n,{});const s=ce.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(bl,{root:t,...e})),s[i]}function Vl(t,e,n){const s=wl(e);return Ce.set(t,n),s.observe(t),()=>{Ce.delete(t),s.unobserve(t)}}const Cl={some:0,all:1};class Dl 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:Cl[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 Vl(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(Ml(e,n))&&this.startObserver()}unmount(){}}function Ml({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Rl={inView:{Feature:Dl},tap:{Feature:Sl},focus:{Feature:Pl},hover:{Feature:Tl}},El={layout:{ProjectionNode:Bi,MeasureLayout:Vi}},ki=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Xt=S.createContext({}),tn=typeof window<"u",Ll=tn?S.useLayoutEffect:S.useEffect,ji=S.createContext({strict:!1});function Fl(t,e,n,s,i){var r,o;const{visualElement:a}=S.useContext(Xt),l=S.useContext(ji),u=S.useContext(Je),c=S.useContext(ki).reducedMotion,h=S.useRef(null);s=s||l.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=h.current,d=S.useContext(wi);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Bl(h.current,n,i,d);const p=S.useRef(!1);S.useInsertionEffect(()=>{f&&p.current&&f.update(n,u)});const g=n[li],y=S.useRef(!!g&&!(!((r=window.MotionHandoffIsComplete)===null||r===void 0)&&r.call(window,g))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,g)));return Ll(()=>{f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Qe.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),S.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,g)}),y.current=!1))}),f}function Bl(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ii(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&rt(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function Ii(t){if(t)return t.options.allowProjection!==!1?t.projection:Ii(t.parent)}function kl(t,e,n){return S.useCallback(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):rt(n)&&(n.current=s))},[e])}function Yt(t){return $t(t.animate)||Ee.some(e=>St(t[e]))}function Oi(t){return!!(Yt(t)||t.variants)}function jl(t,e){if(Yt(t)){const{initial:n,animate:s}=t;return{initial:n===!1||St(n)?n:void 0,animate:St(s)?s:void 0}}return t.inherit!==!1?e:{}}function Il(t){const{initial:e,animate:n}=jl(t,S.useContext(Xt));return S.useMemo(()=>({initial:e,animate:n}),[xs(e),xs(n)])}function xs(t){return Array.isArray(t)?t.join(" "):t}const Ts={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ft={};for(const t in Ts)ft[t]={isEnabled:e=>Ts[t].some(n=>!!e[n])};function Ol(t){for(const e in t)ft[e]={...ft[e],...t[e]}}const Nl=Symbol.for("motionComponentSymbol");function Ul({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&Ol(t);function r(a,l){let u;const c={...S.useContext(ki),...a,layoutId:_l(a)},{isStatic:h}=c,f=Il(a),d=s(a,h);if(!h&&tn){Kl();const p=Wl(c);u=p.MeasureLayout,f.visualElement=Fl(i,d,c,e,p.ProjectionNode)}return he.jsxs(Xt.Provider,{value:f,children:[u&&f.visualElement?he.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,kl(d,f.visualElement,l),d,h,f.visualElement)]})}const o=S.forwardRef(r);return o[Nl]=i,o}function _l({layoutId:t}){const e=S.useContext(bi).id;return e&&t!==void 0?e+"-"+t:t}function Kl(t,e){S.useContext(ji).strict}function Wl(t){const{drag:e,layout:n}=ft;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const Gl=["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 en(t){return typeof t!="string"||t.includes("-")?!1:!!(Gl.indexOf(t)>-1||/[A-Z]/u.test(t))}function Ni(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const r in n)t.style.setProperty(r,n[r])}const Ui=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 _i(t,e,n,s){Ni(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Ui.has(i)?i:qe(i),e.attrs[i])}function Ki(t,{layout:e,layoutId:n}){return st.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Wt[t]||t==="opacity")}function nn(t,e,n){var s;const{style:i}=t,r={};for(const o in i)(F(i[o])||e.style&&F(e.style[o])||Ki(o,t)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(r[o]=i[o]);return r}function Wi(t,e,n){const s=nn(t,e,n);for(const i in t)if(F(t[i])||F(e[i])){const r=Ct.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}function $l(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}function zl({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},s,i,r){const o={latestValues:Hl(s,i,r,t),renderState:e()};return n&&(o.mount=a=>n(s,a,o)),o}const Gi=t=>(e,n)=>{const s=S.useContext(Xt),i=S.useContext(Je),r=()=>zl(t,e,s,i);return n?r():$l(r)};function Hl(t,e,n,s){const i={},r=s(t,{});for(const f in r)i[f]=It(r[f]);let{initial:o,animate:a}=t;const l=Yt(t),u=Oi(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const h=c?a:o;if(h&&typeof h!="boolean"&&!$t(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d({style:{},transform:{},transformOrigin:{},vars:{}}),$i=()=>({...sn(),attrs:{}}),zi=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Xl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Yl=Ct.length;function ql(t,e,n){let s="",i=!0;for(let r=0;rtypeof t=="string"&&t.toLowerCase()==="svg",eu={useVisualState:Gi({scrapeMotionValuesFromProps:Wi,createRenderState:$i,onMount:(t,e,{renderState:n,latestValues:s})=>{V.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),V.render(()=>{rn(n,s,an(e.tagName),t.transformTemplate),_i(e,n)})}})},nu={useVisualState:Gi({scrapeMotionValuesFromProps:nn,createRenderState:sn})};function Hi(t,e,n){for(const s in e)!F(e[s])&&!Ki(s,n)&&(t[s]=e[s])}function su({transformTemplate:t},e){return S.useMemo(()=>{const n=sn();return on(n,e,t),Object.assign({},n.vars,n.style)},[e])}function iu(t,e){const n=t.style||{},s={};return Hi(s,n,t),Object.assign(s,su(t,e)),s}function ou(t,e){const n={},s=iu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const ru=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 Gt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ru.has(t)}let Xi=t=>!Gt(t);function au(t){t&&(Xi=e=>e.startsWith("on")?!Gt(e):t(e))}try{au(require("@emotion/is-prop-valid").default)}catch{}function lu(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Xi(i)||n===!0&&Gt(i)||!e&&!Gt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function uu(t,e,n,s){const i=S.useMemo(()=>{const r=$i();return rn(r,e,an(s),t.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};Hi(r,t.style,t),i.style={...r,...i.style}}return i}function cu(t=!1){return(n,s,i,{latestValues:r},o)=>{const l=(en(n)?uu:ou)(s,r,o,n),u=lu(s,typeof n=="string",t),c=n!==S.Fragment?{...u,...l,ref:i}:{},{children:h}=s,f=S.useMemo(()=>F(h)?h.get():h,[h]);return S.createElement(n,{...c,children:f})}}function hu(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...en(s)?eu:nu,preloadedFeatures:t,useRender:cu(i),createVisualElement:e,Component:s};return Ul(o)}}const De={current:null},Yi={current:!1};function fu(){if(Yi.current=!0,!!tn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>De.current=t.matches;t.addListener(e),e()}else De.current=!1}function du(t,e,n){for(const s in e){const i=e[s],r=n[s];if(F(i))t.addValue(s,i);else if(F(r))t.addValue(s,wt(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,wt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Ss=new WeakMap,mu=[...Us,L,q],pu=t=>mu.find(Ns(t)),As=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class gu{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=je,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 f=W.now();this.renderScheduledAtthis.bindToMotionValue(s,n)),Yi.current||fu(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:De.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ss.delete(this.current),this.projection&&this.projection.unmount(),Y(this.notifyUpdate),Y(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=st.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&V.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 ft){const n=ft[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):M()}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=wt(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"&&(ks(i)||Bs(i))?i=parseFloat(i):!pu(i)&&q.test(n)&&(i=Xs(e,n)),this.setBaseTarget(e,F(i)?i.get():i)),F(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=Me(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&&!F(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 Ye),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class qi extends gu{constructor(){super(...arguments),this.KeyframeResolver=Ys}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;F(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function yu(t){return window.getComputedStyle(t)}class vu extends qi{constructor(){super(...arguments),this.type="html",this.renderInstance=Ni}readValueFromInstance(e,n){if(st.has(n)){const s=Ue(n);return s&&s.default||0}else{const s=yu(e),i=(Is(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Si(e,n)}build(e,n,s){on(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return nn(e,n,s)}}class xu extends qi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=M}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(st.has(n)){const s=Ue(n);return s&&s.default||0}return n=Ui.has(n)?n:qe(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Wi(e,n,s)}build(e,n,s){rn(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){_i(e,n,s,i)}mount(e){this.isSVGTag=an(e.tagName),super.mount(e)}}const Tu=(t,e)=>en(t)?new xu(e):new vu(e,{allowProjection:t!==S.Fragment}),Pu=hu({...ea,...Rl,...xl,...El},Tu),Cu=Ji(Pu);export{Cu as m};
diff --git a/assets/star-8FRNvxW_.js b/assets/star-Urg81C20.js
similarity index 88%
rename from assets/star-8FRNvxW_.js
rename to assets/star-Urg81C20.js
index 6e8a5006..3419eefa 100644
--- a/assets/star-8FRNvxW_.js
+++ b/assets/star-Urg81C20.js
@@ -1,4 +1,4 @@
-import{c as o}from"./index-B6OB8wzf.js";/**
+import{c as o}from"./index-DqLTW_kH.js";/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
diff --git a/assets/terminal-Fn31Kyu5.js b/assets/terminal-CkxkZsAR.js
similarity index 87%
rename from assets/terminal-Fn31Kyu5.js
rename to assets/terminal-CkxkZsAR.js
index 818ae87d..a7464890 100644
--- a/assets/terminal-Fn31Kyu5.js
+++ b/assets/terminal-CkxkZsAR.js
@@ -1,4 +1,4 @@
-import{c as e}from"./index-B6OB8wzf.js";/**
+import{c as e}from"./index-DqLTW_kH.js";/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
diff --git a/assets/users-XMi8Hcvr.js b/assets/users-Dtl8VDTo.js
similarity index 90%
rename from assets/users-XMi8Hcvr.js
rename to assets/users-Dtl8VDTo.js
index 49f4e084..55fcd399 100644
--- a/assets/users-XMi8Hcvr.js
+++ b/assets/users-Dtl8VDTo.js
@@ -1,4 +1,4 @@
-import{c as e}from"./index-B6OB8wzf.js";/**
+import{c as e}from"./index-DqLTW_kH.js";/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
diff --git a/assets/wifi-DMyJ2ZC7.js b/assets/wifi-CF_nOGF2.js
similarity index 96%
rename from assets/wifi-DMyJ2ZC7.js
rename to assets/wifi-CF_nOGF2.js
index fee0bbc0..6915bb81 100644
--- a/assets/wifi-DMyJ2ZC7.js
+++ b/assets/wifi-CF_nOGF2.js
@@ -1,4 +1,4 @@
-import{c as a}from"./index-B6OB8wzf.js";/**
+import{c as a}from"./index-DqLTW_kH.js";/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
diff --git a/index.html b/index.html
index d45f1ab6..5acd52fd 100644
--- a/index.html
+++ b/index.html
@@ -6,25 +6,8 @@
Snigdha OS - Advanced Penetration Testing Distribution
-
-
-
-
-
+
+