1import{r as tt,j as u,d as i,b as je,w as ke,h as Me,M as De,L as Re,S as Ae,i as Fe,O as Ie,k as Ne}from"./react-vendor-ClhlU4Lh.js";import{t as Gt}from"./analytics-BG3Lpr6J.js";import{y as _e,O as Be,q as Le,I as He,z as qe}from"./icons-CKbFnd7u.js";import{G as Qe,N as Yt}from"./index-DWDvnMwR.js";var Tt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ue=class extends Tt{#t;#s;#e;constructor(){super(),this.#e=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#s||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#s?.(),this.#s=void 0)}setEventListener(t){this.#e=t,this.#s?.(),this.#s=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},oe=new Ue,ze={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},Ke=class{#t=ze;#s=!1;setTimeoutProvider(t){this.#t=t}setTimeout(t,e){return this.#t.setTimeout(t,e)}clearTimeout(t){this.#t.clearTimeout(t)}setInterval(t,e){return this.#t.setInterval(t,e)}clearInterval(t){this.#t.clearInterval(t)}},Mt=new Ke;function Ge(t){setTimeout(t,0)}var Ye=typeof window>"u"||"Deno"in globalThis;function Q(){}function $e(t,e){return typeof t=="function"?t(e):t}function Ve(t){return typeof t=="number"&&t>=0&&t!==1/0}function Xe(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Dt(t,e){return typeof t=="function"?t(e):t}function We(t,e){return typeof t=="function"?t(e):t}function $t(t,e){const{type:s="all",exact:n,fetchStatus:o,predicate:a,queryKey:c,stale:l}=t;if(c){if(n){if(e.queryHash!==It(c,e.options))return!1}else if(!ht(e.queryKey,c))return!1}if(s!=="all"){const h=e.isActive();if(s==="active"&&!h||s==="inactive"&&h)return!1}return!(typeof l=="boolean"&&e.isStale()!==l||o&&o!==e.state.fetchStatus||a&&!a(e))}function Vt(t,e){const{exact:s,status:n,predicate:o,mutationKey:a}=t;if(a){if(!e.options.mutationKey)return!1;if(s){if(dt(e.options.mutationKey)!==dt(a))return!1}else if(!ht(e.options.mutationKey,a))return!1}return!(n&&e.state.status!==n||o&&!o(e))}function It(t,e){return(e?.queryKeyHashFn||dt)(t)}function dt(t){return JSON.stringify(t,(e,s)=>Rt(s)?Object.keys(s).sort().reduce((n,o)=>(n[o]=s[o],n),{}):s)}function ht(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(s=>ht(t[s],e[s])):!1}var Je=Object.prototype.hasOwnProperty;function le(t,e,s=0){if(t===e)return t;if(s>500)return e;const n=Xt(t)&&Xt(e);if(!n&&!(Rt(t)&&Rt(e)))return e;const a=(n?t:Object.keys(t)).length,c=n?e:Object.keys(e),l=c.length,h=n?new Array(l):{};let d=0;for(let g=0;g<l;g++){const r=n?g:c[g],v=t[r],S=e[r];if(v===S){h[r]=v,(n?g<a:Je.call(t,r))&&d++;continue}if(v===null||S===null||typeof v!="object"||typeof S!="object"){h[r]=S;continue}const p=le(v,S,s+1);h[r]=p,p===v&&d++}
1return a===l&&d===a?t:h}function Xt(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Rt(t){if(!Wt(t))return!1;const e=t.constructor;if(e===void 0)return!0;const s=e.prototype;return!(!Wt(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Wt(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ze(t){return new Promise(e=>{Mt.setTimeout(e,t)})}function ts(t,e,s){return typeof s.structuralSharing=="function"?s.structuralSharing(t,e):s.structuralSharing!==!1?le(t,e):e}function es(t,e,s=0){const n=[...t,e];return s&&n.length>s?n.slice(1):n}function ss(t,e,s=0){const n=[e,...t];return s&&n.length>s?n.slice(0,-1):n}var Nt=Symbol();function ce(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===Nt?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function ns(t,e,s){let n=!1,o;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(o??=e(),n||(n=!0,o.aborted?s():o.addEventListener("abort",s,{once:!0})),o)}),t}var ue=(()=>{let t=()=>Ye;return{isServer(){return t()},setIsServer(e){t=e}}})();function rs(){let t,e;const s=new Promise((o,a)=>{t=o,e=a});s.status="pending",s.catch(()=>{});function n(o){Object.assign(s,o),delete s.resolve,delete s.reject}return s.resolve=o=>{n({status:"fulfilled",value:o}),t(o)},s.reject=o=>{n({status:"rejected",reason:o}),e(o)},s}var as=Ge;function is(){let t=[],e=0,s=l=>{l()},n=l=>{l()},o=as;const a=l=>{e?t.push(l):o(()=>{s(l)})},c=()=>{const l=t;t=[],l.length&&o(()=>{n(()=>{l.forEach(h=>{s(h)})})})};return{batch:l=>{let h;e++;try{h=l()}finally{e--,e||c()}return h},batchCalls:l=>(...h)=>{a(()=>{l(...h)})},schedule:a,setNotifyFunction:l=>{s=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{o=l}}}var M=is(),os=class extends Tt{#t=!0;#s;#e;constructor(){super(),this.#e=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#s||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#s?.(),this.#s=void 0)}setEventListener(t){this.#e=t,this.#s?.(),this.#s=t(this.setOnline.bind(this))}setOnline(t){this.#t!==t&&(this.#t=t,this.listeners.forEach(s=>{s(t)}))}isOnline(){return this.#t}},St=new os;function ls(t){return Math.min(1e3*2**t,3e4)}function de(t){return(t??"online")==="online"?St.isOnline():!0}var At=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function he(t){let e=!1,s=0,n;const o=rs(),a=()=>o.status!=="pending",c=w=>{if(!a()){const C=new At(w);v(C),t.onCancel?.(C)}},l=()=>{e=!0},h=()=>{e=!1},d=()=>oe.isFocused()&&(t.networkMode==="always"||St.isOnline())&&t.canRun(),g=()=>de(t.networkMode)&&t.canRun(),r=w=>{a()||(n?.(),o.resolve(w))},v=w=>{a()||(n?.(),o.reject(w))},S=()=>new Promise(w=>{n=C=>{(a()||d())&&w(C)},t.onPause?.()}).then(()=>{n=void 0,a()||t.onContinue?.()}),p=()=>{if(a())return;let w;const C=s===0?t.initialPromise:void 0;try{w=C??t.fn()}catch(m){w=Promise.reject(m)}Promise.resolve(w).then(r).catch(m=>{if(a())return;const F=t.retry??(ue.isServer()?0:3),I=t.retryDelay??ls,K=typeof I=="function"?I(s,m):I,Y=F===!0||typeof F=="number"&&s<F||typeof F=="function"&&F(s,m);if(e||!Y){v(m);return}s++,t.onFail?.(s,m),Ze(K).then(()=>d()?void 0:S()).then(()=>{e?v(m):p()})})};return{promise:o,status:()=>o.status,cancel:c,continue:()=>(n?.(),o),cancelRetry:l,continueRetry:h,canStart:g,start:()=>(g()?p():S().then(p),o)}}var fe=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ve(this.gcTime)&&(this.#t=Mt.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(ue.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(Mt.clearTimeout(this.#t),this.#t=void 0)}},cs=class extends fe{#t;#s;#e;#r;#n;#a;#i;constructor(t){super(),this.#i=!1,this.#a=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#r=t.client,this.#e=this.#r.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=Zt(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(t){if(this.options={...this.#a,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=Zt(this.options);e.data!==void 0&&(this.setState(Jt(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#e.remove(this)}setData(t,e){const s=ts(this.state.data,t,this.options);return this.#o({data:s,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),s}setState(t,e){this.#o({type:"setState",state:t,setStateOptions:e})}cancel(t){const e=this.#n?.promise;return this.#n?.cancel(t),e?e.then(Q).catch(Q):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>We(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Nt||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
1Count>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Dt(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Xe(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#n&&(this.#i||this.#l()?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#e.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#l(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(t&&this.setOptions(t),!this.options.queryFn){const l=this.observers.find(h=>h.options.queryFn);l&&this.setOptions(l.options)}const s=new AbortController,n=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#i=!0,s.signal)})},o=()=>{const l=ce(this.options,e),d=(()=>{const g={client:this.#r,queryKey:this.queryKey,meta:this.meta};return n(g),g})();return this.#i=!1,this.options.persister?this.options.persister(l,d,this):l(d)},c=(()=>{const l={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};return n(l),l})();this.options.behavior?.onFetch(c,this),this.#s=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#o({type:"fetch",meta:c.fetchOptions?.meta}),this.#n=he({initialPromise:e?.initialPromise,fn:c.fetchFn,onCancel:l=>{l instanceof At&&l.revert&&this.setState({...this.#s,fetchStatus:"idle"}),s.abort()},onFail:(l,h)=>{this.#o({type:"failed",failureCount:l,error:h})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const l=await this.#n.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#e.config.onSuccess?.(l,this),this.#e.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof At){if(l.silent)return this.#n.promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw this.#o({type:"error",error:l}),this.#e.config.onError?.(l,this),this.#e.config.onSettled?.(this.state.data,l,this),l}finally{this.scheduleGc()}}#o(t){const e=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...us(s.data,this.options),fetchMeta:t.meta??null};case"success":const n={...s,...Jt(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#s=t.manual?n:void 0,n;case"error":const o=t.error;return{...s,error:o,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=e(this.state),M.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#e.notify({query:this,type:"updated",action:t})})}};function us(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:de(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Jt(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Zt(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,s=e!==void 0,n=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?n??Date.now():0,error:null,errorUpdate
1Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}function te(t){return{onFetch:(e,s)=>{const n=e.options,o=e.fetchOptions?.meta?.fetchMore?.direction,a=e.state.data?.pages||[],c=e.state.data?.pageParams||[];let l={pages:[],pageParams:[]},h=0;const d=async()=>{let g=!1;const r=p=>{ns(p,()=>e.signal,()=>g=!0)},v=ce(e.options,e.fetchOptions),S=async(p,w,C)=>{if(g)return Promise.reject();if(w==null&&p.pages.length)return Promise.resolve(p);const F=(()=>{const N={client:e.client,queryKey:e.queryKey,pageParam:w,direction:C?"backward":"forward",meta:e.options.meta};return r(N),N})(),I=await v(F),{maxPages:K}=e.options,Y=C?ss:es;return{pages:Y(p.pages,I,K),pageParams:Y(p.pageParams,w,K)}};if(o&&a.length){const p=o==="backward",w=p?ds:ee,C={pages:a,pageParams:c},m=w(n,C);l=await S(C,m,p)}else{const p=t??a.length;do{const w=h===0?c[0]??n.initialPageParam:ee(n,l);if(h>0&&w==null)break;l=await S(l,w),h++}while(h<p)}return l};e.options.persister?e.fetchFn=()=>e.options.persister?.(d,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s):e.fetchFn=d}}}function ee(t,{pages:e,pageParams:s}){const n=e.length-1;return e.length>0?t.getNextPageParam(e[n],e,s[n],s):void 0}function ds(t,{pages:e,pageParams:s}){return e.length>0?t.getPreviousPageParam?.(e[0],e,s[0],s):void 0}var hs=class extends fe{#t;#s;#e;#r;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#e=t.mutationCache,this.#s=[],this.state=t.state||fs(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#s.includes(t)||(this.#s.push(t),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#s=this.#s.filter(e=>e!==t),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#s.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#n({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=he({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(a,c)=>{this.#n({type:"failed",failureCount:a,error:c})},onPause:()=>{this.#n({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const n=this.state.status==="pending",o=!this.#r.canStart();try{if(n)e();else{this.#n({type:"pending",variables:t,isPaused:o}),this.#e.config.onMutate&&await this.#e.config.onMutate(t,this,s);const c=await this.options.onMutate?.(t,s);c!==this.state.context&&this.#n({type:"pending",context:c,variables:t,isPaused:o})}const a=await this.#r.start();return await this.#e.config.onSuccess?.(a,t,this.state.context,this,s),await this.options.onSuccess?.(a,t,this.state.context,s),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(a,null,t,this.state.context,s),this.#n({type:"success",data:a}),a}catch(a){try{await this.#e.config.onError?.(a,t,this.state.context,this,s)}catch(c){Promise.reject(c)}try{await this.options.onError?.(a,t,this.state.context,s)}catch(c){Promise.reject(c)}try{await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this,s)}catch(c){Promise.reject(c)}try{await this.options.onSettled?.(void 0,a,t,this.state.context,s)}catch(c){Promise.reject(c)}throw this.#n({type:"error",error:a}),a}finally{this.#e.runNext(this)}}#n(t){const e=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPau
1sed,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),M.batch(()=>{this.#s.forEach(s=>{s.onMutationUpdate(t)}),this.#e.notify({mutation:this,type:"updated",action:t})})}};function fs(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var me=class extends Tt{constructor(t={}){super(),this.config=t,this.#t=new Set,this.#s=new Map,this.#e=0}#t;#s;#e;build(t,e,s){const n=new hs({client:t,mutationCache:this,mutationId:++this.#e,options:t.defaultMutationOptions(e),state:s});return this.add(n),n}add(t){this.#t.add(t);const e=xt(t);if(typeof e=="string"){const s=this.#s.get(e);s?s.push(t):this.#s.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#t.delete(t)){const e=xt(t);if(typeof e=="string"){const s=this.#s.get(e);if(s)if(s.length>1){const n=s.indexOf(t);n!==-1&&s.splice(n,1)}else s[0]===t&&this.#s.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=xt(t);if(typeof e=="string"){const n=this.#s.get(e)?.find(o=>o.state.status==="pending");return!n||n===t}else return!0}runNext(t){const e=xt(t);return typeof e=="string"?this.#s.get(e)?.find(n=>n!==t&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){M.batch(()=>{this.#t.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#t.clear(),this.#s.clear()})}getAll(){return Array.from(this.#t)}find(t){const e={exact:!0,...t};return this.getAll().find(s=>Vt(e,s))}findAll(t={}){return this.getAll().filter(e=>Vt(t,e))}notify(t){M.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>
1e.state.isPaused);return M.batch(()=>Promise.all(t.map(e=>e.continue().catch(Q))))}};function xt(t){return t.options.scope?.id}var pe=class extends Tt{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,e,s){const n=e.queryKey,o=e.queryHash??It(n,e);let a=this.get(o);return a||(a=new cs({client:t,queryKey:n,queryHash:o,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(n)}),this.add(a)),a}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#t.get(t.queryHash);e&&(t.destroy(),e===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){M.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(s=>$t(e,s))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(s=>$t(t,s)):e}notify(t){M.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){M.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){M.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ms=class{#t;#s;#e;#r;#n;#a;#i;#l;constructor(t={}){this.#t=t.queryCache||new pe,this.#s=t.mutationCache||new me,this.#e=t.defaultOptions||{},this.#r=new Map,this.#n=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#i=oe.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#l=St.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#i?.(),this.#i=void 0,this.#l?.(),this.#l=void 0)}isFetching(t){return this.#t.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#s.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#t.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),s=this.#t.build(this,e),n=s.state.data;return n===void 0?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(Dt(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(t){return this.#t.findAll(t).map(({queryKey:e,state:s})=>{const n=s.data;return[e,n]})}setQueryData(t,e,s){const n=this.defaultQueryOptions({queryKey:t}),a=this.#t.get(n.queryHash)?.state.data,c=$e(e,a);if(c!==void 0)return this.#t.build(this,n).setData(c,{...s,manual:!0})}setQueriesData(t,e,s){return M.batch(()=>this.#t.findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,s)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#t.get(e.queryHash)?.state}removeQueries(t){const e=this.#t;M.batch(()=>{e.findAll(t).forEach(s=>{e.remove(s)})})}resetQueries(t,e){const s=this.#t;return M.batch(()=>(s.findAll(t).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const s={revert:!0,...e},n=M.batch(()=>this.#t.findAll(t).map(o=>o.cancel(s)));return Promise.all(n).then(Q).catch(Q)}invalidateQueries(t,e={}){return M.batch(()=>(this.#t.findAll(t).forEach(s=>{s.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const s={...e,cancelRefetch:e.cancelRefetch??!0},n=M.batch(()=>this.#t.findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let a=o.fetch(void 0,s);return s.throwOnError||(a=a.catch(Q)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(Q)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const s=this.#t.build(this,e);return s.isStaleByTime(Dt(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Q).catch(Q)}fetchInfiniteQuery(t){return t.behavior=te(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Q).catch(Q)}ensureInfiniteQueryData(t){return t.behavior=te(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return St.isOnline()?this.#s.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#s}getDefaultOptions(){return this.#e}setDefaultOptions(t){this.#e=t}setQueryDefaults(t,e){this.#r.set(dt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#r.values()],s={};return e.forEach(n=>{ht(t,n.queryKey)&&Object.assign(s,n.defaultOptions)}),s}setMutationDefaults(t,e){this.#n.set(dt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#n.values()],s={};return e.forEach(n=>{ht(t,n.mutationKey)&&Object.assign(s,n.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#e.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=It(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Nt&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#e.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#t.clear(),this.#s.clear()}},ps=tt.createContext(void 0),ys=({client:t,children:e})=>(tt.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),u.jsx(ps.Provider,{value:t,children:e}));const gs=300*1e3,vs=30*1e3,bs=3600*1e3,ws=()=>new ms({queryCache:new pe({onError:(t,e)=>{e.meta?.showErrorToast}}),mutationCache:new me({onError:(t,e,s,n)=>{n.meta?.showErrorToast}}),defaultOptions:{queries:{staleTime:gs,gcTime:bs,retry:(t,e)=>{if(e instanceof Error&&"status"in e){const s=e.status;if(s===401||s===403||s===404)return!1}return t<2},refetchOnWindowFocus:!1,refetchOnReconnect:!0,refetchInterval:!1,networkMode:"online",throwOnError:!1},mutations:{retry:!1,networkMode:"online",throwOnError:!1,gcTime:vs}}});function xs({children:t}){const[e]=tt.useState(ws);return u.jsx(ys,{client:e,children:t})}function Es({children:t}){return u.jsx(xs,{children:t})}const se="G-XXXXXXXXXX",Ss="anchorkit.dev",ne="7jt9gjts447h0sypjzg5";function Ts(t){return{__html:` 2 window.dataLayer = window.dataLayer || []; 3 function gtag(){dataLayer.push(arguments);} 4 gtag('js', new Date()); 5 gtag('config', '${t}', { 6 anonymize_ip: true, 7 cookie_flags: 'SameSite=None;Secure' 8 }); 9 `}}function Cs(){return u.jsx("script",{defer:!0,"data-domain":Ss,src:"https://plausible.io/js/script.outbound-links.js"})}function Os(){const t=Ts(se);return u.jsxs(u.Fragment,{children:[u.jsx("script",{async:!0,src:`https://www.googletagmanager.com/gtag/js?i
9d=${se}`}),u.jsx("script",{dangerouslySetInnerHTML:t})]})}function Ps(){return tt.useEffect(()=>{if(document.getElementById("ybug-widget-script"))return;window.ybug_settings={id:ne};const t=document.createElement("script");t.id="ybug-widget-script",t.async=!0,t.src=`https://widget.ybug.io/button/${ne}.js`,document.body.appendChild(t)},[]),null}function js(){return u.jsxs(u.Fragment,{children:[u.jsx(Cs,{}),u.jsx(Os,{}),u.jsx(Ps,{})]})}const ks="#contato",Ms=.92;function Ds(){return tt.useEffect(()=>{const t=n=>{const o=n.target;if(!o)return;const a=o.closest("a");if(!a)return;(a.getAttribute("href")??"")===ks&&Gt("cta_primary_click",{label:a.textContent?.trim().slice(0,50),location:a.closest("section")?.id??"unknown"})};let e=!1;const s=()=>{if(e)return;const n=window.scrollY+window.innerHeight,o=document.documentElement.scrollHeight;o>0&&n/o>=Ms&&(e=!0,Gt("scroll_end"))};return document.addEventListener("click",t),window.addEventListener("scroll",s,{passive:!0}),()=>{document.removeEventListener("click",t),window.removeEventListener("scroll",s)}},[]),null}function Rs(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",e.appendChild(s),s.styleSheet?s.styleSheet.cssText=t:s.appendChild(document.createTextNode(t))}const As=t=>{switch(t){case"success":return Ns;case"info":return Bs;case"warning":return _s;case"error":return Ls;default:return null}},Fs=Array(12).fill(0),Is=({visible:t,className:e})=>i.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},i.createElement("div",{className:"sonner-spinner"},Fs.map((s,n)=>i.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),Ns=i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},i.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),_s=i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},i.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Bs=i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},i.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Ls=i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},i.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Hs=i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},i.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),qs=()=>{const[t,e]=i.useState(document.hidden);return i.useEffect(()=>{const s=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",s),()=>window.removeEventListener("visibilitychange",s)},[]),t};let Ft=1;class Qs{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const s=this.subscribers.indexOf(e);this.subscribers.splice(s,1)}),this.publish=e=>{this.subscribers.forEach(s=>s(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var s;const{message:n,...o}=e,a=typeof e?.id=="number"||((s=e.id)==null?void 0:s.length)>0?e.id:Ft++,c=this.toasts.find(h=>h.id===a),l=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(h=>h.id===a?(this.publish({...h,...e,id:a,title:n}
9),{...h,...e,id:a,dismissible:l,title:n}):h):this.addToast({title:n,...o,dismissible:l,id:a}),a},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(s=>s({id:e,dismiss:!0})))):this.toasts.forEach(s=>{this.subscribers.forEach(n=>n({id:s.id,dismiss:!0}))}),e),this.message=(e,s)=>this.create({...s,message:e}),this.error=(e,s)=>this.create({...s,message:e,type:"error"}),this.success=(e,s)=>this.create({...s,type:"success",message:e}),this.info=(e,s)=>this.create({...s,type:"info",message:e}),this.warning=(e,s)=>this.create({...s,type:"warning",message:e}),this.loading=(e,s)=>this.create({...s,type:"loading",message:e}),this.promise=(e,s)=>{if(!s)return;let n;s.loading!==void 0&&(n=this.create({...s,promise:e,type:"loading",message:s.loading,description:typeof s.description!="function"?s.description:void 0}));const o=Promise.resolve(e instanceof Function?e():e);let a=n!==void 0,c;const l=o.then(async d=>{if(c=["resolve",d],i.isValidElement(d))a=!1,this.create({id:n,type:"default",message:d});else if(zs(d)&&!d.ok){a=!1;const r=typeof s.error=="function"?await s.error(`HTTP error! status: ${d.status}`):s.error,v=typeof s.description=="function"?await s.description(`HTTP error! status: ${d.status}`):s.description,p=typeof r=="object"&&!i.isValidElement(r)?r:{message:r};this.create({id:n,type:"error",description:v,...p})}else if(d instanceof Error){a=!1;const r=typeof s.error=="function"?await s.error(d):s.error,v=typeof s.description=="function"?await s.description(d):s.description,p=typeof r=="object"&&!i.isValidElement(r)?r:{message:r};this.create({id:n,type:"error",description:v,...p})}else if(s.success!==void 0){a=!1;const r=typeof s.success=="function"?await s.success(d):s.success,v=typeof s.description=="function"?await s.description(d):s.description,p=typeof r=="object"&&!i.isValidElement(r)?r:{message:r};this.create({id:n,type:"success",description:v,...p})}}).catch(async d=>{if(c=["reject",d],s.error!==void 0){a=!1;const g=typeof s.error=="function"?await s.error(d):s.error,r=typeof s.description=="function"?await s.description(d):s.description,S=typeof g=="object"&&!i.isValidElement(g)?g:{message:g};this.create({id:n,type:"error",description:r,...S})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),s.finally==null||s.finally.call(s)}),h=()=>new Promise((d,g)=>l.then(()=>c[0]==="reject"?g(c[1]):d(c[1])).catch(g));return typeof n!="string"&&typeof n!="number"?{unwrap:h}:Object.assign(n,{unwrap:h})},this.custom=(e,s)=>{const n=s?.id||Ft++;return this.create({jsx:e(n),id:n,...s}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const D=new Qs,Us=(t,e)=>{const s=e?.id||Ft++;return D.addToast({title:t,...e,id:s}),s},zs=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",Ks=Us,Gs=()=>D.toasts,Ys=()=>D.getActiveToasts();Object.assign(Ks,{success:D.success,info:D.info,warning:D.warning,error:D.error,custom:D.custom,message:D.message,promise:D.promise,dismiss:D.dismiss,loading:D.loading},{getHistory:Gs,getToasts:Ys});Rs("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;
9left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}
9[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);
9--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Et(t){return t.label!==void 0}const $s=3,Vs="24px",Xs="16px",re=4e3,Ws=356,Js=14,Zs=45,tn=200;function z(...t){return t.filter(Boolean).join(" ")}function en(t){const[e,s]=t.split("-"),n=[];return e&&n.push(e),s&&n.push(s),n}const sn=t=>{var e,s,n,o,a,c,l,h,d;const{invert:g,toast:r,unstyled:v,interacting:S,setHeights:p,visibleToasts:w,heights:C,index:m,toasts:F,expanded:I,removeToast:K,defaultRichColors:Y,closeButton:N,style:ot,cancelButtonStyle:X,actionButtonStyle:Ct,className:ft="",descriptionClassName:Ot="",duration:lt,position:U,gap:mt,expandByDefault:ct,classNames:b,icons:P,closeButtonAriaLabel:$="Close toast"}=t,[W,L]=i.useState(null),[J,pt]=i.useState(null),[y,T]=i.useState(!1),[E,_]=i.useState(!1),[et,x]=i.useState(!1),[st,yt]=i.useState(!1),[gt,nt]=i.useState(!1),[ye,Pt]=i.useState(0),[ge,_t]=i.useState(0),ut=i.useRef(r.duration||lt||re),Bt=i.useRef(null),G=i.useRef(null),ve=m===0,be=m+1<=w,R=r.type,rt=r.dismissible!==!1,we=r.className||"",xe=r.descriptionClassName||"",vt=i.useMemo(()=>C.findIndex(f=>f.toastId===r.id)||0,[C,r.id]),Ee=i.useMemo(()=>{var f;return(f=r.closeButton)!=null?f:N},[r.closeButton,N]),Lt=i.useMemo(()=>r.duration||lt||re,[r.duration,lt]),jt=i.useRef(0),at=i.useRef(0),Ht=i.useRef(0),it=i.useRef(null),[Se,Te]=U.split("-"),qt=i.useMemo(()=>C.reduce((f,O,k)=>k>=vt?f:f+O.height,0),[C,vt]),Qt=qs(),Ce=r.invert||g,kt=R==="loading";at.current=i.useMemo(()=>vt*mt+qt,[vt,qt]),i.useEffect(()=>{ut.current=Lt},[Lt]),i.useEffect(()=>{T(!0)},[]),i.useEffect(()=>{const f=G.current;if(f){const O=f.getBoundingClientRect().height;return _t(O),p(k=>[{toastId:r.id,height:O,position:r.position},...k]),()=>p(k=>k.filter(A=>A.toastId!==r.id))}},[p,r.id]),i.useLayoutEffect(()=>{if(!y)return;
9const f=G.current,O=f.style.height;f.style.height="auto";const k=f.getBoundingClientRect().height;f.style.height=O,_t(k),p(A=>A.find(j=>j.toastId===r.id)?A.map(j=>j.toastId===r.id?{...j,height:k}:j):[{toastId:r.id,height:k,position:r.position},...A])},[y,r.title,r.description,p,r.id,r.jsx,r.action,r.cancel]);const V=i.useCallback(()=>{_(!0),Pt(at.current),p(f=>f.filter(O=>O.toastId!==r.id)),setTimeout(()=>{K(r)},tn)},[r,K,p,at]);i.useEffect(()=>{if(r.promise&&R==="loading"||r.duration===1/0||r.type==="loading")return;let f;return I||S||Qt?(()=>{if(Ht.current<jt.current){const A=new Date().getTime()-jt.current;ut.current=ut.current-A}Ht.current=new Date().getTime()})():ut.current!==1/0&&(jt.current=new Date().getTime(),f=setTimeout(()=>{r.onAutoClose==null||r.onAutoClose.call(r,r),V()},ut.current)),()=>clearTimeout(f)},[I,S,r,R,Qt,V]),i.useEffect(()=>{r.delete&&(V(),r.onDismiss==null||r.onDismiss.call(r,r))},[V,r.delete]);function Oe(){var f;if(P?.loading){var O;return i.createElement("div",{className:z(b?.loader,r==null||(O=r.classNames)==null?void 0:O.loader,"sonner-loader"),"data-visible":R==="loading"},P.loading)}return i.createElement(Is,{className:z(b?.loader,r==null||(f=r.classNames)==null?void 0:f.loader),visible:R==="loading"})}const Pe=r.icon||P?.[R]||As(R);var Ut,zt;return i.createElement("li",{tabIndex:0,ref:G,className:z(ft,we,b?.toast,r==null||(e=r.classNames)==null?void 0:e.toast,b?.default,b?.[R],r==null||(s=r.classNames)==null?void 0:s[R]),"data-sonner-toast":"","data-rich-colors":(Ut=r.richColors)!=null?Ut:Y,"data-styled":!(r.jsx||r.unstyled||v),"data-mounted":y,"data-promise":!!r.promise,"data-swiped":gt,"data-removed":E,"data-visible":be,"data-y-position":Se,"data-x-position":Te,"data-index":m,"data-front":ve,"data-swiping":et,"data-dismissible":rt,"data-type":R,"data-invert":Ce,"data-swipe-out":st,"data-swipe-direction":J,"data-expanded":!!(I||ct&&y),"data-testid":r.testId,style:{"--index":m,"--toasts-before":m,"--z-index":F.length-m,"--offset":`${E?ye:at.current}px`,"--initial-height":ct?"auto":`${ge}px`,...ot,...r.style},onDragEnd:()=>{x(!1),L(null),it.current=null},onPointerDown:f=>{f.button!==2&&(kt||!rt||(Bt.current=new Date,Pt(at.current),f.target.setPointerCapture(f.pointerId),f.target.tagName!=="BUTTON"&&(x(!0),it.current={x:f.clientX,y:f.clientY})))},onPointerUp:()=>{var f,O,k;if(st||!rt)return;it.current=null;const A=Number(((f=G.current)==null?void 0:f.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),bt=Number(((O=G.current)==null?void 0:O.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),j=new Date().getTime()-((k=Bt.current)==null?void 0:k.getTime()),B=W==="x"?A:bt,wt=Math.abs(B)/j;if(Math.abs(B)>=Zs||wt>.11){Pt(at.current),r.onDismiss==null||r.onDismiss.call(r,r),pt(W==="x"?A>0?"right":"left":bt>0?"down":"up"),V(),yt(!0);return}else{var H,q;(H=G.current)==null||H.style.setProperty("--swipe-amount-x","0px"),(q=G.current)==null||q.style.setProperty("--swipe-amount-y","0px")}nt(!1),x(!1),L(null)},onPointerMove:f=>{var O,k,A;if(!it.current||!rt||((O=window.getSelection())==null?void 0:O.toString().length)>0)return;const j=f.clientY-it.current.y,B=f.clientX-it.current.x;var wt;const H=(wt=t.swipeDirections)!=null?wt:en(U);!W&&(Math.abs(B)>1||Math.abs(j)>1)&&L(Math.abs(B)>Math.abs(j)?"x":"y");let q={x:0,y:0};const Kt=Z=>1/(1.5+Math.abs(Z)/20);if(W==="y"){if(H.includes("top")||H.includes("bottom"))if(H.includes("top")&&j<0||H.includes("bottom")&&j>0)q.y=j;else{const Z=j*Kt(j);q.y=Math.abs(Z)<Math.abs(j)?Z:j}}else if(W==="x"&&(H.includes("left")||H.includes("right")))if(H.includes("left")&&B<0||H.includes("right")&&B>0)q.x=B;else{const Z=B*Kt(B);q.x=Math.abs(Z)<Math.abs(B)?Z:B}(Math.abs(q.x)>0||Math.abs(q.y)>0)&&nt(!0),(k=G.current)==null||k.style.setProperty("--swipe-amount-x",`${q.x}px`),(A=G.current)==null||A.style.setProperty("--swipe-amount-y",`${q.y}px`)}},Ee&&!r.jsx&&R!=="loading"?i.createElement("button",{"aria-label":$,"data-disabled":kt,"data-close-button":!0,onClick:kt||!rt?()=>{}:()=>{V(),r.onDismiss==null||r.onDismiss.call(r,r)},className:z(b?.closeButton,r==null||(n=r.classNames)==null?void 0:n.closeButton)},(zt=P?.close)!=null?zt:Hs):null,(R||r.icon||r.promise)&&r.icon!==null&&(P?.[R]!==null||r.icon)?i.createElement("div",{"data-icon":"",className:z(b?.icon,r==null||(o=r.classNames)==null?void 0:o.icon)},r.promise||r.type==="loading"&&!r.icon?r.icon||Oe():null,r.type!=="loading"?Pe:null):null,i.createElement("div",{"data-content":"",className:z(b?.content,r==null||(a=r.classNames)==null?void 0:a.content)},i.createElement("div",{"data-title":"",className:z(b?.title,r==null||(c=r.classNames)==null?void 0:c.title)},r.jsx?r.jsx:typeof r.title=="function"?r.title():r.title),r.description?i.createElement("div",{"data-description":"",className:z(Ot,xe,b?.description,r==null||(l=r.classNames)==null?void 0:l.description)},typeof r.description=="function"?r.description():r.description):null),i.isValidElement(r.cancel)?r.cancel:r.cancel&&Et(r.cancel)?i.createElement("button",{"data-button":!0,"data-cancel":!0,style:r.cancelButtonStyle||X,onClick:f=>{Et(r.cancel)&&rt&&(r.cancel.onClick==null||r.cancel.onClick.call(r.cancel,f),V())},className:z(b?.cancelButton,r==null||(h=r.classNames)==null?void 0:h.cancelButton)},r.cancel.label):null,i.isValidElement(r.action)?r.action:r.action&&Et(r.action)?i.createElement("button",{"data-button":!0,"data-action":!0,style:r.actionButtonStyle||Ct,onClick:f=>{Et(r.action)&&(r.action.onClick==null||r.action.onClick.call(r.action,f),!f.defaultPrevented&&V())},className:z(b?.actionButton,r==null||(d=r.classNames)==null?void 0:d.actionButton)},r.action.label):null)};function ae(){if(typeof window>"u"||typeof document>"u")return"ltr";const t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function nn(t,e){const s={};return[t,e].forEach((n,o)=>{const a=o===1,c=a?"--mobile-offset":"--offset",l=a?Xs:Vs;function h(d){["top","right","bottom","left"].forEach(g=>{s[`${c}-${g}`]=typeof d=="number"?`${d}px`:d})}typeof n=="number"||typeof n=="string"?h(n):typeof n=="object"?["top","right","bottom","left"].forEach(d=>{n[d]===void 0?s[`${c}-${d}`]=l:s[`${c}-${d}`]=typeof n[d]=="number"?`${n[d]}px`:n[d]}):h(l)}),s}const rn=i.forwardRef(function(e,s){const{id:n,invert:o,position:a="bottom-right",hotkey:c=["altKey","KeyT"],expand:l,closeButton:h,className:d,offset:g,mobileOffset:r,theme:v="light",richColors:S,duration:p,style:w,visibleToasts:C=$s,toastOptions:m,dir:F=ae(),gap:I=Js,icons:K,containerAriaLabel:Y="Notifications"}=e,[N,ot]=i.useState([]),X=i.useMemo(()=>n?N.filter(y=>y.toasterId===n):N.filter(y=>!y.toasterId),[N,n]),Ct=i.useMemo(()=>Array.from(new Set([a].concat(X.filter(y=>y.position).map(y=>y.position)))),[X,a]),[ft,Ot]=i.useState([]),[lt,U]=i.useState(!1),[mt,ct]=i.useState(!1),[b,P]=i.useState(v!=="system"?v:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
9k":"light"),$=i.useRef(null),W=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),L=i.useRef(null),J=i.useRef(!1),pt=i.useCallback(y=>{ot(T=>{var E;return(E=T.find(_=>_.id===y.id))!=null&&E.delete||D.dismiss(y.id),T.filter(({id:_})=>_!==y.id)})},[]);return i.useEffect(()=>D.subscribe(y=>{if(y.dismiss){requestAnimationFrame(()=>{ot(T=>T.map(E=>E.id===y.id?{...E,delete:!0}:E))});return}setTimeout(()=>{je.flushSync(()=>{ot(T=>{const E=T.findIndex(_=>_.id===y.id);return E!==-1?[...T.slice(0,E),{...T[E],...y},...T.slice(E+1)]:[y,...T]})})})}),[N]),i.useEffect(()=>{if(v!=="system"){P(v);return}if(v==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?P("dark"):P("light")),typeof window>"u")return;const y=window.matchMedia("(prefers-color-scheme: dark)");try{y.addEventListener("change",({matches:T})=>{P(T?"dark":"light")})}catch{y.addListener(({matches:E})=>{try{P(E?"dark":"light")}catch(_){console.error(_)}})}},[v]),i.useEffect(()=>{N.length<=1&&U(!1)},[N]),i.useEffect(()=>{const y=T=>{var E;if(c.every(x=>T[x]||T.code===x)){var et;U(!0),(et=$.current)==null||et.focus()}T.code==="Escape"&&(document.activeElement===$.current||(E=$.current)!=null&&E.contains(document.activeElement))&&U(!1)};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[c]),i.useEffect(()=>{if($.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,J.current=!1)}},[$.current]),i.createElement("section",{ref:s,"aria-label":`${Y} ${W}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},Ct.map((y,T)=>{var E;const[_,et]=y.split("-");return X.length?i.createElement("ol",{key:y,dir:F==="auto"?ae():F,tabIndex:-1,ref:$,className:d,"data-sonner-toaster":!0,"data-sonner-theme":b,"data-y-position":_,"data-x-position":et,style:{"--front-toast-height":`${((E=ft[0])==null?void 0:E.height)||0}px`,"--width":`${Ws}px`,"--gap":`${I}px`,...w,...nn(g,r)},onBlur:x=>{J.current&&!x.currentTarget.contains(x.relatedTarget)&&(J.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:x=>{x.target instanceof HTMLElement&&x.target.dataset.dismissible==="false"||J.current||(J.current=!0,L.current=x.relatedTarget)},onMouseEnter:()=>U(!0),onMouseMove:()=>U(!0),onMouseLeave:()=>{mt||U(!1)},onDragEnd:()=>U(!1),onPointerDown:x=>{x.target instanceof HTMLElement&&x.target.dataset.dismissible==="false"||ct(!0)},onPointerUp:()=>ct(!1)},X.filter(x=>!x.position&&T===0||x.position===y).map((x,st)=>{var yt,gt;return i.createElement(sn,{key:x.id,icons:K,index:st,toast:x,defaultRichColors:S,duration:(yt=m?.duration)!=null?yt:p,className:m?.className,descriptionClassName:m?.descriptionClassName,invert:o,visibleToasts:C,closeButton:(gt=m?.closeButton)!=null?gt:h,interacting:mt,position:y,style:m?.style,unstyled:m?.unstyled,classNames:m?.classNames,cancelButtonStyle:m?.cancelButtonStyle,actionButtonStyle:m?.actionButtonStyle,closeButtonAriaLabel:m?.closeButtonAriaLabel,removeToast:pt,toasts:X.filter(nt=>nt.position==x.position),heights:ft.filter(nt=>nt.position==x.position),setHeights:Ot,expandByDefault:l,gap:I,expanded:lt,swipeDirections:e.swipeDirections})})):null}))});function an(){const[t,e]=tt.useState("system");return tt.useEffect(()=>{if(typeof document>"u")return;const s=()=>{e(document.documentElement.classList.contains("dark")?"dark":"light")};s();const n=new MutationObserver(s);return n.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()},[]),t}const on=({...t})=>{const e=an();return u.jsx(rn,{theme:e,className:"toaster group",icons:{success:u.jsx(qe,{className:"size-4"}),info:u.jsx(He,{className:"size-4"}),warning:u.jsx(Le,{className:"size-4"}),error:u.jsx(Be,{className:"size-4"}),loading:u.jsx(_e,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...t})},ln={__html:JSON.stringify({"@context":"https://schema.org","@type":"SoftwareApplication",name:"AnchorKit",applicationCategory:"DeveloperApplication",operatingSystem:"macOS, Linux, Windows",url:"https://anchorkit.dev",logo:"https://anchorkit.dev/brand/logo-anchorkit-light.png",image:"https://anchorkit.dev/og-image-1200x630.png",description:"CLI local-first que dá memória persistente ao Claude Code, Cursor, GPT e Gemini. Vault Markdown versionado no seu repo.",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"}
9,softwareVersion:"1.12.0-beta.3.1",downloadUrl:Yt,contactPoint:{"@type":"ContactPoint",contactType:"customer support",email:"[email protected]",availableLanguage:["Portuguese","English"]},sameAs:[Qe,Yt,"https://x.com/anchorkit"]})},ie="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0%25' stop-color='%235BC0DE'/><stop offset='35%25' stop-color='%234FB3D1'/><stop offset='70%25' stop-color='%231E90B8'/><stop offset='100%25' stop-color='%230B557A'/></linearGradient></defs><rect width='40' height='40' rx='8' fill='%230A1218'/><g stroke='url(%23g)' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' fill='none'><circle cx='20' cy='10' r='2.6'/><line x1='20' y1='12.6' x2='20' y2='30'/><line x1='14.5' y1='17' x2='25.5' y2='17'/><path d='M10 23 Q10 30 20 30 Q30 30 30 23'/><line x1='7' y1='23' x2='12.5' y2='23'/><line x1='27.5' y1='23' x2='33' y2='23'/></g></svg>",cn={__html:"(function(){try{var r=document.documentElement;r.classList.add('dark');r.style.colorScheme='dark';}catch(e){}})();"};function pn({children:t}){return u.jsxs("html",{lang:"pt-BR",className:"dark",children:[u.jsxs("head",{children:[u.jsx("meta",{charSet:"utf-8"}),u.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),u.jsx("meta",{httpEquiv:"X-Content-Type-Options",content:"nosniff"}),u.jsx("meta",{httpEquiv:"Referrer-Policy",content:"strict-origin-when-cross-origin"}),u.jsx("meta",{httpEquiv:"Permissions-Policy",content:"camera=(), microphone=(), geolocation=()"}),u.jsx("meta",{name:"color-scheme",content:"dark"}),u.jsx("meta",{name:"theme-color",content:"#0A1218"}),u.jsx("meta",{name:"author",content:"AnchorKit"}),u.jsx("link",{rel:"icon",type:"image/svg+xml",href:ie}),u.jsx("link",{rel:"apple-touch-icon",href:ie}),u.jsx("link",{rel:"manifest",href:"/site.webmanifest"}),u.jsx("meta",{name:"msapplication-TileColor",content:"#0A1218"}),u.jsx("meta",{name:"apple-mobile-web-app-title",content:"AnchorKit"}),u.jsx("meta",{name:"application-name",content:"AnchorKit"}),u.jsx("link",{rel:"preload",as:"font",type:"font/woff2",href:"/fonts/inter-400.woff2",crossOrigin:"anonymous"}),u.jsx("link",{rel:"preload",as:"font",type:"font/woff2",href:"/fonts/inter-500.woff2",crossOrigin:"anonymous"}),u.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),u.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),u.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:ln}),u.jsx("script",{dangerouslySetInnerHTML:cn}),u.jsx(De,{}),u.jsx(Re,{})]}),u.jsxs("body",{suppressHydrationWarning:!0,children:[u.jsxs(Es,{children:[t,u.jsx(on,{}),u.jsx(Ds,{})]}),u.jsx(js,{}),u.jsx(Ae,{}),u.jsx(Fe,{})]})]})}const yn=ke(function(){return u.jsx(Ie,{})}),gn=Me(function({error:e}){const s=Ne(e)&&e.status===404,n=!1;return e instanceof Error?e.message:String(e),e instanceof Error&&e.stack,u.jsx("div",{className:"flex min-h-screen items-center justify-center bg-[#0A1218] px-6 py-12",children:u.jsxs("div",{className:"w-full max-w-2xl space-y-4 text-center",children:[u.jsx("h1",{className:"font-display text-4xl font-semibold text-[#C9DDE7]",children:s?"Página não encontrada":"Algo deu errado"}),u.jsx("p",{className:"text-[#5C7585]",children:s?"O endereço acessado não existe.":"Ocorreu um erro inesperado. Tente novamente em instantes."}),n]})})});export{gn as ErrorBoundary,pn as Layout,yn as default}; 10//# sourceMappingURL=root-DnKpiHgd.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.