const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/Index-w2GeM9rm.js","assets/js/ui-vendor-CPlxOuHz.js","assets/js/react-vendor-DjUmVRt1.js","assets/js/Header-CCcWTXhg.js","assets/js/logo-oficial-BW9aD_Pb.js","assets/js/icons-ClkGBw8e.js","assets/js/Footer-BqYZBv1u.js","assets/js/useScrollAnimation-Ci2H6Med.js","assets/js/SEOHead-_u8HLdws.js","assets/js/LazySection-DnvmD9q2.js","assets/js/supabase-vendor-CuzYIAJN.js","assets/js/NotFound-BA2rPkRZ.js","assets/js/card-DOdpRqkP.js","assets/js/Empresas-eXATQQJi.js","assets/js/SEOBreadcrumb-DCKCzdmc.js","assets/js/dialog-CIPtm8Fb.js","assets/js/WhatsAppFormDialog-CECNKxM2.js","assets/js/input-CLM7CY35.js","assets/js/label-C1jsYxvL.js","assets/js/validators-B6ObMgjW.js","assets/js/useMutation-n3TjElmi.js","assets/js/Assistencia24h-ke4TvY2k.js","assets/js/Testimonials-BaOQyzd5.js","assets/js/useQuery-CQM8Ox_9.js","assets/js/badge-BYwsE_vj.js","assets/js/BlogFloatingCTA-DtvCUYgJ.js","assets/js/accordion-_g8g_P0d.js","assets/js/Rastreamento-DwTkctH7.js","assets/js/Seguros-CcbAPhC8.js","assets/js/GestaoFrotas-CPe_nFLO.js","assets/js/Suporte-BCiHMTmH.js","assets/js/FacaParte-PdxsRhER.js","assets/js/select-BPLxsN5s.js","assets/js/carousel-CeoVMQaJ.js","assets/js/Blog-NQykZJWA.js","assets/js/BlogPost-BlIwsqYe.js","assets/js/AppDownload-DyC4lp3c.js","assets/js/blur-BN0S1GFv.js","assets/css/blur-DOfe2hmq.css","assets/js/Afiliados-B8PfXBJW.js","assets/js/textarea-D4OjM2EH.js","assets/js/Auth--Rf2eOob.js","assets/js/tabs-Bual1_Dd.js","assets/js/form-vendor-p3XMOTYy.js","assets/js/Install-CXkMZuEy.js","assets/js/Franquia-V1hbDj9w.js","assets/js/FranquiaObrigado-CfaFNwQS.js","assets/js/GuinchoCity-D7n5W6ly.js","assets/js/city-slug-parser-D8WrJtDF.js","assets/js/alert-qeGao1Er.js","assets/js/TowRequestForm-webGnLjO.js","assets/js/ChaveiroCity-BPmYV0d0.js","assets/js/ReboqueCity-7OFZO5K-.js","assets/js/Insta-jkmnLIvi.js","assets/js/ExternalRedirect--5gY6X5p.js","assets/js/LandingPageApp-HDtOU7C4.js","assets/js/AdminLayout-BAaWZMW4.js","assets/js/separator-D47JpVH0.js","assets/js/Dashboard--I-UfQtu.js","assets/js/Articles-BEr5Qpuj.js","assets/js/table-_g17y4AO.js","assets/js/pt-BR-BAHmWZhJ.js","assets/js/Images-ES_LVVv9.js","assets/js/progress-BAXNhKyW.js","assets/js/Settings-D_gvF_3d.js","assets/js/TowRequests-oiMv0mtp.js","assets/js/CityImagesGenerator-9rrPrZKk.js","assets/js/CityBatchGenerator-CyJtjXEJ.js","assets/js/Users-DgnCAzYH.js","assets/js/ScriptGenerator-80WkY3j_.js","assets/js/ImageGenerator-BDbUDOzd.js","assets/js/LocksmithRequests-DcamVfEo.js","assets/js/Reviews-Ci3KoQTG.js","assets/js/BatchArticleGenerator-CGv1wEgO.js","assets/js/CityPagesStats-C4IDyEVb.js","assets/js/Avaliar-DUaHTqH0.js","assets/js/PortalFuncionario-BLbuweSR.js"])))=>i.map(i=>d[i]);
var e,t,r,n,s,o,a,i,l,c,d,u,p,h,f,m,g,v,y,b,w,x,j,E,T,k,_,C,A,S,O,P,R,M,N,D,I,L,$,F,z,q,B,H,V=Object.defineProperty,K=e=>{throw TypeError(e)},U=(e,t,r)=>((e,t,r)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),W=(e,t,r)=>t.has(e)||K("Cannot "+r),G=(e,t,r)=>(W(e,t,"read from private field"),r?r.call(e):t.get(e)),Q=(e,t,r)=>t.has(e)?K("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Y=(e,t,r,n)=>(W(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),J=(e,t,r)=>(W(e,t,"access private method"),r),X=(e,t,r,n)=>({set _(n){Y(e,t,n,r)},get _(){return G(e,t,n)}});import{j as Z,P as ee,c as te,b as re,u as ne,B as se,d as oe,e as ae,f as ie,g as le,R as ce,h as de,i as ue,k as pe,l as he,D as fe,C as me,m as ge,A as ve,n as ye,o as be,p as we,S as xe}from"./ui-vendor-CPlxOuHz.js";import{a as je,r as Ee,R as Te,v as ke,c as _e,u as Ce,N as Ae,B as Se,d as Oe,e as Pe,f as Re}from"./react-vendor-DjUmVRt1.js";import{X as Me,L as Ne,R as De,T as Ie}from"./icons-ClkGBw8e.js";import{c as Le}from"./supabase-vendor-CuzYIAJN.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const r of e)if("childList"===r.type)for(const e of r.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var $e=je;H=$e.createRoot,$e.hydrateRoot;const Fe={},ze=function(e,t,r){let n=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const e=document.querySelector("meta[property=csp-nonce]"),r=(null==e?void 0:e.nonce)||(null==e?void 0:e.getAttribute("nonce"));n=Promise.allSettled(t.map(e=>{if((e=function(e){return"/"+e}(e))in Fe)return;Fe[e]=!0;const t=e.endsWith(".css"),n=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${n}`))return;const s=document.createElement("link");return s.rel=t?"stylesheet":"modulepreload",t||(s.as="script"),s.crossOrigin="",s.href=e,r&&s.setAttribute("nonce",r),document.head.appendChild(s),t?new Promise((t,r)=>{s.addEventListener("load",t),s.addEventListener("error",()=>r(new Error(`Unable to preload CSS for ${e}`)))}):void 0}))}function s(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return n.then(t=>{for(const e of t||[])"rejected"===e.status&&s(e.reason);return e().catch(s)})};let qe=0;const Be=new Map,He=e=>{if(Be.has(e))return;const t=setTimeout(()=>{Be.delete(e),We({type:"REMOVE_TOAST",toastId:e})},1e6);Be.set(e,t)},Ve=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?He(r):e.toasts.forEach(e=>{He(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},Ke=[];let Ue={toasts:[]};function We(e){Ue=Ve(Ue,e),Ke.forEach(e=>{e(Ue)})}function Ge({...e}){const t=(qe=(qe+1)%Number.MAX_SAFE_INTEGER,qe.toString()),r=()=>We({type:"DISMISS_TOAST",toastId:t});return We({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:e=>We({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function Qe(){const[e,t]=Ee.useState(Ue);return Ee.useEffect(()=>(Ke.push(t),()=>{const e=Ke.indexOf(t);e>-1&&Ke.splice(e,1)}),[e]),{...e,toast:Ge,dismiss:e=>We({type:"DISMISS_TOAST",toastId:e})}}var Ye=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Je=Ee.forwardRef((e,t)=>Z.jsx(ee.span,{...e,ref:t,style:{...Ye,...e.style}}));Je.displayName="VisuallyHidden";var Xe=Je,Ze="ToastProvider",[et,tt,rt]=re("Toast"),[nt]=te("Toast",[rt]),[st,ot]=nt(Ze),at=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:a}=e,[i,l]=Ee.useState(null),[c,d]=Ee.useState(0),u=Ee.useRef(!1),p=Ee.useRef(!1);return r.trim(),Z.jsx(et.Provider,{scope:t,children:Z.jsx(st,{scope:t,label:r,duration:n,swipeDirection:s,swipeThreshold:o,toastCount:c,viewport:i,onViewportChange:l,onToastAdd:Ee.useCallback(()=>d(e=>e+1),[]),onToastRemove:Ee.useCallback(()=>d(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:u,isClosePausedRef:p,children:a})})};at.displayName=Ze;var it="ToastViewport",lt=["F8"],ct="toast.viewportPause",dt="toast.viewportResume",ut=Ee.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=lt,label:s="Notifications ({hotkey})",...o}=e,a=ot(it,r),i=tt(r),l=Ee.useRef(null),c=Ee.useRef(null),d=Ee.useRef(null),u=Ee.useRef(null),p=ne(t,u,a.onViewportChange),h=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),f=a.toastCount>0;Ee.useEffect(()=>{const e=e=>{var t;0!==n.length&&n.every(t=>e[t]||e.code===t)&&(null==(t=u.current)||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n]),Ee.useEffect(()=>{const e=l.current,t=u.current;if(f&&e&&t){const r=()=>{if(!a.isClosePausedRef.current){const e=new CustomEvent(ct);t.dispatchEvent(e),a.isClosePausedRef.current=!0}},n=()=>{if(a.isClosePausedRef.current){const e=new CustomEvent(dt);t.dispatchEvent(e),a.isClosePausedRef.current=!1}},s=t=>{!e.contains(t.relatedTarget)&&n()},o=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",s),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",o),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",s),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",o),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}},[f,a.isClosePausedRef]);const m=Ee.useCallback(({tabbingDirection:e})=>{const t=i().map(t=>{const r=t.ref.current,n=[r,...St(r)];return"forwards"===e?n:n.reverse()});return("forwards"===e?t.reverse():t).flat()},[i]);return Ee.useEffect(()=>{const e=u.current;if(e){const t=t=>{var r,n,s;const o=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!o){const o=document.activeElement,a=t.shiftKey;if(t.target===e&&a)return void(null==(r=c.current)||r.focus());const i=m({tabbingDirection:a?"backwards":"forwards"}),l=i.findIndex(e=>e===o);Ot(i.slice(l+1))?t.preventDefault():a?null==(n=c.current)||n.focus():null==(s=d.current)||s.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[i,m]),Z.jsxs(se,{ref:l,role:"region","aria-label":s.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:f?void 0:"none"},children:[f&&Z.jsx(ht,{ref:c,onFocusFromOutsideViewport:()=>{Ot(m({tabbingDirection:"forwards"}))}}),Z.jsx(et.Slot,{scope:r,children:Z.jsx(ee.ol,{tabIndex:-1,...o,ref:p})}),f&&Z.jsx(ht,{ref:d,onFocusFromOutsideViewport:()=>{Ot(m({tabbingDirection:"backwards"}))}})]})});ut.displayName=it;var pt="ToastFocusProxy",ht=Ee.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=e,o=ot(pt,r);return Z.jsx(Je,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:e=>{var t;const r=e.relatedTarget;!(null==(t=o.viewport)?void 0:t.contains(r))&&n()}})});ht.displayName=pt;var ft="Toast",mt=Ee.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:o,...a}=e,[i,l]=oe({prop:n,defaultProp:s??!0,onChange:o,caller:ft});return Z.jsx(ae,{present:r||i,children:Z.jsx(yt,{open:i,...a,ref:t,onClose:()=>l(!1),onPause:le(e.onPause),onResume:le(e.onResume),onSwipeStart:ie(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ie(e.onSwipeMove,e=>{const{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${r}px`)}),onSwipeCancel:ie(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ie(e.onSwipeEnd,e=>{const{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${r}px`),l(!1)})})})});mt.displayName=ft;var[gt,vt]=nt(ft,{onClose(){}}),yt=Ee.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:s,open:o,onClose:a,onEscapeKeyDown:i,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:u,onSwipeCancel:p,onSwipeEnd:h,...f}=e,m=ot(ft,r),[g,v]=Ee.useState(null),y=ne(t,e=>v(e)),b=Ee.useRef(null),w=Ee.useRef(null),x=s||m.duration,j=Ee.useRef(0),E=Ee.useRef(x),T=Ee.useRef(0),{onToastAdd:k,onToastRemove:_}=m,C=le(()=>{var e;(null==g?void 0:g.contains(document.activeElement))&&(null==(e=m.viewport)||e.focus()),a()}),A=Ee.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(T.current),j.current=(new Date).getTime(),T.current=window.setTimeout(C,e))},[C]);Ee.useEffect(()=>{const e=m.viewport;if(e){const t=()=>{A(E.current),null==c||c()},r=()=>{const e=(new Date).getTime()-j.current;E.current=E.current-e,window.clearTimeout(T.current),null==l||l()};return e.addEventListener(ct,r),e.addEventListener(dt,t),()=>{e.removeEventListener(ct,r),e.removeEventListener(dt,t)}}},[m.viewport,x,l,c,A]),Ee.useEffect(()=>{o&&!m.isClosePausedRef.current&&A(x)},[o,x,m.isClosePausedRef,A]),Ee.useEffect(()=>(k(),()=>_()),[k,_]);const S=Ee.useMemo(()=>g?_t(g):null,[g]);return m.viewport?Z.jsxs(Z.Fragment,{children:[S&&Z.jsx(bt,{__scopeToast:r,role:"status","aria-live":"foreground"===n?"assertive":"polite","aria-atomic":!0,children:S}),Z.jsx(gt,{scope:r,onClose:C,children:je.createPortal(Z.jsx(et.ItemSlot,{scope:r,children:Z.jsx(ce,{asChild:!0,onEscapeKeyDown:ie(i,()=>{m.isFocusedToastEscapeKeyDownRef.current||C(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:Z.jsx(ee.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":m.swipeDirection,...f,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ie(e.onKeyDown,e=>{"Escape"===e.key&&(null==i||i(e.nativeEvent),e.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,C()))}),onPointerDown:ie(e.onPointerDown,e=>{0===e.button&&(b.current={x:e.clientX,y:e.clientY})}),onPointerMove:ie(e.onPointerMove,e=>{if(!b.current)return;const t=e.clientX-b.current.x,r=e.clientY-b.current.y,n=Boolean(w.current),s=["left","right"].includes(m.swipeDirection),o=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,a=s?o(0,t):0,i=s?0:o(0,r),l="touch"===e.pointerType?10:2,c={x:a,y:i},p={originalEvent:e,delta:c};n?(w.current=c,Ct("toast.swipeMove",u,p,{discrete:!1})):At(c,m.swipeDirection,l)?(w.current=c,Ct("toast.swipeStart",d,p,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(r)>l)&&(b.current=null)}),onPointerUp:ie(e.onPointerUp,e=>{const t=w.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),w.current=null,b.current=null,t){const r=e.currentTarget,n={originalEvent:e,delta:t};At(t,m.swipeDirection,m.swipeThreshold)?Ct("toast.swipeEnd",h,n,{discrete:!0}):Ct("toast.swipeCancel",p,n,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),bt=e=>{const{__scopeToast:t,children:r,...n}=e,s=ot(ft,t),[o,a]=Ee.useState(!1),[i,l]=Ee.useState(!1);return function(e=()=>{}){const t=le(e);ue(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>a(!0)),Ee.useEffect(()=>{const e=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(e)},[]),i?null:Z.jsx(de,{asChild:!0,children:Z.jsx(Je,{...n,children:o&&Z.jsxs(Z.Fragment,{children:[s.label," ",r]})})})},wt=Ee.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return Z.jsx(ee.div,{...n,ref:t})});wt.displayName="ToastTitle";var xt=Ee.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return Z.jsx(ee.div,{...n,ref:t})});xt.displayName="ToastDescription";var jt=Ee.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?Z.jsx(kt,{altText:r,asChild:!0,children:Z.jsx(Tt,{...n,ref:t})}):null});jt.displayName="ToastAction";var Et="ToastClose",Tt=Ee.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,s=vt(Et,r);return Z.jsx(kt,{asChild:!0,children:Z.jsx(ee.button,{type:"button",...n,ref:t,onClick:ie(e.onClick,s.onClose)})})});Tt.displayName=Et;var kt=Ee.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...s}=e;return Z.jsx(ee.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:t})});function _t(e){const t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const r=e.ariaHidden||e.hidden||"none"===e.style.display,n=""===e.dataset.radixToastAnnounceExclude;if(!r)if(n){const r=e.dataset.radixToastAnnounceAlt;r&&t.push(r)}else t.push(..._t(e))}}),t}function Ct(e,t,r,{discrete:n}){const s=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?pe(s,o):s.dispatchEvent(o)}var At=(e,t,r=0)=>{const n=Math.abs(e.x),s=Math.abs(e.y),o=n>s;return"left"===t||"right"===t?o&&n>r:!o&&s>r};function St(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ot(e){const t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var Pt=at,Rt=ut,Mt=mt,Nt=wt,Dt=xt,It=jt,Lt=Tt;function $t(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=$t(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ft(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=$t(e))&&(n&&(n+=" "),n+=t);return n}const zt=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,qt=Ft,Bt=(e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return qt(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:s,defaultVariants:o}=t,a=Object.keys(s).map(e=>{const t=null==r?void 0:r[e],n=null==o?void 0:o[e];if(null===t)return null;const a=zt(t)||zt(n);return s[e][a]}),i=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),l=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...s}=t;return Object.entries(s).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...i}[t]):{...o,...i}[t]===r})?[...e,r,n]:e},[]);return qt(e,a,l,null==r?void 0:r.class,null==r?void 0:r.className)},Ht=e=>{const t=Wt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),Vt(r,t)||Ut(e)},getConflictingClassGroupIds:(e,t)=>{const s=r[e]||[];return t&&n[e]?[...s,...n[e]]:s}}},Vt=(e,t)=>{var r;if(0===e.length)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),o=s?Vt(e.slice(1),s):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join("-");return null==(r=t.validators.find(({validator:e})=>e(a)))?void 0:r.classGroupId},Kt=/^\[(.+)\]$/,Ut=e=>{if(Kt.test(e)){const t=Kt.exec(e)[1],r=null==t?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Wt=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Jt(Object.entries(e.classGroups),r).forEach(([e,r])=>{Gt(r,n,e,t)}),n},Gt=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Qt(t,e)).classGroupId=r)}if("function"==typeof e)return Yt(e)?void Gt(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,s])=>{Gt(s,Qt(t,e),r,n)})})},Qt=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},Yt=e=>e.isThemeGetter,Jt=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,Xt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(s,o)=>{r.set(s,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(s(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):s(e,t)}}},Zt=e=>{const{separator:t,experimentalParseClassName:r}=e,n=1===t.length,s=t[0],o=t.length,a=e=>{const r=[];let a,i=0,l=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===i){if(c===s&&(n||e.slice(u,u+o)===t)){r.push(e.slice(l,u)),l=u+o;continue}if("/"===c){a=u;continue}}"["===c?i++:"]"===c&&i--}const c=0===r.length?e:e.substring(l),d=c.startsWith("!");return{modifiers:r,hasImportantModifier:d,baseClassName:d?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}};return r?e=>r({className:e,parseClassName:a}):a},er=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},tr=/\s+/;function rr(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=nr(e))&&(n&&(n+=" "),n+=t);return n}const nr=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=nr(e[n]))&&(r&&(r+=" "),r+=t);return r};function sr(e,...t){let r,n,s,o=function(i){const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:Xt(e.cacheSize),parseClassName:Zt(e),...Ht(e)}))(l),n=r.cache.get,s=r.cache.set,o=a,a(i)};function a(e){const t=n(e);if(t)return t;const o=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,o=[],a=e.trim().split(tr);let i="";for(let l=a.length-1;l>=0;l-=1){const e=a[l],{modifiers:t,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:u}=r(e);let p=Boolean(u),h=n(p?d.substring(0,u):d);if(!h){if(!p){i=e+(i.length>0?" "+i:i);continue}if(h=n(d),!h){i=e+(i.length>0?" "+i:i);continue}p=!1}const f=er(t).join(":"),m=c?f+"!":f,g=m+h;if(o.includes(g))continue;o.push(g);const v=s(h,p);for(let r=0;r<v.length;++r){const e=v[r];o.push(m+e)}i=e+(i.length>0?" "+i:i)}return i})(e,r);return s(e,o),o}return function(){return o(rr.apply(null,arguments))}}const or=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},ar=/^\[(?:([a-z-]+):)?(.+)\]$/i,ir=/^\d+\/\d+$/,lr=new Set(["px","full","screen"]),cr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dr=/\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$/,ur=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,pr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fr=e=>gr(e)||lr.has(e)||ir.test(e),mr=e=>Sr(e,"length",Or),gr=e=>Boolean(e)&&!Number.isNaN(Number(e)),vr=e=>Sr(e,"number",gr),yr=e=>Boolean(e)&&Number.isInteger(Number(e)),br=e=>e.endsWith("%")&&gr(e.slice(0,-1)),wr=e=>ar.test(e),xr=e=>cr.test(e),jr=new Set(["length","size","percentage"]),Er=e=>Sr(e,jr,Pr),Tr=e=>Sr(e,"position",Pr),kr=new Set(["image","url"]),_r=e=>Sr(e,kr,Mr),Cr=e=>Sr(e,"",Rr),Ar=()=>!0,Sr=(e,t,r)=>{const n=ar.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},Or=e=>dr.test(e)&&!ur.test(e),Pr=()=>!1,Rr=e=>pr.test(e),Mr=e=>hr.test(e),Nr=sr(()=>{const e=or("colors"),t=or("spacing"),r=or("blur"),n=or("brightness"),s=or("borderColor"),o=or("borderRadius"),a=or("borderSpacing"),i=or("borderWidth"),l=or("contrast"),c=or("grayscale"),d=or("hueRotate"),u=or("invert"),p=or("gap"),h=or("gradientColorStops"),f=or("gradientColorStopPositions"),m=or("inset"),g=or("margin"),v=or("opacity"),y=or("padding"),b=or("saturate"),w=or("scale"),x=or("sepia"),j=or("skew"),E=or("space"),T=or("translate"),k=()=>["auto",wr,t],_=()=>[wr,t],C=()=>["",fr,mr],A=()=>["auto",gr,wr],S=()=>["","0",wr],O=()=>[gr,wr];return{cacheSize:500,separator:":",theme:{colors:[Ar],spacing:[fr,mr],blur:["none","",xr,wr],brightness:O(),borderColor:[e],borderRadius:["none","","full",xr,wr],borderSpacing:_(),borderWidth:C(),contrast:O(),grayscale:S(),hueRotate:O(),invert:S(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[br,mr],inset:k(),margin:k(),opacity:O(),padding:_(),saturate:O(),scale:O(),sepia:S(),skew:O(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",wr]}],container:["container"],columns:[{columns:[xr]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"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:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",wr]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",yr,wr]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",wr]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",yr,wr]}],"grid-cols":[{"grid-cols":[Ar]}],"col-start-end":[{col:["auto",{span:["full",yr,wr]},wr]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[Ar]}],"row-start-end":[{row:["auto",{span:[yr,wr]},wr]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",wr]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",wr]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",wr,t]}],"min-w":[{"min-w":[wr,t,"min","max","fit"]}],"max-w":[{"max-w":[wr,t,"none","full","min","max","fit","prose",{screen:[xr]},xr]}],h:[{h:[wr,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[wr,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[wr,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[wr,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xr,mr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",vr]}],"font-family":[{font:[Ar]}],"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",wr]}],"line-clamp":[{"line-clamp":["none",gr,vr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",fr,wr]}],"list-image":[{"list-image":["none",wr]}],"list-style-type":[{list:["none","disc","decimal",wr]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",fr,mr]}],"underline-offset":[{"underline-offset":["auto",fr,wr]}],"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:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",wr]}],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",wr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Tr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Er]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_r]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],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:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[fr,wr]}],"outline-w":[{outline:[fr,mr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:C()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[fr,mr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xr,Cr]}],"shadow-color":[{shadow:[Ar]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xr,wr]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",wr]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",wr]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",wr]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[yr,wr]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",wr]}],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",wr]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",wr]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[fr,mr,vr]}],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"]}}});function Dr(...e){return Nr(Ft(e))}const Ir=Pt,Lr=Ee.forwardRef(({className:e,...t},r)=>Z.jsx(Rt,{ref:r,className:Dr("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Lr.displayName=Rt.displayName;const $r=Bt("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Fr=Ee.forwardRef(({className:e,variant:t,...r},n)=>Z.jsx(Mt,{ref:n,className:Dr($r({variant:t}),e),...r}));Fr.displayName=Mt.displayName;Ee.forwardRef(({className:e,...t},r)=>Z.jsx(It,{ref:r,className:Dr("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t})).displayName=It.displayName;const zr=Ee.forwardRef(({className:e,...t},r)=>Z.jsx(Lt,{ref:r,className:Dr("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:Z.jsx(Me,{className:"h-4 w-4"})}));zr.displayName=Lt.displayName;const qr=Ee.forwardRef(({className:e,...t},r)=>Z.jsx(Nt,{ref:r,className:Dr("text-sm font-semibold",e),...t}));qr.displayName=Nt.displayName;const Br=Ee.forwardRef(({className:e,...t},r)=>Z.jsx(Dt,{ref:r,className:Dr("text-sm opacity-90",e),...t}));function Hr(){const{toasts:e}=Qe();return Z.jsxs(Ir,{children:[e.map(function({id:e,title:t,description:r,action:n,...s}){return Z.jsxs(Fr,{...s,children:[Z.jsxs("div",{className:"grid gap-1",children:[t&&Z.jsx(qr,{children:t}),r&&Z.jsx(Br,{children:r})]}),n,Z.jsx(zr,{})]},e)}),Z.jsx(Lr,{})]})}Br.displayName=Dt.displayName;var Vr=["light","dark"],Kr=Ee.createContext(void 0),Ur={setTheme:e=>{},themes:[]};Ee.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:o,value:a,attrs:i,nonce:l})=>{let c="system"===o,d="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${i.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,u=s?Vr.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(e,t=!1,n=!0)=>{let o=a?a[e]:e,i=t?e+"|| ''":`'${o}'`,l="";return s&&n&&!t&&Vr.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===r?l+=t||o?`c.add(${i})`:"null":o&&(l+=`d[s](n,${i})`),l},h=e?`!function(){${d}${p(e)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='(prefers-color-scheme: dark)',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${p(a?"x[e]":"e",!0)}}${c?"":"else{"+p(o,!1,!1)+"}"}${u}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${p(a?"x[e]":"e",!0)}}else{${p(o,!1,!1)};}${u}}catch(t){}}();`;return Ee.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})});var Wr=Array(12).fill(0),Gr=({visible:e,className:t})=>Te.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},Te.createElement("div",{className:"sonner-spinner"},Wr.map((e,t)=>Te.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),Qr=Te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Te.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"})),Yr=Te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Te.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"})),Jr=Te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Te.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"})),Xr=Te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Te.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"})),Zr=Te.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"},Te.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Te.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),en=1,tn=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,s="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:en++,o=this.toasts.find(e=>e.id===s),a=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(t=>t.id===s?(this.publish({...t,...e,id:s,title:r}),{...t,...e,id:s,dismissible:a,title:r}):t):this.addToast({title:r,...n,dismissible:a,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;void 0!==t.loading&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let n,s=e instanceof Promise?e:e(),o=void 0!==r,a=s.then(async e=>{if(n=["resolve",e],Te.isValidElement(e))o=!1,this.create({id:r,type:"default",message:e});else if(rn(e)&&!e.ok){o=!1;let n="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,s="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description;this.create({id:r,type:"error",message:n,description:s})}else if(void 0!==t.success){o=!1;let n="function"==typeof t.success?await t.success(e):t.success,s="function"==typeof t.description?await t.description(e):t.description;this.create({id:r,type:"success",message:n,description:s})}}).catch(async e=>{if(n=["reject",e],void 0!==t.error){o=!1;let n="function"==typeof t.error?await t.error(e):t.error,s="function"==typeof t.description?await t.description(e):t.description;this.create({id:r,type:"error",message:n,description:s})}}).finally(()=>{var e;o&&(this.dismiss(r),r=void 0),null==(e=t.finally)||e.call(t)}),i=()=>new Promise((e,t)=>a.then(()=>"reject"===n[0]?t(n[1]):e(n[1])).catch(t));return"string"!=typeof r&&"number"!=typeof r?{unwrap:i}:Object.assign(r,{unwrap:i})},this.custom=(e,t)=>{let r=(null==t?void 0:t.id)||en++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},rn=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,nn=(e,t)=>{let r=(null==t?void 0:t.id)||en++;return tn.addToast({title:e,...t,id:r}),r},sn=Object.assign(nn,{success:tn.success,info:tn.info,warning:tn.warning,error:tn.error,custom:tn.custom,message:tn.message,promise:tn.promise,dismiss:tn.dismiss,loading:tn.loading},{getHistory:()=>tn.toasts,getToasts:()=>tn.getActiveToasts()});function on(e){return void 0!==e.label}!function(e,{insertAt:t}={}){if("undefined"==typeof document)return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(':where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));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{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{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{0%{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-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-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-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],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n');var an=3,ln=14;function cn(...e){return e.filter(Boolean).join(" ")}var dn=e=>{var t,r,n,s,o,a,i,l,c,d,u;let{invert:p,toast:h,unstyled:f,interacting:m,setHeights:g,visibleToasts:v,heights:y,index:b,toasts:w,expanded:x,removeToast:j,defaultRichColors:E,closeButton:T,style:k,cancelButtonStyle:_,actionButtonStyle:C,className:A="",descriptionClassName:S="",duration:O,position:P,gap:R,loadingIcon:M,expandByDefault:N,classNames:D,icons:I,closeButtonAriaLabel:L="Close toast",pauseWhenPageIsHidden:$}=e,[F,z]=Te.useState(null),[q,B]=Te.useState(null),[H,V]=Te.useState(!1),[K,U]=Te.useState(!1),[W,G]=Te.useState(!1),[Q,Y]=Te.useState(!1),[J,X]=Te.useState(!1),[Z,ee]=Te.useState(0),[te,re]=Te.useState(0),ne=Te.useRef(h.duration||O||4e3),se=Te.useRef(null),oe=Te.useRef(null),ae=0===b,ie=b+1<=v,le=h.type,ce=!1!==h.dismissible,de=h.className||"",ue=h.descriptionClassName||"",pe=Te.useMemo(()=>y.findIndex(e=>e.toastId===h.id)||0,[y,h.id]),he=Te.useMemo(()=>{var e;return null!=(e=h.closeButton)?e:T},[h.closeButton,T]),fe=Te.useMemo(()=>h.duration||O||4e3,[h.duration,O]),me=Te.useRef(0),ge=Te.useRef(0),ve=Te.useRef(0),ye=Te.useRef(null),[be,we]=P.split("-"),xe=Te.useMemo(()=>y.reduce((e,t,r)=>r>=pe?e:e+t.height,0),[y,pe]),je=(()=>{let[e,t]=Te.useState(document.hidden);return Te.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),ke=h.invert||p,_e="loading"===le;ge.current=Te.useMemo(()=>pe*R+xe,[pe,xe]),Te.useEffect(()=>{ne.current=fe},[fe]),Te.useEffect(()=>{V(!0)},[]),Te.useEffect(()=>{let e=oe.current;if(e){let t=e.getBoundingClientRect().height;return re(t),g(e=>[{toastId:h.id,height:t,position:h.position},...e]),()=>g(e=>e.filter(e=>e.toastId!==h.id))}},[g,h.id]),Te.useLayoutEffect(()=>{if(!H)return;let e=oe.current,t=e.style.height;e.style.height="auto";let r=e.getBoundingClientRect().height;e.style.height=t,re(r),g(e=>e.find(e=>e.toastId===h.id)?e.map(e=>e.toastId===h.id?{...e,height:r}:e):[{toastId:h.id,height:r,position:h.position},...e])},[H,h.title,h.description,g,h.id]);let Ce=Te.useCallback(()=>{U(!0),ee(ge.current),g(e=>e.filter(e=>e.toastId!==h.id)),setTimeout(()=>{j(h)},200)},[h,j,g,ge]);return Te.useEffect(()=>{if(h.promise&&"loading"===le||h.duration===1/0||"loading"===h.type)return;let e;return x||m||$&&je?(()=>{if(ve.current<me.current){let e=(new Date).getTime()-me.current;ne.current=ne.current-e}ve.current=(new Date).getTime()})():ne.current!==1/0&&(me.current=(new Date).getTime(),e=setTimeout(()=>{var e;null==(e=h.onAutoClose)||e.call(h,h),Ce()},ne.current)),()=>clearTimeout(e)},[x,m,h,le,$,je,Ce]),Te.useEffect(()=>{h.delete&&Ce()},[Ce,h.delete]),Te.createElement("li",{tabIndex:0,ref:oe,className:cn(A,de,null==D?void 0:D.toast,null==(t=null==h?void 0:h.classNames)?void 0:t.toast,null==D?void 0:D.default,null==D?void 0:D[le],null==(r=null==h?void 0:h.classNames)?void 0:r[le]),"data-sonner-toast":"","data-rich-colors":null!=(n=h.richColors)?n:E,"data-styled":!(h.jsx||h.unstyled||f),"data-mounted":H,"data-promise":!!h.promise,"data-swiped":J,"data-removed":K,"data-visible":ie,"data-y-position":be,"data-x-position":we,"data-index":b,"data-front":ae,"data-swiping":W,"data-dismissible":ce,"data-type":le,"data-invert":ke,"data-swipe-out":Q,"data-swipe-direction":q,"data-expanded":!!(x||N&&H),style:{"--index":b,"--toasts-before":b,"--z-index":w.length-b,"--offset":`${K?Z:ge.current}px`,"--initial-height":N?"auto":`${te}px`,...k,...h.style},onDragEnd:()=>{G(!1),z(null),ye.current=null},onPointerDown:e=>{_e||!ce||(se.current=new Date,ee(ge.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(G(!0),ye.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,r,n;if(Q||!ce)return;ye.current=null;let s=Number((null==(e=oe.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),o=Number((null==(t=oe.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),a=(new Date).getTime()-(null==(r=se.current)?void 0:r.getTime()),i="x"===F?s:o,l=Math.abs(i)/a;if(Math.abs(i)>=20||l>.11)return ee(ge.current),null==(n=h.onDismiss)||n.call(h,h),B("x"===F?s>0?"right":"left":o>0?"down":"up"),Ce(),Y(!0),void X(!1);G(!1),z(null)},onPointerMove:t=>{var r,n,s,o;if(!ye.current||!ce||(null==(r=window.getSelection())?void 0:r.toString().length)>0)return;let a=t.clientY-ye.current.y,i=t.clientX-ye.current.x,l=null!=(n=e.swipeDirections)?n:function(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}(P);!F&&(Math.abs(i)>1||Math.abs(a)>1)&&z(Math.abs(i)>Math.abs(a)?"x":"y");let c={x:0,y:0};"y"===F?(l.includes("top")||l.includes("bottom"))&&(l.includes("top")&&a<0||l.includes("bottom")&&a>0)&&(c.y=a):"x"===F&&(l.includes("left")||l.includes("right"))&&(l.includes("left")&&i<0||l.includes("right")&&i>0)&&(c.x=i),(Math.abs(c.x)>0||Math.abs(c.y)>0)&&X(!0),null==(s=oe.current)||s.style.setProperty("--swipe-amount-x",`${c.x}px`),null==(o=oe.current)||o.style.setProperty("--swipe-amount-y",`${c.y}px`)}},he&&!h.jsx?Te.createElement("button",{"aria-label":L,"data-disabled":_e,"data-close-button":!0,onClick:_e||!ce?()=>{}:()=>{var e;Ce(),null==(e=h.onDismiss)||e.call(h,h)},className:cn(null==D?void 0:D.closeButton,null==(s=null==h?void 0:h.classNames)?void 0:s.closeButton)},null!=(o=null==I?void 0:I.close)?o:Zr):null,h.jsx||Ee.isValidElement(h.title)?h.jsx?h.jsx:"function"==typeof h.title?h.title():h.title:Te.createElement(Te.Fragment,null,le||h.icon||h.promise?Te.createElement("div",{"data-icon":"",className:cn(null==D?void 0:D.icon,null==(a=null==h?void 0:h.classNames)?void 0:a.icon)},h.promise||"loading"===h.type&&!h.icon?h.icon||(null!=I&&I.loading?Te.createElement("div",{className:cn(null==D?void 0:D.loader,null==(Ae=null==h?void 0:h.classNames)?void 0:Ae.loader,"sonner-loader"),"data-visible":"loading"===le},I.loading):M?Te.createElement("div",{className:cn(null==D?void 0:D.loader,null==(Se=null==h?void 0:h.classNames)?void 0:Se.loader,"sonner-loader"),"data-visible":"loading"===le},M):Te.createElement(Gr,{className:cn(null==D?void 0:D.loader,null==(Oe=null==h?void 0:h.classNames)?void 0:Oe.loader),visible:"loading"===le})):null,"loading"!==h.type?h.icon||(null==I?void 0:I[le])||(e=>{switch(e){case"success":return Qr;case"info":return Jr;case"warning":return Yr;case"error":return Xr;default:return null}})(le):null):null,Te.createElement("div",{"data-content":"",className:cn(null==D?void 0:D.content,null==(i=null==h?void 0:h.classNames)?void 0:i.content)},Te.createElement("div",{"data-title":"",className:cn(null==D?void 0:D.title,null==(l=null==h?void 0:h.classNames)?void 0:l.title)},"function"==typeof h.title?h.title():h.title),h.description?Te.createElement("div",{"data-description":"",className:cn(S,ue,null==D?void 0:D.description,null==(c=null==h?void 0:h.classNames)?void 0:c.description)},"function"==typeof h.description?h.description():h.description):null),Ee.isValidElement(h.cancel)?h.cancel:h.cancel&&on(h.cancel)?Te.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||_,onClick:e=>{var t,r;on(h.cancel)&&ce&&(null==(r=(t=h.cancel).onClick)||r.call(t,e),Ce())},className:cn(null==D?void 0:D.cancelButton,null==(d=null==h?void 0:h.classNames)?void 0:d.cancelButton)},h.cancel.label):null,Ee.isValidElement(h.action)?h.action:h.action&&on(h.action)?Te.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||C,onClick:e=>{var t,r;on(h.action)&&(null==(r=(t=h.action).onClick)||r.call(t,e),!e.defaultPrevented&&Ce())},className:cn(null==D?void 0:D.actionButton,null==(u=null==h?void 0:h.classNames)?void 0:u.actionButton)},h.action.label):null));var Ae,Se,Oe};function un(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}function pn(e,t){let r={};return[e,t].forEach((e,t)=>{let n=1===t,s=n?"--mobile-offset":"--offset",o=n?"16px":"32px";function a(e){["top","right","bottom","left"].forEach(t=>{r[`${s}-${t}`]="number"==typeof e?`${e}px`:e})}"number"==typeof e||"string"==typeof e?a(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?r[`${s}-${t}`]=o:r[`${s}-${t}`]="number"==typeof e[t]?`${e[t]}px`:e[t]}):a(o)}),r}var hn=Ee.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:a,className:i,offset:l,mobileOffset:c,theme:d="light",richColors:u,duration:p,style:h,visibleToasts:f=an,toastOptions:m,dir:g=un(),gap:v=ln,loadingIcon:y,icons:b,containerAriaLabel:w="Notifications",pauseWhenPageIsHidden:x}=e,[j,E]=Te.useState([]),T=Te.useMemo(()=>Array.from(new Set([n].concat(j.filter(e=>e.position).map(e=>e.position)))),[j,n]),[k,_]=Te.useState([]),[C,A]=Te.useState(!1),[S,O]=Te.useState(!1),[P,R]=Te.useState("system"!==d?d:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),M=Te.useRef(null),N=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),D=Te.useRef(null),I=Te.useRef(!1),L=Te.useCallback(e=>{E(t=>{var r;return null!=(r=t.find(t=>t.id===e.id))&&r.delete||tn.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]);return Te.useEffect(()=>tn.subscribe(e=>{e.dismiss?E(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t)):setTimeout(()=>{ke.flushSync(()=>{E(t=>{let r=t.findIndex(t=>t.id===e.id);return-1!==r?[...t.slice(0,r),{...t[r],...e},...t.slice(r+1)]:[e,...t]})})})}),[]),Te.useEffect(()=>{if("system"!==d)return void R(d);if("system"===d&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?R("dark"):R("light")),"undefined"==typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",({matches:e})=>{R(e?"dark":"light")})}catch(t){e.addListener(({matches:e})=>{try{R(e?"dark":"light")}catch(t){}})}},[d]),Te.useEffect(()=>{j.length<=1&&A(!1)},[j]),Te.useEffect(()=>{let e=e=>{var t,r;s.every(t=>e[t]||e.code===t)&&(A(!0),null==(t=M.current)||t.focus()),"Escape"===e.code&&(document.activeElement===M.current||null!=(r=M.current)&&r.contains(document.activeElement))&&A(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s]),Te.useEffect(()=>{if(M.current)return()=>{D.current&&(D.current.focus({preventScroll:!0}),D.current=null,I.current=!1)}},[M.current]),Te.createElement("section",{ref:t,"aria-label":`${w} ${N}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((t,n)=>{var s;let[d,w]=t.split("-");return j.length?Te.createElement("ol",{key:t,dir:"auto"===g?un():g,tabIndex:-1,ref:M,className:i,"data-sonner-toaster":!0,"data-theme":P,"data-y-position":d,"data-lifted":C&&j.length>1&&!o,"data-x-position":w,style:{"--front-toast-height":`${(null==(s=k[0])?void 0:s.height)||0}px`,"--width":"356px","--gap":`${v}px`,...h,...pn(l,c)},onBlur:e=>{I.current&&!e.currentTarget.contains(e.relatedTarget)&&(I.current=!1,D.current&&(D.current.focus({preventScroll:!0}),D.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||I.current||(I.current=!0,D.current=e.relatedTarget)},onMouseEnter:()=>A(!0),onMouseMove:()=>A(!0),onMouseLeave:()=>{S||A(!1)},onDragEnd:()=>A(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||O(!0)},onPointerUp:()=>O(!1)},j.filter(e=>!e.position&&0===n||e.position===t).map((n,s)=>{var i,l;return Te.createElement(dn,{key:n.id,icons:b,index:s,toast:n,defaultRichColors:u,duration:null!=(i=null==m?void 0:m.duration)?i:p,className:null==m?void 0:m.className,descriptionClassName:null==m?void 0:m.descriptionClassName,invert:r,visibleToasts:f,closeButton:null!=(l=null==m?void 0:m.closeButton)?l:a,interacting:S,position:t,style:null==m?void 0:m.style,unstyled:null==m?void 0:m.unstyled,classNames:null==m?void 0:m.classNames,cancelButtonStyle:null==m?void 0:m.cancelButtonStyle,actionButtonStyle:null==m?void 0:m.actionButtonStyle,removeToast:L,toasts:j.filter(e=>e.position==n.position),heights:k.filter(e=>e.position==n.position),setHeights:_,expandByDefault:o,gap:v,loadingIcon:y,expanded:C,pauseWhenPageIsHidden:x,swipeDirections:e.swipeDirections})})):null}))});const fn=({...e})=>{const{theme:t="system"}=null!=(r=Ee.useContext(Kr))?r:Ur;var r;return Z.jsx(hn,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var[mn]=te("Tooltip",[he]),gn=he(),vn="TooltipProvider",yn=700,bn="tooltip.open",[wn,xn]=mn(vn),jn=e=>{const{__scopeTooltip:t,delayDuration:r=yn,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:o}=e,a=Ee.useRef(!0),i=Ee.useRef(!1),l=Ee.useRef(0);return Ee.useEffect(()=>{const e=l.current;return()=>window.clearTimeout(e)},[]),Z.jsx(wn,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:Ee.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:Ee.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:Ee.useCallback(e=>{i.current=e},[]),disableHoverableContent:s,children:o})};jn.displayName=vn;var En="Tooltip",[Tn,kn]=mn(En),_n=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:s,onOpenChange:o,disableHoverableContent:a,delayDuration:i}=e,l=xn(En,e.__scopeTooltip),c=gn(t),[d,u]=Ee.useState(null),p=be(),h=Ee.useRef(0),f=a??l.disableHoverableContent,m=i??l.delayDuration,g=Ee.useRef(!1),[v,y]=oe({prop:n,defaultProp:s??!1,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(bn))):l.onClose(),null==o||o(e)},caller:En}),b=Ee.useMemo(()=>v?g.current?"delayed-open":"instant-open":"closed",[v]),w=Ee.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,y(!0)},[y]),x=Ee.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),j=Ee.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,y(!0),h.current=0},m)},[m,y]);return Ee.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),Z.jsx(we,{...c,children:Z.jsx(Tn,{scope:t,contentId:p,open:v,stateAttribute:b,trigger:d,onTriggerChange:u,onTriggerEnter:Ee.useCallback(()=>{l.isOpenDelayedRef.current?j():w()},[l.isOpenDelayedRef,j,w]),onTriggerLeave:Ee.useCallback(()=>{f?x():(window.clearTimeout(h.current),h.current=0)},[x,f]),onOpen:w,onClose:x,disableHoverableContent:f,children:r})})};_n.displayName=En;var Cn="TooltipTrigger",An=Ee.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=kn(Cn,r),o=xn(Cn,r),a=gn(r),i=Ee.useRef(null),l=ne(t,i,s.onTriggerChange),c=Ee.useRef(!1),d=Ee.useRef(!1),u=Ee.useCallback(()=>c.current=!1,[]);return Ee.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),Z.jsx(ve,{asChild:!0,...a,children:Z.jsx(ee.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:l,onPointerMove:ie(e.onPointerMove,e=>{"touch"!==e.pointerType&&(d.current||o.isPointerInTransitRef.current||(s.onTriggerEnter(),d.current=!0))}),onPointerLeave:ie(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:ie(e.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:ie(e.onFocus,()=>{c.current||s.onOpen()}),onBlur:ie(e.onBlur,s.onClose),onClick:ie(e.onClick,s.onClose)})})});An.displayName=Cn;var[Sn,On]=mn("TooltipPortal",{forceMount:void 0}),Pn="TooltipContent",Rn=Ee.forwardRef((e,t)=>{const r=On(Pn,e.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...o}=e,a=kn(Pn,e.__scopeTooltip);return Z.jsx(ae,{present:n||a.open,children:a.disableHoverableContent?Z.jsx(Ln,{side:s,...o,ref:t}):Z.jsx(Mn,{side:s,...o,ref:t})})}),Mn=Ee.forwardRef((e,t)=>{const r=kn(Pn,e.__scopeTooltip),n=xn(Pn,e.__scopeTooltip),s=Ee.useRef(null),o=ne(t,s),[a,i]=Ee.useState(null),{trigger:l,onClose:c}=r,d=s.current,{onPointerInTransitChange:u}=n,p=Ee.useCallback(()=>{i(null),u(!1)},[u]),h=Ee.useCallback((e,t)=>{const r=e.currentTarget,n={x:e.clientX,y:e.clientY},s=function(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,function(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,s,o)){case o:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}(n,r.getBoundingClientRect())),o=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const t=e[n];for(;r.length>=2;){const e=r[r.length-1],n=r[r.length-2];if(!((e.x-n.x)*(t.y-n.y)>=(e.y-n.y)*(t.x-n.x)))break;r.pop()}r.push(t)}return r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}(t)}([...s,...function(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}(t.getBoundingClientRect())]);i(o),u(!0)},[u]);return Ee.useEffect(()=>()=>p(),[p]),Ee.useEffect(()=>{if(l&&d){const e=e=>h(e,d),t=e=>h(e,l);return l.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}},[l,d,h,p]),Ee.useEffect(()=>{if(a){const e=e=>{const t=e.target,r={x:e.clientX,y:e.clientY},n=(null==l?void 0:l.contains(t))||(null==d?void 0:d.contains(t)),s=!function(e,t){const{x:r,y:n}=e;let s=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const e=t[o],i=t[a],l=e.x,c=e.y,d=i.x,u=i.y;c>n!=u>n&&r<(d-l)*(n-c)/(u-c)+l&&(s=!s)}return s}(r,a);n?p():s&&(p(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,d,a,c,p]),Z.jsx(Ln,{...e,ref:o})}),[Nn,Dn]=mn(En,{isInside:!1}),In=ge("TooltipContent"),Ln=Ee.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:a,...i}=e,l=kn(Pn,r),c=gn(r),{onClose:d}=l;return Ee.useEffect(()=>(document.addEventListener(bn,d),()=>document.removeEventListener(bn,d)),[d]),Ee.useEffect(()=>{if(l.trigger){const e=e=>{const t=e.target;(null==t?void 0:t.contains(l.trigger))&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,d]),Z.jsx(fe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:Z.jsxs(me,{"data-state":l.stateAttribute,...c,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[Z.jsx(In,{children:n}),Z.jsx(Nn,{scope:r,isInside:!0,children:Z.jsx(Xe,{id:l.contentId,role:"tooltip",children:s||n})})]})})});Rn.displayName=Pn;var $n="TooltipArrow";Ee.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=gn(r);return Dn($n,r).isInside?null:Z.jsx(ye,{...s,...n,ref:t})}).displayName=$n;var Fn=Rn;const zn=jn,qn=_n,Bn=An,Hn=Ee.forwardRef(({className:e,sideOffset:t=4,...r},n)=>Z.jsx(Fn,{ref:n,sideOffset:t,className:Dr("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));Hn.displayName=Fn.displayName;var Vn=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(){}},Kn="undefined"==typeof window||"Deno"in globalThis;function Un(){}function Wn(e){return"number"==typeof e&&e>=0&&e!==1/0}function Gn(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Qn(e,t){return"function"==typeof e?e(t):e}function Yn(e,t){return"function"==typeof e?e(t):e}function Jn(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:o,queryKey:a,stale:i}=e;if(a)if(n){if(t.queryHash!==Zn(a,t.options))return!1}else if(!ts(t.queryKey,a))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof i||t.isStale()===i)&&((!s||s===t.state.fetchStatus)&&!(o&&!o(t)))}function Xn(e,t){const{exact:r,status:n,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(es(t.options.mutationKey)!==es(o))return!1}else if(!ts(t.options.mutationKey,o))return!1}return(!n||t.state.status===n)&&!(s&&!s(t))}function Zn(e,t){return((null==t?void 0:t.queryKeyHashFn)||es)(e)}function es(e){return JSON.stringify(e,(e,t)=>os(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function ts(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>ts(e[r],t[r])))}function rs(e,t){if(e===t)return e;const r=ss(e)&&ss(t);if(r||os(e)&&os(t)){const n=r?e:Object.keys(e),s=n.length,o=r?t:Object.keys(t),a=o.length,i=r?[]:{},l=new Set(n);let c=0;for(let d=0;d<a;d++){const n=r?d:o[d];(!r&&l.has(n)||r)&&void 0===e[n]&&void 0===t[n]?(i[n]=void 0,c++):(i[n]=rs(e[n],t[n]),i[n]===e[n]&&void 0!==e[n]&&c++)}return s===a&&c===s?e:i}return t}function ns(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function ss(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function os(e){if(!as(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!as(r)&&(!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function as(e){return"[object Object]"===Object.prototype.toString.call(e)}function is(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?rs(e,t):t}function ls(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function cs(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var ds=Symbol();function us(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==ds?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function ps(e,t){return"function"==typeof e?e(...t):!!e}var hs=new(n=class extends Vn{constructor(){super(),Q(this,e),Q(this,t),Q(this,r),Y(this,r,e=>{if(!Kn&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){G(this,t)||this.setEventListener(G(this,r))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=G(this,t))||e.call(this),Y(this,t,void 0))}setEventListener(e){var n;Y(this,r,e),null==(n=G(this,t))||n.call(this),Y(this,t,e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(t){G(this,e)!==t&&(Y(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var t;return"boolean"==typeof G(this,e)?G(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,r=new WeakMap,n),fs=new(i=class extends Vn{constructor(){super(),Q(this,s,!0),Q(this,o),Q(this,a),Y(this,a,e=>{if(!Kn&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}})}onSubscribe(){G(this,o)||this.setEventListener(G(this,a))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=G(this,o))||e.call(this),Y(this,o,void 0))}setEventListener(e){var t;Y(this,a,e),null==(t=G(this,o))||t.call(this),Y(this,o,e(this.setOnline.bind(this)))}setOnline(e){G(this,s)!==e&&(Y(this,s,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return G(this,s)}},s=new WeakMap,o=new WeakMap,a=new WeakMap,i);function ms(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}function gs(e){return Math.min(1e3*2**e,3e4)}function vs(e){return"online"!==(e??"online")||fs.isOnline()}var ys=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function bs(e){return e instanceof ys}function ws(e){let t,r=!1,n=0,s=!1;const o=ms(),a=()=>hs.isFocused()&&("always"===e.networkMode||fs.isOnline())&&e.canRun(),i=()=>vs(e.networkMode)&&e.canRun(),l=r=>{var n;s||(s=!0,null==(n=e.onSuccess)||n.call(e,r),null==t||t(),o.resolve(r))},c=r=>{var n;s||(s=!0,null==(n=e.onError)||n.call(e,r),null==t||t(),o.reject(r))},d=()=>new Promise(r=>{var n;t=e=>{(s||a())&&r(e)},null==(n=e.onPause)||n.call(e)}).then(()=>{var r;t=void 0,s||null==(r=e.onContinue)||r.call(e)}),u=()=>{if(s)return;let t;const o=0===n?e.initialPromise:void 0;try{t=o??e.fn()}catch(i){t=Promise.reject(i)}Promise.resolve(t).then(l).catch(t=>{var o;if(s)return;const i=e.retry??(Kn?0:3),l=e.retryDelay??gs,p="function"==typeof l?l(n,t):l,h=!0===i||"number"==typeof i&&n<i||"function"==typeof i&&i(n,t);var f;!r&&h?(n++,null==(o=e.onFail)||o.call(e,n,t),(f=p,new Promise(e=>{setTimeout(e,f)})).then(()=>a()?void 0:d()).then(()=>{r?c(t):u()})):c(t)})};return{promise:o,cancel:t=>{var r;s||(c(new ys(t)),null==(r=e.abort)||r.call(e))},continue:()=>(null==t||t(),o),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:i,start:()=>(i()?u():d().then(u),o)}}var xs=e=>setTimeout(e,0);var js=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},s=xs;const o=n=>{t?e.push(n):s(()=>{r(n)})};return{batch:o=>{let a;t++;try{a=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&s(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return a},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{s=e}}}(),Es=(c=class{constructor(){Q(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wn(this.gcTime)&&Y(this,l,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Kn?1/0:3e5))}clearGcTimeout(){G(this,l)&&(clearTimeout(G(this,l)),Y(this,l,void 0))}},l=new WeakMap,c),Ts=(b=class extends Es{constructor(e){super(),Q(this,v),Q(this,d),Q(this,u),Q(this,p),Q(this,h),Q(this,f),Q(this,m),Q(this,g),Y(this,g,!1),Y(this,m,e.defaultOptions),this.setOptions(e.options),this.observers=[],Y(this,h,e.client),Y(this,p,G(this,h).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Y(this,d,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=e.state??G(this,d),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=G(this,f))?void 0:e.promise}setOptions(e){this.options={...G(this,m),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||G(this,p).remove(this)}setData(e,t){const r=is(this.state.data,e,this.options);return J(this,v,y).call(this,{data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){J(this,v,y).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,r;const n=null==(t=G(this,f))?void 0:t.promise;return null==(r=G(this,f))||r.cancel(e),n?n.then(Un).catch(Un):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(G(this,d))}isActive(){return this.observers.some(e=>!1!==Yn(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ds||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Qn(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Gn(this.state.dataUpdatedAt,e))}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());null==t||t.refetch({cancelRefetch:!1}),null==(e=G(this,f))||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());null==t||t.refetch({cancelRefetch:!1}),null==(e=G(this,f))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),G(this,p).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(G(this,f)&&(G(this,g)?G(this,f).cancel({revert:!0}):G(this,f).cancelRetry()),this.scheduleGc()),G(this,p).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||J(this,v,y).call(this,{type:"invalidate"})}fetch(e,t){var r,n,s;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(G(this,f))return G(this,f).continueRetry(),G(this,f).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const o=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(Y(this,g,!0),o.signal)})},i=()=>{const e=us(this.options,t),r=(()=>{const e={client:G(this,h),queryKey:this.queryKey,meta:this.meta};return a(e),e})();return Y(this,g,!1),this.options.persister?this.options.persister(e,r,this):e(r)},l=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:G(this,h),state:this.state,fetchFn:i};return a(e),e})();null==(r=this.options.behavior)||r.onFetch(l,this),Y(this,u,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(n=l.fetchOptions)?void 0:n.meta)||J(this,v,y).call(this,{type:"fetch",meta:null==(s=l.fetchOptions)?void 0:s.meta});const c=e=>{var t,r,n,s;bs(e)&&e.silent||J(this,v,y).call(this,{type:"error",error:e}),bs(e)||(null==(r=(t=G(this,p).config).onError)||r.call(t,e,this),null==(s=(n=G(this,p).config).onSettled)||s.call(n,this.state.data,e,this)),this.scheduleGc()};return Y(this,f,ws({initialPromise:null==t?void 0:t.initialPromise,fn:l.fetchFn,abort:o.abort.bind(o),onSuccess:e=>{var t,r,n,s;if(void 0!==e){try{this.setData(e)}catch(o){return void c(o)}null==(r=(t=G(this,p).config).onSuccess)||r.call(t,e,this),null==(s=(n=G(this,p).config).onSettled)||s.call(n,e,this.state.error,this),this.scheduleGc()}else c(new Error(`${this.queryHash} data is undefined`))},onError:c,onFail:(e,t)=>{J(this,v,y).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{J(this,v,y).call(this,{type:"pause"})},onContinue:()=>{J(this,v,y).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),G(this,f).start()}},d=new WeakMap,u=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,m=new WeakMap,g=new WeakMap,v=new WeakSet,y=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...ks(t.data,this.options),fetchMeta:e.meta??null};case"success":return Y(this,u,void 0),{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return bs(r)&&r.revert&&G(this,u)?{...G(this,u),fetchStatus:"idle"}:{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),js.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),G(this,p).notify({query:this,type:"updated",action:e})})},b);function ks(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vs(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var _s=(x=class extends Vn{constructor(e={}){super(),Q(this,w),this.config=e,Y(this,w,new Map)}build(e,t,r){const n=t.queryKey,s=t.queryHash??Zn(n,t);let o=this.get(s);return o||(o=new Ts({client:e,queryKey:n,queryHash:s,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(o)),o}add(e){G(this,w).has(e.queryHash)||(G(this,w).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=G(this,w).get(e.queryHash);t&&(e.destroy(),t===e&&G(this,w).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){js.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return G(this,w).get(e)}getAll(){return[...G(this,w).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Jn(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Jn(e,t)):t}notify(e){js.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){js.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){js.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},w=new WeakMap,x),Cs=(C=class extends Es{constructor(e){super(),Q(this,k),Q(this,j),Q(this,E),Q(this,T),this.mutationId=e.mutationId,Y(this,E,e.mutationCache),Y(this,j,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){G(this,j).includes(e)||(G(this,j).push(e),this.clearGcTimeout(),G(this,E).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Y(this,j,G(this,j).filter(t=>t!==e)),this.scheduleGc(),G(this,E).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){G(this,j).length||("pending"===this.state.status?this.scheduleGc():G(this,E).remove(this))}continue(){var e;return(null==(e=G(this,T))?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,r,n,s,o,a,i,l,c,d,u,p,h,f,m,g,v,y,b,w;const x=()=>{J(this,k,_).call(this,{type:"continue"})};Y(this,T,ws({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{J(this,k,_).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{J(this,k,_).call(this,{type:"pause"})},onContinue:x,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>G(this,E).canRun(this)}));const j="pending"===this.state.status,C=!G(this,T).canStart();try{if(j)x();else{J(this,k,_).call(this,{type:"pending",variables:e,isPaused:C}),await(null==(r=(t=G(this,E).config).onMutate)?void 0:r.call(t,e,this));const o=await(null==(s=(n=this.options).onMutate)?void 0:s.call(n,e));o!==this.state.context&&J(this,k,_).call(this,{type:"pending",context:o,variables:e,isPaused:C})}const h=await G(this,T).start();return await(null==(a=(o=G(this,E).config).onSuccess)?void 0:a.call(o,h,e,this.state.context,this)),await(null==(l=(i=this.options).onSuccess)?void 0:l.call(i,h,e,this.state.context)),await(null==(d=(c=G(this,E).config).onSettled)?void 0:d.call(c,h,null,this.state.variables,this.state.context,this)),await(null==(p=(u=this.options).onSettled)?void 0:p.call(u,h,null,e,this.state.context)),J(this,k,_).call(this,{type:"success",data:h}),h}catch(A){try{throw await(null==(f=(h=G(this,E).config).onError)?void 0:f.call(h,A,e,this.state.context,this)),await(null==(g=(m=this.options).onError)?void 0:g.call(m,A,e,this.state.context)),await(null==(y=(v=G(this,E).config).onSettled)?void 0:y.call(v,void 0,A,this.state.variables,this.state.context,this)),await(null==(w=(b=this.options).onSettled)?void 0:w.call(b,void 0,A,e,this.state.context)),A}finally{J(this,k,_).call(this,{type:"error",error:A})}}finally{G(this,E).runNext(this)}}},j=new WeakMap,E=new WeakMap,T=new WeakMap,k=new WeakSet,_=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),js.batch(()=>{G(this,j).forEach(t=>{t.onMutationUpdate(e)}),G(this,E).notify({mutation:this,type:"updated",action:e})})},C);function As(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ss=(P=class extends Vn{constructor(e={}){super(),Q(this,A),Q(this,S),Q(this,O),this.config=e,Y(this,A,new Set),Y(this,S,new Map),Y(this,O,0)}build(e,t,r){const n=new Cs({mutationCache:this,mutationId:++X(this,O)._,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){G(this,A).add(e);const t=Os(e);if("string"==typeof t){const r=G(this,S).get(t);r?r.push(e):G(this,S).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(G(this,A).delete(e)){const t=Os(e);if("string"==typeof t){const r=G(this,S).get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&G(this,S).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Os(e);if("string"==typeof t){const r=G(this,S).get(t),n=null==r?void 0:r.find(e=>"pending"===e.state.status);return!n||n===e}return!0}runNext(e){var t;const r=Os(e);if("string"==typeof r){const n=null==(t=G(this,S).get(r))?void 0:t.find(t=>t!==e&&t.state.isPaused);return(null==n?void 0:n.continue())??Promise.resolve()}return Promise.resolve()}clear(){js.batch(()=>{G(this,A).forEach(e=>{this.notify({type:"removed",mutation:e})}),G(this,A).clear(),G(this,S).clear()})}getAll(){return Array.from(G(this,A))}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Xn(t,e))}findAll(e={}){return this.getAll().filter(t=>Xn(e,t))}notify(e){js.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return js.batch(()=>Promise.all(e.map(e=>e.continue().catch(Un))))}},A=new WeakMap,S=new WeakMap,O=new WeakMap,P);function Os(e){var t;return null==(t=e.options.scope)?void 0:t.id}function Ps(e){return{onFetch:(t,r)=>{var n,s,o,a,i;const l=t.options,c=null==(o=null==(s=null==(n=t.fetchOptions)?void 0:n.meta)?void 0:s.fetchMore)?void 0:o.direction,d=(null==(a=t.state.data)?void 0:a.pages)||[],u=(null==(i=t.state.data)?void 0:i.pageParams)||[];let p={pages:[],pageParams:[]},h=0;const f=async()=>{let r=!1;const n=us(t.options,t.fetchOptions),s=async(e,s,o)=>{if(r)return Promise.reject();if(null==s&&e.pages.length)return Promise.resolve(e);const a=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:s,direction:o?"backward":"forward",meta:t.options.meta};var n;return n=e,Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",()=>{r=!0}),t.signal)}),e})(),i=await n(a),{maxPages:l}=t.options,c=o?cs:ls;return{pages:c(e.pages,i,l),pageParams:c(e.pageParams,s,l)}};if(c&&d.length){const e="backward"===c,t={pages:d,pageParams:u},r=(e?Ms:Rs)(l,t);p=await s(t,r,e)}else{const t=e??d.length;do{const e=0===h?u[0]??l.initialPageParam:Rs(l,p);if(h>0&&null==e)break;p=await s(p,e),h++}while(h<t)}return p};t.options.persister?t.fetchFn=()=>{var e,n;return null==(n=(e=t.options).persister)?void 0:n.call(e,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=f}}}function Rs(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Ms(e,{pages:t,pageParams:r}){var n;return t.length>0?null==(n=e.getPreviousPageParam)?void 0:n.call(e,t[0],t,r[0],r):void 0}var Ns=(z=class{constructor(e={}){Q(this,R),Q(this,M),Q(this,N),Q(this,D),Q(this,I),Q(this,L),Q(this,$),Q(this,F),Y(this,R,e.queryCache||new _s),Y(this,M,e.mutationCache||new Ss),Y(this,N,e.defaultOptions||{}),Y(this,D,new Map),Y(this,I,new Map),Y(this,L,0)}mount(){X(this,L)._++,1===G(this,L)&&(Y(this,$,hs.subscribe(async e=>{e&&(await this.resumePausedMutations(),G(this,R).onFocus())})),Y(this,F,fs.subscribe(async e=>{e&&(await this.resumePausedMutations(),G(this,R).onOnline())})))}unmount(){var e,t;X(this,L)._--,0===G(this,L)&&(null==(e=G(this,$))||e.call(this),Y(this,$,void 0),null==(t=G(this,F))||t.call(this),Y(this,F,void 0))}isFetching(e){return G(this,R).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return G(this,M).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const r=this.defaultQueryOptions({queryKey:e});return null==(t=G(this,R).get(r.queryHash))?void 0:t.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=G(this,R).build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Qn(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return G(this,R).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=G(this,R).get(n.queryHash),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==s?void 0:s.state.data);if(void 0!==o)return G(this,R).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return js.batch(()=>G(this,R).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){var t;const r=this.defaultQueryOptions({queryKey:e});return null==(t=G(this,R).get(r.queryHash))?void 0:t.state}removeQueries(e){const t=G(this,R);js.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=G(this,R);return js.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=js.batch(()=>G(this,R).findAll(e).map(e=>e.cancel(r)));return Promise.all(n).then(Un).catch(Un)}invalidateQueries(e,t={}){return js.batch(()=>(G(this,R).findAll(e).forEach(e=>{e.invalidate()}),"none"===(null==e?void 0:e.refetchType)?Promise.resolve():this.refetchQueries({...e,type:(null==e?void 0:e.refetchType)??(null==e?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=js.batch(()=>G(this,R).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(Un)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(n).then(Un)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=G(this,R).build(this,t);return r.isStaleByTime(Qn(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Un).catch(Un)}fetchInfiniteQuery(e){return e.behavior=Ps(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Un).catch(Un)}ensureInfiniteQueryData(e){return e.behavior=Ps(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fs.isOnline()?G(this,M).resumePausedMutations():Promise.resolve()}getQueryCache(){return G(this,R)}getMutationCache(){return G(this,M)}getDefaultOptions(){return G(this,N)}setDefaultOptions(e){Y(this,N,e)}setQueryDefaults(e,t){G(this,D).set(es(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...G(this,D).values()],r={};return t.forEach(t=>{ts(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){G(this,I).set(es(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...G(this,I).values()],r={};return t.forEach(t=>{ts(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...G(this,N).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Zn(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ds&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...G(this,N).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){G(this,R).clear(),G(this,M).clear()}},R=new WeakMap,M=new WeakMap,N=new WeakMap,D=new WeakMap,I=new WeakMap,L=new WeakMap,$=new WeakMap,F=new WeakMap,z),Ds=Ee.createContext(void 0),Is=e=>{const t=Ee.useContext(Ds);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ls=({client:e,children:t})=>(Ee.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Z.jsx(Ds.Provider,{value:e,children:t})),$s="undefined"!=typeof Element,Fs="function"==typeof Map,zs="function"==typeof Set,qs="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Bs(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var r,n,s,o;if(Array.isArray(e)){if((r=e.length)!=t.length)return!1;for(n=r;0!==n--;)if(!Bs(e[n],t[n]))return!1;return!0}if(Fs&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!Bs(n.value[1],t.get(n.value[0])))return!1;return!0}if(zs&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(qs&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((r=e.length)!=t.length)return!1;for(n=r;0!==n--;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((r=(s=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;if($s&&e instanceof Element)return!1;for(n=r;0!==n--;)if(("_owner"!==s[n]&&"__v"!==s[n]&&"__o"!==s[n]||!e.$$typeof)&&!Bs(e[s[n]],t[s[n]]))return!1;return!0}return e!=e&&t!=t}const Hs=_e(function(e,t){try{return Bs(e,t)}catch(r){if((r.message||"").match(/stack|recursion/i))return!1;throw r}});const Vs=_e(function(e,t,r,n,s,o,a,i){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,s,o,a,i],d=0;(l=new Error(t.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}});const Ks=_e(function(e,t,r,n){var s=r?r.call(n,e,t):void 0;if(void 0!==s)return!!s;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!i(c))return!1;var d=e[c],u=t[c];if(!1===(s=r?r.call(n,d,u,c):void 0)||void 0===s&&d!==u)return!1}return!0});var Us=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Us||{}),Ws={rel:["amphtml","canonical","alternate"]},Gs={type:["application/ld+json"]},Qs={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},Ys=Object.values(Us),Js={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Xs=Object.entries(Js).reduce((e,[t,r])=>(e[r]=t,e),{}),Zs="data-rh",eo="defaultTitle",to="defer",ro="encodeSpecialCharacters",no="onChangeClientState",so="titleTemplate",oo="prioritizeSeoTags",ao=(e,t)=>{for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},io=e=>{let t=ao(e,"title");const r=ao(e,so);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const n=ao(e,eo);return t||n||void 0},lo=e=>ao(e,no)||(()=>{}),co=(e,t)=>t.filter(t=>void 0!==t[e]).map(t=>t[e]).reduce((e,t)=>({...e,...t}),{}),uo=(e,t)=>t.filter(e=>void 0!==e.base).map(e=>e.base).reverse().reduce((t,r)=>{if(!t.length){const n=Object.keys(r);for(let s=0;s<n.length;s+=1){const o=n[s].toLowerCase();if(-1!==e.indexOf(o)&&r[o])return t.concat(r)}}return t},[]),po=(e,t,r)=>{const n={};return r.filter(t=>!!Array.isArray(t[e])||(void 0!==t[e]&&(t[e],console&&console.warn),!1)).map(t=>t[e]).reverse().reduce((e,r)=>{const s={};r.filter(e=>{let r;const o=Object.keys(e);for(let n=0;n<o.length;n+=1){const s=o[n],a=s.toLowerCase();-1===t.indexOf(a)||"rel"===r&&"canonical"===e[r].toLowerCase()||"rel"===a&&"stylesheet"===e[a].toLowerCase()||(r=a),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(r=s)}if(!r||!e[r])return!1;const a=e[r].toLowerCase();return n[r]||(n[r]={}),s[r]||(s[r]={}),!n[r][a]&&(s[r][a]=!0,!0)}).reverse().forEach(t=>e.push(t));const o=Object.keys(s);for(let t=0;t<o.length;t+=1){const e=o[t],r={...n[e],...s[e]};n[e]=r}return e},[]).reverse()},ho=(e,t)=>{if(Array.isArray(e)&&e.length)for(let r=0;r<e.length;r+=1){if(e[r][t])return!0}return!1},fo=e=>Array.isArray(e)?e.join(""):e,mo=(e,t)=>Array.isArray(e)?e.reduce((e,r)=>(((e,t)=>{const r=Object.keys(e);for(let n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1})(r,t)?e.priority.push(r):e.default.push(r),e),{priority:[],default:[]}):{default:e,priority:[]},go=(e,t)=>({...e,[t]:void 0}),vo=["noscript","script","style"],yo=(e,t=!0)=>!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),bo=e=>Object.keys(e).reduce((t,r)=>{const n=void 0!==e[r]?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${n}`:n},""),wo=(e,t={})=>Object.keys(e).reduce((t,r)=>(t[Js[r]||r]=e[r],t),t),xo=(e,t)=>t.map((t,r)=>{const n={key:r,[Zs]:!0};return Object.keys(t).forEach(e=>{const r=Js[e]||e;if("innerHTML"===r||"cssText"===r){const e=t.innerHTML||t.cssText;n.dangerouslySetInnerHTML={__html:e}}else n[r]=t[e]}),Te.createElement(e,n)}),jo=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>((e,t,r)=>{const n=wo(r,{key:t,[Zs]:!0});return[Te.createElement("title",n,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,r,n)=>{const s=bo(r),o=fo(t);return s?`<${e} ${Zs}="true" ${s}>${yo(o,n)}</${e}>`:`<${e} ${Zs}="true">${yo(o,n)}</${e}>`})(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>wo(t),toString:()=>bo(t)};default:return{toComponent:()=>xo(e,t),toString:()=>((e,t,r=!0)=>t.reduce((t,n)=>{const s=n,o=Object.keys(s).filter(e=>!("innerHTML"===e||"cssText"===e)).reduce((e,t)=>{const n=void 0===s[t]?t:`${t}="${yo(s[t],r)}"`;return e?`${e} ${n}`:n},""),a=s.innerHTML||s.cssText||"",i=-1===vo.indexOf(e);return`${t}<${e} ${Zs}="true" ${o}${i?"/>":`>${a}</${e}>`}`},""))(e,t,r)}}},Eo=e=>{const{baseTag:t,bodyAttributes:r,encode:n=!0,htmlAttributes:s,noscriptTags:o,styleTags:a,title:i="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:d,metaTags:u,scriptTags:p}=e,h={toComponent:()=>[],toString:()=>""};return c&&({priorityMethods:h,linkTags:d,metaTags:u,scriptTags:p}=(({metaTags:e,linkTags:t,scriptTags:r,encode:n})=>{const s=mo(e,Qs),o=mo(t,Ws),a=mo(r,Gs);return{priorityMethods:{toComponent:()=>[...xo("meta",s.priority),...xo("link",o.priority),...xo("script",a.priority)],toString:()=>`${jo("meta",s.priority,n)} ${jo("link",o.priority,n)} ${jo("script",a.priority,n)}`},metaTags:s.default,linkTags:o.default,scriptTags:a.default}})(e)),{priority:h,base:jo("base",t,n),bodyAttributes:jo("bodyAttributes",r,n),htmlAttributes:jo("htmlAttributes",s,n),link:jo("link",d,n),meta:jo("meta",u,n),noscript:jo("noscript",o,n),script:jo("script",p,n),style:jo("style",a,n),title:jo("title",{title:i,titleAttributes:l},n)}},To=[],ko=!("undefined"==typeof window||!window.document||!window.document.createElement),_o=class{constructor(e,t){U(this,"instances",[]),U(this,"canUseDOM",ko),U(this,"context"),U(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?To:this.instances,add:e=>{(this.canUseDOM?To:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?To:this.instances).indexOf(e);(this.canUseDOM?To:this.instances).splice(t,1)}}}),this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Eo({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Co=parseInt(Te.version.split(".")[0],10)>=19,Ao=Te.createContext({}),So=(q=class extends Ee.Component{constructor(e){super(e),U(this,"helmetData"),this.helmetData=Co?null:new _o(this.props.context||{},q.canUseDOM)}render(){return Co?Te.createElement(Te.Fragment,null,this.props.children):Te.createElement(Ao.Provider,{value:this.helmetData.value},this.props.children)}},U(q,"canUseDOM",ko),q),Oo=(e,t)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${e}[${Zs}]`),s=[].slice.call(n),o=[];let a;return t&&t.length&&t.forEach(t=>{const r=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)r.innerHTML=t.innerHTML;else if("cssText"===e){const e=t.cssText;r.appendChild(document.createTextNode(e))}else{const n=e,s=void 0===t[n]?"":t[n];r.setAttribute(e,s)}r.setAttribute(Zs,"true"),s.some((e,t)=>(a=t,r.isEqualNode(e)))?s.splice(a,1):o.push(r)}),s.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),o.forEach(e=>r.appendChild(e)),{oldTags:s,newTags:o}},Po=(e,t)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const n=r.getAttribute(Zs),s=n?n.split(","):[],o=[...s],a=Object.keys(t);for(const i of a){const e=t[i]||"";r.getAttribute(i)!==e&&r.setAttribute(i,e),-1===s.indexOf(i)&&s.push(i);const n=o.indexOf(i);-1!==n&&o.splice(n,1)}for(let i=o.length-1;i>=0;i-=1)r.removeAttribute(o[i]);s.length===o.length?r.removeAttribute(Zs):r.getAttribute(Zs)!==a.join(",")&&r.setAttribute(Zs,a.join(","))},Ro=(e,t)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:s,linkTags:o,metaTags:a,noscriptTags:i,onChangeClientState:l,scriptTags:c,styleTags:d,title:u,titleAttributes:p}=e;Po("body",n),Po("html",s),((e,t)=>{void 0!==e&&document.title!==e&&(document.title=fo(e)),Po("title",t)})(u,p);const h={baseTag:Oo("base",r),linkTags:Oo("link",o),metaTags:Oo("meta",a),noscriptTags:Oo("noscript",i),scriptTags:Oo("script",c),styleTags:Oo("style",d)},f={},m={};Object.keys(h).forEach(e=>{const{newTags:t,oldTags:r}=h[e];t.length&&(f[e]=t),r.length&&(m[e]=h[e].oldTags)}),t&&t(),l(e,f,m)},Mo=null,No=e=>{Mo&&cancelAnimationFrame(Mo),e.defer?Mo=requestAnimationFrame(()=>{Ro(e,()=>{Mo=null})}):(Ro(e),Mo=null)},Do=class extends Ee.Component{constructor(){super(...arguments),U(this,"rendered",!1)}shouldComponentUpdate(e){return!Ks(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let r=null;const n=(s=e.get().map(e=>{const{context:t,...r}=e.props;return r}),{baseTag:uo(["href"],s),bodyAttributes:co("bodyAttributes",s),defer:ao(s,to),encode:ao(s,ro),htmlAttributes:co("htmlAttributes",s),linkTags:po("link",["rel","href"],s),metaTags:po("meta",["name","charset","http-equiv","property","itemprop"],s),noscriptTags:po("noscript",["innerHTML"],s),onChangeClientState:lo(s),scriptTags:po("script",["src","innerHTML"],s),styleTags:po("style",["cssText"],s),title:io(s),titleAttributes:co("titleAttributes",s),prioritizeSeoTags:ho(s,oo)});var s;So.canUseDOM?No(n):Eo&&(r=Eo(n)),t(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},Io=[],Lo=e=>{const t={};for(const r of Object.keys(e))t[Xs[r]||r]=e[r];return t},$o=e=>{const t={};for(const r of Object.keys(e)){t[Js[r]||r]=e[r]}return t},Fo=(e,t)=>{if(!ko)return;const r=document.getElementsByTagName(e)[0];if(!r)return;const n="data-rh-managed",s=r.getAttribute(n),o=s?s.split(","):[],a=Object.keys(t);for(const i of o)a.includes(i)||r.removeAttribute(i);for(const i of a){const e=t[i];null==e||!1===e?r.removeAttribute(i):!0===e?r.setAttribute(i,""):r.setAttribute(i,String(e))}a.length>0?r.setAttribute(n,a.join(",")):r.removeAttribute(n)},zo=()=>{const e={},t={};for(const r of Io){const{htmlAttributes:n,bodyAttributes:s}=r.props;n&&Object.assign(e,Lo(n)),s&&Object.assign(t,Lo(s))}Fo("html",e),Fo("body",t)},qo=class extends Ee.Component{componentDidMount(){Io.push(this),zo()}componentDidUpdate(){zo()}componentWillUnmount(){const e=Io.indexOf(this);-1!==e&&Io.splice(e,1),zo()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:r}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||r||void 0}renderTitle(){const e=this.resolveTitle();if(void 0===e)return null;const t=this.props.titleAttributes||{};return Te.createElement("title",$o(t),e)}renderBase(){const{base:e}=this.props;return e?Te.createElement("base",$o(e)):null}renderMeta(){const{meta:e}=this.props;return e&&Array.isArray(e)?e.map((e,t)=>Te.createElement("meta",{key:t,...$o(e)})):null}renderLink(){const{link:e}=this.props;return e&&Array.isArray(e)?e.map((e,t)=>Te.createElement("link",{key:t,...$o(e)})):null}renderScript(){const{script:e}=this.props;return e&&Array.isArray(e)?e.map((e,t)=>{const{innerHTML:r,...n}=e,s=$o(n);return r&&(s.dangerouslySetInnerHTML={__html:r}),Te.createElement("script",{key:t,...s})}):null}renderStyle(){const{style:e}=this.props;return e&&Array.isArray(e)?e.map((e,t)=>{const{cssText:r,...n}=e,s=$o(n);return r&&(s.dangerouslySetInnerHTML={__html:r}),Te.createElement("style",{key:t,...s})}):null}renderNoscript(){const{noscript:e}=this.props;return e&&Array.isArray(e)?e.map((e,t)=>{const{innerHTML:r,...n}=e,s=$o(n);return r&&(s.dangerouslySetInnerHTML={__html:r}),Te.createElement("noscript",{key:t,...s})}):null}render(){return Te.createElement(Te.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Bo=(B=class extends Ee.Component{shouldComponentUpdate(e){return!Hs(go(this.props,"helmetData"),go(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,r,n){return{...t,[e.type]:[...t[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,n)}]}}mapObjectTypeChildren(e,t,r,n){switch(e.type){case"title":return{...t,[e.type]:n,titleAttributes:{...r}};case"body":return{...t,bodyAttributes:{...r}};case"html":return{...t,htmlAttributes:{...r}};default:return{...t,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,t){let r={...t};return Object.keys(e).forEach(t=>{r={...r,[t]:e[t]}}),r}warnOnInvalidChildren(e,t){return Vs(Ys.some(t=>e.type===t),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Ys.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Vs(!t||"string"==typeof t||Array.isArray(t)&&!t.some(e=>"string"!=typeof e),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let r={};return Te.Children.forEach(e,e=>{if(!e||!e.props)return;const{children:n,...s}=e.props,o=Object.keys(s).reduce((e,t)=>(e[Xs[t]||t]=s[t],e),{});let{type:a}=e;switch("symbol"==typeof a?a=a.toString():this.warnOnInvalidChildren(e,n),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(n,t);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(e,r,o,n);break;default:t=this.mapObjectTypeChildren(e,t,o,n)}}),this.mapArrayTypeChildrenToProps(r,t)}render(){const{children:e,...t}=this.props;let r={...t},{helmetData:n}=t;if(e&&(r=this.mapChildrenToProps(e,r)),n&&!(n instanceof _o)){n=new _o(n.context,!0),delete r.helmetData}return Co?Te.createElement(qo,{...r}):n?Te.createElement(Do,{...r,context:n.value}):Te.createElement(Ao.Consumer,null,e=>Te.createElement(Do,{...r,context:e}))}},U(B,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),B);const Ho=Le("https://qvpcywkodgmweqaqnjuw.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InF2cGN5d2tvZGdtd2VxYXFuanV3Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjM0NjIzMjUsImV4cCI6MjA3OTAzODMyNX0.-pi5rBCEZAgQOAfQ4Q_ymmxE0jJkL5y7kAFJKf4rpBM",{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),Vo=Ee.createContext(void 0),Ko=({children:e})=>{const[t,r]=Ee.useState(null),[n,s]=Ee.useState(null),[o,a]=Ee.useState(!1),[i,l]=Ee.useState(!0),[c,d]=Ee.useState(!1);Ee.useEffect(()=>{const{data:{subscription:e}}=Ho.auth.onAuthStateChange((e,t)=>{s(t),r((null==t?void 0:t.user)??null),(null==t?void 0:t.user)?(d(!0),setTimeout(()=>{u(t.user.id)},0)):(a(!1),d(!1))});return Ho.auth.getSession().then(({data:{session:e}})=>{s(e),r((null==e?void 0:e.user)??null),(null==e?void 0:e.user)?(d(!0),setTimeout(()=>{u(e.user.id)},0)):d(!1),l(!1)}),()=>e.unsubscribe()},[]);const u=async e=>{try{const{data:t,error:r}=await Ho.from("user_roles").select("role").eq("user_id",e).eq("role","admin").maybeSingle();if(r)return a(!1),void d(!1);a(!!t),d(!1)}catch(t){a(!1),d(!1)}};return Z.jsx(Vo.Provider,{value:{user:t,session:n,isAdmin:o,isLoading:i,isCheckingAdmin:c,signIn:async(e,t)=>{const{error:r}=await Ho.auth.signInWithPassword({email:e,password:t});return{error:r}},signUp:async(e,t,r)=>{const n=`${window.location.origin}/`,{error:s}=await Ho.auth.signUp({email:e,password:t,options:{emailRedirectTo:n,data:{full_name:r}}});return{error:s}},signOut:async()=>{await Ho.auth.signOut(),a(!1),d(!1)}},children:e})},Uo=()=>{const e=Ee.useContext(Vo);if(void 0===e)throw new Error("useAuth must be used within an AuthProvider");return e},Wo=({children:e,requireAdmin:t=!1})=>{const{user:r,isAdmin:n,isLoading:s,isCheckingAdmin:o}=Uo(),a=Ce();return s||t&&o?Z.jsx("div",{className:"flex items-center justify-center min-h-screen",children:Z.jsx(Ne,{className:"h-8 w-8 animate-spin text-primary"})}):r?t&&!n?Z.jsx(Ae,{to:"/",replace:!0}):Z.jsx(Z.Fragment,{children:e}):Z.jsx(Ae,{to:"/auth",state:{from:a.pathname},replace:!0})};function Go({className:e,...t}){return Z.jsx("div",{className:Dr("animate-pulse rounded-md bg-muted",e),...t})}const Qo=Bt("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",gradient:"gradient-blue-green text-white hover:opacity-90 transition-opacity"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Yo=Ee.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},o)=>{const a=n?xe:"button";return Z.jsx(a,{className:Dr(Qo({variant:t,size:r,className:e})),ref:o,...s})});Yo.displayName="Button";class Jo extends Ee.Component{constructor(){super(...arguments),U(this,"state",{hasError:!1}),U(this,"handleReload",()=>{window.location.reload()}),U(this,"handleClearCacheAndReload",async()=>{try{if("caches"in window){const e=await caches.keys();await Promise.all(e.map(e=>caches.delete(e)))}if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistrations();await Promise.all(e.map(e=>e.unregister()))}localStorage.clear(),sessionStorage.clear(),window.location.href=window.location.href+"?cacheBust="+Date.now()}catch(e){window.location.reload()}})}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){}render(){return this.state.hasError?this.props.fallback?this.props.fallback:Z.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:Z.jsxs("div",{className:"text-center max-w-md",children:[Z.jsxs("div",{className:"mb-6",children:[Z.jsx("div",{className:"w-16 h-16 mx-auto bg-primary/10 rounded-full flex items-center justify-center mb-4",children:Z.jsx(De,{className:"w-8 h-8 text-primary"})}),Z.jsx("h1",{className:"text-2xl font-bold text-foreground mb-2",children:"Atualização DisponÃvel"}),Z.jsx("p",{className:"text-muted-foreground",children:"Uma nova versão do site foi publicada. Por favor, recarregue a página para continuar."})]}),Z.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[Z.jsxs(Yo,{onClick:this.handleReload,className:"gap-2",children:[Z.jsx(De,{className:"w-4 h-4"}),"Recarregar Página"]}),Z.jsxs(Yo,{variant:"outline",onClick:this.handleClearCacheAndReload,className:"gap-2",children:[Z.jsx(Ie,{className:"w-4 h-4"}),"Limpar Cache"]})]}),this.state.error&&Z.jsxs("details",{className:"mt-6 text-left",children:[Z.jsx("summary",{className:"text-sm text-muted-foreground cursor-pointer",children:"Detalhes técnicos"}),Z.jsx("pre",{className:"mt-2 p-3 bg-muted rounded text-xs overflow-auto",children:this.state.error.message})]})]})}):this.props.children}}async function Xo(e,t=2){try{return await e()}catch(n){if(t>0)return await(r=1e3,new Promise(e=>setTimeout(e,r))),Xo(e,t-1);if(n instanceof Error&&(n.message.includes("Failed to fetch dynamically imported module")||n.message.includes("Loading chunk")||n.message.includes("Loading CSS chunk"))&&"caches"in window)try{const e=await caches.keys();await Promise.all(e.map(e=>caches.delete(e)))}catch(s){}throw n}var r}function Zo(e){return Ee.lazy(()=>Xo(e))}const ea=()=>{const e=Ce();return Ee.useEffect(()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"virtualPageview",pagePath:e.pathname+e.search,pageTitle:document.title})},[e]),null},ta=Zo(()=>ze(()=>import("./Index-w2GeM9rm.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))),ra=Zo(()=>ze(()=>import("./NotFound-BA2rPkRZ.js"),__vite__mapDeps([11,1,2,8,3,4,5,6,12,10]))),na=Zo(()=>ze(()=>import("./Empresas-eXATQQJi.js"),__vite__mapDeps([13,1,2,8,14,5,12,15,3,4,16,17,18,19,20,7,10]))),sa=Zo(()=>ze(()=>import("./Assistencia24h-ke4TvY2k.js"),__vite__mapDeps([21,1,2,3,4,5,14,6,12,22,23,24,15,25,10,8,26]))),oa=Zo(()=>ze(()=>import("./Rastreamento-DwTkctH7.js"),__vite__mapDeps([27,1,2,3,4,5,14,6,12,22,23,24,15,25,10,8,26]))),aa=Zo(()=>ze(()=>import("./Seguros-CcbAPhC8.js"),__vite__mapDeps([28,1,2,3,4,5,14,6,12,16,15,17,18,19,20,25,10,8,26]))),ia=Zo(()=>ze(()=>import("./GestaoFrotas-CPe_nFLO.js"),__vite__mapDeps([29,1,2,3,4,5,14,6,12,15,17,18,19,8,26,10]))),la=Zo(()=>ze(()=>import("./Suporte-BCiHMTmH.js"),__vite__mapDeps([30,1,2,14,5,16,15,17,18,19,20,8,26,12,10]))),ca=Zo(()=>ze(()=>import("./FacaParte-PdxsRhER.js"),__vite__mapDeps([31,1,2,3,4,5,14,6,17,18,32,19,33,8,10]))),da=Zo(()=>ze(()=>import("./Blog-NQykZJWA.js"),__vite__mapDeps([34,1,2,3,4,5,6,14,17,24,23,8,9,10]))),ua=Zo(()=>ze(()=>import("./BlogPost-BlIwsqYe.js"),__vite__mapDeps([35,1,2,3,4,5,6,36,37,38,10,14,23,8,12]))),pa=Zo(()=>ze(()=>import("./Afiliados-B8PfXBJW.js"),__vite__mapDeps([39,1,2,3,4,5,14,6,17,18,40,16,15,19,20,8,10]))),ha=Zo(()=>ze(()=>import("./Auth--Rf2eOob.js"),__vite__mapDeps([41,1,2,8,17,18,12,42,43,5,10]))),fa=Zo(()=>ze(()=>import("./Install-CXkMZuEy.js"),__vite__mapDeps([44,1,2,8,12,5,10]))),ma=Zo(()=>ze(()=>import("./Franquia-V1hbDj9w.js"),__vite__mapDeps([45,1,2,8,14,5,17,40,32,12,18,3,4,6,19,10]))),ga=Zo(()=>ze(()=>import("./FranquiaObrigado-CfaFNwQS.js"),__vite__mapDeps([46,1,2,12,8,3,4,5,6,10]))),va=Zo(()=>ze(()=>import("./GuinchoCity-D7n5W6ly.js"),__vite__mapDeps([47,1,2,23,3,4,5,6,8,48,17,49,50,18,40,19,33,26,10]))),ya=Zo(()=>ze(()=>import("./ChaveiroCity-BPmYV0d0.js"),__vite__mapDeps([51,1,2,23,3,4,5,6,8,48,17,49,18,40,19,10]))),ba=Zo(()=>ze(()=>import("./ReboqueCity-7OFZO5K-.js"),__vite__mapDeps([52,1,2,23,3,4,5,6,8,48,17,49,50,18,40,19,26,10]))),wa=Zo(()=>ze(()=>import("./Insta-jkmnLIvi.js"),__vite__mapDeps([53,1,2,8,5,10]))),xa=Zo(()=>ze(()=>import("./ExternalRedirect--5gY6X5p.js"),__vite__mapDeps([54,2]))),ja=Zo(()=>ze(()=>import("./LandingPageApp-HDtOU7C4.js"),__vite__mapDeps([55,1,2,3,4,5,6,8,36,37,38,10]))),Ea=Zo(()=>ze(()=>import("./AdminLayout-BAaWZMW4.js"),__vite__mapDeps([56,1,2,17,57,5,8,10]))),Ta=Zo(()=>ze(()=>import("./Dashboard--I-UfQtu.js"),__vite__mapDeps([58,1,2,12,5,10]))),ka=Zo(()=>ze(()=>import("./Articles-BEr5Qpuj.js"),__vite__mapDeps([59,1,2,17,24,40,18,60,12,15,5,42,32,61,10]))),_a=Zo(()=>ze(()=>import("./Images-ES_LVVv9.js"),__vite__mapDeps([62,1,2,17,12,32,5,15,18,63,49,10]))),Ca=Zo(()=>ze(()=>import("./Settings-D_gvF_3d.js"),__vite__mapDeps([64,1,2,12,17,18,57,5,10]))),Aa=Zo(()=>ze(()=>import("./TowRequests-oiMv0mtp.js"),__vite__mapDeps([65,1,2,23,20,17,60,32,5,15,24,61,10]))),Sa=Zo(()=>ze(()=>import("./CityImagesGenerator-9rrPrZKk.js"),__vite__mapDeps([66,1,2,17,18,40,12,5,10]))),Oa=Zo(()=>ze(()=>import("./CityBatchGenerator-CyJtjXEJ.js"),__vite__mapDeps([67,1,2,12,63,24,32,5,42,10]))),Pa=Zo(()=>ze(()=>import("./Users-DgnCAzYH.js"),__vite__mapDeps([68,1,2,12,24,17,60,5,10]))),Ra=Zo(()=>ze(()=>import("./ScriptGenerator-80WkY3j_.js"),__vite__mapDeps([69,1,2,23,20,12,32,5,24,10]))),Ma=Zo(()=>ze(()=>import("./ImageGenerator-BDbUDOzd.js"),__vite__mapDeps([70,1,2,23,20,12,17,18,32,5,40,10]))),Na=Zo(()=>ze(()=>import("./LocksmithRequests-DcamVfEo.js"),__vite__mapDeps([71,1,2,23,20,17,60,32,5,15,24,61,10]))),Da=Zo(()=>ze(()=>import("./Reviews-Ci3KoQTG.js"),__vite__mapDeps([72,1,2,23,20,17,12,24,32,5,60,61,10]))),Ia=Zo(()=>ze(()=>import("./BatchArticleGenerator-CGv1wEgO.js"),__vite__mapDeps([73,1,2,12,63,24,5,10]))),La=Zo(()=>ze(()=>import("./CityPagesStats-C4IDyEVb.js"),__vite__mapDeps([74,1,2,23,12,60,24,42,5,10]))),$a=Zo(()=>ze(()=>import("./Avaliar-DUaHTqH0.js"),__vite__mapDeps([75,1,2,3,4,5,6,17,40,18,32,19,12,10]))),Fa=Zo(()=>ze(()=>import("./PortalFuncionario-BLbuweSR.js"),__vite__mapDeps([76,1,2,17,18,40,12,32,5,8,4,10]))),za=()=>{const{slug:e}=Re();return Z.jsx(Ae,{to:`/guincho/${(null==e?void 0:e.replace(/\/$/,""))||""}`,replace:!0})},qa=()=>{const{slug:e}=Re();return Z.jsx(Ae,{to:`/reboque/${(null==e?void 0:e.replace(/\/$/,""))||""}`,replace:!0})},Ba=()=>{const{slug:e}=Re();return Z.jsx(Ae,{to:`/chaveiro/${(null==e?void 0:e.replace(/\/$/,""))||""}`,replace:!0})},Ha=()=>Z.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background animate-fade-in",children:Z.jsxs("div",{className:"w-full max-w-md space-y-4 p-4",children:[Z.jsx(Go,{className:"h-12 w-3/4 mx-auto"}),Z.jsx(Go,{className:"h-64 w-full"}),Z.jsx(Go,{className:"h-8 w-1/2 mx-auto"})]})}),Va=new Ns,Ka=()=>Z.jsx(So,{children:Z.jsx(Ls,{client:Va,children:Z.jsxs(zn,{children:[Z.jsx(Hr,{}),Z.jsx(fn,{}),Z.jsx(Jo,{children:Z.jsx(Ko,{children:Z.jsxs(Se,{children:[Z.jsx(ea,{}),Z.jsx(Ee.Suspense,{fallback:Z.jsx(Ha,{}),children:Z.jsxs(Oe,{children:[Z.jsx(Pe,{path:"/",element:Z.jsx(ta,{})}),Z.jsx(Pe,{path:"/empresas",element:Z.jsx(na,{})}),Z.jsx(Pe,{path:"/assistencia-24h",element:Z.jsx(sa,{})}),Z.jsx(Pe,{path:"/rastreamento",element:Z.jsx(oa,{})}),Z.jsx(Pe,{path:"/seguros",element:Z.jsx(aa,{})}),Z.jsx(Pe,{path:"/gestao-frotas",element:Z.jsx(ia,{})}),Z.jsx(Pe,{path:"/suporte",element:Z.jsx(la,{})}),Z.jsx(Pe,{path:"/faca-parte",element:Z.jsx(ca,{})}),Z.jsx(Pe,{path:"/blog",element:Z.jsx(da,{})}),Z.jsx(Pe,{path:"/blog/:slug",element:Z.jsx(ua,{})}),Z.jsx(Pe,{path:"/afiliados",element:Z.jsx(pa,{})}),Z.jsx(Pe,{path:"/franquia",element:Z.jsx(ma,{})}),Z.jsx(Pe,{path:"/franquia/obrigado",element:Z.jsx(ga,{})}),Z.jsx(Pe,{path:"/guincho-24-horas-:slug/*",element:Z.jsx(za,{})}),Z.jsx(Pe,{path:"/reboque-24-horas-:slug/*",element:Z.jsx(qa,{})}),Z.jsx(Pe,{path:"/chaveiro-24-horas-:slug/*",element:Z.jsx(Ba,{})}),Z.jsx(Pe,{path:"/carnaval-com-seguranca",element:Z.jsx(Ae,{to:"/blog",replace:!0})}),Z.jsx(Pe,{path:"/o-que-voce-nao-sabe-sobre-seguro-de-vida",element:Z.jsx(Ae,{to:"/blog",replace:!0})}),Z.jsx(Pe,{path:"/praticas-seguradoras-pmes-2025",element:Z.jsx(Ae,{to:"/blog",replace:!0})}),Z.jsx(Pe,{path:"/microfranquias-digitais-gestao-financeira-suporte",element:Z.jsx(Ae,{to:"/blog",replace:!0})}),Z.jsx(Pe,{path:"/tecnologia-suporte-humano-seguranca-2025",element:Z.jsx(Ae,{to:"/blog",replace:!0})}),Z.jsx(Pe,{path:"/guincho/:citySlug",element:Z.jsx(va,{})}),Z.jsx(Pe,{path:"/chaveiro/:citySlug",element:Z.jsx(ya,{})}),Z.jsx(Pe,{path:"/reboque/:citySlug",element:Z.jsx(ba,{})}),Z.jsx(Pe,{path:"/insta",element:Z.jsx(xa,{to:"https://www.instagram.com/semprecomigobr_oficial/"})}),Z.jsx(Pe,{path:"/bio",element:Z.jsx(wa,{})}),Z.jsx(Pe,{path:"/install",element:Z.jsx(fa,{})}),Z.jsx(Pe,{path:"/avaliar",element:Z.jsx($a,{})}),Z.jsx(Pe,{path:"/portal-funcionario",element:Z.jsx(Fa,{})}),Z.jsx(Pe,{path:"/auth",element:Z.jsx(ha,{})}),Z.jsx(Pe,{path:"/landing-page-app",element:Z.jsx(ja,{})}),Z.jsx(Pe,{path:"/entenda-a-diferenca-de-um-pneu-com-camara-e-um-sem-camara",element:Z.jsx(Ae,{to:"/blog/entenda-a-diferenca-de-um-pneu-com-camara-e-um-sem-camara",replace:!0})}),Z.jsx(Pe,{path:"/elementor-19904",element:Z.jsx(Ae,{to:"/",replace:!0})}),Z.jsx(Pe,{path:"/elementor-19904/*",element:Z.jsx(Ae,{to:"/",replace:!0})}),Z.jsx(Pe,{path:"/serido",element:Z.jsx(Ae,{to:"/",replace:!0})}),Z.jsxs(Pe,{path:"/admin",element:Z.jsx(Wo,{requireAdmin:!0,children:Z.jsx(Ea,{})}),children:[Z.jsx(Pe,{index:!0,element:Z.jsx(Ta,{})}),Z.jsx(Pe,{path:"articles",element:Z.jsx(ka,{})}),Z.jsx(Pe,{path:"images",element:Z.jsx(_a,{})}),Z.jsx(Pe,{path:"city-images-generator",element:Z.jsx(Sa,{})}),Z.jsx(Pe,{path:"city-batch-generator",element:Z.jsx(Oa,{})}),Z.jsx(Pe,{path:"settings",element:Z.jsx(Ca,{})}),Z.jsx(Pe,{path:"tow-requests",element:Z.jsx(Aa,{})}),Z.jsx(Pe,{path:"locksmith-requests",element:Z.jsx(Na,{})}),Z.jsx(Pe,{path:"users",element:Z.jsx(Pa,{})}),Z.jsx(Pe,{path:"script-generator",element:Z.jsx(Ra,{})}),Z.jsx(Pe,{path:"image-generator",element:Z.jsx(Ma,{})}),Z.jsx(Pe,{path:"reviews",element:Z.jsx(Da,{})}),Z.jsx(Pe,{path:"batch-articles",element:Z.jsx(Ia,{})}),Z.jsx(Pe,{path:"city-stats",element:Z.jsx(La,{})})]}),Z.jsx(Pe,{path:"*",element:Z.jsx(ra,{})})]})})]})})})]})})});H(document.getElementById("root")).render(Z.jsx(Ka,{}));export{hs as A,Yo as B,ks as C,is as D,Bo as H,Go as S,zn as T,Ye as V,ze as _,qn as a,Bn as b,Hn as c,Uo as d,Dr as e,Bt as f,Is as g,sn as h,Qo as i,Vn as j,ns as k,Zo as l,es as m,As as n,js as o,Un as p,ps as q,ms as r,Ho as s,Ge as t,Qe as u,Yn as v,Qn as w,Kn as x,Wn as y,Gn as z};