PageSourceSearch

https://beephish.com/assets/index-Cy9P7E4_.js

js beephish.com collected 2026-10-05 22:48:06 UTC 625,438 bytes, 114 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HeroBackground-RSlzb1F6.js","assets/rolldown-runtime-CNC7AqOf.js","assets/jsx-runtime-BtyjnKZj.js","assets/proxy-BuuExcXo.js","assets/HeroAppPreview-CtbDfJRG.js","assets/createLucideIcon-DK79UZSH.js","assets/download-BczFw11i.js","assets/shield-check-DnNsy05Y.js","assets/triangle-alert-BGBeurqL.js","assets/Plataforma-_aep3djC.js","assets/button-DtLA1ZRm.js","assets/monitor-BTgpvqqi.js","assets/plataforma-beephish-dashboard-D5J5hRqP.js","assets/Solucoes-afO8FU6l.js","assets/chevron-right-m_D0FZpR.js","assets/layout-dashboard-BnzTl0g2.js","assets/route-1YR3mn-t.js","assets/refresh-cw-BMEL4zi2.js","assets/shield-alert-CTNGt5o9.js","assets/users-round-Bi9roUjj.js","assets/SolucaoPhishing-Cgok1YFb.js","assets/specialistDrawerSources-CLKvNfH5.js","assets/phishing-hero-bg-DGOq8HLf.js","assets/phishing-feat-treinamentos-DW2QFb8P.js","assets/SolucaoTreinamentos-BIqcwX_v.js","assets/award-Dw8yaoML.js","assets/circle-check-CWKzkEZj.js","assets/trending-up-BVPLGBjZ.js","assets/trophy-gmN1tc9C.js","assets/user-cog-C-neELwv.js","assets/SolucaoComunicacao-DwEWvu0n.js","assets/bell-Bii7579R.js","assets/send-33KSVGNO.js","assets/SolucaoGestaoRisco-CsYexQRP.js","assets/dist-CP4YEVnx.js","assets/dist-oE9xBcjT.js","assets/react-dom-CWn-H0Rd.js","assets/dist-DN756u2X.js","assets/activity-CA75Q5rA.js","assets/eye-r63Vi8WX.js","assets/hmr-hero-bg-Co9fAhES.js","assets/switch-COtP-GyD.js","assets/jsonLd-DOmmfDyw.js","assets/sanitizeHtml-B-5ST6vL.js","assets/dist-CnPjGcTO.js","assets/useFaqItems-h4HO5s30.js","assets/SolucaoGamificacao-CbJqJg-_.js","assets/sparkles-Jy4rnT9o.js","assets/star-
1B9ire3qQ.js","assets/Bhrs-Dx0Cvz4n.js","assets/arrow-left-ChObw5vu.js","assets/layers-ChlMXIHU.js","assets/Gone-BjBrL-ve.js","assets/Parceiros-DGXLrES8.js","assets/ComoSeTornarParceiro-ClVBMDr7.js","assets/ParceirosTecnologicos-w1qsCcus.js","assets/Clientes-CG0GfuLo.js","assets/chevron-left-C3RmPWxy.js","assets/Sobre-DJpp3Pwe.js","assets/Blog-bPoyP62L.js","assets/ResourceListPage-PugFXw-v.js","assets/input-DwUXaRae.js","assets/badge-BsLjgoF3.js","assets/useResourceCategories-BH0yNECl.js","assets/BlogPost-69r2goHD.js","assets/Webinars-Dmo8v7Pr.js","assets/calendar-BHVE2aEW.js","assets/WebinarPost-BRpnUMZa.js","assets/ResourceDetailPage-BDp6m4-_.js","assets/youtube-8H5i8-nx.js","assets/Podcasts-D3VGfURy.js","assets/clock-ObGfZIde.js","assets/PodcastPost-XfDxoAGE.js","assets/CasosDeUso-Dfl157qy.js","assets/CasoDeUsoPost-BiwtoFh1.js","assets/Midia-Dwv3-oYS.js","assets/MidiaPost-BDqR_Msf.js","assets/Contato-W4_kU6oS.js","assets/Privacidade-CsKAYwUq.js","assets/lib-CkwFVczy.js","assets/usePdfExport-bvMX85h-.js","assets/supabase-BH72u5Ym.js","assets/Termos-BO8qhk_O.js","assets/AssessmentIntro-H9ru7IWn.js","assets/lock-Des9XDC6.js","assets/Assessment-BVZvG376.js","assets/label-BVofnQgN.js","assets/progress-BZq-JS9J.js","assets/dist-9pcEOdky.js","assets/NotFound-CsNjVCuU.js","assets/Auth-C5jsSJh0.js","assets/eye-off-CmtI_zMp.js","assets/useForcePortuguese-BsSRZhWH.js","assets/Dashboard-ByvhP-7y.js","assets/MirrorAlertsBanner-Bcs4O_KU.js","assets/card-cYhqoDE4.js","assets/format-DiE1bu2I.js","assets/bot-BGsgO2g8.js","assets/select-CnOWYNO3.js","assets/AdminLayout-oJQYPWfD.js","assets/key-round-DOJ942Ac.js","assets/with-selector-DbwYSeod.js","assets/BlogAdmin-CFKmxMyD.js","assets/ResourceAdminPage-4P9DI_mB.js","assets/sortable.esm-ChCTwKtp.js","assets/plus-I0P9QGhJ.js","assets/square-pen-BvKcaAvC.js","assets/trash-2-tSFMyufW.js","assets/tabs-BU2ohSTe.js","assets/textarea-C9MrqcOU.js","assets/ImageUpload-GeE27lnX.js","assets/upload-B2XKKbaE.js","assets/LazyTiptapEditor-DySoA4kh.js","assets/ResearchAdmin-rg7CWuGj.js","assets/ResearchPage-BuMyP5Fa.js","assets/DocumentoRedirect-CC6HRkc_.js","assets/DocumentosAdmin-B48HK53l.js","assets/copy-8og1d3Sk.js","assets/WebinarsAdmin-BYYLjkxp.js","assets/PodcastsAdmin-DlOUM5UA.js","assets/CasosDeUsoAdmin-BUFk4Ulb.js","assets/MediaAdmin-CoWSwL1a.js","assets/ClientesAdmin-DEjk3nlZ.js","assets/SuccessCasesAdmin-nrV6haed.js","assets/ParceirosAdmin-D_tjcPBY.js","assets/CRMAdmin-C6ctCltn.js","assets/user-BQeAVcjF.js","assets/pt-BR-DO85gErI.js","assets/LegalDocumentsAdmin-DRVugCSi.js","assets/useMutation-BRvygvl9.js","assets/alert-dialog-CjWKD8Hg.js","assets/SeoAdmin-CTFf-scL.js","assets/pencil-DGW6pw0G.js","assets/table-BPsKAKni.js","assets/TestimonialsAdmin-CTtyk0cf.js","assets/PaginasAdmin-DWRZ5_NC.js","assets/MenuAdmin-f3WE8f0l.js","assets/circle-x-CQlTfWUF.js","assets/ImagensAdmin-BfV-Mfr0.js","assets/ParceirosTecnologicosAdmin-CQ38n0Vx.js","assets/FaqAdmin-BQNLoUTG.js","assets/UsuariosAdmin-CnAmpX01.js","assets/message-circle-CovKQdIT.js","assets/AnalyticsSettingsAdmin-DvqLtEEk.js","assets/MeuPerfil-CQwGYOCO.js","assets/ConvitesAuditoria-Pe3KQmsS.js","assets/PedidosResetSenha-rIeCGGL7.js","assets/AuditoriaAcessos-cGaj4qg5.js","assets/DiagnosticoAdmin-6qzXwS5r.js","assets/AceitarConvite-Bj7sIBmZ.js","assets/ConvitePreview-CrlpLaXF.js","assets/RedefinirSenha-D2L3J2vM.js"])))=>i.map(i=>d[i]);
2import{a as e,t}from"./rolldown-runtime-CNC7AqOf.js";import{n,t as r}from"./jsx-runtime-BtyjnKZj.js";import{t as i}from"./react-dom-CWn-H0Rd.js";import{a,i as o,n as s,r as c,t as l}from"./dist-CP4YEVnx.js";import{c as u,i as d,l as f,o as p,r as m,s as h,t as g,u as _}from"./button-DtLA1ZRm.js";import{n as v,t as y}from"./dist-oE9xBcjT.js";import{n as b,r as x,t as S}from"./dist-DN756u2X.js";import{t as C}from"./createLucideIcon-DK79UZSH.js";import{a as w,i as T,n as E,r as D,t as O}from"./supabase-BH72u5Ym.js";import{C as k,E as A,S as ee,T as j,_ as M,a as te,b as ne,c as re,d as ie,f as ae,g as oe,h as se,i as ce,l as le,m as ue,n as de,o as fe,p as pe,r as me,s as he,t as N,u as ge,v as _e,w as ve,x as ye,y as be}from"./proxy-BuuExcXo.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var xe=t((e=>{var t=i();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot}))(),P=e(n(),1);function F(e){return(0,P.lazy)(async()=>{let t=e=>{let t=(e instanceof Error?e.message:String(e)).match(/\/assets\/[^"'\s)]+/);return`lovable:chunk-reload:${t?t[0]:`generic`}`};try{let t=await e();if(typeof window<`u`)try{for(let e=sessionStorage.length-1;e>=0;e--){let t=sessionStorage.key(e);t&&t.startsWith(`lovable:chunk-reload`)&&sessionStorage.removeItem(t)}}catch{}return t}catch(e){if(typeof window<`u`){let n=t(e);if(!sessionStorage.getItem(n))return sessionStorage.setItem(n,`1`),window.location.reload(),new Promise(()=>{})}throw e}})}var Se=1,Ce=1e6,we=0;function Te(){return we=(we+1)%(2**53-1),we.toString()}var Ee=new Map,De=e=>{if(Ee.has(e))return;let t=setTimeout(()=>{Ee.delete(e),je({type:`REMOVE_TOAST`,toastId:e})},Ce);Ee.set(e,t)},Oe=(e,t)=>
2{switch(t.type){case`ADD_TOAST`:return{...e,toasts:[t.toast,...e.toasts].slice(0,Se)};case`UPDATE_TOAST`:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case`DISMISS_TOAST`:{let{toastId:n}=t;return n?De(n):e.toasts.forEach(e=>{De(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||n===void 0?{...e,open:!1}:e)}}case`REMOVE_TOAST`:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},ke=[],Ae={toasts:[]};function je(e){Ae=Oe(Ae,e),ke.forEach(e=>{e(Ae)})}function Me({...e}){let t=Te(),n=e=>je({type:`UPDATE_TOAST`,toast:{...e,id:t}}),r=()=>je({type:`DISMISS_TOAST`,toastId:t});return je({type:`ADD_TOAST`,toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:n}}function Ne(){let[e,t]=P.useState(Ae);return P.useEffect(()=>(ke.push(t),()=>{let e=ke.indexOf(t);e>-1&&ke.splice(e,1)}),[e]),{...e,toast:Me,dismiss:e=>je({type:`DISMISS_TOAST`,toastId:e})}}var Pe=e(i(),1),I=r();function Fe(e){let t=e+`CollectionProvider`,[n,r]=o(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:n}=e,r=P.useRef(null),a=P.useRef(new Map).current;return(0,I.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};s.displayName=t;let c=e+`CollectionSlot`,l=h(c),u=P.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=_(t,a(c,n).collectionRef);return(0,I.jsx)(l,{ref:i,children:r})});u.displayName=c;let d=e+`CollectionItemSlot`,f=`data-radix-collection-item`,p=h(d),m=P.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=P.useRef(null),s=_(t,o),c=a(d,n);return P.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,I.jsx)(p,{[f]:``,ref:s,children:r})});m.displayName=d;function g(t){let n=a(e+`CollectionConsumer`,t);return P.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},g,r]}function Ie(e,t=globalThis?.document){let n=x(e);P.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var Le=`DismissableLayer`,Re=`dismissableLayer.update`,ze=`dismissableLayer.pointerDownOutside`,Be=`dismissableLayer.focusOutside`,Ve,He=P.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ue=P.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=P.useContext(He),[d,f]=P.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=P.useState({}),h=_(t,e=>f(e)),g=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(v),x=d?g.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=b,w=Ke(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));!C||n||(i?.(e),s?.(e),e.defaultPrevented||c?.())},p),T=qe(e=>{let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p);return Ie(e=>{x===u.layers.size-1&&(r?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},p),P.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ve=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Je(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ve)}},[d,p,n,u]),P.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Je())},[d,u]),P.useEffect(()=>{let e=()=>m({});return document.addEventListener(Re,e),()=>document.removeEventListener(Re,e)},[]),(0,I.jsx)(y.div,{...l,ref:h,style:{pointerEvents:S?C?`auto`:`none`:void 0,...e.style},onFocusCapture:a(e.onFocusCapture,T.onFocusCapture),onBlurCapture:a(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:a(e.onPointerDownCapture,w.onPointerDownCapture)})});Ue.displayName=Le;var We=`DismissableLayerBranch`,Ge=P.forwardRef((e,t)=>
2{let n=P.useContext(He),r=P.useRef(null),i=_(t,r);return P.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,I.jsx)(y.div,{...e,ref:i})});Ge.displayName=We;function Ke(e,t=globalThis?.document){let n=x(e),r=P.useRef(!1),i=P.useRef(()=>{});return P.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){Ye(ze,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function qe(e,t=globalThis?.document){let n=x(e),r=P.useRef(!1);return P.useEffect(()=>{let e=e=>{e.target&&!r.current&&Ye(Be,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Je(){let e=new CustomEvent(Re);document.dispatchEvent(e)}function Ye(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?v(i,a):i.dispatchEvent(a)}var Xe=Ue,Ze=Ge,Qe=`Portal`,$e=P.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=P.useState(!1);s(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Pe.createPortal((0,I.jsx)(y.div,{...r,ref:t}),o):null});$e.displayName=Qe;var et=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`}),tt=`VisuallyHidden`,nt=P.forwardRef((e,t)=>(0,I.jsx)(y.span,{...e,ref:t,style:{...et,...e.style}}));nt.displayName=tt;var rt=nt,it=`ToastProvider`,[at,ot,st]=Fe(`Toast`),[ct,lt]=o(`Toast`,[st]),[ut,dt]=ct(it),ft=e=>{let{__scopeToast:t,label:n=`Notification`,duration:r=5e3,swipeDirection:i=`right`,swipeThreshold:a=50,children:o}=e,[s,c]=P.useState(null),[l,u]=P.useState(0),d=P.useRef(!1),f=P.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${it}\`. Expected non-empty \`string\`.`),(0,I.jsx)(at.Provider,{scope:t,children:(0,I.jsx)(ut,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:a,toastCount:l,viewport:s,onViewportChange:c,onToastAdd:P.useCallback(()=>u(e=>e+1),[]),onToastRemove:P.useCallback(()=>u(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:o})})};ft.displayName=it;var pt=`ToastViewport`,mt=[`F8`],ht=`toast.viewportPause`,gt=`toast.viewportResume`,_t=P.forwardRef((e,t)=>{let{__scopeToast:n,hotkey:r=mt,label:i=`Notifications ({hotkey})`,...a}=e,o=dt(pt,n),s=ot(n),c=P.useRef(null),l=P.useRef(null),u=P.useRef(null),d=P.useRef(null),f=_(t,d,o.onViewportChange),p=r.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),m=o.toastCount>0;P.useEffect(()=>{let e=e=>{r.length!==0&&r.every(t=>e[t]||e.code===t)&&d.current?.focus()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]),P.useEffect(()=>{let e=c.current,t=d.current;if(m&&e&&t){let n=()=>{if(!o.isClosePausedRef.current){let e=new CustomEvent(ht);t.dispatchEvent(e),o.isClosePausedRef.current=!0}},r=()=>{if(o.isClosePausedRef.current){let e=new CustomEvent(gt);t.dispatchEvent(e),o.isClosePausedRef.current=!1}},i=t=>{e.contains(t.relatedTarget)||r()},a=()=>{e.contains(document.activeElement)||r()};return e.addEventListener(`focusin`,n),e.addEventListener(`focusout`,i),e.addEventListener(`pointermove`,n),e.addEventListener(`pointerleave`,a),window.addEventListener(`blur`,n),window.addEventListener(`focus`,r),()=>{e.removeEventListener(`focusin`,n),e.removeEventListener(`focusout`,i),e.removeEventListener(`pointermove`,n),e.removeEventListener(`pointerleave`,a),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,r)}}},[m,o.isClosePausedRef]);let h=P.useCallback(({tabbingDirection:e})=>{let t=s().map(t=>{let n=t.ref.current,r=[n,...Wt(n)];return e===`forwards`?r:r.reverse()});return(e===`forwards`?t.reverse():t).flat()},[s]);return P.useEffect(()=>{let e=d.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if(t.key===`Tab`&&!n){let n=document.activeElement,r=t.shiftKey;if(t.target===e&&r){l.current?.focus();return}let i=h({tabbingDirection:r?`backwards`:`forwards`}),a=i.findIndex(e=>e===n);Gt(i.slice(a+1))?t.preventDefault():r?l.current?.focus():u.current?.focus()}};
vendor: 8,874 bytes, line 2
2return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)}},[s,h]),(0,I.jsxs)(Ze,{ref:c,role:`region`,"aria-label":i.replace(`{hotkey}`,p),tabIndex:-1,style:{pointerEvents:m?void 0:`none`},children:[m&&(0,I.jsx)(yt,{ref:l,onFocusFromOutsideViewport:()=>{Gt(h({tabbingDirection:`forwards`}))}}),(0,I.jsx)(at.Slot,{scope:n,children:(0,I.jsx)(y.ol,{tabIndex:-1,...a,ref:f})}),m&&(0,I.jsx)(yt,{ref:u,onFocusFromOutsideViewport:()=>{Gt(h({tabbingDirection:`backwards`}))}})]})});_t.displayName=pt;var vt=`ToastFocusProxy`,yt=P.forwardRef((e,t)=>{let{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,a=dt(vt,n);return(0,I.jsx)(nt,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:`fixed`},onFocus:e=>{let t=e.relatedTarget;a.viewport?.contains(t)||r()}})});yt.displayName=vt;var bt=`Toast`,xt=`toast.swipeStart`,St=`toast.swipeMove`,Ct=`toast.swipeCancel`,wt=`toast.swipeEnd`,Tt=P.forwardRef((e,t)=>{let{forceMount:n,open:r,defaultOpen:i,onOpenChange:o,...s}=e,[c,u]=l({prop:r,defaultProp:i??!0,onChange:o,caller:bt});return(0,I.jsx)(b,{present:n||c,children:(0,I.jsx)(Ot,{open:c,...s,ref:t,onClose:()=>u(!1),onPause:x(e.onPause),onResume:x(e.onResume),onSwipeStart:a(e.onSwipeStart,e=>{e.currentTarget.setAttribute(`data-swipe`,`start`)}),onSwipeMove:a(e.onSwipeMove,e=>{let{x:t,y:n}=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`,`${n}px`)}),onSwipeCancel:a(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:a(e.onSwipeEnd,e=>{let{x:t,y:n}=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`,`${n}px`),u(!1)})})})});Tt.displayName=bt;var[Et,Dt]=ct(bt,{onClose(){}}),Ot=P.forwardRef((e,t)=>{let{__scopeToast:n,type:r=`foreground`,duration:i,open:o,onClose:s,onEscapeKeyDown:c,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:p,onSwipeEnd:m,...h}=e,g=dt(bt,n),[v,b]=P.useState(null),S=_(t,e=>b(e)),C=P.useRef(null),w=P.useRef(null),T=i||g.duration,E=P.useRef(0),D=P.useRef(T),O=P.useRef(0),{onToastAdd:k,onToastRemove:A}=g,ee=x(()=>{v?.contains(document.activeElement)&&g.viewport?.focus(),s()}),j=P.useCallback(e=>{!e||e===1/0||(window.clearTimeout(O.current),E.current=new Date().getTime(),O.current=window.setTimeout(ee,e))},[ee]);P.useEffect(()=>{let e=g.viewport;if(e){let t=()=>{j(D.current),u?.()},n=()=>{let e=new Date().getTime()-E.current;D.current-=e,window.clearTimeout(O.current),l?.()};return e.addEventListener(ht,n),e.addEventListener(gt,t),()=>{e.removeEventListener(ht,n),e.removeEventListener(gt,t)}}},[g.viewport,T,l,u,j]),P.useEffect(()=>{o&&!g.isClosePausedRef.current&&j(T)},[o,T,g.isClosePausedRef,j]),P.useEffect(()=>(k(),()=>A()),[k,A]);let M=P.useMemo(()=>v?zt(v):null,[v]);return g.viewport?(0,I.jsxs)(I.Fragment,{children:[M&&(0,I.jsx)(kt,{__scopeToast:n,role:`status`,"aria-live":r===`foreground`?`assertive`:`polite`,"aria-atomic":!0,children:M}),(0,I.jsx)(Et,{scope:n,onClose:ee,children:Pe.createPortal((0,I.jsx)(at.ItemSlot,{scope:n,children:(0,I.jsx)(Xe,{asChild:!0,onEscapeKeyDown:a(c,()=>{g.isFocusedToastEscapeKeyDownRef.current||ee(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,I.jsx)(y.li,{role:`status`,"aria-live":`off`,"aria-atomic":!0,tabIndex:0,"data-state":o?`open`:`closed`,"data-swipe-direction":g.swipeDirection,...h,ref:S,style:{userSelect:`none`,touchAction:`none`,...e.style},onKeyDown:a(e.onKeyDown,e=>{e.key===`Escape`&&(c?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,ee()))}),onPointerDown:a(e.onPointerDown,e=>{e.button===0&&(C.current={x:e.clientX,y:e.clientY})}),onPointerMove:a(e.onPointerMove,e=>{if(!C.current)return;let t=e.clientX-C.current.x,n=e.clientY-C.current.y,r=!!w.current,i=[`left`,`right`].includes(g.swipeDirection),a=[`left`,`up`].includes(g.swipeDirection)?Math.min:Math.max,o=i?a(0,t):0,s=i?0:a(0,n),c=e.pointerType===`touch`?10:2,l={x:o,y:s},u={originalEvent:e,delta:l};r?(w.current=l,Bt(St,f,u,{discrete:!1})):Vt(l,g.swipeDirection,c)?(w.current=l,Bt(xt,d,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(C.current=null)}),onPointerUp:a(e.onPointerUp,e=>{let t=w.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),w.current=null,C.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};Vt(t,g.swipeDirection,g.swipeThreshold)?Bt(wt,m,r,{discrete:!0}):Bt(Ct,p,r,{discrete:!0}),n.addEventListener(`click`,e=>e.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),kt=e=>{let{__scopeToast:t,children:n,...r}=e,i=dt(bt,t),[a,o]=P.useState(!1),[s,c]=P.useState(!1);return Ht(()=>o(!0)),P.useEffect(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),s?null:(0,I.jsx)($e,{asChild:!0,children:(0,I.jsx)(nt,{...r,children:a&&(0,I.jsxs)(I.Fragment,{children:[i.label,` `,n]})})})},At=`ToastTitle`,jt=P.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,I.jsx)(y.div,{...r,ref:t})});jt.displayName=At;var Mt=`ToastDescription`,Nt=P.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,I.jsx)(y.div,{...r,ref:t})});Nt.displayName=Mt;var Pt=`ToastAction`,Ft=P.forwardRef((e,t)=>{let{altText:n,...r}=e;return n.trim()?(0,I.jsx)(Rt,{altText:n,asChild:!0,children:(0,I.jsx)(Lt,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Pt}\`. Expected non-empty \`string\`.`),null)});Ft.displayName=Pt;var It=`ToastClose`,Lt=P.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e,i=Dt(It,n);return(0,I.jsx)(Rt,{asChild:!0,children:(0,I.jsx)(y.button,{type:`button`,...r,ref:t,onClick:a(e.onClick,i.onClose)})})});Lt.displayName=It;var Rt=P.forwardRef((e,t)=>{let{__scopeToast:n,altText:r,...i}=e;return(0,I.jsx)(y.div,{"data-radix-toast-announce-exclude":``,"data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function zt(e){let t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),Ut(e)){let n=e.ariaHidden||e.hidden||e.style.display===`none`,r=e.dataset.radixToastAnnounceExclude===``;if(!n)if(r){let n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...zt(e))}}),t}function Bt(e,t,n,{discrete:r}){let i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?v(i,a):i.dispatchEvent(a)}var Vt=(e,t,n=0)=>{let r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t===`left`||t===`right`?a&&r>n:!a&&i>n};function Ht(e=()=>{}){let t=x(e);s(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}function Ut(e){return e.nodeType===e.ELEMENT_NODE}function Wt(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Gt(e){let t=document.activeElement;return e.some(e=>e===t?!0:(e.focus(),document.activeElement!==t))}var Kt=ft,qt=_t,Jt=Tt,Yt=jt,Xt=Nt,Zt=Ft,Qt=Lt,$t=C(`ArrowRight`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),en=C(`BookOpen`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),tn=C(`Brain`,[[`path`,{d:`M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z`,key:`l5xja`}],[`path`,{d:`M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z`,key:`ep3f8r`}],[`path`,{d:`M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4`,key:`1p4c4q`}],[`path`,{d:`M17.599 6.5a3 3 0 0 0 .399-1.375`,key:`tmeiqw`}],[`path`,{d:`M6.003 5.125A3 3 0 0 0 6.401 6.5`,key:`105sqy`}],[`path`,{d:`M3.477 10.896a4 4 0 0 1 .585-.396`,key:`ql3yin`}],[`path`,{d:`M19.938 10.5a4 4 0 0 1 .585.396`,key:`1qfode`}],[`path`,{d:`M6 18a4 4 0 0 1-1.967-.516`,key:`2e4loj`}],[`path`,{d:`M19.967 17.484A4 4 0 0 1 18 18`,key:`159ez6`}]]),nn=C(`Briefcase`,[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}
2],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]),rn=C(`Building2`,[[`path`,{d:`M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z`,key:`1b4qmf`}],[`path`,{d:`M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2`,key:`i71pzd`}],[`path`,{d:`M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2`,key:`10jefs`}],[`path`,{d:`M10 6h4`,key:`1itunk`}],[`path`,{d:`M10 10h4`,key:`tcdvrf`}],[`path`,{d:`M10 14h4`,key:`kelpxr`}],[`path`,{d:`M10 18h4`,key:`1ulq68`}]]),an=C(`ChartColumn`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),on=C(`Check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),sn=C(`ChevronDown`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),cn=C(`CircleCheckBig`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),ln=C(`Cookie`,[[`path`,{d:`M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5`,key:`laymnq`}],[`path`,{d:`M8.5 8.5v.01`,key:`ue8clq`}],[`path`,{d:`M16 15.5v.01`,key:`14dtrp`}],[`path`,{d:`M12 12v.01`,key:`u5ubse`}],[`path`,{d:`M11 17v.01`,key:`1hyl5a`}],[`path`,{d:`M7 14v.01`,key:`uct60s`}]]),un=C(`DollarSign`,[[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`22`,key:`7eqyqh`}],[`path`,{d:`M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6`,key:`1b0p4s`}]]),dn=C(`ExternalLink`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),fn=C(`FileText`,[[`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`,key:`1rqfz7`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),pn=C(`FolderOpen`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),mn=C(`Gamepad2`,[[`line`,{x1:`6`,x2:`10`,y1:`11`,y2:`11`,key:`1gktln`}],[`line`,{x1:`8`,x2:`8`,y1:`9`,y2:`13`,key:`qnk9ow`}],[`line`,{x1:`15`,x2:`15.01`,y1:`12`,y2:`12`,key:`krot7o`}],[`line`,{x1:`18`,x2:`18.01`,y1:`10`,y2:`10`,key:`1lcuu1`}],[`path`,{d:`M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z`,key:`mfqc10`}]]),hn=C(`Globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),gn=C(`GraduationCap`,[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]),_n=C(`Handshake`,[[`path`,{d:`m11 17 2 2a1 1 0 1 0 3-3`,key:`efffak`}],[`path`,{d:`m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4`,key:`9pr0kb`}],[`path`,{d:`m21 3 1 11h-2`,key:`1tisrp`}],[`path`,{d:`M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3`,key:`1uvwmv`}],[`path`,{d:`M3 4h8`,key:`1ep09j`}]]),vn=C(`Headphones`,[[`path`,{d:`M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3`,key:`1xhozi`}]]),yn=C(`History`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]]),bn=C(`Instagram`,[[`rect`,{width:`20`,height:`20`,x:`2`,y:`2`,rx:`5`,ry:`5`,key:`2e1cvw`}],[`path`,{d:`M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z`,key:`9exkf1`}],[`line`,{x1:`17.5`,x2:`17.51`,y1:`6.5`,y2:`6.5`,key:`r4j83e`}]]),xn=C(`Linkedin`,[[`path`,{d:`M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z`,key:`c2jq9f`}],[`rect`,{width:`4`,height:`12`,x:`2`,y:`9`,key:`mk3on5`}],[`circle`,{cx:`4`,cy:`4`,r:`2`,key:`bt5ra8`}]]),Sn=C(`LoaderCircle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}
2]]),Cn=C(`Mail`,[[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}]]),wn=C(`MapPin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),Tn=C(`MessageSquare`,[[`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`,key:`1lielz`}]]),En=C(`Mic`,[[`path`,{d:`M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z`,key:`131961`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`line`,{x1:`12`,x2:`12`,y1:`19`,y2:`22`,key:`x3vr5v`}]]),Dn=C(`Newspaper`,[[`path`,{d:`M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2`,key:`7pis2x`}],[`path`,{d:`M18 14h-8`,key:`sponae`}],[`path`,{d:`M15 18h-5`,key:`95g1m2`}],[`path`,{d:`M10 6h8v4h-8V6Z`,key:`smlsk5`}]]),On=C(`Phone`,[[`path`,{d:`M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z`,key:`foiqr5`}]]),kn=C(`Search`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),An=C(`Shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),jn=C(`Smartphone`,[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]),Mn=C(`Target`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),Nn=C(`TrendingDown`,[[`polyline`,{points:`22 17 13.5 8.5 8.5 13.5 2 7`,key:`1r2t7k`}],[`polyline`,{points:`16 17 22 17 22 11`,key:`11uiuu`}]]),Pn=C(`UserPlus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]),Fn=C(`Users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`path`,{d:`M16 3.13a4 4 0 0 1 0 7.75`,key:`1da9ce`}]]),In=C(`Video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),Ln=C(`X`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Rn=C(`Zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),zn=Kt,Bn=P.forwardRef(({className:e,...t},n)=>(0,I.jsx)(qt,{ref:n,className:m(`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}));Bn.displayName=qt.displayName;var Vn=d(`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`}}),Hn=P.forwardRef(({className:e,variant:t,...n},r)=>(0,I.jsx)(Jt,{ref:r,className:m(Vn({variant:t}),e),...n}));Hn.displayName=Jt.displayName;var Un=P.forwardRef(({className:e,...t},n)=>(0,I.jsx)(Zt,{ref:n,className:m(`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}));Un.displayName=Zt.displayName;var Wn=P.forwardRef(({className:e,...t},n)=>(0,I.jsx)(Qt,{ref:n,className:m(`absolute right-2 top-2 rounded-md p-1 text-foreground
2/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:(0,I.jsx)(Ln,{className:`h-4 w-4`})}));Wn.displayName=Qt.displayName;var Gn=P.forwardRef(({className:e,...t},n)=>(0,I.jsx)(Yt,{ref:n,className:m(`text-sm font-semibold`,e),...t}));Gn.displayName=Yt.displayName;var Kn=P.forwardRef(({className:e,...t},n)=>(0,I.jsx)(Xt,{ref:n,className:m(`text-sm opacity-90`,e),...t}));Kn.displayName=Xt.displayName;function qn(){let{toasts:e}=Ne();return(0,I.jsxs)(zn,{children:[e.map(function({id:e,title:t,description:n,action:r,...i}){return(0,I.jsxs)(Hn,{...i,children:[(0,I.jsxs)(`div`,{className:`grid gap-1`,children:[t&&(0,I.jsx)(Gn,{children:t}),n&&(0,I.jsx)(Kn,{children:n})]}),r,(0,I.jsx)(Wn,{})]},e)}),(0,I.jsx)(Bn,{})]})}var Jn=[`light`,`dark`],Yn=`(prefers-color-scheme: dark)`,Xn=P.createContext(void 0),Zn={setTheme:e=>{},themes:[]},Qn=()=>P.useContext(Xn)??Zn;P.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,attrs:s,nonce:c})=>{let l=a===`system`,u=n===`class`?`var d=document.documentElement,c=d.classList;${`c.remove(${s.map(e=>`'${e}'`).join(`,`)})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=i?Jn.includes(a)&&a?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:`if(e==='light'||e==='dark')d.style.colorScheme=e`:``,f=(e,t=!1,r=!0)=>{let a=o?o[e]:e,s=t?e+`|| ''`:`'${a}'`,c=``;return i&&r&&!t&&Jn.includes(e)&&(c+=`d.style.colorScheme = '${e}';`),n===`class`?t||a?c+=`c.add(${s})`:c+=`null`:a&&(c+=`d[s](n,${s})`),c},p=e?`!function(){${u}${f(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${l})){var t='${Yn}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f(`dark`)}}else{${f(`light`)}}}else if(e){${o?`var x=${JSON.stringify(o)};`:``}${f(o?`x[e]`:`e`,!0)}}${l?``:`else{`+f(a,!1,!1)+`}`}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:``}${f(o?`x[e]`:`e`,!0)}}else{${f(a,!1,!1)};}${d}}catch(t){}}();`;return P.createElement(`script`,{nonce:c,dangerouslySetInnerHTML:{__html:p}})});var $n=e=>{switch(e){case`success`:return nr;case`info`:return ir;case`warning`:return rr;case`error`:return ar;default:return null}},er=Array(12).fill(0),tr=({visible:e,className:t})=>P.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},P.createElement(`div`,{className:`sonner-spinner`},er.map((e,t)=>P.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),nr=P.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},P.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`})),rr=P.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},P.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`})),ir=P.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},P.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`})),ar=P.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},P.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`})),or=P.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,
2width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},P.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),P.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),sr=()=>{let[e,t]=P.useState(document.hidden);return P.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},cr=1,lr=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=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:cr++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0||e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},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)=>
2this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=e instanceof Promise?e:e(),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],P.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(dr(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description;this.create({id:n,type:`error`,message:r,description:a})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description;this.create({id:n,type:`success`,message:r,description:a})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description;this.create({id:n,type:`error`,message:r,description:a})}}).finally(()=>{var e;i&&(this.dismiss(n),n=void 0),(e=t.finally)==null||e.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||cr++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ur=(e,t)=>{let n=t?.id||cr++;return lr.addToast({title:e,...t,id:n}),n},dr=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,fr=Object.assign(ur,{success:lr.success,info:lr.info,warning:lr.warning,error:lr.error,custom:lr.custom,message:lr.message,promise:lr.promise,dismiss:lr.dismiss,loading:lr.loading},{getHistory:()=>lr.toasts,getToasts:()=>lr.getActiveToasts()});function pr(e,{insertAt:t}={}){if(!e||typeof document>`u`)return;let n=document.head||document.getElementsByTagName(`head`)[0],r=document.createElement(`style`);r.type=`text/css`,t===`top`&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}pr(`: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;
2left: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}
2: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%);
2--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%)}
3`);function mr(e){return e.label!==void 0}var hr=3,gr=`32px`,_r=`16px`,vr=4e3,yr=356,br=14,xr=20,Sr=200;function Cr(...e){return e.filter(Boolean).join(` `)}function wr(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var Tr=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,loadingIcon:S,expandByDefault:C,classNames:w,icons:T,closeButtonAriaLabel:E=`Close toast`,pauseWhenPageIsHidden:D}=e,[O,k]=P.useState(null),[A,ee]=P.useState(null),[j,M]=P.useState(!1),[te,ne]=P.useState(!1),[re,ie]=P.useState(!1),[ae,oe]=P.useState(!1),[se,ce]=P.useState(!1),[le,ue]=P.useState(0),[de,fe]=P.useState(0),pe=P.useRef(n.duration||y||vr),me=P.useRef(null),he=P.useRef(null),N=c===0,ge=c+1<=o,_e=n.type,ve=n.dismissible!==!1,ye=n.className||``,be=n.descriptionClassName||``,xe=P.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),F=P.useMemo(()=>n.closeButton??p,[n.closeButton,p]),Se=P.useMemo(()=>n.duration||y||vr,[n.duration,y]),Ce=P.useRef(0),we=P.useRef(0),Te=P.useRef(0),Ee=P.useRef(null),[De,Oe]=b.split(`-`),ke=P.useMemo(()=>
3s.reduce((e,t,n)=>n>=xe?e:e+t.height,0),[s,xe]),Ae=sr(),je=n.invert||t,Me=_e===`loading`;we.current=P.useMemo(()=>xe*x+ke,[xe,ke]),P.useEffect(()=>{pe.current=Se},[Se]),P.useEffect(()=>{M(!0)},[]),P.useEffect(()=>{let e=he.current;if(e){let t=e.getBoundingClientRect().height;return fe(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),P.useLayoutEffect(()=>{if(!j)return;let e=he.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,fe(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[j,n.title,n.description,a,n.id]);let Ne=P.useCallback(()=>{ne(!0),ue(we.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},Sr)},[n,d,a,we]);P.useEffect(()=>{if(n.promise&&_e===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||D&&Ae?(()=>{if(Te.current<Ce.current){let e=new Date().getTime()-Ce.current;pe.current-=e}Te.current=new Date().getTime()})():pe.current!==1/0&&(Ce.current=new Date().getTime(),e=setTimeout(()=>{var e;(e=n.onAutoClose)==null||e.call(n,n),Ne()},pe.current)),()=>clearTimeout(e)},[u,i,n,_e,D,Ae,Ne]),P.useEffect(()=>{n.delete&&Ne()},[Ne,n.delete]);function Pe(){return T!=null&&T.loading?P.createElement(`div`,{className:Cr(w?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":_e===`loading`},T.loading):S?P.createElement(`div`,{className:Cr(w?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":_e===`loading`},S):P.createElement(tr,{className:Cr(w?.loader,n?.classNames?.loader),visible:_e===`loading`})}return P.createElement(`li`,{tabIndex:0,ref:he,className:Cr(_,ye,w?.toast,n?.classNames?.toast,w?.default,w?.[_e],n?.classNames?.[_e]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":j,"data-promise":!!n.promise,"data-swiped":se,"data-removed":te,"data-visible":ge,"data-y-position":De,"data-x-position":Oe,"data-index":c,"data-front":N,"data-swiping":re,"data-dismissible":ve,"data-type":_e,"data-invert":je,"data-swipe-out":ae,"data-swipe-direction":A,"data-expanded":!!(u||C&&j),style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${te?le:we.current}px`,"--initial-height":C?`auto`:`${de}px`,...m,...n.style},onDragEnd:()=>{ie(!1),k(null),Ee.current=null},onPointerDown:e=>{Me||!ve||(me.current=new Date,ue(we.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(ie(!0),Ee.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e;if(ae||!ve)return;Ee.current=null;let t=Number(he.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),r=Number(he.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),i=new Date().getTime()-me.current?.getTime(),a=O===`x`?t:r,o=Math.abs(a)/i;if(Math.abs(a)>=xr||o>.11){ue(we.current),(e=n.onDismiss)==null||e.call(n,n),ee(O===`x`?t>0?`right`:`left`:r>0?`down`:`up`),Ne(),oe(!0),ce(!1);return}ie(!1),k(null)},onPointerMove:t=>{var n,r;if(!Ee.current||!ve||window.getSelection()?.toString().length>0)return;let i=t.clientY-Ee.current.y,a=t.clientX-Ee.current.x,o=e.swipeDirections??wr(b);!O&&(Math.abs(a)>1||Math.abs(i)>1)&&k(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0};O===`y`?(o.includes(`top`)||o.includes(`bottom`))&&(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)&&(s.y=i):O===`x`&&(o.includes(`left`)||o.includes(`right`))&&(o.includes(`left`)&&a<0||o.includes(`right`)&&a>0)&&(s.x=a),(Math.abs(s.x)>0||Math.abs(s.y)>0)&&ce(!0),(n=he.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=he.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},F&&!n.jsx?P.createElement(`button`,{"aria-label":E,"data-disabled":Me,"data-close-button":!0,onClick:Me||!ve?()=>{}:()=>{var e;Ne(),(e=n.onDismiss)==null||e.call(n,n)},className:Cr(w?.closeButton,n?.classNames?.closeButton)},T?.close??or):null,n.jsx||(0,P.isValidElement)(n.title)?n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title:P.createElement(P.Fragment,null,_e||n.icon||n.promise?P.createElement(`div`,{"data-icon":``,className:Cr(w?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Pe():null,n.type===`loading`?null:n.icon||T?.[_e]||$n(_e)):null,P.createElement(`div`,{"data-content":``,className:Cr(w?.content,n?.classNames?.content)},P.createElement(`div`,{"data-title":``,className:Cr(w?.title,n?.classNames?.title)},typeof n.title==`function`?n.title():n.title),n.description?P.createElement(`div`,{"data-description":``,className:Cr(v,be,w?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),(0,P.isValidElement)(n.
3cancel)?n.cancel:n.cancel&&mr(n.cancel)?P.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{var t,r;mr(n.cancel)&&ve&&((r=(t=n.cancel).onClick)==null||r.call(t,e),Ne())},className:Cr(w?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,(0,P.isValidElement)(n.action)?n.action:n.action&&mr(n.action)?P.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{var t,r;mr(n.action)&&((r=(t=n.action).onClick)==null||r.call(t,e),!e.defaultPrevented&&Ne())},className:Cr(w?.actionButton,n?.classNames?.actionButton)},n.action.label):null))};function Er(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function Dr(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?_r:gr;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var Or=(0,P.forwardRef)(function(e,t){let{invert:n,position:r=`bottom-right`,hotkey:i=[`altKey`,`KeyT`],expand:a,closeButton:o,className:s,offset:c,mobileOffset:l,theme:u=`light`,richColors:d,duration:f,style:p,visibleToasts:m=hr,toastOptions:h,dir:g=Er(),gap:_=br,loadingIcon:v,icons:y,containerAriaLabel:b=`Notifications`,pauseWhenPageIsHidden:x}=e,[S,C]=P.useState([]),w=P.useMemo(()=>Array.from(new Set([r].concat(S.filter(e=>e.position).map(e=>e.position)))),[S,r]),[T,E]=P.useState([]),[D,O]=P.useState(!1),[k,A]=P.useState(!1),[ee,j]=P.useState(u===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:u),M=P.useRef(null),te=i.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),ne=P.useRef(null),re=P.useRef(!1),ie=P.useCallback(e=>{C(t=>{var n;return(n=t.find(t=>t.id===e.id))!=null&&n.delete||lr.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]);return P.useEffect(()=>lr.subscribe(e=>{if(e.dismiss){C(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));return}setTimeout(()=>{Pe.flushSync(()=>{C(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[]),P.useEffect(()=>{if(u!==`system`){j(u);return}if(u===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?j(`dark`):j(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{j(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{j(e?`dark`:`light`)}catch(e){console.error(e)}})}},[u]),P.useEffect(()=>{S.length<=1&&O(!1)},[S]),P.useEffect(()=>{let e=e=>{var t,n;i.every(t=>e[t]||e.code===t)&&(O(!0),(t=M.current)==null||t.focus()),e.code===`Escape`&&(document.activeElement===M.current||(n=M.current)!=null&&n.contains(document.activeElement))&&O(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[i]),P.useEffect(()=>{if(M.current)return()=>{ne.current&&(ne.current.focus({preventScroll:!0}),ne.current=null,re.current=!1)}},[M.current]),P.createElement(`section`,{ref:t,"aria-label":`${b} ${te}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,r)=>{let[i,u]=t.split(`-`);return S.length?P.createElement(`ol`,{key:t,dir:g===`auto`?Er():g,tabIndex:-1,ref:M,className:s,"data-sonner-toaster":!0,"data-theme":ee,"data-y-position":i,"data-lifted":D&&S.length>1&&!a,"data-x-position":u,style:{"--front-toast-height":`${T[0]?.height||0}px`,"--width":`${yr}px`,"--gap":`${_}px`,...p,...Dr(c,l)},onBlur:e=>{re.current&&!e.currentTarget.contains(e.relatedTarget)&&(re.current=!1,ne.current&&=(ne.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`fal
3se`||re.current||(re.current=!0,ne.current=e.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{k||O(!1)},onDragEnd:()=>O(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||A(!0)},onPointerUp:()=>A(!1)},S.filter(e=>!e.position&&r===0||e.position===t).map((r,i)=>P.createElement(Tr,{key:r.id,icons:y,index:i,toast:r,defaultRichColors:d,duration:h?.duration??f,className:h?.className,descriptionClassName:h?.descriptionClassName,invert:n,visibleToasts:m,closeButton:h?.closeButton??o,interacting:k,position:t,style:h?.style,unstyled:h?.unstyled,classNames:h?.classNames,cancelButtonStyle:h?.cancelButtonStyle,actionButtonStyle:h?.actionButtonStyle,removeToast:ie,toasts:S.filter(e=>e.position==r.position),heights:T.filter(e=>e.position==r.position),setHeights:E,expandByDefault:a,gap:_,loadingIcon:v,expanded:D,pauseWhenPageIsHidden:x,swipeDirections:e.swipeDirections}))):null}))}),kr=({...e})=>{let{theme:t=`system`}=Qn();return(0,I.jsx)(Or,{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})},Ar=[`top`,`right`,`bottom`,`left`],jr=Math.min,Mr=Math.max,Nr=Math.round,Pr=Math.floor,Fr=e=>({x:e,y:e}),Ir={left:`right`,right:`left`,bottom:`top`,top:`bottom`},Lr={start:`end`,end:`start`};function Rr(e,t,n){return Mr(e,jr(t,n))}function zr(e,t){return typeof e==`function`?e(t):e}function Br(e){return e.split(`-`)[0]}function Vr(e){return e.split(`-`)[1]}function Hr(e){return e===`x`?`y`:`x`}function Ur(e){return e===`y`?`height`:`width`}var Wr=new Set([`top`,`bottom`]);function Gr(e){return Wr.has(Br(e))?`y`:`x`}function Kr(e){return Hr(Gr(e))}function qr(e,t,n){n===void 0&&(n=!1);let r=Vr(e),i=Kr(e),a=Ur(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ni(o)),[o,ni(o)]}function Jr(e){let t=ni(e);return[Yr(e),t,Yr(t)]}function Yr(e){return e.replace(/start|end/g,e=>Lr[e])}var Xr=[`left`,`right`],Zr=[`right`,`left`],Qr=[`top`,`bottom`],$r=[`bottom`,`top`];function ei(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Zr:Xr:t?Xr:Zr;case`left`:case`right`:return t?Qr:$r;default:return[]}}function ti(e,t,n,r){let i=Vr(e),a=ei(Br(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Yr)))),a}function ni(e){return e.replace(/left|right|bottom|top/g,e=>Ir[e])}function ri(e){return{top:0,right:0,bottom:0,left:0,...e}}function ii(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ri(e)}function ai(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function oi(e,t,n){let{reference:r,floating:i}=e,a=Gr(t),o=Kr(t),s=Ur(o),c=Br(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Vr(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}var si=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=oi(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=oi(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function ci(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=zr(t,e),p=ii(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ai(await i.getClippingRect
vendor: 7,085 bytes, line 3
3({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ai(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var li=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=zr(e,t)||{};if(l==null)return{};let d=ii(u),f={x:n,y:r},p=Kr(i),m=Ur(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=jr(d[_],T),D=jr(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,ee=Rr(O,A,k),j=!c.arrow&&Vr(i)!=null&&A!==ee&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,M=j?A<O?A-O:A-k:0;return{[p]:f[p]+M,data:{[p]:ee,centerOffset:A-ee-M,...j&&{alignmentOffset:M}},reset:j}}}),ui=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=zr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Br(r),_=Gr(o),v=Br(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[ni(o)]:Jr(o)),x=p!==`none`;!d&&x&&b.push(...ti(o,m,p,y));let S=[o,...b],C=await ci(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=qr(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Gr(t))||T.every(e=>e.overflows[0]>0&&Gr(e.placement)===_)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Gr(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function di(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fi(e){return Ar.some(t=>e[t]>=0)}var pi=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n}=t,{strategy:r=`referenceHidden`,...i}=zr(e,t);switch(r){case`referenceHidden`:{let e=di(await ci(t,{...i,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:fi(e)}}}case`escaped`:{let e=di(await ci(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:fi(e)}}}default:return{}}}}},mi=new Set([`left`,`top`]);async function hi(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Br(n),s=Vr(n),c=Gr(n)===`y`,l=mi.has(o)?-1:1,u=a&&c?-1:1,d=zr(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var gi=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await hi(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},_i=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=zr(e,t),l={x:n,y:r},u=await ci(t,c),d=Gr(Br(i)),f=Hr(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=Rr(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=Rr(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[d]:o}}}}}},vi=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=zr(e,t),u={x:n,y:r},d=Gr(i),f=Hr(d),p=u[f],m=u[d],h=zr(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=mi.has(Br(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},yi=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=zr(e,t),u=await ci(t,l),d=Br(i),f=Vr(i),p=Gr(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=jr(h-u[g],v),x=jr(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Mr(u.left,0),t=Mr(u.right,0),n=Mr(u.top,0),r=Mr(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Mr(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Mr(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function bi(){return typeof window<`u`}function xi(e){return wi(e)?(e.nodeName||``).toLowerCase():`#document`}function Si(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ci(e){return((wi(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function wi(e){return bi()?e instanceof Node||e instanceof Si(e).Node:!1}function Ti(e){return bi()?e instanceof Element||e instanceof Si(e).Element:!1}function Ei(e){return bi()?e instanceof HTMLElement||e instanceof Si(e).HTMLElement:!1}function Di(e){return!bi()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Si(e).ShadowRoot}var Oi=new Set([`inline`,`contents`]);function ki(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Hi(e);
vendor: 12,528 bytes, line 3
3return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Oi.has(i)}var Ai=new Set([`table`,`td`,`th`]);function ji(e){return Ai.has(xi(e))}var Mi=[`:popover-open`,`:modal`];function Ni(e){return Mi.some(t=>{try{return e.matches(t)}catch{return!1}})}var Pi=[`transform`,`translate`,`scale`,`rotate`,`perspective`],Fi=[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`],Ii=[`paint`,`layout`,`strict`,`content`];function Li(e){let t=zi(),n=Ti(e)?Hi(e):e;return Pi.some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||Fi.some(e=>(n.willChange||``).includes(e))||Ii.some(e=>(n.contain||``).includes(e))}function Ri(e){let t=Wi(e);for(;Ei(t)&&!Vi(t);){if(Li(t))return t;if(Ni(t))return null;t=Wi(t)}return null}function zi(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}var Bi=new Set([`html`,`body`,`#document`]);function Vi(e){return Bi.has(xi(e))}function Hi(e){return Si(e).getComputedStyle(e)}function Ui(e){return Ti(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wi(e){if(xi(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Di(e)&&e.host||Ci(e);return Di(t)?t.host:t}function Gi(e){let t=Wi(e);return Vi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ei(t)&&ki(t)?t:Gi(t)}function Ki(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Gi(e),i=r===e.ownerDocument?.body,a=Si(r);if(i){let e=qi(a);return t.concat(a,a.visualViewport||[],ki(r)?r:[],e&&n?Ki(e):[])}return t.concat(r,Ki(r,[],n))}function qi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ji(e){let t=Hi(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Ei(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Nr(n)!==a||Nr(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Yi(e){return Ti(e)?e:e.contextElement}function Xi(e){let t=Yi(e);if(!Ei(t))return Fr(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ji(t),o=(a?Nr(n.width):n.width)/r,s=(a?Nr(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Zi=Fr(0);function Qi(e){let t=Si(e);return!zi()||!t.visualViewport?Zi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $i(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Si(e)?!1:t}function ea(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Yi(e),o=Fr(1);t&&(r?Ti(r)&&(o=Xi(r)):o=Xi(e));let s=$i(a,n,r)?Qi(a):Fr(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Si(a),t=r&&Ti(r)?Si(r):r,n=e,i=qi(n);for(;i&&r&&t!==n;){let e=Xi(i),t=i.getBoundingClientRect(),r=Hi(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Si(i),i=qi(n)}}return ai({width:u,height:d,x:c,y:l})}function ta(e,t){let n=Ui(e).scrollLeft;return t?t.left+n:ea(Ci(e)).left+n}function na(e,t,n){n===void 0&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ta(e,r)),y:r.top+t.scrollTop}}function ra(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Ci(r),s=t?Ni(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Fr(1),u=Fr(0),d=Ei(r);if((d||!d&&!a)&&((xi(r)!==`body`||ki(o))&&(c=Ui(r)),Ei(r))){let e=ea(r);l=Xi(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?na(o,c,!0):Fr(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function ia(e){return Array.from(e.getClientRects())}function aa(e){let t=Ci(e),n=Ui(e),r=e.ownerDocument.body,i=Mr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Mr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+ta(e),s=-n.scrollTop;return Hi(r).direction===`rtl`&&(o+=Mr(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function oa(e,t){let n=Si(e),r=Ci(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=zi();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}var sa=new Set([`absolute`,`fixed`]);function ca(e,t){let n=ea(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ei(e)?Xi(e):Fr(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function la(e,t,n){let r;if(t===`viewport`)r=oa(e,n);else if(t===`document`)r=aa(Ci(e));else if(Ti(t))r=ca(t,n);else{let n=Qi(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ai(r)}function ua(e,t){let n=Wi(e);return n===t||!Ti(n)||Vi(n)?!1:Hi(n).position===`fixed`||ua(n,t)}function da(e,t){let n=t.get(e);if(n)return n;let r=Ki(e,[],!1).filter(e=>Ti(e)&&xi(e)!==`body`),i=null,a=Hi(e).position===`fixed`,o=a?Wi(e):e;for(;Ti(o)&&!Vi(o);){let t=Hi(o),n=Li(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&sa.has(i.position)||ki(o)&&!n&&ua(e,o))?r=r.filter(e=>e!==o):i=t,o=Wi(o)}return t.set(e,r),r}function fa(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ni(t)?[]:da(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=la(t,n,i);return e.top=Mr(r.top,e.top),e.right=jr(r.right,e.right),e.bottom=jr(r.bottom,e.bottom),e.left=Mr(r.left,e.left),e},la(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function pa(e){let{width:t,height:n}=Ji(e);return{width:t,height:n}}function ma(e,t,n){let r=Ei(t),i=Ci(t),a=n===`fixed`,o=ea(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Fr(0);function l(){c.x=ta(i)}if(r||!r&&!a)if((xi(t)!==`body`||ki(i))&&(s=Ui(t)),r){let e=ea(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?na(i,s):Fr(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function ha(e){return Hi(e).position===`static`}function ga(e,t){if(!Ei(e)||Hi(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Ci(e)===n&&(n=n.ownerDocument.body),n}function _a(e,t){let n=Si(e);if(Ni(e))return n;if(!Ei(e)){let t=Wi(e);for(;t&&!Vi(t);){if(Ti(t)&&!ha(t))return t;t=Wi(t)}return n}let r=ga(e,t);for(;r&&ji(r)&&ha(r);)r=ga(r,t);return r&&Vi(r)&&ha(r)&&!Li(r)?n:r||Ri(e)||n}var va=async function(e){let t=this.getOffsetParent||_a,n=this.getDimensions,r=await n(e.floating);return{reference:ma(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ya(e){return Hi(e).direction===`rtl`}var ba={convertOffsetParentRelativeRectToViewportRelativeRect:ra,getDocumentElement:Ci,getClippingRect:fa,getOffsetParent:_a,getElementRects:va,getClientRects:ia,getDimensions:pa,getScale:Xi,isElement:Ti,isRTL:ya};function xa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Sa(e,t){let n=null,r,i=Ci(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Pr(d),h=Pr(i.clientWidth-(u+f)),g=Pr(i.clientHeight-(d+p)),_=Pr(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Mr(0,jr(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!xa(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Ca(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Yi(e),u=i||a?[...l?Ki(l):[],...Ki(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Sa(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?ea(e):null;c&&g();function g(){let t=ea(e);h&&!xa(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var wa=gi,Ta=_i,Ea=ui,Da=yi,Oa=pi,ka=li,Aa=vi,ja=(e,t,n)=>{let r=new Map,i={platform:ba,...n},a={...i.platform,_c:r};return si(e,t,{...i,platform:a})},Ma=typeof document<`u`?P.useLayoutEffect:function(){};function Na(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Na(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Na(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Pa(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fa(e,t){let n=Pa(e);return Math.round(t*n)/n}function Ia(e){let t=P.useRef(e);return Ma(()=>{t.current=e}),t}function La(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=P.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=P.useState(r);Na(f,r)||p(r);let[m,h]=P.useState(null),[g,_]=P.useState(null),v=P.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=P.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=P.useRef(null),C=P.useRef(null),w=P.useRef(u),T=c!=null,E=Ia(c),D=Ia(i),O=Ia(l),k=P.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),ja(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Na(w.current,t)&&(w.current=t,Pe.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Ma(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=P.useRef(!1);Ma(()=>(A.current=!0,()=>{A.current=!1}),[]),Ma(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let ee=P.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),j=P.useMemo(()=>({reference:b,floating:x}),[b,x]),M=P.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=Fa(j.floating,u.x),r=Fa(j.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Pa(j.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,j.floating,u.x,u.y]);return P.useMemo(()=>({...u,update:k,refs:ee,elements:j,floatingStyles:M}),[u,k,ee,j,M])}var Ra=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:ka({element:r.current,padding:i}).fn(n):r?ka({element:r,padding:i}).fn(n):{}}}},za=(e,t)=>({...wa(e),options:[e,t]}),Ba=(e,t)=>({...Ta(e),options:[e,t]}),Va=(e,t)=>({...Aa(e),options:[e,t]}),Ha=(e,t)=>({...Ea(e),options:[e,t]}),Ua=(e,t)=>({...Da(e),options:[e,t]}),Wa=(e,t)=>({...Oa(e),options:[e,t]}),Ga=(e,t)=>({...Ra(e),options:[e,t]}),Ka=`Arrow`,qa=P.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,I.jsx)(y.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,I.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});qa.displayName=Ka;var Ja=qa;function Ya(e){let[t,n]=P.useState(void 0);return s(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var Xa=`Popper`,[Za,Qa]=o(Xa),[$a,eo]=Za(Xa),to=e=>{let{__scopePopper:t,children:n}=e,[r,i]=P.useState(null);return(0,I.jsx)($a,{scope:t,anchor:r,onAnchorChange:i,children:n})};to.displayName=Xa;var no=`PopperAnchor`,ro=P.forwardRef((e,t)=>
vendor: 4,232 bytes, line 3
3{let{__scopePopper:n,virtualRef:r,...i}=e,a=eo(no,n),o=P.useRef(null),s=_(t,o);return P.useEffect(()=>{a.onAnchorChange(r?.current||o.current)}),r?null:(0,I.jsx)(y.div,{...i,ref:s})});ro.displayName=no;var io=`PopperContent`,[ao,oo]=Za(io),so=P.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f=`partial`,hideWhenDetached:p=!1,updatePositionStrategy:m=`optimized`,onPlaced:h,...g}=e,v=eo(io,n),[b,S]=P.useState(null),C=_(t,e=>S(e)),[w,T]=P.useState(null),E=Ya(w),D=E?.width??0,O=E?.height??0,k=r+(a===`center`?``:`-`+a),A=typeof d==`number`?d:{top:0,right:0,bottom:0,left:0,...d},ee=Array.isArray(u)?u:[u],j=ee.length>0,M={padding:A,boundary:ee.filter(fo),altBoundary:j},{refs:te,floatingStyles:ne,placement:re,isPositioned:ie,middlewareData:ae}=La({strategy:`fixed`,placement:k,whileElementsMounted:(...e)=>Ca(...e,{animationFrame:m===`always`}),elements:{reference:v.anchor},middleware:[za({mainAxis:i+O,alignmentAxis:o}),l&&Ba({mainAxis:!0,crossAxis:!1,limiter:f===`partial`?Va():void 0,...M}),l&&Ha({...M}),Ua({...M,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),w&&Ga({element:w,padding:c}),po({arrowWidth:D,arrowHeight:O}),p&&Wa({strategy:`referenceHidden`,...M})]}),[oe,se]=mo(re),ce=x(h);s(()=>{ie&&ce?.()},[ie,ce]);let le=ae.arrow?.x,ue=ae.arrow?.y,de=ae.arrow?.centerOffset!==0,[fe,pe]=P.useState();return s(()=>{b&&pe(window.getComputedStyle(b).zIndex)},[b]),(0,I.jsx)(`div`,{ref:te.setFloating,"data-radix-popper-content-wrapper":``,style:{...ne,transform:ie?ne.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:fe,"--radix-popper-transform-origin":[ae.transformOrigin?.x,ae.transformOrigin?.y].join(` `),...ae.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,I.jsx)(ao,{scope:n,placedSide:oe,onArrowChange:T,arrowX:le,arrowY:ue,shouldHideArrow:de,children:(0,I.jsx)(y.div,{"data-side":oe,"data-align":se,...g,ref:C,style:{...g.style,animation:ie?void 0:`none`}})})})});so.displayName=io;var co=`PopperArrow`,lo={top:`bottom`,right:`left`,bottom:`top`,left:`right`},uo=P.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=oo(co,n),a=lo[i.placedSide];return(0,I.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,I.jsx)(Ja,{...r,ref:t,style:{...r.style,display:`block`}})})});uo.displayName=co;function fo(e){return e!==null}var po=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=mo(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function mo(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var ho=to,go=ro,_o=so,vo=uo,[yo,bo]=o(`Tooltip`,[Qa]),xo=Qa(),So=`TooltipProvider`,Co=700,wo=`tooltip.open`,[To,Eo]=yo(So),Do=e=>{let{__scopeTooltip:t,delayDuration:n=Co,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=P.useRef(!0),s=P.useRef(!1),c=P.useRef(0);return P.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,I.jsx)(To,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:P.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:P.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>
vendor: 5,238 bytes, line 3
3o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:P.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};Do.displayName=So;var Oo=`Tooltip`,[ko,Ao]=yo(Oo),jo=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=Eo(Oo,e.__scopeTooltip),u=xo(t),[d,f]=P.useState(null),p=S(),m=P.useRef(0),h=o??c.disableHoverableContent,g=s??c.delayDuration,_=P.useRef(!1),[v,y]=l({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(wo))):c.onClose(),a?.(e)},caller:Oo}),b=P.useMemo(()=>v?_.current?`delayed-open`:`instant-open`:`closed`,[v]),x=P.useCallback(()=>{window.clearTimeout(m.current),m.current=0,_.current=!1,y(!0)},[y]),C=P.useCallback(()=>{window.clearTimeout(m.current),m.current=0,y(!1)},[y]),w=P.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{_.current=!0,y(!0),m.current=0},g)},[g,y]);return P.useEffect(()=>()=>{m.current&&=(window.clearTimeout(m.current),0)},[]),(0,I.jsx)(ho,{...u,children:(0,I.jsx)(ko,{scope:t,contentId:p,open:v,stateAttribute:b,trigger:d,onTriggerChange:f,onTriggerEnter:P.useCallback(()=>{c.isOpenDelayedRef.current?w():x()},[c.isOpenDelayedRef,w,x]),onTriggerLeave:P.useCallback(()=>{h?C():(window.clearTimeout(m.current),m.current=0)},[C,h]),onOpen:x,onClose:C,disableHoverableContent:h,children:n})})};jo.displayName=Oo;var Mo=`TooltipTrigger`,No=P.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Ao(Mo,n),o=Eo(Mo,n),s=xo(n),c=_(t,P.useRef(null),i.onTriggerChange),l=P.useRef(!1),u=P.useRef(!1),d=P.useCallback(()=>l.current=!1,[]);return P.useEffect(()=>()=>document.removeEventListener(`pointerup`,d),[d]),(0,I.jsx)(go,{asChild:!0,...s,children:(0,I.jsx)(y.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:c,onPointerMove:a(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:a(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:a(e.onPointerDown,()=>{i.open&&i.onClose(),l.current=!0,document.addEventListener(`pointerup`,d,{once:!0})}),onFocus:a(e.onFocus,()=>{l.current||i.onOpen()}),onBlur:a(e.onBlur,i.onClose),onClick:a(e.onClick,i.onClose)})})});No.displayName=Mo;var Po=`TooltipPortal`,[Fo,Io]=yo(Po,{forceMount:void 0}),Lo=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=Ao(Po,t);return(0,I.jsx)(Fo,{scope:t,forceMount:n,children:(0,I.jsx)(b,{present:n||a.open,children:(0,I.jsx)($e,{asChild:!0,container:i,children:r})})})};Lo.displayName=Po;var Ro=`TooltipContent`,zo=P.forwardRef((e,t)=>{let n=Io(Ro,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=Ao(Ro,e.__scopeTooltip);return(0,I.jsx)(b,{present:r||o.open,children:o.disableHoverableContent?(0,I.jsx)(Wo,{side:i,...a,ref:t}):(0,I.jsx)(Bo,{side:i,...a,ref:t})})}),Bo=P.forwardRef((e,t)=>{let n=Ao(Ro,e.__scopeTooltip),r=Eo(Ro,e.__scopeTooltip),i=P.useRef(null),a=_(t,i),[o,s]=P.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=P.useCallback(()=>{s(null),d(!1)},[d]),p=P.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Jo(r,qo(r,n.getBoundingClientRect())),a=Yo(t.getBoundingClientRect()),o=Zo([...i,...a]);s(o),d(!0)},[d]);return P.useEffect(()=>()=>f(),[f]),P.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),P.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Xo(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,I.jsx)(Wo,{...e,ref:a})}),[Vo,Ho]=yo(Oo,{isInside:!1}),Uo=u(`TooltipContent`),Wo=P.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=Ao(Ro,n),l=xo(n),{onClose:u}=c;return P.useEffect(()=>(document.addEventListener(wo,u),()=>document.removeEventListener(wo,u)),[u]),P.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,I.jsx)(Ue,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,I.jsxs)(_o,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.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:[(0,I.jsx)(Uo,{children:r}),(0,I.jsx)(Vo,{scope:n,isInside:!0,children:(0,I.jsx)(rt,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});zo.displayName=Ro;var Go=`TooltipArrow`,Ko=P.forwardRef((e,t)=>
3{let{__scopeTooltip:n,...r}=e,i=xo(n);return Ho(Go,n).isInside?null:(0,I.jsx)(vo,{...i,...r,ref:t})});Ko.displayName=Go;function qo(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function Jo(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Yo(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Xo(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Zo(e){let 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)),Qo(t)}function Qo(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let 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))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var $o=Do,es=jo,ts=No,ns=zo,rs=$o,is=es,as=ts,os=P.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,I.jsx)(ns,{ref:r,sideOffset:t,className:m(`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),...n}));os.displayName=ns.displayName;var ss=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(){}},cs=typeof window>`u`||`Deno`in globalThis;function ls(){}function us(e,t){return typeof e==`function`?e(t):e}function ds(e){return typeof e==`number`&&e>=0&&e!==1/0}function fs(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ps(e,t){return typeof e==`function`?e(t):e}function ms(e,t){return typeof e==`function`?e(t):e}function hs(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==_s(o,t.options))return!1}else if(!ys(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function gs(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(vs(t.options.mutationKey)!==vs(a))return!1}else if(!ys(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function _s(e,t){return(t?.queryKeyHashFn||vs)(e)}function vs(e){return JSON.stringify(e,(e,t)=>Cs(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function ys(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>ys(e[n],t[n])):!1}function bs(e,t){if(e===t)return e;let n=Ss(e)&&Ss(t);if(n||Cs(e)&&Cs(t)){let r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),o=a.length,s=n?[]:{},c=new Set(r),l=0;for(let r=0;r<o;r++){let i=n?r:a[r];(!n&&c.has(i)||n)&&e[i]===void 0&&t[i]===void 0?(s[i]=void 0,l++):(s[i]=bs(e[i],t[i]),s[i]===e[i]&&e[i]!==void 0&&l++)}return i===o&&l===i?e:s}return t}function xs(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function Ss(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Cs(e){if(!ws(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!ws(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function ws(e){return Object.prototype.toString.call(e)===`[object Object]`}function Ts(e){return new Promise(t=>{setTimeout(t,e)})}function Es(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:bs(e,t)}function Ds(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Os(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ks=Symbol();function As(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ks?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function js(e,t){return typeof e==`function`?e(...t):!!e}var Ms=new class extends ss{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!cs&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();
3this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Ns=new class extends ss{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!cs&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Ps(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}function Fs(e){return Math.min(1e3*2**e,3e4)}function Is(e){return(e??`online`)!==`online`||Ns.isOnline()}var Ls=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Rs(e){return e instanceof Ls}function zs(e){let t=!1,n=0,r=!1,i,a=Ps(),o=t=>{r||(f(new Ls(t)),e.abort?.())},s=()=>{t=!0},c=()=>{t=!1},l=()=>Ms.isFocused()&&(e.networkMode===`always`||Ns.isOnline())&&e.canRun(),u=()=>Is(e.networkMode)&&e.canRun(),d=t=>{r||(r=!0,e.onSuccess?.(t),i?.(),a.resolve(t))},f=t=>{r||(r=!0,e.onError?.(t),i?.(),a.reject(t))},p=()=>new Promise(t=>{i=e=>{(r||l())&&t(e)},e.onPause?.()}).then(()=>{i=void 0,r||e.onContinue?.()}),m=()=>{if(r)return;let i,a=n===0?e.initialPromise:void 0;try{i=a??e.fn()}catch(e){i=Promise.reject(e)}Promise.resolve(i).then(d).catch(i=>{if(r)return;let a=e.retry??(cs?0:3),o=e.retryDelay??Fs,s=typeof o==`function`?o(n,i):o,c=a===!0||typeof a==`number`&&n<a||typeof a==`function`&&a(n,i);if(t||!c){f(i);return}n++,e.onFail?.(n,i),Ts(s).then(()=>l()?void 0:p()).then(()=>{t?f(i):m()})})};return{promise:a,cancel:o,continue:()=>(i?.(),a),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),a)}}var Bs=e=>setTimeout(e,0);function Vs(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Bs,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Hs=Vs(),Us=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ds(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(cs?1/0:300*1e3))}clearGcTimeout(){this.#e&&=(clearTimeout(this.#e),void 0)}},Ws=class extends Us{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Ks(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=Es(this.state.data,e,this.options);return this.#s({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(ls).catch(ls):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>ms(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ks||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>ps(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!fs(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:`invalidate`})}fetch(e,t){if(this.state.fetchStatus!==`idle`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)}
3)},i=()=>{let e=As(this.options,t),n=(()=>{let e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#s({type:`fetch`,meta:a.fetchOptions?.meta});let o=e=>{Rs(e)&&e.silent||this.#s({type:`error`,error:e}),Rs(e)||(this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#i=zs({initialPromise:t?.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(e===void 0){o(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){o(e);return}this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:o,onFail:(e,t)=>{this.#s({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#s({type:`pause`})},onContinue:()=>{this.#s({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#i.start()}#s(e){let t=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,...Gs(t.data,this.options),fetchMeta:e.meta??null};case`success`:return this.#t=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`:let n=e.error;return Rs(n)&&n.revert&&this.#t?{...this.#t,fetchStatus:`idle`}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:`idle`,status:`error`};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Hs.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function Gs(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Is(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Ks(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var qs=class extends ss{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??_s(r,t),a=this.get(i);return a||(a=new Ws({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Hs.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>hs(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>hs(e,t)):t}notify(e){Hs.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Hs.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Hs.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Js=class extends Us{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||Ys(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:`observerRemoved`,mutation:this,observer:e})}
3optionalRemove(){this.#e.length||(this.state.status===`pending`?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#r({type:`continue`})};this.#n=zs({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#r({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#r({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});let n=this.state.status===`pending`,r=!this.#n.canStart();try{if(n)t();else{this.#r({type:`pending`,variables:e,isPaused:r}),await this.#t.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#r({type:`pending`,context:t,variables:e,isPaused:r})}let i=await this.#n.start();return await this.#t.config.onSuccess?.(i,e,this.state.context,this),await this.options.onSuccess?.(i,e,this.state.context),await this.#t.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,e,this.state.context),this.#r({type:`success`,data:i}),i}catch(t){try{throw await this.#t.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#t.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#r({type:`error`,error:t})}}finally{this.#t.runNext(this)}}#r(e){let t=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=t(this.state),Hs.batch(()=>{this.#e.forEach(t=>{t.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:`updated`,action:e})})}};function Ys(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Xs=class extends ss{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Js({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Zs(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Zs(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Zs(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Zs(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>
vendor: 8,851 bytes, line 3
3t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Hs.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>gs(t,e))}findAll(e={}){return this.getAll().filter(t=>gs(e,t))}notify(e){Hs.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Hs.batch(()=>Promise.all(e.map(e=>e.continue().catch(ls))))}};function Zs(e){return e.options.scope?.id}function Qs(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener(`abort`,()=>{n=!0}),t.signal)})},u=As(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?Os:Ds;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?ec:$s,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:$s(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function $s(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ec(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var tc=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new qs,this.#t=e.mutationCache||new Xs,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Ms.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Ns.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ps(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=us(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Hs.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Hs.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Hs.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Hs.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(ls).catch(ls)}invalidateQueries(e,t={}){return Hs.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Hs.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(ls)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(ls)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(ps(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ls).catch(ls)}fetchInfiniteQuery(e){return e.behavior=Qs(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ls).catch(ls)}ensureInfiniteQueryData(e){return e.behavior=Qs(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ns.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(vs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{ys(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(vs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{ys(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=_s(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ks&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},nc=class extends ss{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=Ps(),this.options.experimental_prefetchInRender||this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`)),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),ic(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ac(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ac(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof ms(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!xs(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&oc(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||ms(this.options.enabled,this.#t)!==ms(t.enabled,this.#t)||ps(this.options.staleTime,this.#t)!==ps(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||ms(this.options.enabled,this.#t)!==ms(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return cc(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(ls)),t}#g(){this.#b();let e=ps(this.options.staleTime,this.#t);if(cs||this.#r.isStale||!ds(e))return;let t=fs(this.#r.dataUpdatedAt,e)+1;this.#d=setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(cs||ms(this.options.enabled,this.#t)===!1||!ds(this.#p)||this.#p===0)&&(this.#f=setInterval(()=>
3{(this.options.refetchIntervalInBackground||Ms.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d&&=(clearTimeout(this.#d),void 0)}#x(){this.#f&&=(clearInterval(this.#f),void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&ic(e,t),o=i&&oc(e,n,t,r);(a||o)&&(l={...l,...Gs(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=Es(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=Es(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:sc(e,t),refetch:this.refetch,promise:this.#o,isEnabled:ms(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=e=>{x.status===`error`?e.reject(x.error):x.data!==void 0&&e.resolve(x.data)},r=()=>{let e=this.#o=x.promise=Ps();t(e)},i=this.#o;switch(i.status){case`pending`:e.queryHash===n.queryHash&&t(i);break;case`fulfilled`:(x.status===`error`||x.data!==i.value)&&r();break;case`rejected`:(x.status!==`error`||x.error!==i.reason)&&r();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!xs(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){Hs.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function rc(e,t){return ms(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&t.retryOnMount===!1)}function ic(e,t){return rc(e,t)||e.state.data!==void 0&&ac(e,t,t.refetchOnMount)}function ac(e,t,n){if(ms(t.enabled,e)!==!1&&ps(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&sc(e,t)}return!1}function oc(e,t,n,r){return(e!==t||ms(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&sc(e,n)}function sc(e,t){return ms(t.enabled,e)!==!1&&e.isStaleByTime(ps(t.staleTime,e))}function cc(e,t){return!xs(e.getCurrentResult(),t)}var lc=P.createContext(void 0),uc=e=>{let t=P.useContext(lc);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},dc=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,I.jsx)(lc.Provider,{value:e,children:t})),fc=P.createContext(!1),pc=()=>P.useContext(fc);fc.Provider;function mc(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
3var hc=P.createContext(mc()),gc=()=>P.useContext(hc),_c=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},vc=e=>{P.useEffect(()=>{e.clearReset()},[e])},yc=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||js(n,[e.error,r])),bc=e=>{if(e.suspense){let t=e=>e===`static`?e:Math.max(e??1e3,1e3),n=e.staleTime;e.staleTime=typeof n==`function`?(...e)=>t(n(...e)):t(n),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,1e3))}},xc=(e,t)=>e.isLoading&&e.isFetching&&!t,Sc=(e,t)=>e?.suspense&&t.isPending,Cc=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function wc(e,t,n){let r=pc(),i=gc(),a=uc(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o),o._optimisticResults=r?`isRestoring`:`optimistic`,bc(o),_c(o,i),vc(i);let s=!a.getQueryCache().get(o.queryHash),[c]=P.useState(()=>new t(a,o)),l=c.getOptimisticResult(o),u=!r&&e.subscribed!==!1;if(P.useSyncExternalStore(P.useCallback(e=>{let t=u?c.subscribe(Hs.batchCalls(e)):ls;return c.updateResult(),t},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),P.useEffect(()=>{c.setOptions(o)},[o,c]),Sc(o,l))throw Cc(o,c,i);if(yc({result:l,errorResetBoundary:i,throwOnError:o.throwOnError,query:a.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw l.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,l),o.experimental_prefetchInRender&&!cs&&xc(l,r)&&(s?Cc(o,c,i):a.getQueryCache().get(o.queryHash)?.promise)?.catch(ls).finally(()=>{c.updateResult()}),o.notifyOnChangeProps?l:c.trackResult(l)}function Tc(e,t){return wc(e,nc,t)}var Ec=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Dc=/^[\\/]{2}/;function Oc(e,t){return t+e.replace(/\\/g,`/`)}var kc=`popstate`;function Ac(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function jc(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return Fc(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:Ic(t)}return Rc(t,n,null,e)}function L(e,t){if(e===!1||e==null)throw Error(t)}function Mc(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function Nc(){return Math.random().toString(36).substring(2,10)}function Pc(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Fc(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?Lc(t):t,state:n,key:t&&t.key||r||Nc(),mask:i}}function Ic({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function Lc(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Rc(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=Ac(e)?e:Fc(h.location,e,t);n&&n(r,e),l=u()+1;let d=Pc(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=Ac(e)?e:Fc(h.location,e,t);n&&n(r,e),l=u();let i=Pc(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return zc(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(kc,d),c=e,()=>{i.removeEventListener(kc,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function zc(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),L(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:Ic(t);return i=i.replace(/ $/,`%20`),!n&&Dc.test(i)&&(i=r+i),new URL(i,r)}function Bc(e,t,n=`/`){return Vc(e,t,n,!1)}function Vc(e,t,n,r,i){let a=sl((typeof t==`string`?Lc(t):t).pathname||`/`,n);if(a==null)return null;let o=i??Uc(e),s=null,c=ol(a);for(let e=0;s==null&&e<o.length;++e)s=nl(o[e],c,r);return s}function Hc(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function Uc(e){let t=Wc(e);return Kc(t),t}function Wc(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;L(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}
3" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=hl([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(L(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),Wc(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:el(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=al(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of Gc(e.path))a(e,t,!0,n)}),t}function Gc(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Gc(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function Kc(e){e.sort((e,t)=>e.score===t.score?tl(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var qc=/^:[\w-]+$/,Jc=3,Yc=2,Xc=1,Zc=10,Qc=-2,$c=e=>e===`*`;function el(e,t){let n=e.split(`/`),r=n.length;return n.some($c)&&(r+=Qc),t&&(r+=Yc),n.filter(e=>!$c(e)).reduce((e,t)=>e+(qc.test(t)?Jc:t===``?Xc:Zc),r)}function tl(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function nl(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?il(u,l,s.matcher,s.compiledParams):rl(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=rl({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;
3Object.assign(i,d.params),o.push({params:i,pathname:hl([a,d.pathname]),pathnameBase:_l(hl([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=hl([a,d.pathnameBase]))}return o}function rl(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=al(e.path,e.caseSensitive,e.end);return il(e,t,n,r)}function il(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function al(e,t=!1,n=!0){Mc(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function ol(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return Mc(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function sl(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function cl(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Lc(e):e,a;return n?(n=ml(n),a=n.startsWith(`/`)?ll(n.substring(1),`/`):ll(n,t)):a=t,{pathname:a,search:vl(r),hash:yl(i)}}function ll(e,t){let n=gl(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function ul(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function dl(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function fl(e){let t=dl(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function pl(e,t,n,r=!1){let i;typeof e==`string`?i=Lc(e):(i={...e},L(!i.pathname||!i.pathname.includes(`?`),ul(`?`,`pathname`,`search`,i)),L(!i.pathname||!i.pathname.includes(`#`),ul(`#`,`pathname`,`hash`,i)),L(!i.search||!i.search.includes(`#`),ul(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=cl(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var ml=e=>e.replace(/[\\/]{2,}/g,`/`),hl=e=>ml(e.join(`/`)),gl=e=>e.replace(/\/+$/,``),_l=e=>gl(e).replace(/^\/*/,`/`),vl=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,yl=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,bl=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function xl(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Sl(e){return hl(e.map(e=>e.route.path).filter(Boolean))||`/`}var Cl=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function wl(e,t){let n=e;if(typeof n!=`string`||!Ec.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Cl)try{let e=new URL(window.location.href),r=Dc.test(n)?new URL(Oc(n,e.protocol)):new URL(n),a=sl(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{Mc(!1,`<Link to="${n}">
3 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Tl=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Tl);var El=[`GET`,...Tl];new Set(El);var Dl=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Ol(e){try{return Dl.includes(new URL(e).protocol)}catch{return!1}}var kl=P.createContext(null);kl.displayName=`DataRouter`;var Al=P.createContext(null);Al.displayName=`DataRouterState`;var jl=P.createContext(!1);function Ml(){return P.useContext(jl)}var Nl=P.createContext({isTransitioning:!1});Nl.displayName=`ViewTransition`;var Pl=P.createContext(new Map);Pl.displayName=`Fetchers`;var Fl=P.createContext(null);Fl.displayName=`Await`;var Il=P.createContext(null);Il.displayName=`Navigation`;var Ll=P.createContext(null);Ll.displayName=`Location`;var Rl=P.createContext({outlet:null,matches:[],isDataRoute:!1});Rl.displayName=`Route`;var zl=P.createContext(null);zl.displayName=`RouteError`;var Bl=`REACT_ROUTER_ERROR`,Vl=`REDIRECT`,Hl=`ROUTE_ERROR_RESPONSE`;function Ul(e){if(e.startsWith(`${Bl}:${Vl}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Wl(e){if(e.startsWith(`${Bl}:${Hl}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new bl(t.status,t.statusText,t.data)}catch{}}function Gl(e,{relative:t}={}){L(Kl(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=P.useContext(Il),{hash:i,pathname:a,search:o}=Ql(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:hl([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Kl(){return P.useContext(Ll)!=null}function R(){return L(Kl(),`useLocation() may be used only in the context of a <Router> component.`),P.useContext(Ll).location}var ql=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Jl(e){P.useContext(Il).static||P.useLayoutEffect(e)}function Yl(){let{isDataRoute:e}=P.useContext(Rl);return e?_u():Xl()}function Xl(){L(Kl(),`useNavigate() may be used only in the context of a <Router> component.`);let e=P.useContext(kl),{basename:t,navigator:n}=P.useContext(Il),{matches:r}=P.useContext(Rl),{pathname:i}=R(),a=JSON.stringify(fl(r)),o=P.useRef(!1);return Jl(()=>{o.current=!0}),P.useCallback((r,s={})=>{if(Mc(o.current,ql),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=pl(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:hl([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}P.createContext(null);function Zl(){let{matches:e}=P.useContext(Rl);return e[e.length-1]?.params??{}}function Ql(e,{relative:t}={}){let{matches:n}=P.useContext(Rl),{pathname:r}=R(),i=JSON.stringify(fl(n));return P.useMemo(()=>pl(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function $l(e,t){return eu(e,t)}function eu(e,t,n){L(Kl(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=P.useContext(Il),{matches:i}=P.useContext(Rl),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;yu(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
4
5Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=R(),d;if(t){let e=typeof t==`string`?Lc(t):t;L(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):Bc(e,{pathname:p});Mc(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Mc(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=su(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:hl([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:hl([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?P.createElement(Ll.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function tu(){let e=gu(),t=xl(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=P.createElement(P.Fragment,null,P.createElement(`p`,null,`💿 Hey developer 👋`),P.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,P.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,P.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),P.createElement(P.Fragment,null,P.createElement(`h2`,null,`Unexpected Application 
5Error!`),P.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?P.createElement(`pre`,{style:i},n):null,o)}var nu=P.createElement(tu,null),ru=class extends P.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Wl(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:P.createElement(Rl.Provider,{value:this.props.routeContext},P.createElement(zl.Provider,{value:e,children:this.props.component}));return this.context?P.createElement(au,{error:e},t):t}};ru.contextType=jl;var iu=new WeakMap;function au({children:e,error:t}){let{basename:n}=P.useContext(Il);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Ul(t.digest);if(e){let r=iu.get(t);if(r)throw r;let i=wl(e.location,n),a=i.absoluteURL||i.to;if(Ol(a))throw Error(`Invalid redirect location`);if(Cl&&!iu.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw iu.set(t,n),n}return P.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function ou({routeContext:e,match:t,children:n}){let r=P.useContext(kl);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),P.createElement(Rl.Provider,{value:e},n)}function su(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);L(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Sl(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||nu,o&&(s<0&&c===0?(yu(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?P.createElement(n.route.Component,null):n.route.element?n.route.element:e,P.createElement(ou,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?P.createElement(ru,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function cu(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function lu(e){let t=P.useContext(kl);return L(t,cu(e)),t}function uu(e){let t=P.useContext(Al);return L(t,cu(e)),t}function du(e){let t=P.useContext(Rl);return L(t,cu(e)),t}function fu(e){let t=du(e),n=t.matches[t.matches.length-1];return L(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function pu(){return fu(`useRouteId`)}function mu(){let e=uu(`useNavigation`);return P.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function hu(){let{matches:e,loaderData:t}=uu(`useMatches`);return P.useMemo(()=>e.map(e=>Hc(e,t)),[e,t])}function gu(){let e=P.useContext(zl),t=uu(`useRouteError`),n=fu(`useRouteError`);return e===void 0?t.errors?.[n]:e}function _u(){let{router:e}=lu(`useNavigate`),t=fu(`useNavigate`),n=P.useRef(!1);return Jl(()=>{n.current=!0}),P.useCallback(async(r,i={})=>{Mc(n.current,ql),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var vu={};function yu(e,t,n){!t&&!vu[e]&&(vu[e]=!0,Mc(!1,n))}P.memo(bu);function bu({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return eu(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function xu({to:e,replace:t,state:n,relative:r}){L(Kl(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=P.useContext(Il);Mc(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=P.useContext(Rl),{pathname:o}=R(),s=Yl(),c=pl(e,fl(a),o,r===`path`),l=JSON.stringify(c);return P.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function z(e){L(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function Su({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){L(!Kl(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=P.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=Lc(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=P.useMemo(()=>{let e=sl(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);
5return Mc(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:P.createElement(Il.Provider,{value:c},P.createElement(Ll.Provider,{children:t,value:h}))}function Cu({children:e,location:t}){return $l(wu(e),t)}P.Component;function wu(e,t=[]){let n=[];return P.Children.forEach(e,(e,r)=>{if(!P.isValidElement(e))return;let i=[...t,r];if(e.type===P.Fragment){n.push.apply(n,wu(e.props.children,i));return}L(e.type===z,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),L(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=wu(e.props.children,i)),n.push(a)}),n}var Tu=`get`,Eu=`application/x-www-form-urlencoded`;function Du(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Ou(e){return Du(e)&&e.tagName.toLowerCase()===`button`}function ku(e){return Du(e)&&e.tagName.toLowerCase()===`form`}function Au(e){return Du(e)&&e.tagName.toLowerCase()===`input`}function ju(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Mu(e,t){return e.button===0&&(!t||t===`_self`)&&!ju(e)}function Nu(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Pu(e,t){let n=Nu(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Fu=null;function Iu(){if(Fu===null)try{new FormData(document.createElement(`form`),0),Fu=!1}catch{Fu=!0}return Fu}var Lu=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Ru(e){return e!=null&&!Lu.has(e)?(Mc(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Eu}"`),null):e}function zu(e,t){let n,r,i,a,o;if(ku(e)){let o=e.getAttribute(`action`);r=o?sl(o,t):null,n=e.getAttribute(`method`)||Tu,i=Ru(e.getAttribute(`enctype`))||Eu,a=new FormData(e)}else if(Ou(e)||Au(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?sl(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Tu,i=Ru(e.getAttribute(`formenctype`))||Ru(o.getAttribute(`enctype`))||Eu,a=new FormData(o,e),!Iu()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Du(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Tu,r=null,i=Eu,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Bu={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},Vu=/[&><\u2028\u2029]/g;function Hu(e){return e.replace(Vu,e=>Bu[e])}function Uu(e,t){if(e===!1||e==null)throw Error(t)}function Wu(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&sl(i.pathname,t)===`/`?i.pathname=`${gl(t)}
5/_root.${r}`:i.pathname=`${gl(i.pathname)}.${r}`,i}async function Gu(e,t){if(e.id in t)return t[e.id];try{let n=await w(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ku(e){return e!=null&&typeof e.page==`string`}function qu(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Ju(e,t,n){return $u((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Gu(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(qu).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Yu(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Xu(e,t,{includeHydrateFallback:n}={}){return Zu(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Zu(e){return[...new Set(e)]}function Qu(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function $u(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Ku(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Qu(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function ed(){let e=P.useContext(kl);return Uu(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function td(){let e=P.useContext(Al);return Uu(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var nd=P.createContext(void 0);nd.displayName=`FrameworkContext`;function rd(){let e=P.useContext(nd);return Uu(e,`You must render this element inside a <HydratedRouter> element`),e}function id(e,t){let n=P.useContext(nd),[r,i]=P.useState(!1),[a,o]=P.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=P.useRef(null);P.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),P.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:ad(s,p),onBlur:ad(c,m),onMouseEnter:ad(l,p),onMouseLeave:ad(u,m),onTouchStart:ad(d,p)}]:[a,f,{}]:[!1,f,{}]}function ad(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function od({page:e,...t}){let n=Ml(),{nonce:r}=rd(),{router:i}=ed(),a=P.useMemo(()=>Bc(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?P.createElement(cd,{page:e,matches:a,...t}):P.createElement(ld,{page:e,matches:a,...t})):null}function sd(e){let{manifest:t,routeModules:n}=rd(),[r,i]=P.useState([]);return P.useEffect(()=>{let r=!1;return Ju(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function cd({page:e,matches:t,...n}){let r=R(),{future:i}=rd(),{basename:a}=ed(),o=P.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Wu(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return P.createElement(P.Fragment,null,o.map(e=>P.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function ld({page:e,matches:t,...n}){let r=R(),{future:i,manifest:a,routeModules:o}=rd(),{basename:s}=ed(),{loaderData:c,matches:l}=td(),u=P.useMemo(()=>Yu(e,t,l,a,r,`data`),[e,t,l,a,r]),d=P.useMemo(()=>Yu(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=P.useMemo(()=>
5{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=Wu(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=P.useMemo(()=>Xu(d,a),[d,a]),m=sd(d);return P.createElement(P.Fragment,null,f.map(e=>P.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>P.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>P.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function ud(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}P.Component;var dd=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{dd&&(window.__reactRouterVersion=`7.18.1`)}catch{}function fd({basename:e,children:t,useTransitions:n,window:r}){let i=P.useRef();i.current??=jc({window:r,v5Compat:!0});let a=i.current,[o,s]=P.useState({action:a.action,location:a.location}),c=P.useCallback(e=>{n===!1?s(e):P.startTransition(()=>s(e))},[n]);return P.useLayoutEffect(()=>a.listen(c),[a,c]),P.createElement(Su,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function pd({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=P.useState({action:n.action,location:n.location}),o=P.useCallback(e=>{r===!1?a(e):P.startTransition(()=>a(e))},[r]);return P.useLayoutEffect(()=>n.listen(o),[n,o]),P.createElement(Su,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}pd.displayName=`unstable_HistoryRouter`;var md=P.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=P.useContext(Il),v=typeof l==`string`&&Ec.test(l),y=wl(l,h);l=y.to;let b=Gl(l,{relative:r}),x=R(),S=null;if(o){let e=pl(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:hl([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=id(n,p),E=xd(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function D(t){e&&e(t),t.defaultPrevented||E(t)}let O=!(y.isExternal||i),k=P.createElement(`a`,{...p,...T,href:(O?S:void 0)||y.absoluteURL||b,onClick:O?D:e,ref:ud(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?P.createElement(P.Fragment,null,k,P.createElement(od,{page:b})):k});md.displayName=`Link`;var hd=P.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Ql(a,{relative:c.relative}),d=R(),f=P.useContext(Al),{navigator:p,basename:m}=P.useContext(Il),h=f!=null&&Md(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=sl(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return P.createElement(md,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});hd.displayName=`NavLink`;var gd=P.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Tu,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=P.useContext(Il),g=Td(),_=Ed(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&Ec.test(s);return P.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?P.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});gd.displayName=`Form`;function _d({getKey:e,storageKey:t,...n}){let r=P.useContext(nd),{basename:i}=P.useContext(Il),a=R(),o=hu();Ad({getKey:e,storageKey:t});let s=P.useMemo(()=>
5{if(!r||!e)return null;let t=kd(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),P.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${Hu(JSON.stringify(t||Dd))}, ${Hu(JSON.stringify(s))})`}})}_d.displayName=`ScrollRestoration`;function vd(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function yd(e){let t=P.useContext(kl);return L(t,vd(e)),t}function bd(e){let t=P.useContext(Al);return L(t,vd(e)),t}function xd(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Yl(),d=R(),f=Ql(e,{relative:o});return P.useCallback(p=>{if(Mu(p,t)){p.preventDefault();let t=n===void 0?Ic(d)===Ic(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?P.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function Sd(e){Mc(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=P.useRef(Nu(e)),n=P.useRef(!1),r=R(),i=P.useMemo(()=>Pu(r.search,n.current?null:t.current),[r.search]),a=Yl();return[i,P.useCallback((e,t)=>{let r=Nu(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Cd=0,wd=()=>`__${String(++Cd)}__`;function Td(){let{router:e}=yd(`useSubmit`),{basename:t}=P.useContext(Il),n=pu(),r=e.fetch,i=e.navigate;return P.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=zu(e,t);if(a.navigate===!1){let e=a.fetcherKey||wd();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Ed(e,{relative:t}={}){let{basename:n}=P.useContext(Il),r=P.useContext(Rl);L(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Ql(e||`.`,{relative:t})},o=R();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:hl([n,a.pathname])),Ic(a)}var Dd=`react-router-scroll-positions`,Od={};function kd(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:sl(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Ad({getKey:e,storageKey:t}={}){let{router:n}=yd(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=bd(`useScrollRestoration`),{basename:a}=P.useContext(Il),o=R(),s=hu(),c=mu();P.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),jd(P.useCallback(()=>{if(c.state===`idle`){let t=kd(o,s,a,e);Od[t]=window.scrollY}try{sessionStorage.setItem(t||Dd,JSON.stringify(Od))}catch(e){Mc(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(P.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Dd);e&&(Od=JSON.parse(e))}catch{}},[t]),P.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(Od,()=>window.scrollY,e?(t,n)=>kd(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),P.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{Mc(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}
5function jd(e,t){let{capture:n}=t||{};P.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Md(e,{relative:t}={}){let n=P.useContext(Nl);L(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=yd(`useViewTransitionState`),i=Ql(e,{relative:t});if(!n.isTransitioning)return!1;let a=sl(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=sl(n.nextLocation.pathname,r)||n.nextLocation.pathname;return rl(i.pathname,o)!=null||rl(i.pathname,a)!=null}function Nd(){if(typeof window>`u`)return;let e=location.hostname,t=[`lovableproject.com`,`lovableproject-dev.com`,`lovable.app`,`gpt-eng.com`,`gptengineer.run`].some(t=>e===t||e.endsWith(`.`+t))?e.match(RegExp(`^(?:id-preview(?:-[a-z0-9]+)?|project)--([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})(?:-dev)?(?=\\.|$)`,`i`))?.[1]??e.match(RegExp(`^([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})(?=[.-])`,`i`))?.[1]:void 0,n=window.parent&&window.parent!==window;if(!t||!n)return localStorage;let r=e.endsWith(`.lovableproject-dev.com`)||e.endsWith(`.gpt-eng.com`),i=r?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,a=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:``),o=a&&i.test(a)?[a]:r?[`https://lovable.dev`,`http://localhost:3000`]:[`https://lovable.dev`],s=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),c=(e,n,r)=>new Promise(i=>{let a=s(),c=!1,l,u=e=>{c||(c=!0,clearTimeout(l),window.removeEventListener(`message`,d),i(e))},d=e=>{if(o.indexOf(e.origin)<0)return;let t=e.data;t&&t.type===`lovable-preview-auth:result`&&t.requestId===a&&u(t)};window.addEventListener(`message`,d);let f={type:e,requestId:a,projectId:t,key:n};r!==void 0&&(f.value=r);for(let e of o)window.parent.postMessage(f,e);l=setTimeout(()=>u(null),2e3)}),l=!0;return{getItem:async e=>{let t=await c(`lovable-preview-auth:get`,e);return!t&&l&&(await new Promise(e=>setTimeout(e,250)),t=await c(`lovable-preview-auth:get`,e)),l=!1,t&&t.ok&&typeof t.value==`string`?t.value===``?(localStorage.removeItem(e),null):t.value:localStorage.getItem(e)},setItem:(e,t)=>(localStorage.setItem(e,t),c(`lovable-preview-auth:set`,e,t).then(n=>{n&&n.ok&&typeof n.value==`string`&&localStorage.getItem(e)===t&&(n.value===``?localStorage.removeItem(e):localStorage.setItem(e,n.value))})),removeItem:e=>(localStorage.removeItem(e),c(`lovable-preview-auth:remove`,e).then(()=>void 0))}}var Pd=O(`https://kvlbuwxkkllobkgvzsam.supabase.co`,`eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imt2bGJ1d3hra2xsb2JrZ3Z6c2FtIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjY0NDY3NjcsImV4cCI6MjA4MjAyMjc2N30.yCv38gSn9nguE9-k9c1-F3LHZFwMXMbBpCsQdny-yNw`,{auth:{storage:Nd(),persistSession:!0,autoRefreshToken:!0}}),Fd=(0,P.createContext)(void 0);function Id({children:e}){let[t,n]=(0,P.useState)(null),[r,i]=(0,P.useState)(null),[a,o]=(0,P.useState)(!0),[s,c]=(0,P.useState)(null),[l,u]=(0,P.useState)(!1);(0,P.useEffect)(()=>{let{data:{subscription:e}}=Pd.auth.onAuthStateChange((e,t)=>{i(t),n(t?.user??null),t?.user?(u(!1),setTimeout(()=>d(t.user.id),0)):(c(null),u(!0))});return Pd.auth.getSession().then(async({data:{session:e}})=>{i(e),n(e?.user??null),e?.user?await d(e.user.id):u(!0),o(!1)}),()=>e.unsubscribe()},[]);let d=async e=>{let{data:t}=await Pd.from(`user_roles`).select(`role`).eq(`user_id`,e).limit(1).maybeSingle();c(t?.role??null),u(!0)},f=async(e,t)=>{let{data:n}=await Pd.rpc(`check_login_lockout`,{_email:e}),r=Array.isArray(n)?n[0]:null;if(r?.locked)return{error:Error(`Acesso bloqueado temporariamente por excesso de tentativas. Tente novamente em alguns minutos.`),locked:!0,retryAfter:r.retry_after};let{error:i}=await Pd.auth.signInWithPassword({email:e,password:t});return await Pd.rpc(`record_login_attempt`,{_email:e,_success:!i,_ip_hash:null}),{error:i}},p=async()=>{await Pd.auth.signOut()},m=s===`super_admin`,h=s===`admin`||m,g=s===`editor`||h;return(0,I.jsx)(Fd.Provider,{value:{user:t,session:r,loading:a,roleChecked:l,signIn:f,signOut:p,isSuperAdmin:m,isAdmin:h,isEditor:g,userRole:s},children:e})}function Ld(){let e=(0,P.useContext)(Fd);if(e===void 0)throw Error(`useAuth must be used within an AuthProvider`);return e}var B=e=>typeof e==`string`,Rd=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},zd=e=>e==null?``:String(e),Bd=(e,t,n)=>
vendor: 26,987 bytes, line 5
5{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Vd=/###/g,Hd=e=>e&&e.includes(`###`)?e.replace(Vd,`.`):e,Ud=e=>!e||B(e),Wd=(e,t,n)=>{let r=B(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(Ud(e))return{};let t=Hd(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Ud(e)?{}:{obj:e,k:Hd(r[i])}},Gd=(e,t,n)=>{let{obj:r,k:i}=Wd(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Wd(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Wd(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Kd=(e,t,n,r)=>{let{obj:i,k:a}=Wd(e,t,Object);i[a]=i[a]||[],i[a].push(n)},qd=(e,t)=>{let{obj:n,k:r}=Wd(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Jd=(e,t,n)=>{let r=qd(e,n);return r===void 0?qd(t,n):r},Yd=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?B(e[r])||e[r]instanceof String||B(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Yd(e[r],t[r],n):e[r]=t[r]);return e},Xd=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Zd={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},Qd=e=>B(e)?e.replace(/[&<>"'\/]/g,e=>Zd[e]):e,$d=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},ef=[` `,`,`,`?`,`!`,`;`],tf=new $d(20),nf=(e,t,n)=>{t||=``,n||=``;let r=ef.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=tf.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},rf=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},af=e=>e?.replace(/_/g,`-`),of={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},sf=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||of,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>B(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),B(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},cf=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},lf=class extends cf{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):B(n)&&i?o.push(...n.split(i)):o.push(n)));let s=qd(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!B(n)?s:rf(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),Gd(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(B(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=qd(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Yd(s,n,i):s={...s,...n},Gd(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},uf={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},df=Symbol(`i18next/PATH_KEY`);function ff(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===df?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function pf(e,t){let{[df]:n}=e(ff()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var mf=e=>!B(e)&&typeof e!=`boolean`&&typeof e!=`number`,hf=class e extends cf{constructor(e,t={}){super(),Bd([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=sf.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=mf(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!nf(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:B(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:B(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=pf(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?pf(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!B(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=mf(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&!_.includes(O)&&!(B(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:mf(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&B(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=B(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!B(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=B(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=uf.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return B(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?pf(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!B(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(B(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!B(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},gf=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=sf.create(`languageUtils`)}getScriptPartFromCode(e){if(e=af(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=af(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(B(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),B(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return B(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):B(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||i(this.formatLanguageCode(e))}),r}},_f={zero:0,one:1,two:2,few:3,many:4,other:5},vf={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},yf=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=sf.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=af(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),vf;if(!e.match(/-|_/))return vf;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>_f[e]-_f[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},bf=(e,t,n,r=`.`,i=!0)=>{let a=Jd(e,t,n);return!a&&i&&B(n)&&(a=rf(e,n,r),a===void 0&&(a=rf(t,n,r))),a},xf=e=>e.replace(/\$/g,`$$$$`),Sf=class{constructor(e={}){this.logger=sf.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?Qd:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?Xd(i):a||`{{`,this.suffix=o?Xd(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?Xd(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?Xd(l):``,this.nestingPrefix=d?Xd(d):f||Xd(`$t(`),this.nestingSuffix=p?Xd(p):m||Xd(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=bf(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(bf(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>xf(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?xf(this.escape(e)):xf(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=B(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!B(a)&&!this.useRawValueToEscape&&(a=zd(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${Xd(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!B(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!B(i))return i;B(i)||(i=zd(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},Cf=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},wf=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(af(r),i),t[o]=s),s(n)}},Tf=e=>(t,n,r)=>e(af(n),r)(t),Ef=class{constructor(e={}){this.logger=sf.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?wf:Tf;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=wf(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&!i[0].includes(`)`)&&i.find(e=>e.includes(`)`))){let e=i.findIndex(e=>e.includes(`)`));i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=Cf(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},Df=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Of=class extends cf{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=sf.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};
vendor: 4,557 bytes, line 5
5return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{Kd(n.loaded,[i],a),Df(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();B(e)&&(e=this.languageUtils.toResolveHierarchy(e)),B(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},kf=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),B(e[1])&&(t.defaultValue=e[1]),B(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Af=e=>(B(e.ns)&&(e.ns=[e.ns]),B(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),B(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),jf=()=>{},Mf=e=>
vendor: 12,764 bytes, line 5
5{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Nf=class e extends cf{constructor(e={},t){if(super(),this.options=Af(e),this.services={},this.logger=sf,this.modules={external:[]},Mf(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(B(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=kf();this.options={...n,...this.options,...Af(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?sf.init(r(this.modules.logger),this.options):sf.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:Ef;let t=new gf(this.options);this.store=new lf(this.options.resources,this.options);let n=this.services;n.logger=sf,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new yf(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new Sf(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Of(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new hf(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=jf,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=Rd(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=jf){let n=t,r=B(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=Rd();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=jf,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&uf.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&![`cimode`,`dev`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=Rd();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=B(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(B(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r?.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c={...this.options,...o};Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=pf(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=pf(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=pf(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return B(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=Rd();return this.options.ns?(B(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=Rd();B(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new gf(kf());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=jf){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new lf(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...kf().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new Sf(n)}return a.translator=new hf(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();Nf.createInstance,Nf.dir,Nf.init,Nf.loadResources,Nf.reloadResources,Nf.use,Nf.changeLanguage,Nf.getFixedT,Nf.t,Nf.exists,Nf.setDefaultNamespace,Nf.hasLoadedNamespace,Nf.loadNamespaces,Nf.loadLanguages;var Pf=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);Vf(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},Ff={},If=(e,t,n,r)=>{Vf(n)&&Ff[n]||(Vf(n)&&(Ff[n]=new Date),Pf(e,t,n,r))},Lf=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},Rf=(e,t,n)=>{e.loadNamespaces(t,Lf(e,n))},zf=(e,t,n,r)=>{if(Vf(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Rf(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,Lf(e,r))},Bf=(e,t,n={})=>!t.languages||!t.languages.length?(If(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),Vf=e=>typeof e==`string`,Hf=e=>typeof e==`object`&&!!e,Uf=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Wf={"&amp;":`&`,"&#38;":`&`,"&lt;":`<`,"&#60;":`<`,"&gt;":`>`,"&#62;":`>`,"&apos;":`'`,"&#39;":`'`,"&quot;":`"`,"&#34;":`"`,"&nbsp;":` `,"&#160;":` `,"&copy;":`©`,"&#169;":`©`,"&reg;":`®`,"&#174;":`®`,"&hellip;":`…`,"&#8230;":`…`,"&#x2F;":`/`,"&#47;":`/`},Gf=e=>Wf[e],Kf=e=>e.replace(Uf,Gf),qf={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:Kf,transDefaultProps:void 0},Jf=(e={})=>{qf={...qf,...e}},Yf=()=>qf,Xf,Zf=e=>{Xf=e},Qf=()=>Xf,$f={type:`3rdParty`,init(e){Jf(e.options.react),Zf(e)}},ep=(0,P.createContext)(),tp=class{constructor(){this.usedNamespaces={}}
5addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},np=t((e=>{var t=n();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),rp=t(((e,t)=>{t.exports=np()})),ip=rp(),ap={t:(e,t)=>{if(Vf(t))return t;if(Hf(t)&&Vf(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},op=()=>()=>{},sp=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,P.useContext)(ep)||{},a=n||r||Qf();a&&!a.reportNamespaces&&(a.reportNamespaces=new tp),a||If(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next`);let o=(0,P.useMemo)(()=>({...Yf(),...a?.options?.react,...t}),[a,t]),{useSuspense:s,keyPrefix:c}=o,l=e||i||a?.options?.defaultNS,u=Vf(l)?[l]:l||[`translation`],d=(0,P.useMemo)(()=>u,u);a?.reportNamespaces?.addUsedNamespaces?.(d);let f=(0,P.useRef)(0),p=(0,P.useCallback)(e=>{if(!a)return op;let{bindI18n:t,bindI18nStore:n}=o,r=()=>{f.current+=1,e()};return t&&a.on(t,r),n&&a.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>a.off(e,r)),n&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,o]),m=(0,P.useRef)(),h=(0,P.useCallback)(()=>{if(!a)return ap;let e=!!(a.isInitialized||a.initializedStoreOnce)&&d.every(e=>Bf(e,a,o)),n=t.lng||a.language,r=f.current,i=m.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===c&&i.revision===r)return i;let s={t:a.getFixedT(n,o.nsMode===`fallback`?d:d[0],c,{scopeNs:d}),ready:e,lng:n,keyPrefix:c,revision:r};return m.current=s,s},[a,d,c,o,t.lng]),[g,_]=(0,P.useState)(0),{t:v,ready:y}=(0,ip.useSyncExternalStore)(p,h,h);(0,P.useEffect)(()=>{if(a&&!y&&!s){let e=()=>_(e=>e+1);t.lng?zf(a,t.lng,d,e):Rf(a,d,e)}},[a,t.lng,d,y,s,g]);let b=a||{},x=(0,P.useRef)(null),S=(0,P.useRef)(),C=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},w=(0,P.useMemo)(()=>{let e=b,t=e?.language,n=e;e&&(x.current&&x.current.__original===e&&S.current===t?n=x.current:(n=C(e),x.current=n,S.current=t));let r=!y&&!s?(...e)=>(If(a,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),v(...e)):v,i=[r,n,y];return i.t=r,i.i18n=n,i.ready=y,i},[v,b,y,b.resolvedLanguage,b.language,b.languages]);if(a&&s&&!y)throw new Promise(e=>{let n=()=>e();t.lng?zf(a,t.lng,d,n):Rf(a,d,n)});return w},cp=`bp_session_id`;function lp(){let e=sessionStorage.getItem(cp);return e||(e=crypto.randomUUID(),sessionStorage.setItem(cp,e)),e}function up(e,t,n={}){try{let r=window.location.pathname;Pd.from(`analytics_form_events`).insert({session_id:lp(),form_id:e.slice(0,64),event_type:t,field_name:n.fieldName?.slice(0,64)??null,error_message:n.errorMessage?.slice(0,512)??null,path:r.startsWith(`/`)?r.slice(0,512):null,metadata:n.metadata??{}}).then(({error:e})=>{e&&console.warn(`form event track error`,e.message)})}catch(e){console.warn(`form event track exception`,e)}}function dp(e){let t=(0,P.useRef)(!1),n=(0,P.useRef)(!1);return(0,P.useEffect)(()=>{t.current||(t.current=!0,up(e,`started`))},[e]),{trackFocus:(0,P.useCallback)(t=>{n.current||=!0,up(e,`field_focus`,{fieldName:t})},[e]),trackBlur:(0,P.useCallback)((t,n)=>
5{up(e,`field_blur`,{fieldName:t,metadata:{filled:n!=null&&String(n).length>0}})},[e]),trackValidationError:(0,P.useCallback)((t,n)=>up(e,`validation_error`,{fieldName:t,errorMessage:n}),[e]),trackSubmitAttempt:(0,P.useCallback)(()=>up(e,`submit_attempt`),[e]),trackSubmitSuccess:(0,P.useCallback)(()=>up(e,`submit_success`),[e]),trackSubmitError:(0,P.useCallback)(t=>up(e,`submit_error`,{errorMessage:t}),[e])}}function fp(e,t,n={}){up(`outbound_link`,`submit_success`,{metadata:{label:e,url:t,source:n.source??`unknown`,...n}})}function pp({open:e,className:t,fill:n=`none`,stroke:r=`currentColor`,strokeWidth:i=2.5,strokeLinecap:a=`round`,strokeLinejoin:o=`round`,duration:s=500,...c}){return(0,I.jsxs)(`svg`,{strokeWidth:i,fill:n,stroke:r,viewBox:`0 0 32 32`,strokeLinecap:a,strokeLinejoin:o,className:m(`transition-transform ease-in-out`,e&&`-rotate-45`,t),style:{transitionDuration:`${s}ms`},...c,children:[(0,I.jsx)(`path`,{className:m(`transition-all ease-in-out`,e?`[stroke-dasharray:20_300] [stroke-dashoffset:-32.42px]`:`[stroke-dasharray:12_63]`),style:{transitionDuration:`${s}ms`},d:`M27 10 13 10C10.8 10 9 8.2 9 6 9 3.5 10.8 2 13 2 15.2 2 17 3.8 17 6L17 26C17 28.2 18.8 30 21 30 23.2 30 25 28.2 25 26 25 23.8 23.2 22 21 22L7 22`}),(0,I.jsx)(`path`,{d:`M7 16 27 16`})]})}var mp=P.createContext(void 0);function hp(e){let t=P.useContext(mp);return e||t||`ltr`}function gp(e){let t=P.useRef({value:e,previous:e});return P.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var _p=`NavigationMenu`,[vp,yp,bp]=Fe(_p),[xp,Sp,Cp]=Fe(_p),[wp,Tp]=o(_p,[bp,Cp]),[Ep,Dp]=wp(_p),[Op,kp]=wp(_p),Ap=P.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:i,defaultValue:a,delayDuration:o=200,skipDelayDuration:s=300,orientation:c=`horizontal`,dir:u,...d}=e,[f,p]=P.useState(null),m=_(t,e=>p(e)),h=hp(u),g=P.useRef(0),v=P.useRef(0),b=P.useRef(0),[x,S]=P.useState(!0),[C,w]=l({prop:r,onChange:e=>{let t=e!==``,n=s>0;t?(window.clearTimeout(b.current),n&&S(!1)):(window.clearTimeout(b.current),b.current=window.setTimeout(()=>S(!0),s)),i?.(e)},defaultProp:a??``,caller:_p}),T=P.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>w(``),150)},[w]),E=P.useCallback(e=>{window.clearTimeout(v.current),w(e)},[w]),D=P.useCallback(e=>{C===e?window.clearTimeout(v.current):g.current=window.setTimeout(()=>{window.clearTimeout(v.current),w(e)},o)},[C,w,o]);return P.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(v.current),window.clearTimeout(b.current)},[]),(0,I.jsx)(Np,{scope:n,isRootMenu:!0,value:C,dir:h,orientation:c,rootNavigationMenu:f,onTriggerEnter:e=>{window.clearTimeout(g.current),x?D(e):E(e)},onTriggerLeave:()=>{window.clearTimeout(g.current),T()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:T,onItemSelect:e=>{w(t=>t===e?``:e)},onItemDismiss:()=>w(``),children:(0,I.jsx)(y.nav,{"aria-label":`Main`,"data-orientation":c,dir:h,...d,ref:m})})});Ap.displayName=_p;var jp=`NavigationMenuSub`,Mp=P.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,...s}=e,c=Dp(jp,n),[u,d]=l({prop:r,onChange:i,defaultProp:a??``,caller:jp});return(0,I.jsx)(Np,{scope:n,isRootMenu:!1,value:u,dir:c.dir,orientation:o,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>d(e),onItemSelect:e=>d(e),onItemDismiss:()=>d(``),children:(0,I.jsx)(y.div,{"data-orientation":o,...s,ref:t})})});Mp.displayName=jp;var Np=e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:i,orientation:a,children:o,value:s,onItemSelect:c,onItemDismiss:l,onTriggerEnter:u,onTriggerLeave:d,onContentEnter:f,onContentLeave:p}=e,[m,h]=P.useState(null),[g,_]=P.useState(new Map),[v,y]=P.useState(null);return(0,I.jsx)(Ep,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:gp(s),baseId:S(),dir:i,orientation:a,viewport:m,onViewportChange:h,indicatorTrack:v,onIndicatorTrackChange:y,onTriggerEnter:x(u),onTriggerLeave:x(d),onContentEnter:x(f),onContentLeave:x(p),onItemSelect:x(c),onItemDismiss:x(l),onViewportContentChange:P.useCallback((e,t)=>{_(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:P.useCallback(e=>{_(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,I.jsx)(vp.Provider,{scope:t,children:(0,I.jsx)(Op,{scope:t,items:g,children:o})})})},Pp=`NavigationMenuList`,Fp=P.forwardRef((e,t)=>
vendor: 8,335 bytes, line 5
5{let{__scopeNavigationMenu:n,...r}=e,i=Dp(Pp,n),a=(0,I.jsx)(y.ul,{"data-orientation":i.orientation,...r,ref:t});return(0,I.jsx)(y.div,{style:{position:`relative`},ref:i.onIndicatorTrackChange,children:(0,I.jsx)(vp.Slot,{scope:n,children:i.isRootMenu?(0,I.jsx)(rm,{asChild:!0,children:a}):a})})});Fp.displayName=Pp;var Ip=`NavigationMenuItem`,[Lp,Rp]=wp(Ip),zp=P.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,...i}=e,a=S(),o=r||a||`LEGACY_REACT_AUTO_VALUE`,s=P.useRef(null),c=P.useRef(null),l=P.useRef(null),u=P.useRef(()=>{}),d=P.useRef(!1),f=P.useCallback((e=`start`)=>{if(s.current){u.current();let t=sm(s.current);t.length&&cm(e===`start`?t:t.reverse())}},[]),p=P.useCallback(()=>{if(s.current){let e=sm(s.current);e.length&&(u.current=lm(e))}},[]);return(0,I.jsx)(Lp,{scope:n,value:o,triggerRef:c,contentRef:s,focusProxyRef:l,wasEscapeCloseRef:d,onEntryKeyDown:f,onFocusProxyEnter:f,onRootContentClose:p,onContentFocusOutside:p,children:(0,I.jsx)(y.li,{...i,ref:t})})});zp.displayName=Ip;var Bp=`NavigationMenuTrigger`,Vp=P.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,disabled:r,...i}=e,o=Dp(Bp,e.__scopeNavigationMenu),s=Rp(Bp,e.__scopeNavigationMenu),c=P.useRef(null),l=_(c,s.triggerRef,t),u=fm(o.baseId,s.value),d=pm(o.baseId,s.value),f=P.useRef(!1),p=P.useRef(!1),m=s.value===o.value;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(vp.ItemSlot,{scope:n,value:s.value,children:(0,I.jsx)(om,{asChild:!0,children:(0,I.jsx)(y.button,{id:u,disabled:r,"data-disabled":r?``:void 0,"data-state":dm(m),"aria-expanded":m,"aria-controls":d,...i,ref:l,onPointerEnter:a(e.onPointerEnter,()=>{p.current=!1,s.wasEscapeCloseRef.current=!1}),onPointerMove:a(e.onPointerMove,mm(()=>{r||p.current||s.wasEscapeCloseRef.current||f.current||(o.onTriggerEnter(s.value),f.current=!0)})),onPointerLeave:a(e.onPointerLeave,mm(()=>{r||(o.onTriggerLeave(),f.current=!1)})),onClick:a(e.onClick,()=>{o.onItemSelect(s.value),p.current=m}),onKeyDown:a(e.onKeyDown,e=>{let t={horizontal:`ArrowDown`,vertical:o.dir===`rtl`?`ArrowLeft`:`ArrowRight`}[o.orientation];m&&e.key===t&&(s.onEntryKeyDown(),e.preventDefault())})})})}),m&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(rt,{"aria-hidden":!0,tabIndex:0,ref:s.focusProxyRef,onFocus:e=>{let t=s.contentRef.current,n=e.relatedTarget,r=n===c.current,i=t?.contains(n);(r||!i)&&s.onFocusProxyEnter(r?`start`:`end`)}}),o.viewport&&(0,I.jsx)(`span`,{"aria-owns":d})]})]})});Vp.displayName=Bp;var Hp=`NavigationMenuLink`,Up=`navigationMenu.linkSelect`,Wp=P.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,active:r,onSelect:i,...o}=e;return(0,I.jsx)(om,{asChild:!0,children:(0,I.jsx)(y.a,{"data-active":r?``:void 0,"aria-current":r?`page`:void 0,...o,ref:t,onClick:a(e.onClick,e=>{let t=e.target,n=new CustomEvent(Up,{bubbles:!0,cancelable:!0});t.addEventListener(Up,e=>i?.(e),{once:!0}),v(t,n),!n.defaultPrevented&&!e.metaKey&&v(t,new CustomEvent(Zp,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})});Wp.displayName=Hp;var Gp=`NavigationMenuIndicator`,Kp=P.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Dp(Gp,e.__scopeNavigationMenu),a=!!i.value;return i.indicatorTrack?Pe.createPortal((0,I.jsx)(b,{present:n||a,children:(0,I.jsx)(qp,{...r,ref:t})}),i.indicatorTrack):null});Kp.displayName=Gp;var qp=P.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=Dp(Gp,n),a=yp(n),[o,s]=P.useState(null),[c,l]=P.useState(null),u=i.orientation===`horizontal`,d=!!i.value;P.useEffect(()=>{let e=a().find(e=>e.value===i.value)?.ref.current;e&&s(e)},[a,i.value]);let f=()=>{o&&l({size:u?o.offsetWidth:o.offsetHeight,offset:u?o.offsetLeft:o.offsetTop})};return um(o,f),um(i.indicatorTrack,f),c?(0,I.jsx)(y.div,{"aria-hidden":!0,"data-state":d?`visible`:`hidden`,"data-orientation":i.orientation,...r,ref:t,style:{position:`absolute`,...u?{left:0,width:c.size+`px`,transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+`px`,transform:`translateY(${c.offset}px)`},...r.style}}):null}),Jp=`NavigationMenuContent`,Yp=P.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Dp(Jp,e.__scopeNavigationMenu),o=Rp(Jp,e.__scopeNavigationMenu),s=_(o.contentRef,t),c=o.value===i.value,l={value:o.value,triggerRef:o.triggerRef,focusProxyRef:o.focusProxyRef,wasEscapeCloseRef:o.wasEscapeCloseRef,onContentFocusOutside:o.onContentFocusOutside,onRootContentClose:o.onRootContentClose,...r};return i.viewport?(0,I.jsx)(Xp,{forceMount:n,...l,ref:s}):(0,I.jsx)(b,{present:n||c,children:(0,I.jsx)(Qp,{"data-state":dm(c),...l,ref:s,onPointerEnter:a(e.onPointerEnter,i.onContentEnter),onPointerLeave:a(e.onPointerLeave,mm(i.onContentLeave)),style:{pointerEvents:!c&&i.isRootMenu?`none`:void 0,...l.style}})})});Yp.displayName=Jp;var Xp=P.forwardRef((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=Dp(Jp,e.__scopeNavigationMenu);return s(()=>{n(e.value,{ref:t,...e})},[e,t,n]),s(()=>()=>r(e.value),[e.value,r]),null}),Zp=`navigationMenu.rootContentDismiss`,Qp=P.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:s,onRootContentClose:c,onContentFocusOutside:l,...u}=e,d=Dp(Jp,n),f=P.useRef(null),p=_(f,t),m=fm(d.baseId,r),h=pm(d.baseId,r),g=yp(n),v=P.useRef(null),{onItemDismiss:y}=d;return P.useEffect(()=>{let e=f.current;if(d.isRootMenu&&e){let t=()=>{y(),c(),e.contains(document.activeElement)&&i.current?.focus()};return e.addEventListener(Zp,t),()=>e.removeEventListener(Zp,t)}},[d.isRootMenu,e.value,i,y,c]),(0,I.jsx)(rm,{asChild:!0,children:(0,I.jsx)(Ue,{id:h,"aria-labelledby":m,"data-motion":P.useMemo(()=>{let e=g().map(e=>e.value);d.dir===`rtl`&&e.reverse();let t=e.indexOf(d.value),n=e.indexOf(d.previousValue),i=r===d.value,a=n===e.indexOf(r);if(!i&&!a)return v.current;let o=(()=>{if(t!==n){if(i&&n!==-1)return t>n?`from-end`:`from-start`;if(a&&t!==-1)return t>n?`to-start`:`to-end`}return null})();return v.current=o,o},[d.previousValue,d.value,d.dir,g,r]),"data-orientation":d.orientation,...u,ref:p,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(Zp,{bubbles:!0,cancelable:!0});f.current?.dispatchEvent(e)},onFocusOutside:a(e.onFocusOutside,e=>{l();let t=e.target;d.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:a(e.onPointerDownOutside,e=>{let t=e.target,n=g().some(e=>e.ref.current?.contains(t)),r=d.isRootMenu&&d.viewport?.contains(t);(n||r||!d.isRootMenu)&&e.preventDefault()}),onKeyDown:a(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if(e.key===`Tab`&&!t){let t=sm(e.currentTarget),n=document.activeElement,r=t.findIndex(e=>e===n);cm(e.shiftKey?t.slice(0,r).reverse():t.slice(r+1,t.length))?e.preventDefault():o.current?.focus()}}),onEscapeKeyDown:a(e.onEscapeKeyDown,e=>{s.current=!0})})})}),$p=`NavigationMenuViewport`,em=P.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=!!Dp($p,e.__scopeNavigationMenu).value;return(0,I.jsx)(b,{present:n||i,children:(0,I.jsx)(tm,{...r,ref:t})})});em.displayName=$p;var tm=P.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,o=Dp($p,n),s=_(t,o.onViewportChange),c=kp(Jp,e.__scopeNavigationMenu),[l,u]=P.useState(null),[d,p]=P.useState(null),m=l?l?.width+`px`:void 0,h=l?l?.height+`px`:void 0,g=!!o.value,v=g?o.value:o.previousValue;return um(d,()=>{d&&u({width:d.offsetWidth,height:d.offsetHeight})}),(0,I.jsx)(y.div,{"data-state":dm(g),"data-orientation":o.orientation,...i,ref:s,style:{pointerEvents:!g&&o.isRootMenu?`none`:void 0,"--radix-navigation-menu-viewport-width":m,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:a(e.onPointerEnter,o.onContentEnter),onPointerLeave:a(e.onPointerLeave,mm(o.onContentLeave)),children:Array.from(c.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=v===e;return(0,I.jsx)(b,{present:n||i,children:(0,I.jsx)(Qp,{...r,ref:f(t,e=>{i&&e&&p(e)})})},e)})})}),nm=`FocusGroup`,rm=P.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=Dp(nm,n);return(0,I.jsx)(xp.Provider,{scope:n,children:(0,I.jsx)(xp.Slot,{scope:n,children:(0,I.jsx)(y.div,{dir:i.dir,...r,ref:t})})})}),im=[`ArrowRight`,`ArrowLeft`,`ArrowUp`,`ArrowDown`],am=`FocusGroupItem`,om=P.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=Sp(n),o=Dp(am,n);return(0,I.jsx)(xp.ItemSlot,{scope:n,children:(0,I.jsx)(y.button,{...r,ref:t,onKeyDown:a(e.onKeyDown,e=>{if([`Home`,`End`,...im].includes(e.key)){let t=i().map(e=>e.ref.current);if([o.dir===`rtl`?`ArrowRight`:`ArrowLeft`,`ArrowUp`,`End`].includes(e.ke
5y)&&t.reverse(),im.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>cm(t)),e.preventDefault()}})})})});function sm(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function cm(e){let t=document.activeElement;return e.some(e=>e===t?!0:(e.focus(),document.activeElement!==t))}function lm(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute(`tabindex`,t)})}}function um(e,t){let n=x(t);s(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}function dm(e){return e?`open`:`closed`}function fm(e,t){return`${e}-trigger-${t}`}function pm(e,t){return`${e}-content-${t}`}function mm(e){return t=>t.pointerType===`mouse`?e(t):void 0}var hm=Ap,gm=Fp,_m=zp,vm=Vp,ym=Wp,bm=Kp,xm=Yp,Sm=em,Cm=P.forwardRef(({className:e,children:t,...n},r)=>(0,I.jsxs)(hm,{ref:r,className:m(`relative z-10 flex max-w-max flex-1 items-center justify-center`,e),...n,children:[t,(0,I.jsx)(Am,{})]}));Cm.displayName=hm.displayName;var wm=P.forwardRef(({className:e,...t},n)=>(0,I.jsx)(gm,{ref:n,className:m(`group flex flex-1 list-none items-center justify-center space-x-1`,e),...t}));wm.displayName=gm.displayName;var Tm=_m,Em=d(`group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50`),Dm=P.forwardRef(({className:e,children:t,...n},r)=>(0,I.jsxs)(vm,{ref:r,className:m(Em(),`group`,e),...n,children:[t,` `,(0,I.jsx)(sn,{className:`relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180`,"aria-hidden":`true`})]}));Dm.displayName=vm.displayName;var Om=P.forwardRef(({className:e,...t},n)=>(0,I.jsx)(xm,{ref:n,className:m(`left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto`,e),...t}));Om.displayName=xm.displayName;var km=ym,Am=P.forwardRef(({className:e,...t},n)=>(0,I.jsx)(`div`,{className:m(`absolute left-1/2 -translate-x-1/2 top-full flex justify-center`),children:(0,I.jsx)(Sm,{className:m(`origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]`,e),ref:n,...t})}));Am.displayName=Sm.displayName;var jm=P.forwardRef(({className:e,...t},n)=>(0,I.jsx)(bm,{ref:n,className:m(`top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in`,e),...t,children:(0,I.jsx)(`div`,{className:`relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md`})}));jm.displayName=bm.displayName;var Mm=`/assets/logo-beephish-branco-BuMGmglQ.svg`,Nm=`focusScope.autoFocusOnMount`,Pm=`focusScope.autoFocusOnUnmount`,Fm={bubbles:!1,cancelable:!0},Im=`FocusScope`,Lm=P.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=P.useState(null),l=x(i),u=x(a),d=P.useRef(null),f=_(t,e=>c(e)),p=P.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;P.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Wm(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Wm(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Wm(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),P.useEffect(()=>{if(s){Gm.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Nm,Fm);
vendor: 11,382 bytes, lines 5-45
5s.addEventListener(Nm,l),s.dispatchEvent(t),t.defaultPrevented||(Rm(Jm(Bm(s)),{select:!0}),document.activeElement===e&&Wm(s))}return()=>{s.removeEventListener(Nm,l),setTimeout(()=>{let t=new CustomEvent(Pm,Fm);s.addEventListener(Pm,u),s.dispatchEvent(t),t.defaultPrevented||Wm(e??document.body,{select:!0}),s.removeEventListener(Pm,u),Gm.remove(p)},0)}}},[s,l,u,p]);let m=P.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=zm(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Wm(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Wm(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,I.jsx)(y.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});Lm.displayName=Im;function Rm(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Wm(r,{select:t}),document.activeElement!==n)return}function zm(e){let t=Bm(e);return[Vm(t,e),Vm(t.reverse(),e)]}function Bm(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Vm(e,t){for(let n of e)if(!Hm(n,{upTo:t}))return n}function Hm(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function Um(e){return e instanceof HTMLInputElement&&`select`in e}function Wm(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Um(e)&&t&&e.select()}}var Gm=Km();function Km(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=qm(e,t),e.unshift(t)},remove(t){e=qm(e,t),e[0]?.resume()}}}function qm(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Jm(e){return e.filter(e=>e.tagName!==`A`)}var Ym=0;function Xm(){P.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Zm()),document.body.insertAdjacentElement(`beforeend`,e[1]??Zm()),Ym++,()=>{Ym===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),Ym--}},[])}function Zm(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var Qm=`right-scroll-bar-position`,$m=`width-before-scroll-bar`,eh=`with-scroll-bars-hidden`,th=`--removed-body-scroll-bar-size`;function nh(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function rh(e,t){var n=(0,P.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var ih=typeof window<`u`?P.useLayoutEffect:P.useEffect,ah=new WeakMap;function oh(e,t){var n=rh(t||null,function(t){return e.forEach(function(e){return nh(e,t)})});return ih(function(){var t=ah.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||nh(e,null)}),i.forEach(function(e){r.has(e)||nh(e,a)})}ah.set(n,e)},[e]),n}function sh(e){return e}function ch(e,t){t===void 0&&(t=sh);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function lh(e){e===void 0&&(e={});var t=ch(null);return t.options=E({async:!0,ssr:!1},e),t}var uh=function(e){var t=e.sideCar,n=D(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return P.createElement(r,E({},n))};uh.isSideCarExport=!0;function dh(e,t){return e.useMedium(t),uh}var fh=lh(),ph=function(){},mh=P.forwardRef(function(e,t){var n=P.useRef(null),r=P.useState({onScrollCapture:ph,onWheelCapture:ph,onTouchMoveCapture:ph}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=D(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=oh([n,t]),C=E(E({},b),i);return P.createElement(P.Fragment,null,u&&P.createElement(x,{sideCar:fh,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?P.cloneElement(P.Children.only(s),E(E({},C),{ref:S})):P.createElement(v,E({},C,{className:c,ref:S}),s))});mh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},mh.classNames={fullWidth:$m,zeroRight:Qm};var hh,gh=function(){if(hh)return hh;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function _h(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=gh();return t&&e.setAttribute(`nonce`,t),e}function vh(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yh(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var bh=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_h())&&(vh(t,n),yh(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},xh=function(){var e=bh();return function(t,n){P.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Sh=function(){var e=xh();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Ch={left:0,top:0,right:0,gap:0},wh=function(e){return parseInt(e||``,10)||0},Th=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[wh(n),wh(r),wh(i)]},Eh=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Ch;var t=Th(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Dh=Sh(),Oh=`data-scroll-locked`,kh=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
6  .${eh} {
7   overflow: hidden ${r};
8   padding-right: ${s}px ${r};
9  }
10  body[${Oh}] {
11    overflow: hidden ${r};
12    overscroll-behavior: contain;
13    ${[t&&`position: relative ${r};`,n===`margin`&&`
14    padding-left: ${i}px;
15    padding-top: ${a}px;
16    padding-right: ${o}px;
17    margin-left:0;
18    margin-top:0;
19    margin-right: ${s}px ${r};
20    `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
21  }
22  
23  .${Qm} {
24    right: ${s}px ${r};
25  }
26  
27  .${$m} {
28    margin-right: ${s}px ${r};
29  }
30  
31  .${Qm} .${Qm} {
32    right: 0 ${r};
33  }
34  
35  .${$m} .${$m} {
36    margin-right: 0 ${r};
37  }
38  
39  body[${Oh}] {
40    ${th}: ${s}px;
41  }
42`},Ah=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},jh=function(){P.useEffect(function(){return document.body.setAttribute(Oh,(Ah()+1).toString()),function(){var e=Ah()-1;e<=0?document.body.removeAttribute(Oh):document.body.setAttribute(Oh,e.toString())}},[])},Mh=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;jh();var a=P.useMemo(function(){return Eh(i)},[i]);return P.createElement(Dh,{styles:kh(a,!t,i,n?``:`!important`)})},Nh=!1;if(typeof window<`u`)try{var Ph=Object.defineProperty({},"passive",{get:function(){return Nh=!0,!0}});window.addEventListener(`test`,Ph,Ph),window.removeEventListener(`test`,Ph,Ph)}catch{Nh=!1}var Fh=Nh?{passive:!1}:!1,Ih=function(e){return e.tagName===`TEXTAREA`},Lh=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Ih(e)&&n[t]===`visible`)},Rh=function(e){return Lh(e,`overflowY`)},zh=function(e){return Lh(e,`overflowX`)},Bh=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Uh(e,r)){var i=Wh(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Vh=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Hh=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Uh=function(e,t){return e===`v`?Rh(t):zh(t)},Wh=function(e,t){return e===`v`?Vh(t):Hh(t)},Gh=function(e,t){return e===`h`&&t===`rtl`?-1:1},Kh=function(e,t,n,r,i){var a=Gh(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Wh(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Uh(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},qh=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jh=function(e){return[e.deltaX,e.deltaY]},Yh=function(e){return e&&`current`in e?e.current:e},Xh=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Zh=function(e){return`
43  .block-interactivity-${e} {pointer-events: none;}
44  .allow-interactivity-${e} {pointer-events: all;}
45`},Qh=0,$h=[];function eg(e){var t=P.useRef([]),n=P.useRef([0,0]),r=P.useRef(),i=P.useState(Qh++)[0],a=P.useState(Sh)[0],o=P.useRef(e);P.useEffect(function(){o.current=e},[e]),P.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=T([e.lockRef.current],(e.shards||[]).map(Yh),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=P.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=qh(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=Bh(d,u);if(!f)return!0;if(f?l=d:(l=d===`v`?`h`:`v`,f=Bh(d,u)),!f)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var p=r.current||l;return Kh(p,t,e,p===`h`?s:c,!0)},[]),c=P.useCallback(function(e){var n=e;if(!(!$h.length||$h[$h.length-1]!==a)){var r=`deltaY`in n?Jh(n):qh(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Xh(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Yh).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>
vendor: 4,198 bytes, line 45
450?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=P.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:tg(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=P.useCallback(function(e){n.current=qh(e),r.current=void 0},[]),d=P.useCallback(function(t){l(t.type,Jh(t),t.target,s(t,e.lockRef.current))},[]),f=P.useCallback(function(t){l(t.type,qh(t),t.target,s(t,e.lockRef.current))},[]);P.useEffect(function(){return $h.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Fh),document.addEventListener(`touchmove`,c,Fh),document.addEventListener(`touchstart`,u,Fh),function(){$h=$h.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Fh),document.removeEventListener(`touchmove`,c,Fh),document.removeEventListener(`touchstart`,u,Fh)}},[]);var p=e.removeScrollBar,m=e.inert;return P.createElement(P.Fragment,null,m?P.createElement(a,{styles:Zh(i)}):null,p?P.createElement(Mh,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function tg(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ng=dh(fh,eg),rg=P.forwardRef(function(e,t){return P.createElement(mh,E({},e,{ref:t,sideCar:ng}))});rg.classNames=mh.classNames;var ig=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},ag=new WeakMap,og=new WeakMap,sg={},cg=0,lg=function(e){return e&&(e.host||lg(e.parentNode))},ug=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=lg(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},dg=function(e,t,n,r){var i=ug(t,Array.isArray(e)?e:[e]);sg[n]||(sg[n]=new WeakMap);var a=sg[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(ag.get(e)||0)+1,l=(a.get(e)||0)+1;ag.set(e,c),a.set(e,l),o.push(e),c===1&&i&&og.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),cg++,function(){o.forEach(function(e){var t=ag.get(e)-1,i=a.get(e)-1;ag.set(e,t),a.set(e,i),t||(og.has(e)||e.removeAttribute(r),og.delete(e)),i||e.removeAttribute(n)}),cg--,cg||(ag=new WeakMap,ag=new WeakMap,og=new WeakMap,sg={})}},fg=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||ig(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live]`))),dg(r,i,n,`aria-hidden`)):function(){return null}},pg=`Dialog`,[mg,hg]=o(pg),[gg,_g]=mg(pg),vg=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=P.useRef(null),c=P.useRef(null),[u,d]=l({prop:r,defaultProp:i??!1,onChange:a,caller:pg});return(0,I.jsx)(gg,{scope:t,triggerRef:s,contentRef:c,contentId:S(),titleId:S(),descriptionId:S(),open:u,onOpenChange:d,onOpenToggle:P.useCallback(()=>d(e=>!e),[d]),modal:o,children:n})};vg.displayName=pg;var yg=`DialogTrigger`,bg=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=_g(yg,n),o=_(t,i.triggerRef);return(0,I.jsx)(y.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Bg(i.open),...r,ref:o,onClick:a(e.onClick,i.onOpenToggle)})});bg.displayName=yg;var xg=`DialogPortal`,[Sg,Cg]=mg(xg,{forceMount:void 0}),wg=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=_g(xg,t);return(0,I.jsx)(Sg,{scope:t,forceMount:n,children:P.Children.map(r,e=>(0,I.jsx)(b,{present:n||a.open,children:(0,I.jsx)($e,{asChild:!0,container:i,children:e})}))})};wg.displayName=xg;var Tg=`DialogOverlay`,Eg=P.forwardRef((e,t)=>{let n=Cg(Tg,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=_g(Tg,e.__scopeDialog);return a.modal?(0,I.jsx)(b,{present:r||a.open,children:(0,I.jsx)(Og,{...i,ref:t})}):null});Eg.displayName=Tg;var Dg=h(`DialogOverlay.RemoveScroll`),Og=P.forwardRef((e,t)=>
45{let{__scopeDialog:n,...r}=e,i=_g(Tg,n);return(0,I.jsx)(rg,{as:Dg,allowPinchZoom:!0,shards:[i.contentRef],children:(0,I.jsx)(y.div,{"data-state":Bg(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),kg=`DialogContent`,Ag=P.forwardRef((e,t)=>{let n=Cg(kg,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=_g(kg,e.__scopeDialog);return(0,I.jsx)(b,{present:r||a.open,children:a.modal?(0,I.jsx)(jg,{...i,ref:t}):(0,I.jsx)(Mg,{...i,ref:t})})});Ag.displayName=kg;var jg=P.forwardRef((e,t)=>{let n=_g(kg,e.__scopeDialog),r=P.useRef(null),i=_(t,n.contentRef,r);return P.useEffect(()=>{let e=r.current;if(e)return fg(e)},[]),(0,I.jsx)(Ng,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:a(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:a(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:a(e.onFocusOutside,e=>e.preventDefault())})}),Mg=P.forwardRef((e,t)=>{let n=_g(kg,e.__scopeDialog),r=P.useRef(!1),i=P.useRef(!1);return(0,I.jsx)(Ng,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),Ng=P.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=_g(kg,n),c=P.useRef(null),l=_(t,c);return Xm(),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Lm,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,I.jsx)(Ue,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Bg(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wg,{titleId:s.titleId}),(0,I.jsx)(Kg,{contentRef:c,descriptionId:s.descriptionId})]})]})}),Pg=`DialogTitle`,Fg=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=_g(Pg,n);return(0,I.jsx)(y.h2,{id:i.titleId,...r,ref:t})});Fg.displayName=Pg;var Ig=`DialogDescription`,Lg=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=_g(Ig,n);return(0,I.jsx)(y.p,{id:i.descriptionId,...r,ref:t})});Lg.displayName=Ig;var Rg=`DialogClose`,zg=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=_g(Rg,n);return(0,I.jsx)(y.button,{type:`button`,...r,ref:t,onClick:a(e.onClick,()=>i.onOpenChange(!1))})});zg.displayName=Rg;function Bg(e){return e?`open`:`closed`}var Vg=`DialogTitleWarning`,[Hg,Ug]=c(Vg,{contentName:kg,titleName:Pg,docsSlug:`dialog`}),Wg=({titleId:e})=>{let t=Ug(Vg),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
46
47If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
48
49For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return P.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Gg=`DialogDescriptionWarning`,Kg=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ug(Gg).contentName}}.`;return P.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},qg=vg,Jg=bg,Yg=wg,Xg=Eg,Zg=Ag,Qg=Fg,$g=Lg,e_=zg,t_=qg,n_=Jg,r_=Yg,i_=P.forwardRef(({className:e,...t},n)=>(0,I.jsx)(Xg,{className:m(`fixed inset-0 z-50 bg-black/60 backdrop-blur-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,`motion-reduce:animate-none motion-reduce:transition-none`,e),...t,ref:n}));i_.displayName=Xg.displayName;var a_=d(`fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 motion-reduce:animate-none motion-reduce:transition-none motion-reduce:data-[state=closed]:duration-0 motion-reduce:data-[state=open]:duration-0`,{variants:{side:{top:`inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,bottom:`inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,left:`inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,right:`inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`}},defaultVariants:{side:`right`}}),o_=P.forwardRef(({side:e=`right`,className:t,children:n,...r},i)=>(0,I.jsxs)(r_,{children:[(0,I.jsx)(i_,{}),(0,I.jsxs)(Zg,{ref:i,className:m(a_({side:e}),t),...r,children:[n,(0,I.jsxs)(e_,{className:`absolute right-4 top-4 roun
49ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none`,children:[(0,I.jsx)(Ln,{className:`h-4 w-4`}),(0,I.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]}));o_.displayName=Zg.displayName;var s_=({className:e,...t})=>(0,I.jsx)(`div`,{className:m(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});s_.displayName=`SheetHeader`;var c_=({className:e,...t})=>(0,I.jsx)(`div`,{className:m(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});c_.displayName=`SheetFooter`;var l_=P.forwardRef(({className:e,...t},n)=>(0,I.jsx)(Qg,{ref:n,className:m(`text-lg font-semibold text-foreground`,e),...t}));l_.displayName=Qg.displayName;var u_=P.forwardRef(({className:e,...t},n)=>(0,I.jsx)($g,{ref:n,className:m(`text-sm text-muted-foreground`,e),...t}));u_.displayName=$g.displayName;var d_=e=>e.type===`checkbox`,f_=e=>e instanceof Date,p_=e=>e==null,m_=e=>typeof e==`object`,V=e=>!p_(e)&&!Array.isArray(e)&&m_(e)&&!f_(e),h_=e=>V(e)&&e.target?d_(e.target)?e.target.checked:e.target.value:e,g_=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,__=(e,t)=>e.has(g_(t)),v_=e=>{let t=e.constructor&&e.constructor.prototype;return V(t)&&t.hasOwnProperty(`isPrototypeOf`)},y_=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function b_(e){let t,n=Array.isArray(e),r=typeof FileList<`u`&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(!(y_&&(e instanceof Blob||r))&&(n||V(e)))if(t=n?[]:{},!n&&!v_(e))t=e;else for(let n in e)e.hasOwnProperty(n)&&(t[n]=b_(e[n]));else return e;return t}var x_=e=>/^\w*$/.test(e),H=e=>e===void 0,S_=e=>Array.isArray(e)?e.filter(Boolean):[],C_=e=>S_(e.replace(/["|']|\]/g,``).split(/\.|\[/)),U=(e,t,n)=>{if(!t||!V(e))return n;let r=(x_(t)?[t]:C_(t)).reduce((e,t)=>p_(e)?e:e[t],e);return H(r)||r===e?H(e[t])?n:e[t]:r},w_=e=>typeof e==`boolean`,W=(e,t,n)=>{let r=-1,i=x_(t)?[t]:C_(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=V(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(t===`__proto__`||t===`constructor`||t===`prototype`)return;e[t]=a,e=e[t]}},T_={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`},E_={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},D_={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},O_=P.createContext(null);O_.displayName=`HookFormContext`;var k_=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==E_.all&&(t._proxyFormState[i]=!r||E_.all),n&&(n[i]=!0),e[i]}});return i},A_=typeof window<`u`?P.useLayoutEffect:P.useEffect,j_=e=>typeof e==`string`,M_=(e,t,n,r,i)=>j_(e)?(r&&t.watch.add(e),U(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),U(n,e))):(r&&(t.watchAll=!0),n),N_=e=>p_(e)||!m_(e);function P_(e,t,n=new WeakSet){if(N_(e)||N_(t))return e===t;if(f_(e)&&f_(t))return e.getTime()===t.getTime();let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(let a of r){let r=e[a];if(!i.includes(a))return!1;if(a!==`ref`){let e=t[a];if(f_(r)&&f_(e)||V(r)&&V(e)||Array.isArray(r)&&Array.isArray(e)?!P_(r,e,n):r!==e)return!1}}return!0}var F_=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},I_=e=>Array.isArray(e)?e:[e],L_=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},R_=e=>V(e)&&!Object.keys(e).length,z_=e=>e.type===`file`,B_=e=>typeof e==`function`,V_=e=>{if(!y_)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},H_=e=>e.type===`select-multiple`,U_=e=>e.type===`radio`,W_=e=>U_(e)||d_(e),G_=e=>V_(e)&&e.isConnected;function K_(e,t){let n=t.slice(0,-1).length,r=0;for(;r<n;)e=H(e)?r++:e[t[r++]];return e}function q_(e){for(let t in e)if(e.hasOwnProperty(t)&&!H(e[t]))return!1;return!0}function G(e,t){let n=Array.isArray(t)?t:x_(t)?[t]:C_(t),r=n.length===1?e:K_(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(V(r)&&R_(r)||Array.isArray(r)&&q_(r))&&G(e,n.slice(0,-1)),e}var J_=e=>{for(let t in e)if(B_(e[t]))return!0;return!1};function Y_(e,t={}){let n=Array.isArray(e);if(V(e)||n)for(let n in e)Array.isArray(e[n])||V(e[n])&&!J_(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Y_(e[n],t[n])):p_(e[n])||(t[n]=!0);return t}function X_(e,t,n){let r=Array.isArray(e);if(V(e)||r)for(let r in e)Array.isArray(e[r])||V(e[r])&&!J_(e[r])?H(t)||N_(n[r])?n[r]=Array.isArray(e[r])?Y_(e[r],[]):{...Y_(e[r])}:X_(e[r],p_(t)?{}:t[r],n[r]):n[r]=!P_(e[r],t[r]);return n}var Z_=(e,t)=>X_(e,t,Y_(t)),Q_={value:!1,isValid:!1},$_={value:!0,isValid:!0},ev=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!H(e[0].attributes.value)?H(e[0].value)||e[0].value===``?$_:{value:e[0].value,isValid:!0}:$_:Q_}return Q_},tv=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>H(e)?e:t?e===``?NaN:e&&+e:n&&j_(e)?new Date(e):r?r(e):e,nv={isValid:!1,value:null},rv=e=>Array.isArray(e)?e.reduce((e,t)=>
vendor: 1,887 bytes, line 49
49t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,nv):nv;function iv(e){let t=e.ref;return z_(t)?t.files:U_(t)?rv(e.refs).value:H_(t)?[...t.selectedOptions].map(({value:e})=>e):d_(t)?ev(e.refs).value:tv(H(t.value)?e.ref.value:t.value,e)}var av=(e,t,n,r)=>{let i={};for(let n of e){let e=U(t,n);e&&W(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},ov=e=>e instanceof RegExp,sv=e=>H(e)?e:ov(e)?e.source:V(e)?ov(e.value)?e.value.source:e.value:e,cv=e=>({isOnSubmit:!e||e===E_.onSubmit,isOnBlur:e===E_.onBlur,isOnChange:e===E_.onChange,isOnAll:e===E_.all,isOnTouch:e===E_.onTouched}),lv=`AsyncFunction`,uv=e=>!!e&&!!e.validate&&!!(B_(e.validate)&&e.validate.constructor.name===lv||V(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===lv)),dv=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),fv=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),pv=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=U(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(pv(a,t))break}else if(V(a)&&pv(a,t))break}}};function mv(e,t,n){let r=U(e,n);if(r||x_(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=U(t,r),o=U(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var hv=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return R_(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||E_.all))},gv=(e,t,n)=>!e||!t||e===t||I_(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),_v=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,vv=(e,t)=>
vendor: 4,270 bytes, line 49
49!S_(U(e,t)).length&&G(e,t),yv=(e,t,n)=>{let r=I_(U(e,n));return W(r,`root`,t[n]),W(e,n,r),e},bv=e=>j_(e);function xv(e,t,n=`validate`){if(bv(e)||Array.isArray(e)&&e.every(bv)||w_(e)&&!e)return{type:n,message:bv(e)?e:``,ref:t}}var Sv=e=>V(e)&&!ov(e)?e:{value:e,message:``},Cv=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:m,name:h,valueAsNumber:g,mount:_}=e._f,v=U(n,h);if(!_||t.has(h))return{};let y=s?s[0]:o,b=e=>{i&&y.reportValidity&&(y.setCustomValidity(w_(e)?``:e||``),y.reportValidity())},x={},S=U_(o),C=d_(o),w=S||C,T=(g||z_(o))&&H(o.value)&&H(v)||V_(o)&&o.value===``||v===``||Array.isArray(v)&&!v.length,E=F_.bind(null,h,r,x),D=(e,t,n,r=D_.maxLength,i=D_.minLength)=>{let a=e?t:n;x[h]={type:e?r:i,message:a,ref:o,...E(e?r:i,a)}};if(a?!Array.isArray(v)||!v.length:c&&(!w&&(T||p_(v))||w_(v)&&!v||C&&!ev(s).isValid||S&&!rv(s).isValid)){let{value:e,message:t}=bv(c)?{value:!!c,message:c}:Sv(c);if(e&&(x[h]={type:D_.required,message:t,ref:y,...E(D_.required,t)},!r))return b(t),x}if(!T&&(!p_(d)||!p_(f))){let e,t,n=Sv(f),i=Sv(d);if(!p_(v)&&!isNaN(v)){let r=o.valueAsNumber||v&&+v;p_(n.value)||(e=r>n.value),p_(i.value)||(t=r<i.value)}else{let r=o.valueAsDate||new Date(v),a=e=>new Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;j_(n.value)&&v&&(e=s?a(v)>a(n.value):c?v>n.value:r>new Date(n.value)),j_(i.value)&&v&&(t=s?a(v)<a(i.value):c?v<i.value:r<new Date(i.value))}if((e||t)&&(D(!!e,n.message,i.message,D_.max,D_.min),!r))return b(x[h].message),x}if((l||u)&&!T&&(j_(v)||a&&Array.isArray(v))){let e=Sv(l),t=Sv(u),n=!p_(e.value)&&v.length>+e.value,i=!p_(t.value)&&v.length<+t.value;if((n||i)&&(D(n,e.message,t.message),!r))return b(x[h].message),x}if(p&&!T&&j_(v)){let{value:e,message:t}=Sv(p);if(ov(e)&&!v.match(e)&&(x[h]={type:D_.pattern,message:t,ref:o,...E(D_.pattern,t)},!r))return b(t),x}if(m){if(B_(m)){let e=xv(await m(v,n),y);if(e&&(x[h]={...e,...E(D_.validate,e.message)},!r))return b(e.message),x}else if(V(m)){let e={};for(let t in m){if(!R_(e)&&!r)break;let i=xv(await m[t](v,n),y,t);i&&(e={...i,...E(t,i.message)},b(i.message),r&&(x[h]=e))}if(!R_(e)&&(x[h]={ref:y,...e},!r))return x}}return b(!0),x},wv={mode:E_.onSubmit,reValidateMode:E_.onChange,shouldFocusError:!0};function Tv(e={}){let t={...wv,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:B_(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=(V(t.defaultValues)||V(t.values))&&b_(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:b_(i),o={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0,u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={...u},f={array:L_(),state:L_()},p=t.criteriaMode===E_.all,m=e=>t=>{clearTimeout(l),l=setTimeout(e,t)},h=async e=>{if(!t.disabled&&(u.isValid||d.isValid||e)){let e=t.resolver?R_((await C()).errors):await T(r,!0);e!==n.isValid&&f.state.next({isValid:e})}},g=(e,r)=>{!t.disabled&&(u.isValidating||u.validatingFields||d.isValidating||d.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(r?W(n.validatingFields,e,r):G(n.validatingFields,e))}),f.state.next({validatingFields:n.validatingFields,isValidating:!R_(n.validatingFields)}))},_=(e,s=[],c,l,p=!0,m=!0)=>{if(l&&c&&!t.disabled){if(o.action=!0,m&&Array.isArray(U(r,e))){let t=c(U(r,e),l.argA,l.argB);p&&W(r,e,t)}if(m&&Array.isArray(U(n.errors,e))){let t=c(U(n.errors,e),l.argA,l.argB);p&&W(n.errors,e,t),vv(n.errors,e)}if((u.touchedFields||d.touchedFields)&&m&&Array.isArray(U(n.touchedFields,e))){let t=c(U(n.touchedFields,e),l.argA,l.argB);p&&W(n.touchedFields,e,t)}(u.dirtyFields||d.dirtyFields)&&(n.dirtyFields=Z_(i,a)),f.state.next({name:e,isDirty:D(e,s),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else W(a,e,s)},v=(e,t)=>{W(n.errors,e,t),f.state.next({errors:n.errors})},y=e=>{n.errors=e,f.state.next({errors:n.errors,isValid:!1})},b=(e,t,n,s)=>{let c=U(r,e);if(c){let r=U(a,e,H(n)?U(i,e):n);H(r)||s&&s.defaultChecked||t?W(a,e,t?r:iv(c._f)):A(e,r),o.mount&&h()}},x=(e,r,a,o,s)=>{let c=!1,l=!1,p={name:e};
49if(!t.disabled){if(!a||o){(u.isDirty||d.isDirty)&&(l=n.isDirty,n.isDirty=p.isDirty=D(),c=l!==p.isDirty);let t=P_(U(i,e),r);l=!!U(n.dirtyFields,e),t?G(n.dirtyFields,e):W(n.dirtyFields,e,!0),p.dirtyFields=n.dirtyFields,c||=(u.dirtyFields||d.dirtyFields)&&l!==!t}if(a){let t=U(n.touchedFields,e);t||(W(n.touchedFields,e,a),p.touchedFields=n.touchedFields,c||=(u.touchedFields||d.touchedFields)&&t!==a)}c&&s&&f.state.next(p)}return c?p:{}},S=(e,r,i,a)=>{let o=U(n.errors,e),s=(u.isValid||d.isValid)&&w_(r)&&n.isValid!==r;if(t.delayError&&i?(c=m(()=>v(e,i)),c(t.delayError)):(clearTimeout(l),c=null,i?W(n.errors,e,i):G(n.errors,e)),(i?!P_(o,i):o)||!R_(a)||s){let t={...a,...s&&w_(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},f.state.next(t)}},C=async e=>{g(e,!0);let n=await t.resolver(a,t.context,av(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return g(e),n},w=async e=>{let{errors:t}=await C(e);if(e)for(let r of e){let e=U(t,r);e?W(n.errors,r,e):G(n.errors,r)}else n.errors=t;return t},T=async(e,r,i={valid:!0})=>{for(let o in e){let c=e[o];if(c){let{_f:e,...l}=c;if(e){let l=s.array.has(e.name),d=c._f&&uv(c._f);d&&u.validatingFields&&g([o],!0);let f=await Cv(c,s.disabled,a,p,t.shouldUseNativeValidation&&!r,l);if(d&&u.validatingFields&&g([o]),f[e.name]&&(i.valid=!1,r))break;!r&&(U(f,e.name)?l?yv(n.errors,f,e.name):W(n.errors,e.name,f[e.name]):G(n.errors,e.name))}!R_(l)&&await T(l,r,i)}}return i.valid},E=()=>{for(let e of s.unMount){let t=U(r,e);t&&(t._f.refs?t._f.refs.every(e=>!G_(e)):!G_(t._f.ref))&&ue(e)}s.unMount=new Set},D=(e,n)=>!t.disabled&&(e&&n&&W(a,e,n),!P_(re(),i)),O=(e,t,n)=>M_(e,s,{...o.mount?a:H(t)?i:j_(e)?{[e]:t}:t},n,t),k=e=>S_(U(o.mount?a:i,e,t.shouldUnregister?U(i,e,[]):[])),A=(e,t,n={})=>{let i=U(r,e),o=t;if(i){let n=i._f;n&&(!n.disabled&&W(a,e,tv(t,n)),o=V_(n.ref)&&p_(t)?``:t,H_(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?d_(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(o)?e.checked=!!o.find(t=>t===e.value):e.checked=o===e.value||!!o)}):n.refs.forEach(e=>e.checked=e.value===o):z_(n.ref)?n.ref.value=``:(n.ref.value=o,n.ref.type||f.state.next({name:e,values:b_(a)})))}(n.shouldDirty||n.shouldTouch)&&x(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ne(e)},ee=(e,t,n)=>{for(let i in t){if(!t.hasOwnProperty(i))return;let a=t[i],o=e+`.`+i,c=U(r,o);(s.array.has(e)||V(a)||c&&!c._f)&&!f_(a)?ee(o,a,n):A(o,a,n)}},j=(e,t,c={})=>{let l=U(r,e),p=s.array.has(e),m=b_(t);W(a,e,m),p?(f.array.next({name:e,values:b_(a)}),(u.isDirty||u.dirtyFields||d.isDirty||d.dirtyFields)&&c.shouldDirty&&f.state.next({name:e,dirtyFields:Z_(i,a),isDirty:D(e,m)})):l&&!l._f&&!p_(m)?ee(e,m,c):A(e,m,c),fv(e,s)&&f.state.next({...n,name:e}),f.state.next({name:o.mount?e:void 0,values:b_(a)})},M=async e=>{o.mount=!0;let i=e.target,l=i.name,m=!0,_=U(r,l),v=e=>{m=Number.isNaN(e)||f_(e)&&isNaN(e.getTime())||P_(e,U(a,l,e))},y=cv(t.mode),b=cv(t.reValidateMode);if(_){let o,w,E=i.type?iv(_._f):h_(e),D=e.type===T_.BLUR||e.type===T_.FOCUS_OUT,O=!dv(_._f)&&!t.resolver&&!U(n.errors,l)&&!_._f.deps||_v(D,U(n.touchedFields,l),n.isSubmitted,b,y),k=fv(l,s,D);W(a,l,E),D?(_._f.onBlur&&_._f.onBlur(e),c&&c(0)):_._f.onChange&&_._f.onChange(e);let A=x(l,E,D),ee=!R_(A)||k;if(!D&&f.state.next({name:l,type:e.type,values:b_(a)}),O)return(u.isValid||d.isValid)&&(t.mode===`onBlur`?D&&h():D||h()),ee&&f.state.next({name:l,...k?{}:A});if(!D&&k&&f.state.next({...n}),t.resolver){let{errors:e}=await C([l]);if(v(E),m){let t=mv(n.errors,r,l),i=mv(e,r,t.name||l);o=i.error,l=i.name,w=R_(e)}}else g([l],!0),o=(await Cv(_,s.disabled,a,p,t.shouldUseNativeValidation))[l],g([l]),v(E),m&&(o?w=!1:(u.isValid||d.isValid)&&(w=await T(r,!0)));m&&(_._f.deps&&ne(_._f.deps),S(l,w,o,A))}},te=(e,t)=>{if(U(n.errors,t)&&e.focus)return e.focus(),1},ne=async(e,i={})=>{let a,o,c=I_(e);if(t.resolver){let t=await w(H(e)?e:c);a=R_(t),o=e?!c.some(e=>U(t,e)):a}else e?(o=(await Promise.all(c.map(async e=>{let t=U(r,e);return await T(t&&t._f?{[e]:t}:t)}))).every(Boolean),!(!o&&!n.isValid)&&h()):o=a=await T(r);return f.state.next({...!j_(e)||(u.isValid||d.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&pv(r,te,e?c:s.mount),o},re=e=>{let t={...o.mount?a:i};return H(e)?t:j_(e)?U(t,e):e.map(e=>U(t,e))},ie=(e,t)=>({invalid:!!U((t||n).errors,e),isDirty:!!U((t||n).dirtyFields,e),error:U((t||n).errors,e),isValidating:!!U(n.validatingFields,e),isTouched:!!U((t||n).touchedFields,e)}),ae=e=>
49{e&&I_(e).forEach(e=>G(n.errors,e)),f.state.next({errors:e?n.errors:{}})},oe=(e,t,i)=>{let a=(U(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=U(n.errors,e)||{};W(n.errors,e,{...l,...t,ref:a}),f.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},se=(e,t)=>B_(e)?f.state.subscribe({next:n=>`values`in n&&e(O(void 0,t),n)}):O(e,t,!0),ce=e=>f.state.subscribe({next:t=>{gv(e.name,t.name,e.exact)&&hv(t,e.formState||u,ye,e.reRenderRoot)&&e.callback({values:{...a},...n,...t,defaultValues:i})}}).unsubscribe,le=e=>(o.mount=!0,d={...d,...e.formState},ce({...e,formState:d})),ue=(e,o={})=>{for(let c of e?I_(e):s.mount)s.mount.delete(c),s.array.delete(c),o.keepValue||(G(r,c),G(a,c)),!o.keepError&&G(n.errors,c),!o.keepDirty&&G(n.dirtyFields,c),!o.keepTouched&&G(n.touchedFields,c),!o.keepIsValidating&&G(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&G(i,c);f.state.next({values:b_(a)}),f.state.next({...n,...o.keepDirty?{isDirty:D()}:{}}),!o.keepIsValid&&h()},de=({disabled:e,name:t})=>{(w_(e)&&o.mount||e||s.disabled.has(t))&&(e?s.disabled.add(t):s.disabled.delete(t))},fe=(e,n={})=>{let a=U(r,e),c=w_(n.disabled)||w_(t.disabled);return W(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a?de({disabled:w_(n.disabled)?n.disabled:t.disabled,name:e}):b(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:sv(n.min),max:sv(n.max),minLength:sv(n.minLength),maxLength:sv(n.maxLength),pattern:sv(n.pattern)}:{},name:e,onChange:M,onBlur:M,ref:c=>{if(c){fe(e,n),a=U(r,e);let t=H(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=W_(t),s=a._f.refs||[];if(o?s.find(e=>e===t):t===a._f.ref)return;W(r,e,{_f:{...a._f,...o?{refs:[...s.filter(G_),t,...Array.isArray(U(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),b(e,!1,void 0,t)}else a=U(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(__(s.array,e)&&o.action)&&s.unMount.add(e)}}},pe=()=>t.shouldFocusError&&pv(r,te,s.mount),me=e=>{w_(e)&&(f.state.next({disabled:e}),pv(r,(t,n)=>{let i=U(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},he=(e,i)=>async o=>{let c;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let l=b_(a);if(f.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await C();n.errors=e,l=b_(t)}else await T(r);if(s.disabled.size)for(let e of s.disabled)G(l,e);if(G(n.errors,`root`),R_(n.errors)){f.state.next({errors:{}});try{await e(l,o)}catch(e){c=e}}else i&&await i({...n.errors},o),pe(),setTimeout(pe);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:R_(n.errors)&&!c,submitCount:n.submitCount+1,errors:n.errors}),c)throw c},N=(e,t={})=>{U(r,e)&&(H(t.defaultValue)?j(e,b_(U(i,e))):(j(e,t.defaultValue),W(i,e,b_(t.defaultValue))),t.keepTouched||G(n.touchedFields,e),t.keepDirty||(G(n.dirtyFields,e),n.isDirty=t.defaultValue?D(e,b_(U(i,e))):D()),t.keepError||(G(n.errors,e),u.isValid&&h()),f.state.next({...n}))},ge=(e,c={})=>{let l=e?b_(e):i,d=b_(l),p=R_(e),m=p?i:d;if(c.keepDefaultValues||(i=l),!c.keepValues){if(c.keepDirtyValues){let e=new Set([...s.mount,...Object.keys(Z_(i,a))]);for(let t of Array.from(e))U(n.dirtyFields,t)?W(m,t,U(a,t)):j(t,U(m,t))}else{if(y_&&H(e))for(let e of s.mount){let t=U(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(V_(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(c.keepFieldsRef)for(let e of s.mount)j(e,U(m,e));else r={}}a=t.shouldUnregister?c.keepDefaultValues?b_(i):{}:b_(m),f.array.next({values:{...m}}),f.state.next({values:{...m}})}s={mount:c.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!u.isValid||!!c.keepIsValid||!!c.keepDirtyValues,o.watch=!!t.shouldUnregister,f.state.next({submitCount:c.keepSubmitCount?n.submitCount:0,isDirty:p?!1:c.keepDirty?n.isDirty:!!(c.keepDefaultValues&&!P_(e,i)),isSubmitted:c.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:p?{}:c.keepDirtyValues?c.keepDefaultValues&&a?Z_(i,a):n.dirtyFields:c.keepDefaultValues&&e?Z_(i,e):c.keepDirty?n.dirtyFields:{},touchedFields:c.keepTouched?n.touchedFields:{},errors:c.keepErrors?n.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},_e=(e,t)=>
49ge(B_(e)?e(a):e,t),ve=(e,t={})=>{let n=U(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&(e.focus(),t.shouldSelect&&B_(e.select)&&e.select())}},ye=e=>{n={...n,...e}},be={control:{register:fe,unregister:ue,getFieldState:ie,handleSubmit:he,setError:oe,_subscribe:ce,_runSchema:C,_focusError:pe,_getWatch:O,_getDirty:D,_setValid:h,_setFieldArray:_,_setDisabledField:de,_setErrors:y,_getFieldArray:k,_reset:ge,_resetDefaultValues:()=>B_(t.defaultValues)&&t.defaultValues().then(e=>{_e(e,t.resetOptions),f.state.next({isLoading:!1})}),_removeUnmounted:E,_disableForm:me,_subjects:f,_proxyFormState:u,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:le,trigger:ne,register:fe,handleSubmit:he,watch:se,setValue:j,getValues:re,reset:_e,resetField:N,clearErrors:ae,unregister:ue,setError:oe,setFocus:ve,getFieldState:ie};return{...be,formControl:be}}function Ev(e={}){let t=P.useRef(void 0),n=P.useRef(void 0),[r,i]=P.useState({isDirty:!1,isValidating:!1,isLoading:B_(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:B_(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!B_(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=Tv(e);t.current={...i,formState:r}}let a=t.current.control;return a._options=e,A_(()=>{let e=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),a._formState.isReady=!0,e},[a]),P.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),P.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),P.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),P.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),P.useEffect(()=>{if(a._proxyFormState.isDirty){let e=a._getDirty();e!==r.isDirty&&a._subjects.state.next({isDirty:e})}},[a,r.isDirty]),P.useEffect(()=>{e.values&&!P_(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),n.current=e.values,i(e=>({...e}))):a._resetDefaultValues()},[a,e.values]),P.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=k_(r,a),t.current}var Dv=(e,t,n)=>{if(e&&`reportValidity`in e){let r=U(n,t);e.setCustomValidity(r&&r.message||``),e.reportValidity()}},Ov=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&`reportValidity`in r.ref?Dv(r.ref,n,e):r.refs&&r.refs.forEach(t=>Dv(t,n,e))}},kv=(e,t)=>{t.shouldUseNativeValidation&&Ov(e,t);let n={};for(let r in e){let i=U(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(Av(t.names||Object.keys(e),r)){let e=Object.assign({},U(n,r));W(e,`root`,a),W(n,r,e)}else W(n,r,a)}return n},Av=(e,t)=>e.some(e=>e.startsWith(t+`.`)),jv=function(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(`unionErrors`in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(`unionErrors`in r&&r.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=F_(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n},Mv=function(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(i,o){try{var s=Promise.resolve(e[n.mode===`sync`?`parse`:`parseAsync`](r,t)).then(function(e){return a.shouldUseNativeValidation&&Ov({},a),{errors:{},values:n.raw?r:e}})}catch(e){return o(e)}return s&&s.then?s.then(void 0,o):s}(0,function(e){if(function(e){return Array.isArray(e?.errors)}(e))return{values:{},errors:kv(jv(e.errors,!a.shouldUseNativeValidation&&a.criteriaMode===`all`),a)};throw e}))}catch(e){return Promise.reject(e)}}};function Nv(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}
vendor: 47,824 bytes, lines 49-96
49function Pv(e,t=`|`){return e.map(e=>Zv(e)).join(t)}function Fv(e,t){return typeof t==`bigint`?t.toString():t}function Iv(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error(`cached value already set`)}}}function Lv(e){return e==null}function Rv(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function zv(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Bv(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function Vv(e){return JSON.stringify(e)}function Hv(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var Uv=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Wv(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Gv=Iv(()=>{if(Py.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Kv(e){if(Wv(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Wv(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function qv(e){return Kv(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var Jv=new Set([`string`,`number`,`symbol`]);function Yv(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Xv(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function K(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Zv(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function Qv(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}function $v(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Xv(e,Bv(e._zod.def,{get shape(){let e={};for(let r of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,r))throw Error(`Unrecognized key: "${String(r)}"`);t[r]&&zv(e,r,n.shape[r])}return zv(this,`shape`,e),e},checks:[]}))}function ey(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Xv(e,Bv(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,e))throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&delete r[e]}return zv(this,`shape`,r),r},checks:[]}))}function ty(e,t){if(!Kv(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Xv(e,Bv(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return zv(this,`shape`,n),n}}))}function ny(e,t){if(!Kv(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Xv(e,Bv(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return zv(this,`shape`,n),n}}))}function ry(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return Xv(e,Bv(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return zv(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function iy(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);return Xv(t,Bv(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(r,t))throw Error(`Unrecognized key: "${String(t)}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t of Reflect.ownKeys(r))i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return zv(this,`shape`,i),i},checks:[]}))}function ay(e,t,n){return Xv(t,Bv(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(i,t))throw Error(`Unrecognized key: "${String(t)}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t of Reflect.ownKeys(r))i[t]=new e({type:`nonoptional`,innerType:r[t]});return zv(this,`shape`,i),i}}))}function oy(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function sy(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function cy(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function ly(e){return typeof e==`string`?e:e?.message}function uy(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function dy(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:ly(e.inst?._zod.def?.error?.(e))??ly(a?.(e))??ly(t?.error?.(e))??ly(n.customError?.(e))??ly(n.localeError?.(e))??`Invalid input`,{inst:s,schema:c,continue:l,input:u,...d}=e;return d.path??=[],d.message=o,t?.reportInput&&(d.input=u),d}var fy=/[\uD800-\uDBFF]/;function py(e){let t=e.length;if(!fy.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function my(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function hy(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function gy(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function _y(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):by(e,n,r.value)}}function vy(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function yy(e,t,n){return vy(e,t,n,!1)}function by(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:vy(this,t,n.bind(this))},set(e){vy(this,t,e)}})}function xy(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var Sy,Cy=!1,wy={configurable:!0,get(){Cy=!0}};function q(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&Sy!==e._zod){Sy=void 0;return}Sy=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,wy);let e=Cy;Cy=!1;try{let r=n(this);return Cy?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),Cy||=e,r}catch(n){throw delete this[t],Cy||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}function Ty(e,t,n,r){let i=xy(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var Ey=`~constantCatch`;function Dy(e){let t=()=>e;return t[Ey]=!0,t}var Oy,ky={value:void 0,enumerable:!1},Ay=`captureStackTrace`in Error?Error:null;function jy(e){let t=Ay;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return Ay=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function J(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){ky.value=new a(r);try{Object.defineProperty(n,"_zod",ky)}finally{ky.value=void 0}}if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),_y(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?jy(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var My=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Ny=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(Oy=globalThis).__zod_globalConfig??(Oy.__zod_globalConfig={});var Py=globalThis.__zod_globalConfig;function Fy(e){return e&&Object.assign(Py,e),Py}function Iy(){let e=this._zod;return e.message??=JSON.stringify(e.def,Fv,2),e.message}function Ly(e){this._zod.message=e}var Ry={get:Iy,set:Ly,enumerable:!0,configurable:!0},zy={value:void 0,enumerable:!1},By={value:void 0,enumerable:!1},Vy=new WeakSet([Object.prototype,Error.prototype]),Hy=(e,t)=>{e.name=`$ZodError`,zy.value=e._zod,Object.defineProperty(e,"_zod",zy),By.value=t,Object.defineProperty(e,"issues",By),zy.value=void 0,By.value=void 0,Object.defineProperty(e,"message",Ry);let n=Object.getPrototypeOf(e);Vy.has(n)||(Vy.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},Uy=J(`$ZodError`,Hy),Wy=J(`$ZodError`,Hy,void 0,{Parent:Error});function Gy(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Ky(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?Gy(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function qy(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function Jy(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Yy=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new My;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>dy(e,o,Fy())));throw Uv(n,a?.callee??t),n}return s.value};return t},Xy=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>dy(e,o,Fy())));throw Uv(n,a?.callee??t),n}return s.value};return t},Zy=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new My;return a.issues.length?{success:!1,error:new(e??Uy)(a.issues.map(e=>dy(e,i,Fy())))}:{success:!0,data:a.value}},Qy=Zy(Wy),$y=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>dy(e,i,Fy())))}:{success:!0,data:a.value}},eb=$y(Wy),tb=e=>{let t=Yy(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,Jy(n,a))};return n},nb=e=>{let t=Yy(e),n=(e,r,i,a)=>t(e,r,i,Jy(n,a));return n},rb=e=>{let t=Xy(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,Jy(n,a))};return n},ib=e=>{let t=Xy(e),n=async(e,r,i,a)=>await t(e,r,i,Jy(n,a));return n},ab=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Zy(e)(t,n,i)},ob=e=>(t,n,r)=>Zy(e)(t,n,r),sb=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return $y(e)(t,n,i)},cb=e=>async(t,n,r)=>$y(e)(t,n,r),lb=/^[cC][0-9a-z]{6,}$/,ub=/^[0-9a-z]+$/,db=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,fb=/^[0-9a-vA-V]{20}$/,pb=/^[A-Za-z0-9]{27}$/,mb=/^[a-zA-Z0-9_-]{21}$/;function hb(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var gb=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,_b=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,vb=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,yb=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,bb=`^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;function xb(){return new RegExp(bb,`u`)}var Sb=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Cb=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,wb=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Tb=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Eb=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Db=/^[A-Za-z0-9_-]*$/,Ob=/^https?$/,kb=/^\+[1-9]\d{6,14}$/,Ab=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;function jb(e){return RegExp(`^${e}$`)}var Mb=jb(Ab);function Nb(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Pb(e){return RegExp(`^${Nb(e)}$`)}function Fb(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${Nb({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${Nb({precision:e.precision})}`:n;return RegExp(`^${Ab}T(?:${r})$`)}var Ib=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Lb=/^[^A-Z]*$/,Rb=/^[^a-z]*$/,zb=J(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Bb=e=>{let t=e.value;return!Lv(t)&&t.length!==void 0},Vb=J(`$ZodCheckMaxLength`,(e,t)=>{var n;zb.init(e,t),(n=e._zod.def).when??(n.when=Bb),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?py(r):i)<=t.maximum)return;let a=my(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Hb=J(`$ZodCheckMinLength`,(e,t)=>{var n;zb.init(e,t),(n=e._zod.def).when??(n.when=Bb),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?py(r):i)>=t.minimum)return;let a=my(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ub=J(`$ZodCheckLengthEquals`,(e,t)=>{var n;zb.init(e,t),(n=e._zod.def).when??(n.when=Bb),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?py(r):i;if(a===t.length)return;let o=my(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Wb=J(`$ZodCheckStringFormat`,(e,t)=>{var n,r;zb.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Gb=J(`$ZodCheckRegex`,(e,t)=>{Wb.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Kb=J(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Lb,Wb.init(e,t)}),qb=J(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Rb,Wb.init(e,t)}),Jb=J(`$ZodCheckIncludes`,(e,t)=>{zb.init(e,t);let n=Yv(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Yb=J(`$ZodCheckStartsWith`,(e,t)=>{zb.init(e,t);let n=RegExp(`^${Yv(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Xb=J(`$ZodCheckEndsWith`,(e,t)=>{zb.init(e,t);let n=RegExp(`.*${Yv(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Zb=J(`$ZodCheckOverwrite`,(e,t)=>{zb.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),Qb=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
50`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.content??[``];return new e(...Object.keys(this.closed),`return function (${this.args.join(`, `)}) {\n${t.join(`
51`)}\n};`)(...Object.values(this.closed))}},$b={major:4,minor:5,patch:4},Y=J(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=$b;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=oy(t),a;for(let o of n){if(o._zod.def.when){if(sy(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new My;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(uy(t.issues,n,e),i||=oy(t,n))});else{if(t.issues.length===n)continue;uy(t.issues,n,e),i||=oy(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(oy(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new My;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new My;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return yy(this,`~standard`,tx(this))},set"~standard"(e){vy(this,`~standard`,e)}}),ex=e=>e.success?{value:e.data}:{issues:e.error?.issues};function tx(e){return{validate:t=>{try{return ex(Qy(e,t))}catch{return eb(e,t).then(ex)}},vendor:`zod`,version:1}}var nx=J(`$ZodString`,(e,t)=>{Y.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ib(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),X=J(`$ZodStringFormat`,(e,t)=>{Wb.init(e,t),nx.init(e,t)}),rx=J(`$ZodGUID`,(e,t)=>{t.pattern??=_b,X.init(e,t)}),ix=J(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=vb(e)}else t.pattern??=vb();X.init(e,t)}),ax=J(`$ZodEmail`,(e,t)=>{t.pattern??=yb,X.init(e,t)});function ox(e,t){if(!t.normalize&&t.protocol?.source===Ob.source&&!/^https?:\/\//i.test(e))return 1;try{return new URL(e)}catch{return 2}}var sx=/[\t\n\r]/g;function cx(e){return e.replace(sx,``)}function lx(e,t){return t.lastIndex=0,t.test(e.hostname)}function ux(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}var dx=J(`$ZodURL`,(e,t)=>{X.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=ox(r,t);if(i===1){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort});return}t.hostname&&!lx(i,t.hostname)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!ux(i,t.protocol)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:cx(r);return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),fx=J(`$ZodEmoji`,(e,t)=>{t.pattern??=xb(),X.init(e,t)}),px=J(`$ZodNanoID`,(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??=t.length===void 0?mb:hb(t.length),X.init(e,t)}),mx=J(`$ZodCUID`,(e,t)=>{t.pattern??=lb,X.init(e,t)}),hx=J(`$ZodCUID2`,(e,t)=>{t.pattern??=ub,X.init(e,t)}),gx=J(`$ZodULID`,(e,t)=>{t.pattern??=db,X.init(e,t)}),_x=J(`$ZodXID`,(e,t)=>{t.pattern??=fb,X.init(e,t)}),vx=J(`$ZodKSUID`,(e,t)=>{t.pattern??=pb,X.init(e,t)}),yx=J(`$ZodISODateTime`,(e,t)=>{t.pattern??=Fb(t),X.init(e,t),(t.local||t.precision===-1)&&(e._zod.bag.laxFormat=!0,e._zod.onattach.push(e=>{e._zod.bag.laxFormat=!0}))}),bx=J(`$ZodISODate`,(e,t)=>{t.pattern??=Mb,X.init(e,t)}),xx=J(`$ZodISOTime`,(e,t)=>{t.pattern??=Pb(t),X.init(e,t)}),Sx=J(`$ZodISODuration`,(e,t)=>{t.pattern??=gb,X.init(e,t)}),Cx=J(`$ZodIPv4`,(e,t)=>{t.pattern??=Sb,X.init(e,t),e._zod.bag.format=`ipv4`}),wx=/^[0-9a-fA-F:.]+$/;function Tx(e){if(!wx.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}var Ex=J(`$ZodIPv6`,(e,t)=>{t.pattern??=Cb,X.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{Tx(n.value)||n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}),Dx=J(`$ZodCIDRv4`,(e,t)=>{t.pattern??=wb,X.init(e,t)});function Ox(e){let t=e.split(`/`);if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`!==r||i<0||i>128?!1:Tx(n)}var kx=J(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Tb,X.init(e,t),e._zod.check=n=>{Ox(n.value)||n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}});function Ax(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var jx=J(`$ZodBase64`,(e,t)=>{t.pattern??=Eb,X.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Ax(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Mx(e){if(!Db.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Ax(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Nx=J(`$ZodBase64URL`,(e,t)=>{t.pattern??=Db,X.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Mx(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Px=J(`$ZodE164`,(e,t)=>{t.pattern??=kb,X.init(e,t)});function Fx(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Ix=J(`$ZodJWT`,(e,t)=>{X.init(e,t),e._zod.check=n=>{Fx(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Lx=J(`$ZodUnknown`,(e,t)=>{Y.init(e,t),e._zod.parse=e=>e}),Rx=J(`$ZodNever`,(e,t)=>{Y.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function zx(e,t,n){e.issues.length&&t.issues.push(...cy(n,e.issues)),t.value[n]=e.value}var Bx=J(`$ZodArray`,(e,t)=>{Y.init(e,t);let n=Py.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[];for(let e=0;e<a.length;e++){let n=a[e],s=t.element._zod.run({value:n,issues:[]},i);s instanceof Promise?o.push(s.then(t=>zx(t,r,e))):zx(s,r,e)}return o.length?Promise.all(o).then(()=>r):r}});function Vx(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(!(!o&&s&&i===`optional`)){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...cy(n,e.issues))}if(!o&&i===void 0){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}}var Hx=[];function Ux(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Hx,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=Qv(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function Wx(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin,d=c.optout;for(let i in t){if(s.has(i))continue;if(i===`__proto__`){l===`never`&&o.push(i);continue}if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Vx(e,n,i,t,u,d))):Vx(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var Gx=new WeakMap,Kx=J(`$ZodObject`,(e,t)=>{if(Y.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Gx.set(t,e),Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),Gx.set(t,n),n}})}let n=Iv(()=>Ux(t));q(e,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||zv(n,e,new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0)}}return n});let r=Wv,i=t.catchall,a,o=Py.memoizer;o?.attach(e),e._zod.parse=(t,s)=>{a??=n.value;let c=t.value;if(!r(c))return t.issues.push({expected:`object`,code:`invalid_type`,input:c,inst:e}),t;t.value=o?o.alloc(e,t,{},s):{};let l=[],u=a.shape;for(let e of a.allKeys){if(e===`__proto__`)continue;let n=u[e],r=n._zod.optin,i=n._zod.optout,a=n._zod.run({value:c[e],issues:[]},s);a instanceof Promise?l.push(a.then(n=>Vx(n,t,e,c,r,i))):Vx(a,t,e,c,r,i)}return i?Wx(l,c,t,s,n.value,e):l.length?Promise.all(l).then(()=>t):t}}),qx=J(`$ZodObjectJIT`,(e,t)=>{Kx.init(e,t);let n=e._zod.parse,r=Iv(()=>Ux(t)),i=Py.memoizer,a=t=>{let n=r.value,a=n.symbolKeys,o=new Qb([`payload`,`ctx`],{shape:t,inst:e,memo:i,syms:a}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,c=(e,t)=>`
52          for (let i = 0; i < ${e}.issues.length; i++) {
53            const iss = ${e}.issues[i];
54            iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
55            payload.issues.push(iss);
56          }`;o.write(`const input = payload.value;`);let l=Object.create(null),u=0;for(let e of n.allKeys)l[e]=`key_${u++}`;o.write(i?`const newResult = memo.alloc(inst, payload, {}, ctx);`:`const newResult = {};`);for(let e of n.allKeys){if(e===`__proto__`)continue;let n=l[e],r=typeof e==`symbol`?`syms[${a.indexOf(e)}]`:Vv(e),i=`${r} in input`,u=t[e],d=u?._zod?.optin,f=d!==void 0,p=u?._zod?.optout===`optional`;if(o.write(`const ${n} = ${s(r)};`),f&&p){let e=d===`optional`?`${n}_present`:`${n}.value !== undefined || ${n}_present`;o.write(`
57        const ${n}_present = ${i};
58        if (!${n}.issues.length || ${n}_present) {
59          if (${n}.issues.length) {${c(n,r)}
60          }
61
62          if (${e}) {
63            newResult[${r}] = ${n}.value;
64          }
65        }
66
67      `)}else f?o.write(`
68        if (${n}.issues.length) {${c(n,r)}
69        }
70        
71        if (${n}.value === undefined) {
72          if (${i}) {
73            newResult[${r}] = undefined;
74          }
75        } else {
76          newResult[${r}] = ${n}.value;
77        }
78
79      `):o.write(`
80        const ${n}_present = ${i};
81        if (${n}.issues.length) {${c(n,r)}
82        }
83        if (!${n}_present && !${n}.issues.length) {
84          payload.issues.push({
85            code: "invalid_type",
86            expected: "nonoptional",
87            input: undefined,
88            path: [${r}]
89          });
90        }
91
92        if (${n}_present) {
93          newResult[${r}] = ${n}.value;
94        }
95
96      `)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=Wv,c=!Py.jitless,l=c&&Gv.value,u=t.catchall,d;e._zod.parse=(i,f)=>{d??=r.value;let p=i.value;return s(p)?c&&l&&f?.async===!1&&f.jitless!==!0?(o||=a(t.shape),i=o(i,f),u?Wx([],p,i,f,d,e):i):n(i,f):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}});function Jx(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!oy(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>dy(e,r,Fy())))}),t)}var Yx=J(`$ZodUnion`,(e,t)=>{Y.init(e,t),q(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),q(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),q(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),q(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>Rv(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Jx(t,r,e,i)):Jx(o,r,e,i)}}),Xx=J(`$ZodIntersection`,(e,t)=>{Y.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Qx(e,t,n)):Qx(e,i,a)}});function Zx(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Kv(e)&&Kv(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=Zx(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Zx(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Qx(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=Zx(t.value,n.value);if(!c.valid){if(oy(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var $x=J(`$ZodEnum`,(e,t)=>{Y.init(e,t);let n=Nv(t.entries),r=new Set(n);e._zod.values=r;let i=n.filter(e=>Jv.has(typeof e));e._zod.pattern=RegExp(i.length?`^(${i.map(e=>Yv(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),eS=J(`$ZodLiteral`,(e,t)=>{Y.init(e,t);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(t.values.length?`^(${t.values.map(e=>typeof e==`string`?Yv(e):e?Yv(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),tS=J(`$ZodTransform`,(e,t)=>{Y.init(e,t),e._zod.optin=`optional`,Py.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Ny(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new My;return n.value=i,n}});function nS(e,t){return e.value=t.issues.length?void 0:t.value,e}var rS=J(`$ZodOptional`,(e,t)=>{Y.init(e,t),q(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,q(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),q(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${Rv(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>nS(e,t)):nS(e,r)}return t.innerType._zod.run(e,n)}}),iS=J(`$ZodExactOptional`,(e,t)=>{rS.init(e,t),q(e,`values`,e=>e.def.innerType._zod.values),q(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),aS=J(`$ZodNullable`,(e,t)=>{Y.init(e,t),q(e,`optin`,e=>e.def.innerType._zod.optin),q(e,`optout`,e=>e.def.innerType._zod.optout),q(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${Rv(t.source)}|null)$`):void 0}),q(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),oS=J(`$ZodDefault`,(e,t)=>{Y.init(e,t),e._zod.optin=`defaulted`,q(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>sS(e,t)):sS(r,t)}});function sS(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var cS=J(`$ZodPrefault`,(e,t)=>{Y.init(e,t),e._zod.optin=`defaulted`,q(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),lS=J(`$ZodNonOptional`,(e,t)=>{Y.init(e,t),q(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>uS(t,e)):uS(i,e)}});function uS(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function dS(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>dy(e,r,Fy()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var fS=J(`$ZodCatch`,(e,t)=>{Y.init(e,t),q(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),q(e,`optout`,e=>e.def.innerType._zod.optout),q(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>dS(e,r,t,n)):dS(e,r,t,n)}}),pS=J(`$ZodPipe`,(e,t)=>{Y.init(e,t),q(e,`values`,e=>e.def.in._zod.values),q(e,`optin`,e=>e.def.in._zod.optin),q(e,`optout`,e=>e.def.out._zod.optout),q(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>mS(e,t.in,n)):mS(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>mS(e,t.out,n)):mS(r,t.out,n)}});function mS(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var hS=J(`$ZodReadonly`,(e,t)=>{Y.init(e,t),q(e,`propValues`,e=>e.def.innerType._zod.propValues),q(e,`values`,e=>e.def.innerType._zod.values),q(e,`optin`,e=>e.def.innerType?._zod?.optin),q(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(gS):gS(r)}});function gS(e){return e.memo||(e.value=Object.freeze(e.value)),e}var _S=J(`$ZodCustom`,(e,t)=>{zb.init(e,t),Y.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>vS(t,n,r,e));vS(i,n,r,e)}});function vS(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(gy(e))}}var yS=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},bS=`~memo`,xS=[];function SS(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var CS=new WeakMap;function wS(e,t){let n=CS.get(e);if(n!==void 0)return n;if(t.has(e))return!0;t.add(e);let r=!1,i=e=>{!r&&e?._zod&&wS(e,t)&&(r=!0)},a=e._zod.def;switch(a.type){case`object`:for(let e of Reflect.ownKeys(a.shape))i(a.shape[e]);i(a.catchall);break;case`array`:i(a.element);break;case`tuple`:for(let e of a.items)i(e);i(a.rest);break;case`record`:case`map`:i(a.keyType),i(a.valueType);break;case`set`:i(a.valueType);break;case`union`:for(let e of a.options)i(e);break;case`intersection`:i(a.left),i(a.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:i(a.innerType);break;case`pipe`:i(a.in),i(a.out);break;case`function`:i(a.input),i(a.output);break;case`lazy`:i(e._zod.innerType);break;case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in a){let t=Object.getOwnPropertyDescriptor(a,e);if(!t||t.get)continue;let n=t.value;if(!(!n||typeof n!=`object`)){if(n._zod)i(n);else if(Array.isArray(n))for(let e of n)i(e)}}}return t.delete(e),CS.set(e,r),r}function TS(e,t){let n=e.buckets.get(t);return n||(n=new Map,e.buckets.set(t,n)),n}var ES,DS=[],OS={alloc(e,t,n){let r=ES;if(!r)return n;ES=void 0;let i={value:n,issues:null};return r.set(t.value,i),DS.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&AS(n,e.value))throw new yS;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r,i;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,a=(o,s)=>{if(n===void 0&&(n=wS(e,new Set),!n))return e._zod.parse=t,e._zod.run===a&&(e._zod.run=t),t(o,s);let c=o.value;if(typeof c!=`object`||!c)return t(o,s);let l=s[bS];l||(l={buckets:new Map,backEdges:void 0},s[bS]=l);let u;r===s?u=i:(u=TS(l,e),r=s,i=u);let d=u.get(c);if(d)return o.value=d.value,d.issues?d.issues.length&&o.issues.push(...SS(d.issues)):(o.memo=!0,l.backEdges??=new Set,l.backEdges.add(d.value)),o;ES=u;let f=DS.length,p=t(o,s);ES=void 0;let m=DS.length>f?DS.pop():void 0;return p instanceof Promise?p.then(e=>(m&&(m.issues=e.issues.length?SS(e.issues):xS),e)):(m&&(m.issues=p.issues.length?SS(p.issues):xS),p)};e._zod.parse=a,e._zod.run===t&&(e._zod.run=a)})}};function kS(){return OS}function AS(e,t){let n=e[bS]?.backEdges;return n!==void 0&&typeof t==`object`&&!!t&&n.has(t)}var jS=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,credit_card:`credit card number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(hy(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${Zv(e.values[0])}`:`Invalid option: expected one of ${Pv(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${Pv(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function MS(){return{localeError:jS()}}var NS,PS=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function FS(){return new PS}(NS=globalThis).__zod_globalRegistry??(NS.__zod_globalRegistry=FS());var IS=globalThis.__zod_globalRegistry;function LS(e,t){return new e({type:`string`,...K(t)})}function RS(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...K(t)})}function zS(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...K(t)})}function BS(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...K(t)})}function VS(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...K(t)})}function HS(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...K(t)})}function US(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...K(t)})}function WS(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...K(t)})}function GS(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...K(t)})}function KS(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...K(t)})}function qS(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...K(t)})}function JS(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...K(t)})}function YS(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...K(t)})}function XS(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...K(t)})}
vendor: 3,129 bytes, line 96
96function ZS(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...K(t)})}function QS(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...K(t)})}function $S(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...K(t)})}function eC(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...K(t)})}function tC(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...K(t)})}function nC(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...K(t)})}function rC(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...K(t)})}function iC(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...K(t)})}function aC(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...K(t)})}function oC(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...K(t)})}function sC(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...K(t)})}function cC(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...K(t)})}function lC(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...K(t)})}function uC(e){return new e({type:`unknown`})}function dC(e,t){return new e({type:`never`,...K(t)})}function fC(e,t){return new Vb({check:`max_length`,...K(t),maximum:e})}function pC(e,t){return new Hb({check:`min_length`,...K(t),minimum:e})}function mC(e,t){return new Ub({check:`length_equals`,...K(t),length:e})}function hC(e,t){return new Gb({check:`string_format`,format:`regex`,...K(t),pattern:e})}function gC(e){return new Kb({check:`string_format`,format:`lowercase`,...K(e)})}function _C(e){return new qb({check:`string_format`,format:`uppercase`,...K(e)})}function vC(e,t){return new Jb({check:`string_format`,format:`includes`,...K(t),includes:e})}function yC(e,t){return new Yb({check:`string_format`,format:`starts_with`,...K(t),prefix:e})}function bC(e,t){return new Xb({check:`string_format`,format:`ends_with`,...K(t),suffix:e})}function xC(e){return new Zb({check:`overwrite`,tx:e})}function SC(e){return xC(t=>t.normalize(e))}function CC(){return xC(e=>e.trim())}function wC(){return xC(e=>e.toLowerCase())}function TC(){return xC(e=>e.toUpperCase())}function EC(){return xC(e=>Hv(e))}function DC(e,t,n){return new e({type:`array`,element:t,...K(n)})}function OC(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...K(n)})}function kC(e,t){let n=AC(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(gy(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(gy(r))}},e(t.value,t)),t);return n}function AC(e,t){let n=new zb({check:`custom`,...K(t)});return n._zod.check=e,n}function jC(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&zv(e,t,n[t]);return e}function MC(e){let t=e?.target??`draft-2020-12`;
vendor: 21,981 bytes, lines 96-98
96return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??IS,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function NC(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function PC(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,PC(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&jC(o.schema,c),t.io===`input`&&WC(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function FC(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function IC(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${FC(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+FC(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
97
98Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}e.external&&(e.sharedDefsExtractedFor=e.external)}function LC(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;LC(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var RC=new Set([`type`,`properties`,`required`,`additionalProperties`]),zC=[`oneOf`,`anyOf`];function BC(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function VC(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!RC.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??BC(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}zv(n,r,e.length===1?e[0]:VC(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=BC(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function HC(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of RC)if(t in e)return;let n=t.filter(e=>zC.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=VC(t);else{let e=n[0],i=zC.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>VC([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,jC(e,r))}function UC(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):jC(i,s),jC(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())LC(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])HC(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}jC(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,zv(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:KC(t,`input`,e.processors),output:KC(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function WC(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return WC(r.element,n);if(r.type===`set`)return WC(r.valueType,n);if(r.type===`lazy`)return WC(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return WC(r.innerType,n);if(r.type===`intersection`)return WC(r.left,n)||WC(r.right,n);if(r.type===`record`||r.type===`map`)return WC(r.keyType,n)||WC(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:WC(r.in,n)||WC(r.out,n);if(r.type===`object`){for(let e in r.shape)if(WC(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(WC(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(WC(e,n))return!0;return!!(r.rest&&WC(r.rest,n))}return!1}var GC=(e,t={})=>n=>{let r=MC({...n,processors:t});return PC(e,r),IC(r,e),UC(r,e)},KC=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=MC({...i??{},target:a,io:t,processors:n});return PC(e,o),IC(o,e),UC(o,e)},qC={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},JC=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=qC[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},YC=(e,t,n,r)=>{n.not={}},XC=(e,t,n,r)=>{let i=e._zod.def,a=Nv(i.entries);if(a.length===0){n.not={};return}a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},ZC=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(NC(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(NC(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},QC=(e,t,n,r)=>{NC(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},$C=(e,t,n,r)=>{NC(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},ew=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=PC(a.element,t,{...r,path:[...r.path,`items`]})};function tw(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?tw(t.out):t.type===`catch`?tw(t.innerType):e._zod.optin}var nw=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&NC(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)zv(i.properties,e,PC(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e];return t.io===`input`?tw(n)===void 0:n._zod.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=PC(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},rw=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>PC(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},iw=(e,t,n,r)=>{let i=e._zod.def,a=PC(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=PC(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},aw=(e,t,n,r)=>{let i=e._zod.def,a=PC(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},ow=(e,t,n,r)=>{let i=e._zod.def;PC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},sw=Symbol();function cw(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(NC(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),sw):JSON.parse(o)}var lw=(e,t,n,r)=>{let i=e._zod.def;PC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=cw(i.defaultValue,e,t,n,r);o!==sw&&(n.default=o)},uw=(e,t,n,r)=>{let i=e._zod.def;PC(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=cw(i.defaultValue,e,t,n,r);o!==sw&&(n._prefault=o)},dw=(e,t,n,r)=>{let i=e._zod.def;PC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{NC(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},fw=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;PC(o,t,r);let s=t.seen.get(e);s.ref=o},pw=(e,t,n,r)=>{let i=e._zod.def;PC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},mw=(e,t,n,r)=>{let i=e._zod.def;PC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},hw=new WeakSet([Object.prototype,Error.prototype]);function gw(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var _w=J(`ZodError`,(e,t)=>{Uy.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);hw.has(n)||(hw.add(n),gw(n,`format`,e=>t=>qy(e,t)),gw(n,`flatten`,e=>t=>Ky(e,t)),gw(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Fv,2)}),gw(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Fv,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),vw=Yy(_w),yw=Xy(_w),bw=Zy(_w),xw=$y(_w),Sw=tb(_w),Cw=nb(_w),ww=rb(_w),Tw=ib(_w),Ew=ab(_w),Dw=ob(_w),Ow=sb(_w),kw=cb(_w);function Aw(){Py.localeError||Fy(MS())}function jw(){Py.memoizer||Fy({memoizer:kS()})}var Z=J(`ZodType`,(e,t)=>(Aw(),Y.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(Bv(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Xv(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(VT(e,t))},superRefine(e,t){return this.check(HT(e,t))},overwrite(e){return this.check(xC(e))},optional(){return CT(this)},exactOptional(){return TT(this)},nullable(){return DT(this)},nullish(){return CT(DT(this))},nonoptional(e){return NT(this,e)},array(){return lT(this)},or(e){return pT([this,e])},and(e){return hT(this,e)},transform(e){return LT(this,xT(e))},default(e){return kT(this,e)},prefault(e){return jT(this,e)},catch(e){return FT(this,e)},pipe(e){return LT(this,e)},readonly(){return zT(this)},describe(e){let t=this.clone();return IS.add(t,{description:e}),t},meta(...e){if(e.length===0)return IS.get(this);let t=this.clone();return IS.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return yy(this,`~standard`,{...tx(this),jsonSchema:{input:KC(this,`input`),output:KC(this,`output`)}})},set"~standard"(e){vy(this,`~standard`,e)},parse:function e(t,n){return vw(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await yw(this,t,n,{callee:e})},safeParse(e,t){return bw(this,e,t)},async safeParseAsync(e,t){return xw(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){vy(this,`spa`,e)},encode:function e(t,n){return Sw(this,t,n,{callee:e})},decode:function e(t,n){return Cw(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await ww(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Tw(this,t,n,{callee:e})},safeEncode(e,t){return Ew(this,e,t)},safeDecode(e,t){return Dw(this,e,t)},async safeEncodeAsync(e,t){return Ow(this,e,t)},async safeDecodeAsync(e,t){return kw(this,e,t)},toJSONSchema(e){return GC(this,{})(e)},get description(){return IS.get(this)?.description},get _def(){return this._zod.def}}),Mw=J(`_ZodString`,(e,t)=>{nx.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JC(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null},{regex(...e){return this.check(hC(...e))},includes(...e){return this.check(vC(...e))},startsWith(...e){return this.check(yC(...e))},endsWith(...e){return this.check(bC(...e))},min(...e){return this.check(pC(...e))},max(...e){return this.check(fC(...e))},length(...e){return this.check(mC(...e))},nonempty(...e){return this.check(pC(1,...e))},lowercase(e){return this.check(gC(e))},uppercase(e){return this.check(_C(e))},trim(){return this.check(CC())},normalize(...e){return this.check(SC(...e))},toLowerCase(){return this.check(wC())},toUpperCase(){return this.check(TC())},slugify(){return this.check(EC())}}),Nw=J(`ZodString`,(e,t)=>{nx.init(e,t),Mw.init(e,t)},{email(e){return this.check(RS(zw,e))},url(e){return this.check(WS(Hw,e))},jwt(e){return this.check(aC(rT,e))},emoji(e){return this.check(GS(Uw,e))},guid(e){return this.check(zS(Bw,e))},uuid(e){return this.check(BS(Vw,e))},uuidv4(e){return this.check(VS(Vw,e))},uuidv6(e){return this.check(HS(Vw,e))},uuidv7(e){return this.check(US(Vw,e))},nanoid(e){return this.check(KS(Ww,e))},cuid(e){return this.check(qS(Gw,e))},cuid2(e){return this.check(JS(Kw,e))},ulid(e){return this.check(YS(qw,e))},base64(e){return this.check(nC(eT,e))},base64url(e){return this.check(rC(tT,e))},xid(e){return this.check(XS(Jw,e))},ksuid(e){return this.check(ZS(Yw,e))},ipv4(e){return this.check(QS(Xw,e))},ipv6(e){return this.check($S(Zw,e))},cidrv4(e){return this.check(eC(Qw,e))},cidrv6(e){return this.check(tC($w,e))},e164(e){return this.check(iC(nT,e))},datetime(e){return this.check(oC(Fw,e))},date(e){return this.check(sC(Iw,e))},time(e){return this.check(cC(Lw,e))},duration(e){return this.check(lC(Rw,e))}});function Pw(e){return LS(Nw,e)}var Q=J(`ZodStringFormat`,(e,t)=>{X.init(e,t),Mw.init(e,t)}),Fw=J(`ZodISODateTime`,(e,t)=>{yx.init(e,t),Q.init(e,t)}),Iw=J(`ZodISODate`,(e,t)=>{bx.init(e,t),Q.init(e,t)}),Lw=J(`ZodISOTime`,(e,t)=>{xx.init(e,t),Q.init(e,t)}),Rw=J(`ZodISODuration`,(e,t)=>{Sx.init(e,t),Q.init(e,t)}),zw=J(`ZodEmail`,(e,t)=>{ax.init(e,t),Q.init(e,t)}),Bw=J(`ZodGUID`,(e,t)=>{rx.init(e,t),Q.init(e,t)}),Vw=J(`ZodUUID`,(e,t)=>{ix.init(e,t),Q.init(e,t)}),Hw=J(`ZodURL`,(e,t)=>{dx.init(e,t),Q.init(e,t)}),Uw=J(`ZodEmoji`,(e,t)=>{fx.init(e,t),Q.init(e,t)}),Ww=J(`ZodNanoID`,(e,t)=>{px.init(e,t),Q.init(e,t)}),Gw=J(`ZodCUID`,(e,t)=>{mx.init(e,t),Q.init(e,t)}),Kw=J(`ZodCUID2`,(e,t)=>{hx.init(e,t),Q.init(e,t)}),qw=J(`ZodULID`,(e,t)=>{gx.init(e,t),Q.init(e,t)}),Jw=J(`ZodXID`,(e,t)=>{_x.init(e,t),Q.init(e,t)}),Yw=J(`ZodKSUID`,(e,t)=>{vx.init(e,t),Q.init(e,t)}),Xw=J(`ZodIPv4`,(e,t)=>{Cx.init(e,t),Q.init(e,t)}),Zw=J(`ZodIPv6`,(e,t)=>{Ex.init(e,t),Q.init(e,t)}),Qw=J(`ZodCIDRv4`,(e,t)=>{Dx.init(e,t),Q.init(e,t)}),$w=J(`ZodCIDRv6`,(e,t)=>{kx.init(e,t),Q.init(e,t)}),eT=J(`ZodBase64`,(e,t)=>{jx.init(e,t),Q.init(e,t)}),tT=J(`ZodBase64URL`,(e,t)=>{Nx.init(e,t),Q.init(e,t)}),nT=J(`ZodE164`,(e,t)=>{Px.init(e,t),Q.init(e,t)}),rT=J(`ZodJWT`,(e,t)=>{Ix.init(e,t),Q.init(e,t)}),iT=J(`ZodUnknown`,(e,t)=>{Lx.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function aT(){return uC(iT)}var oT=J(`ZodNever`,(e,t)=>{Rx.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YC(e,t,n,r)});function sT(e){return dC(oT,e)}var cT=J(`ZodArray`,(e,t)=>{jw(),Bx.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ew(e,t,n,r),e.element=t.element},{min(e,t){return this.check(pC(e,t))},nonempty(e){return this.check(pC(1,e))},max(e,t){return this.check(fC(e,t))},length(e,t){return this.check(mC(e,t))},unwrap(){return this.element}});function lT(e,t){return DC(cT,e,t)}var uT=J(`ZodObject`,(e,t)=>{jw(),qx.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nw(e,t,n,r),Ty(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return _T(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:aT()})},loose(){return this.clone({...this._zod.def,catchall:aT()})},strict(){return this.clone({...this._zod.def,catchall:sT()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return ty(this,e)},safeExtend(e){return ny(this,e)},merge(e){return ry(this,e)},pick(e){return $v(this,e)},omit(e){return ey(this,e)},partial(...e){return iy(ST,this,e[0])},exactPartial(...e){return iy(wT,this,e[0],`exactPartial`)},required(...e){return ay(MT,this,e[0])}});function dT(e,t){return new uT({type:`object`,shape:e??{},...K(t)})}var fT=J(`ZodUnion`,(e,t)=>{Yx.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rw(e,t,n,r),e.options=t.options});function pT(e,t){return new fT({type:`union`,options:e,...K(t)})}var mT=J(`ZodIntersection`,(e,t)=>{Xx.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iw(e,t,n,r)});function hT(e,t){return new mT({type:`intersection`,left:e,right:t})}var gT=J(`ZodEnum`,(e,t)=>{$x.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>XC(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new gT({...t,checks:[],...K(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new gT({...t,checks:[],...K(r),entries:i})}});function _T(e,t){return new gT({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...K(t)})}var vT=J(`ZodLiteral`,(e,t)=>{eS.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ZC(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
98(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function yT(e,t){return new vT({type:`literal`,values:Array.isArray(e)?e:[e],...K(t)})}var bT=J(`ZodTransform`,(e,t)=>{jw(),tS.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$C(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Ny(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(gy(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(gy(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function xT(e){return new bT({type:`transform`,transform:e})}var ST=J(`ZodOptional`,(e,t)=>{rS.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mw(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function CT(e){return new ST({type:`optional`,innerType:e})}var wT=J(`ZodExactOptional`,(e,t)=>{iS.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mw(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function TT(e){return new wT({type:`optional`,innerType:e})}var ET=J(`ZodNullable`,(e,t)=>{aS.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>aw(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function DT(e){return new ET({type:`nullable`,innerType:e})}var OT=J(`ZodDefault`,(e,t)=>{oS.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lw(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function kT(e,t){return new OT({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():qv(t)}})}var AT=J(`ZodPrefault`,(e,t)=>{cS.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uw(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function jT(e,t){return new AT({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():qv(t)}})}var MT=J(`ZodNonOptional`,(e,t)=>{lS.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ow(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function NT(e,t){return new MT({type:`nonoptional`,innerType:e,...K(t)})}var PT=J(`ZodCatch`,(e,t)=>{fS.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dw(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function FT(e,t){return new PT({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Dy(t)})}var IT=J(`ZodPipe`,(e,t)=>{pS.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fw(e,t,n,r),e.in=t.in,e.out=t.out});function LT(e,t){return new IT({type:`pipe`,in:e,out:t})}var RT=J(`ZodReadonly`,(e,t)=>{hS.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pw(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function zT(e){return new RT({type:`readonly`,innerType:e})}var BT=J(`ZodCustom`,(e,t)=>{_S.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>QC(e,t,n,r)});function VT(e,t={}){return OC(BT,e,t)}function HT(e,t){return kC(e,t)}var UT=new WeakMap,WT,GT=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:he(r)&&`getBBox`in r?r.getBBox()[t]:r[n],KT=GT(`inline`,`width`,`offsetWidth`),qT=GT(`block`,`height`,`offsetHeight`);function JT({target:e,borderBoxSize:t}){UT.get(e)?.forEach(n=>{n(e,{get width(){return KT(e,t)},get height(){return qT(e,t)}})})}function YT(e){e.forEach(JT)}function XT(){typeof ResizeObserver>`u`||(WT=new ResizeObserver(YT))}function ZT(e,t){WT||XT();let n=ie(e);return n.forEach(e=>{let n=UT.get(e);n||(n=new Set,UT.set(e,n)),n.add(t),WT?.observe(e)}),()=>{n.forEach(e=>{let n=UT.get(e);n?.delete(t),n?.size||WT?.unobserve(e)})}}var QT=new Set,$T;function eE(){$T=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};QT.forEach(t=>t(e))},window.addEventListener(`resize`,$T)}function tE(e){return QT.add(e),$T||eE(),()=>{QT.delete(e),!QT.size&&typeof $T==`function`&&(window.removeEventListener(`resize`,$T),$T=void 0)}}function nE(e,t){return typeof e==`function`?tE(e):ZT(e,t)}function rE(e,t){let n,r=()=>{let{currentTime:r}=t,i=(r===null?0:r.value)/100;n!==i&&e(i),n=i};return oe.preUpdate(r,!0),()=>se(r)}function iE(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=ue(i,a,o);return t?s(r):s}function aE(e,t){if(typeof e==`function`)return e(t);
98e!=null&&(e.current=t)}function oE(...e){return t=>{let n=!1,r=e.map(e=>{let r=aE(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():aE(e[t],null)}}}}function sE(...e){return P.useCallback(oE(...e),e)}var cE=class extends P.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=ge(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}};function lE({children:e,isPresent:t,anchorX:n,root:r}){let i=(0,P.useId)(),a=(0,P.useRef)(null),o=(0,P.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=(0,P.useContext)(fe),c=sE(a,e?.ref);return(0,P.useInsertionEffect)(()=>{let{width:e,height:c,top:l,left:u,right:d}=o.current;if(t||!a.current||!e||!c)return;let f=n===`left`?`left: ${u}`:`right: ${d}`;a.current.dataset.motionPopId=i;let p=document.createElement(`style`);s&&(p.nonce=s);let m=r??document.head;return m.appendChild(p),p.sheet&&p.sheet.insertRule(`
99          [data-motion-pop-id="${i}"] {
100            position: absolute !important;
101            width: ${e}px !important;
102            height: ${c}px !important;
103            ${f}px !important;
104            top: ${l}px !important;
105          }
106        `),()=>{m.contains(p)&&m.removeChild(p)}},[t]),(0,I.jsx)(cE,{isPresent:t,childRef:a,sizeRef:o,children:P.cloneElement(e,{ref:c})})}var uE=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,root:c})=>{let l=j(dE),u=(0,P.useId)(),d=!0,f=(0,P.useMemo)(()=>(d=!1,{id:u,initial:t,isPresent:n,custom:i,onExitComplete:e=>{l.set(e,!0);for(let e of l.values())if(!e)return;r&&r()},register:e=>(l.set(e,!1),()=>l.delete(e))}),[n,l,r]);return a&&d&&(f={...f}),(0,P.useMemo)(()=>{l.forEach((e,t)=>l.set(t,!1))},[n]),P.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o===`popLayout`&&(e=(0,I.jsx)(lE,{isPresent:n,anchorX:s,root:c,children:e})),(0,I.jsx)(k.Provider,{value:f,children:e})};function dE(){return new Map}var fE=e=>e.key||``;function pE(e){let t=[];return P.Children.forEach(e,e=>{(0,P.isValidElement)(e)&&t.push(e)}),t}var mE=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,root:c})=>{let[l,u]=te(o),d=(0,P.useMemo)(()=>pE(e),[e]),f=o&&!l?[]:d.map(fE),p=(0,P.useRef)(!0),m=(0,P.useRef)(d),h=j(()=>new Map),[g,_]=(0,P.useState)(d),[v,y]=(0,P.useState)(d);ve(()=>{p.current=!1,m.current=d;for(let e=0;e<v.length;e++){let t=fE(v[e]);f.includes(t)?h.delete(t):h.get(t)!==!0&&h.set(t,!1)}},[v,f.length,f.join(`-`)]);let b=[];if(d!==g){let e=[...d];for(let t=0;t<v.length;t++){let n=v[t],r=fE(n);f.includes(r)||(e.splice(t,0,n),b.push(n))}return a===`wait`&&b.length&&(e=b),y(pE(e)),_(d),null}let{forceRender:x}=(0,P.useContext)(A);return(0,I.jsx)(I.Fragment,{children:v.map(e=>{let g=fE(e),_=o&&!l?!1:d===v||f.includes(g);return(0,I.jsx)(uE,{isPresent:_,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:c,onExitComplete:_?void 0:()=>{if(h.has(g))h.set(g,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(x?.(),y(m.current),o&&u?.(),r&&r())},anchorX:s,children:e},g)})})},hE=50,gE=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),_E=()=>({time:0,x:gE(),y:gE()}),vE={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}};function yE(e,t,n,r){let i=n[t],{length:a,position:o}=vE[t],s=i.current,c=n.time;i.current=e[`scroll${o}`],i.scrollLength=e[`scroll${a}`]-e[`client${a}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=be(0,i.scrollLength,i.current);let l=r-c;i.velocity=l>hE?0:_e(i.current-s,l)}function bE(e,t,n){yE(e,`x`,t,n),yE(e,`y`,t,n),t.time=n}function xE(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(ge(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName===`svg`){let e=r.getBoundingClientRect();r=r.parentElement;let t=r.getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let i=null,a=r.parentNode;for(;!i;)a.tagName===`svg`&&(i=a),a=r.parentNode;r=i}else break;return n}var SE={start:0,center:.5,end:1};function CE(e,t,n=0){let r=0;if(e in SE&&(e=SE[e]),typeof e==`string`){let t=parseFloat(e);e.endsWith(`px`)?r=t:e.endsWith(`%`)?e=t/100:e.endsWith(`vw`)?r=t/100*document.documentElement.clientWidth:e.endsWith(`vh`)?r=t/100*document.documentElement.clientHeight:e=t}return typeof e==`number`&&(r=t*e),n+r}var wE=[0,0];function TE(e,t,n,r){let i=Array.isArray(e)?e:wE,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,SE[e]?e:`0`]),a=CE(i[0],n,r),o=CE(i[1],t),a-o}var EE={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},DE={x:0,y:0};function OE(e){return`getBBox`in e&&e.tagName!==`svg`?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function kE(e,t,n){let{offset:r=EE.All}=n,{target:i=e,axis:a=`y`}=n,o=a===`y`?`height`:`width`,s=i===e?DE:xE(i,e),c=i===e?{width:e.scrollWidth,height:e.scrollHeight}:OE(i),l={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let u=!t[a].interpolate,d=r.length;for(let e=0;e<d;e++){let n=TE(r[e],l[o],c[o],s[a]);
106!u&&n!==t[a].interpolatorOffsets[e]&&(u=!0),t[a].offset[e]=n}u&&(t[a].interpolate=ue(t[a].offset,pe(r),{clamp:!1}),t[a].interpolatorOffsets=[...t[a].offset]),t[a].progress=ee(0,1,t[a].interpolate(t[a].current))}function AE(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function jE(e,t,n,r={}){return{measure:t=>{AE(e,r.target,n),bE(e,n,t),(r.offset||r.target)&&kE(e,n,r)},notify:()=>t(n)}}var ME=new WeakMap,NE=new WeakMap,PE=new WeakMap,FE=e=>e===document.scrollingElement?window:e;function IE(e,{container:t=document.scrollingElement,...n}={}){if(!t)return ne;let r=PE.get(t);r||(r=new Set,PE.set(t,r));let i=jE(t,e,_E(),n);if(r.add(i),!ME.has(t)){let e=()=>{for(let e of r)e.measure(M.timestamp);oe.preUpdate(n)},n=()=>{for(let e of r)e.notify()},i=()=>oe.read(e);ME.set(t,i);let a=FE(t);window.addEventListener(`resize`,i,{passive:!0}),t!==document.documentElement&&NE.set(t,nE(t,i)),a.addEventListener(`scroll`,i,{passive:!0}),i()}let a=ME.get(t);return oe.read(a,!1,!0),()=>{se(a);let e=PE.get(t);if(!e||(e.delete(i),e.size))return;let n=ME.get(t);ME.delete(t),n&&(FE(t).removeEventListener(`scroll`,n),NE.get(t)?.(),window.removeEventListener(`resize`,n))}}var LE=new Map;function RE(e){let t={value:0};return{currentTime:t,cancel:IE(n=>{t.value=n[e.axis].progress*100},e)}}function zE({source:e,container:t,...n}){let{axis:r}=n;e&&(t=e);let i=LE.get(t)??new Map;LE.set(t,i);let a=n.target??`self`,o=i.get(a)??{},s=r+(n.offset??[]).join(`,`);return o[s]||(o[s]=!n.target&&ae()?new ScrollTimeline({source:t,axis:r}):RE({container:t,...n})),o[s]}function BE(e,t){let n=zE(t);return e.attachTimeline({timeline:t.target?void 0:n,observe:e=>(e.pause(),rE(t=>{e.time=e.iterationDuration*t},n))})}function VE(e){return e.length===2}function HE(e,t){return VE(e)?IE(n=>{e(n[t.axis].progress,n)},t):rE(e,zE(t))}function UE(e,{axis:t=`y`,container:n=document.scrollingElement,...r}={}){if(!n)return ne;let i={axis:t,container:n,...r};return typeof e==`function`?HE(e,i):BE(e,i)}var WE=()=>({scrollX:le(0),scrollY:le(0),scrollXProgress:le(0),scrollYProgress:le(0)}),GE=e=>e?!e.current:!1;function KE({container:e,target:t,...n}={}){let r=j(WE),i=(0,P.useRef)(null),a=(0,P.useRef)(!1),o=(0,P.useCallback)(()=>(i.current=UE((e,{x:t,y:n})=>{r.scrollX.set(t.current),r.scrollXProgress.set(t.progress),r.scrollY.set(n.current),r.scrollYProgress.set(n.progress)},{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{i.current?.()}),[e,t,JSON.stringify(n.offset)]);return ve(()=>{if(a.current=!1,GE(e)||GE(t)){a.current=!0;return}else return o()},[o]),(0,P.useEffect)(()=>{if(a.current)return ye(!GE(e),`Container ref is defined but not hydrated`,`use-scroll-ref`),ye(!GE(t),`Target ref is defined but not hydrated`,`use-scroll-ref`),o()},[o]),r}function qE(e){let t=j(()=>le(e)),{isStatic:n}=(0,P.useContext)(fe);if(n){let[,n]=(0,P.useState)(e);(0,P.useEffect)(()=>t.on(`change`,n),[])}return t}function JE(e,t){let n=qE(t()),r=()=>n.set(t());return r(),ve(()=>{let t=()=>oe.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),se(r)}}),n}function YE(e){re.current=[],e();let t=JE(re.current,e);return re.current=void 0,t}function XE(e,t,n,r){if(typeof e==`function`)return YE(e);let i=typeof t==`function`?t:iE(t,n,r);return Array.isArray(e)?ZE(e,i):ZE([e],([e])=>i(e))}function ZE(e,t){let n=j(()=>[]);return JE(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function QE(){!me.current&&de();let[e]=(0,P.useState)(ce.current);return e}var $E={some:0,all:1};function eD(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=ie(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n)if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:$E[i]});
106return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function tD(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=(0,P.useState)(a);return(0,P.useEffect)(()=>{if(!e.current||i&&o)return;let a=()=>(s(!0),i?void 0:()=>s(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return eD(e.current,a,c)},[t,e,n,i,r]),o}var nD=`bp_idempotency_v1`,rD=1440*60*1e3;function iD(){try{let e=localStorage.getItem(nD);if(!e)return{};let t=JSON.parse(e),n=Date.now(),r=!1;for(let e of Object.keys(t))t[e]<n&&(delete t[e],r=!0);return r&&localStorage.setItem(nD,JSON.stringify(t)),t}catch{return{}}}function aD(e){try{localStorage.setItem(nD,JSON.stringify(e))}catch{}}function oD(e){return e==null?null:Array.isArray(e)?e.map(oD):typeof e==`object`?Object.keys(e).sort().reduce((t,n)=>(t[n]=oD(e[n]),t),{}):typeof e==`string`?e.trim().toLowerCase():e}async function sD(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest(`SHA-256`,t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,`0`)).join(``)}async function cD(e,t){return sD(JSON.stringify({f:e,p:oD(t)}))}function lD(e){let t=iD()[e];return typeof t==`number`&&t>Date.now()}function uD(e){let t=iD();t[e]=Date.now()+rD,aD(t)}var dD=`23505`,fD=new Set([408,425,429,500,502,503,504]),pD=new Set([429,503]),mD=e=>new Promise(t=>setTimeout(t,e));function hD(e){if(!e)return null;let t=e.trim();if(/^\d+(\.\d+)?$/.test(t)){let e=Number(t);return Number.isFinite(e)&&e>=0?Math.round(e*1e3):null}let n=Date.parse(t);if(!Number.isNaN(n)){let e=n-Date.now();return e>0?e:0}return null}async function gD(e,t={},n={}){let{retries:r=3,baseDelayMs:i=400,maxDelayMs:a=8e3,timeoutMs:o=1e4,maxRetryAfterMs:s=6e4,onRetry:c}=n,l,u=null;for(let n=0;n<=r;n++){let d=new AbortController,f=setTimeout(()=>d.abort(),o);try{let n=await fetch(e,{...t,signal:d.signal});if(clearTimeout(f),!fD.has(n.status))return n;l=Error(`HTTP ${n.status}`),u=pD.has(n.status)?hD(n.headers.get(`Retry-After`)):null}catch(e){clearTimeout(f),l=e,u=null}if(n===r)break;let p;if(u!==null)p=Math.min(u,s);else{let e=Math.min(a,i*2**n);p=Math.floor(Math.random()*e)}c?.(n+1,l,p),await mD(p)}throw l??Error(`fetchWithRetry: exhausted retries`)}var _D=new Map;async function vD(e,t,n={}){let{cooldownMs:r=3e4}=n,i=_D.get(e)??{};if(i.inFlight)return i.inFlight;if(i.lastResult&&Date.now()-i.lastResult.at<r)return i.lastResult.value;let a=(async()=>{try{let n=await t(),r=_D.get(e)??{};return r.lastResult={value:n,at:Date.now()},r.inFlight=void 0,_D.set(e,r),n}catch(t){let n=_D.get(e)??{};throw n.inFlight=void 0,_D.set(e,n),t}})();return i.inFlight=a,_D.set(e,i),a}async function yD({idempotencyKey:e,status:t,attempts:n,errorMessage:r=null,statusCode:i=null}){try{await Pd.rpc(`update_lead_mirror_status`,{_idempotency_key:e,_status:t,_attempts:n,_error:r??null,_status_code:i??null})}catch(e){console.warn(`Failed to persist mirror status:`,e)}}var bD={client:{internal:`site:contato-cliente`,mirror:`site:contato-cliente`,leadType:`client`},partner:{internal:`site:seja-parceiro`,mirror:`site:seja-parceiro`,leadType:`partner`},techPartner:{internal:`site:parceiro-tecnologico`,mirror:`site:parceiro-tecnologico`,leadType:`partner`}};function xD(e){if(typeof window>`u`)return e;let t=window.location.pathname+window.location.search;return t?`${e} @ ${t}`:e}function SD(e){try{Pd.functions.invoke(`notify-lead-email`,{body:e}).catch(e=>console.warn(`notify-lead-email failed:`,e))}catch(e){console.warn(`notify-lead-email dispatch error:`,e)}}var CD=`website_url`,wD=`antispam:`;function TD(e){if(typeof window>`u`)return[];try{let t=window.localStorage.getItem(`${wD}${e}`);if(!t)return[];let n=JSON.parse(t);return Array.isArray(n)?n.filter(e=>typeof e==`number`):[]}catch{return[]}}function ED(e,t){if(!(typeof window>`u`))try{window.localStorage.setItem(`${wD}${e}`,JSON.stringify(t))}catch{}}function DD(e,t={}){let{minElapsedMs:n=3e3,maxPerWindow:r=3,windowMs:i=600*1e3}=t,a=(0,P.useRef)(null),o=(0,P.useRef)(Date.now());return(0,P.useEffect)(()=>{o.current=Date.now()},[]),{honeypotProps:{type:`text`,name:CD,tabIndex:-1,autoComplete:`off`,"aria-hidden":!0,style:{position:`absolute`,left:`-10000px`,top:`auto`,width:`1px`,height:`1px`,overflow:`hidden`,opacity:0,pointerEvents:`none`},ref:a},check:t=>{if((a.current?.value??t??``).trim().length>0)return{ok:!1,reason:`honeypot`,message:`Não foi possível enviar o formulário. Tente novamente.`};if(Date.now()-o.current<n)return{ok:!1,reason:`too_fast`,message:`Aguarde um instante antes de enviar o formulário.`};let s=Date.now(),c=TD(e).filter(e=>s-e<i);if(c.length>=r){let e=Math.min(...c),t=Math.max(0,i-(s-e)),n=Math.ceil(t/1e3);return{ok:!1,reason:`rate_limited`,message:`Muitos envios em sequência. Tente novamente em ${Math.ceil(n/60)} min.`,retryAfterSec:n}}return{ok:!0}},recordSubmission:()=>{let t=Date.now(),n=TD(e).filter(e=>t-e<i);n.push(t),ED(e,n)}}}var OD=e=>{let t=e.replace(/\D/g,``).slice(0,11);return t.length<=2?t.length>0?`(${t}`:``:t.length<=7?`(${t.slice(0,2)}) ${t.slice(2)}`:`(${t.slice(0,2)}) ${t.slice(2,7)}-${t.slice(7)}`},kD=e=>dT({name:Pw().trim().min(2,{message:e(`validation.nameMin`)}).max(100,{message:e(`validation.nameMax`)}),email:Pw().trim().email({message:e(`validation.emailInvalid`)}).max(255,{message:e(`validation.emailMax`)}),phone:Pw().trim().min(14,{message:e(`validation.phoneMin`)}).max(15,{message:e(`validation.phoneInvalid`)}).regex(/^\(\d{2}\) \d{4,5}-\d{4}$/,{message:e(`validation.phoneInvalid`)}),company:Pw().trim().min(2,{message:e(`validation.companyMin`)}).max(100,{message:e(`validation.companyMax`)}),message:Pw().trim().max(1e3,{message:e(`validation.messageMax`)}).optional()});function AD({source:e=`website`,title:t,onSuccess:n}){let{t:r}=sp(`forms`),[i,a]=(0,P.useState)(!1),[o,s]=(0,P.useState)(!1),c=dp(`contact:${e}`),l=DD(`contact:${e}`),{register:u,handleSubmit:d,reset:f,formState:{errors:p}}=Ev({resolver:Mv(kD(r))});return(0,P.useEffect)(()=>
106{Object.entries(p).forEach(([e,t])=>{t?.message&&c.trackValidationError(e,String(t.message))})},[p,c]),o?(0,I.jsxs)(N.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:`flex flex-col items-center justify-center py-12 text-center`,children:[(0,I.jsx)(N.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.2,type:`spring`,stiffness:200},children:(0,I.jsx)(cn,{size:64,className:`text-green-500 mb-4`})}),(0,I.jsx)(`h3`,{className:`font-heading text-xl font-bold text-foreground mb-2`,children:r(`contact.successTitle`)}),(0,I.jsx)(`p`,{className:`text-muted-foreground`,children:r(`contact.successMessage`)})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`h3`,{className:`font-heading text-xl font-bold text-foreground mb-6`,children:t??r(`contact.defaultTitle`)}),(0,I.jsxs)(`form`,{onSubmit:d(async t=>{let i=l.check();if(!i.ok){c.trackSubmitError(`antispam:${i.reason}`),fr.error(i.message??`Não foi possível enviar agora.`);return}a(!0),c.trackSubmitAttempt();try{let i=typeof window<`u`?window.location.pathname+window.location.search:``,a=i?`${e} @ ${i}`:e,o=await cD(`contact:${e}`,{name:t.name,email:t.email,phone:t.phone,company:t.company,message:t.message??``});if(lD(o)){c.trackSubmitSuccess(),s(!0),f(),fr.success(r(`contact.successToast`)),setTimeout(()=>s(!1),5e3),n&&setTimeout(()=>n(),5e3);return}let{error:u}=await Pd.from(`crm_leads`).insert({name:t.name,email:t.email,phone:t.phone,company:t.company,notes:t.message||null,source:a,status:`new`,idempotency_key:o});if(u&&u.code!==`23505`)throw u;uD(o),SD({formType:`Contato (site)`,name:t.name,email:t.email,phone:t.phone,company:t.company,notes:t.message,source:a});try{let e=1,n=await vD(`crm-mirror:${o}`,()=>gD(`https://gykdwiumtjqbfwfdsfxe.supabase.co/functions/v1/submit-website-lead`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({lead_type:bD.client.leadType,company_name:t.company,contact_name:t.name,contact_email:t.email,contact_phone:t.phone,additional_info:t.message||``,source:bD.client.mirror,website:``,idempotency_key:o})},{retries:3,baseDelayMs:500,onRetry:(t,n)=>{e=t+1,console.warn(`External CRM retry ${t}:`,n?.message)}}),{cooldownMs:6e4});n&&n.ok?await yD({idempotencyKey:o,status:`success`,attempts:e,statusCode:n.status}):n&&await yD({idempotencyKey:o,status:`error`,attempts:e,errorMessage:`HTTP ${n.status} ${n.statusText}`,statusCode:n.status})}catch(e){console.warn(`External CRM mirror failed after retries:`,e),await yD({idempotencyKey:o,status:`error`,attempts:4,errorMessage:e?.message??String(e)})}l.recordSubmission(),c.trackSubmitSuccess(),s(!0),f(),fr.success(r(`contact.successToast`)),setTimeout(()=>s(!1),5e3),n&&setTimeout(()=>n(),5e3)}catch(e){console.error(`Error submitting form:`,e),c.trackSubmitError(e?.message??`unknown`),fr.error(r(`contact.errorToast`))}finally{a(!1)}}),className:`space-y-4`,onFocusCapture:e=>{let t=e.target;if(t&&(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.tagName===`SELECT`)){let e=t.name||t.id;e&&c.trackFocus(e)}},onBlurCapture:e=>{let t=e.target;if(t&&(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.tagName===`SELECT`)){let e=t.name||t.id;e&&c.trackBlur(e,t.value)}},children:[(0,I.jsx)(`input`,{...l.honeypotProps}),(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`label`,{htmlFor:`name`,className:`block text-sm font-medium text-foreground mb-1.5`,children:r(`contact.fields.name`)}),(0,I.jsx)(`input`,{type:`text`,id:`name`,placeholder:r(`contact.fields.namePlaceholder`),className:`w-full px-4 py-3 rounded-lg bg-muted/50 border text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all ${p.name?`border-red-500`:`border-border/50`}`,...u(`name`)}),p.name&&(0,I.jsx)(`p`,{className:`mt-1 text-sm text-red-500`,children:p.name.message})]}),(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`label`,{htmlFor:`email`,className:`block text-sm font-medium text-foreground mb-1.5`,children:r(`contact.fields.email`)}),(0,I.jsx)(`input`,{type:`email`,id:`email`,placeholder:r(`contact.fields.emailPlaceholder`),className:`w-full px-4 py-3 rounded-lg bg-muted/50 border text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all ${p.email?`border-red-500`:`border-border/50`}`,...u(`email`)}),p.email&&(0,I.jsx)(`p`,{className:`mt-1 text-sm text-red-500`,children:p.email.message})]}),(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`label`,{htmlFor:`phone`,className:`block text-sm font-medium text-foreground mb-1.5`,children:r(`contact.fields.phone`)}),(0,I.jsx)(`input`,{type:`tel`,id:`phone`,placeholder:r(`contact.fields.phonePlaceholder`),className:`w-full px-4 py-3 rounded-lg bg-muted/50 border text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all ${p.phone?`border-red-500`:`border-border/50`}`,...u(`phone`,{onChange:e=>{e.target.value=OD(e.target.value)}})}),p.phone&&(0,I.jsx)(`p`,{className:`mt-1 text-sm text-red-500`,children:p.phone.message})]}),(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`label`,{htmlFor:`company`,className:`block text-sm font-medium text-foreground mb-1.5`,children:r(`contact.fields.company`)}),(0,I.jsx)(`input`,{type:`text`,id:`company`,placeholder:r(`contact.fields.companyPlaceholder`),className:`w-full px-4 py-3 rounded-lg bg-muted/50 border text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all ${p.company?`border-red-500`:`border-border/50`}`,...u(`company`)}),p.company&&(0,I.jsx)(`p`,{className:`mt-1 text-sm text-red-500`,children:p.company.message})]}),(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`label`,{htmlFor:`message`,className:`block text-sm font-medium text-foreground mb-1.5`,children:r(`contact.fields.messageOptional`)}),(0,I.jsx)(`textarea`,{id:`message`,rows:3,placeholder:r(`contact.fields.messagePlaceholder`),className:`w-full px-4 py-3 rounded-lg bg-muted/50 border text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all resize-none ${p.message?`border-red-500`:`border-border/50`}`,...u(`message`)}),p.message&&(0,I.jsx)(`p`,{className:`mt-1 text-sm text-red-500`,children:p.message.message})]}),(0,I.jsx)(g,{variant:`hero`,size:`lg`,className:`w-full group`,type:`submit`,disabled:i,children:i?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Sn,{size:18,className:`animate-spin`}),r(`common.sending`)]}):(0,I.jsxs)(I.Fragment,{children:[r(`contact.submit`),(0,I.jsx)($t,{size:18,className:`transition-transform group-hover:translate-x-1`})]})})]})]})}function jD({source:e,title:t,onSuccess:n}){return(0,I.jsx)(o_,{side:`right`,className:`w-full sm:max-w-md md:max-w-lg overflow-y-auto bg-background border-l border-border p-0`,onOpenAutoFocus:e=>{let t=e.currentTarget?.querySelector(`input:not([type="hidden"]):not([disabled]):not([aria-hidden="true"]):not([tabindex="-1"]), textarea:not([disabled]):not([aria-hidden="true"]), select:not([disabled])`);t&&(e.preventDefault(),t.focus())},children:(0,I.jsx)(`div`,{className:`p-[1.8rem] sm:p-[2.4rem]`,children:(0,I.jsx)(AD,{source:e,title:t,onSuccess:n})})})}function MD({children:e,source:t=`specialist-drawer`,title:n}){let[r,i]=(0,P.useState)(!1);return(0,I.jsxs)(t_,{open:r,onOpenChange:i,children:[(0,I.jsx)(n_,{asChild:!0,children:e}),(0,I.jsx)(jD,{source:t,title:n,onSuccess:()=>i(!1)})]})}var ND=`#fale-com-especialista`;function PD(e){if(!e)return!1;let t=e.trim().toLowerCase();return t===`#fale-com-especialista`||t.endsWith(`#fale-com-especialista`)}var FD=qg,ID=Jg,LD=Yg,RD=P.forwardRef(({className:e,...t},n)=>(0,I.jsx)(Xg,{ref:n,className:m(`fixed inset-0 z-50 bg-black/60 backdrop-blur-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t}));RD.displayName=Xg.displayName;var zD=P.forwardRef(({className:e,children:t,...n},r)=>(0,I.jsxs)(LD,{children:[(0,I.jsx)(RD,{}),(0,I.jsxs)(Zg,{ref:r,className:m(`fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
106nded-lg`,e),...n,children:[t,(0,I.jsxs)(e_,{className:`absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none`,children:[(0,I.jsx)(Ln,{className:`h-4 w-4`}),(0,I.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]}));zD.displayName=Zg.displayName;var BD=({className:e,...t})=>(0,I.jsx)(`div`,{className:m(`flex flex-col space-y-1.5 text-center sm:text-left`,e),...t});BD.displayName=`DialogHeader`;var VD=({className:e,...t})=>(0,I.jsx)(`div`,{className:m(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});VD.displayName=`DialogFooter`;var HD=P.forwardRef(({className:e,...t},n)=>(0,I.jsx)(Qg,{ref:n,className:m(`text-lg font-semibold leading-none tracking-tight`,e),...t}));HD.displayName=Qg.displayName;var UD=P.forwardRef(({className:e,...t},n)=>(0,I.jsx)($g,{ref:n,className:m(`text-sm text-muted-foreground`,e),...t}));UD.displayName=$g.displayName;function WD(e){if(!e)return;let t=String(e).trim();if(t){if(t.startsWith(`//`)||t.startsWith(`/`))return t;try{let e=new URL(t,`https://placeholder.invalid`);return[`http:`,`https:`,`mailto:`,`tel:`].includes(e.protocol)?t:void 0}catch{return}}}var GD=e=>e.regions&&e.regions.length>0?e.regions:e.region?[e.region]:[],KD=(e,t)=>{let n=e.region_locations||{},r=Array.isArray(n[t])?n[t]:[];if(r.length>0)return r.filter(e=>e&&(e.city||e.state||e.country));if(e.region===t){if(t===`internacional`&&e.country)return[{country:e.country,city:e.city||void 0}];if(e.city||e.state)return[{city:e.city||void 0,state:e.state||void 0}]}return[]},qD=(e,t)=>t===`internacional`?[e.city,e.country].filter(Boolean).join(` - `):[e.city,e.state].filter(Boolean).join(`/`),JD=(e,t,n=` • `)=>KD(e,t).map(e=>qD(e,t)).filter(Boolean).join(n),YD=(e,t)=>{let n=GD(e),r=t=>{if(!t)return null;let n=JD(e,t);return n?{regionId:t,text:n}:null};return r(t)||r(e.region)||n.map(r).find(Boolean)||{regionId:null,text:``}},XD=[{id:`all`,label:`Todas as regiões`},{id:`sudeste`,label:`Sudeste`},{id:`sul`,label:`Sul`},{id:`nordeste`,label:`Nordeste`},{id:`centro-oeste`,label:`Centro-Oeste`},{id:`norte`,label:`Norte`},{id:`internacional`,label:`Internacional`}];function ZD({open:e,onOpenChange:t}){let[n,r]=(0,P.useState)([]),[i,a]=(0,P.useState)(!1),[o,s]=(0,P.useState)(``),[c,l]=(0,P.useState)(`all`),[u,d]=(0,P.useState)(0),f=(0,P.useRef)(null);(0,P.useEffect)(()=>{e&&(f.current=document.activeElement||null)},[e]);let p=e=>{t(e),e||setTimeout(()=>{f.current?.focus?.()},0)};(0,P.useEffect)(()=>{!e||n.length>0||(a(!0),Pd.from(`partners`).select(`id,name,logo_url,website_url,region,regions,region_locations,city,state,country`).eq(`is_active`,!0).order(`is_featured`,{ascending:!1}).order(`display_order`,{ascending:!0}).then(({data:e})=>{r(e||[]),a(!1)}))},[e,n.length]);let m=(0,P.useMemo)(()=>{let e=o.trim().toLowerCase();return n.filter(t=>{if(!(c===`all`||GD(t).includes(c)))return!1;if(!e)return!0;let n=[];for(let e of GD(t))for(let r of KD(t,e))r.city&&n.push(r.city),r.state&&n.push(r.state),r.country&&n.push(r.country);return[t.name,t.city,t.state,t.country,...n].filter(Boolean).join(` `).toLowerCase().includes(e)})},[n,o,c]),h=o.trim().length>0||c!==`all`,g=h?i?`Buscando parceiros...`:m.length===0?`Nenhum parceiro encontrado.`:`${m.length} ${m.length===1?`parceiro encontrado`:`parceiros encontrados`}.`:``,[_,v]=(0,P.useState)(``);return(0,P.useEffect)(()=>{if(!h){v(``);return}let e=setTimeout(()=>{let e=XD.find(e=>e.id===c)?.label,t=[];o.trim()&&t.push(`Buscando por "${o.trim()}"`),c!==`all`&&e&&t.push(`região ${e}`),v(t.join(`, `)+`.`)},600);return()=>clearTimeout(e)},[o,c,h]),(0,P.useEffect)(()=>{d(0)},[o,c]),(0,P.useEffect)(()=>{h&&document.getElementById(`partner-result-${u}`)?.scrollIntoView({block:`nearest`})},[u,h]),(0,I.jsx)(FD,{open:e,onOpenChange:p,children:(0,I.jsxs)(zD,{className:`max-w-2xl p-0 overflow-hidden gap-0 bg-card border-border`,onKeyDown:e=>{if(!(!h||m.length===0)){if(e.key===`ArrowDown`)e.preventDefault(),d(e=>(e+1)%m.length);else if(e.key===`ArrowUp`)e.preventDefault(),d(e=>(e-1+m.length)%m.length);else if(e.key===`Enter`){let t=m[u];if(!t)return;e.preventDefault();let n=WD(t.website_url);n&&window.open(n,`_blank`,`noopener,noreferrer`),p(!1)}}},children:[(0,I.jsxs)(BD,{className:`p-6 pb-4 border-b border-border`,children:[(0,I.jsxs)(HD,{className:`font-heading text-2xl text-foreground flex items-center gap-2`,children:[(0,I.jsx)(kn,{size:20,className:`text-primary`}),`Buscar parceiro`]}),(0,I.jsx)(UD,{className:`text-muted-foreground`,children:`Encontre um parceiro Beephish por nome ou região.`})]}),(0,I.jsx)(`div`,{className:`p-6 space-y-3`,children:(0,I.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-[1fr_220px] gap-3`,children:[(0,I.jsxs)(`div`,{className:`relative`,children:[(0,I.jsx)(kn,{size:16,className:`absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground`}),(0,I.jsx)(`input`,{type:`text`,value:o,onChange:e=>s(e.target.value),placeholder:`Buscar por nome, cidade, estado...`,className:`w-full pl-9 pr-9 py-3 rounded-lg bg-muted/50 border border-border/50 text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all`,autoFocus:!0}),o&&(0,I.jsx)(`button`,{type:`button`,onClick:()=>s(``),className:`absolute right-2 top-1/2 -translate-y-1/2 p-1 text-muted-foreground hover:text-foreground`,"aria-label":`Limpar busca`,children:(0,I.jsx)(Ln,{size:14})})]}),(0,I.jsxs)(`div`,{className:`relative`,children:[(0,I.jsx)(`select`,{value:c,onChange:e=>l(e.target.value),className:`w-full px-4 py-3 rounded-lg bg-muted/50 border border-border/50 text-foreground focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all appearance-none cursor-pointer`,children:XD.map(e=>(0,I.jsx)(`option`,{value:e.id,children:e.label},e.id))}),(0,I.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground`,children:(0,I.jsx)(`svg`,{className:`h-4 w-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`,children:(0,I.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M19 9l-7 7-7-7`})})})]})]})}),(0,I.jsx)(`div`,{role:`status`,"aria-live":`polite`,"aria-atomic":`true`,className:`sr-only`,children:g}),(0,I.jsx)(`div`,{"aria-live":`polite`,"aria-atomic":`true`,className:`sr-only`,children:_}),(0,I.jsx)(mE,{initial:!1,children:h&&(0,I.jsx)(N.div,{initial:{height:0,opacity:0}
106,animate:{height:`auto`,opacity:1},exit:{height:0,opacity:0},transition:{duration:.35,ease:[.22,1,.36,1]},className:`overflow-hidden border-t border-border`,children:(0,I.jsx)(`div`,{className:`px-6 py-4 max-h-[50vh] overflow-y-auto`,children:i?(0,I.jsx)(`div`,{className:`flex justify-center py-8`,children:(0,I.jsx)(Sn,{className:`h-6 w-6 animate-spin text-primary`})}):m.length===0?(0,I.jsx)(`p`,{className:`text-center text-muted-foreground py-8 text-sm`,children:`Nenhum parceiro encontrado.`}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(`p`,{className:`text-xs text-muted-foreground mb-3`,children:[m.length,` `,m.length===1?`resultado`:`resultados`]}),(0,I.jsx)(`ul`,{className:`space-y-2`,children:m.map((e,t)=>{let n=c===`all`?YD(e).text:JD(e,c),r=WD(e.website_url),i=r?`a`:`div`,a=r?{href:r,target:`_blank`,rel:`noopener noreferrer`}:{},o=t===u;return(0,I.jsx)(N.li,{id:`partner-result-${t}`,initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{delay:Math.min(t*.03,.3)},role:`option`,"aria-selected":o,children:(0,I.jsxs)(i,{...a,tabIndex:-1,onMouseEnter:()=>d(t),onClick:()=>p(!1),className:`group flex items-center gap-3 p-3 rounded-lg border transition-all ${o?`border-primary/60 bg-muted/70 ring-2 ring-primary/40`:`border-border/50 bg-muted/30 hover:bg-muted/60 hover:border-primary/40`}`,children:[(0,I.jsx)(`div`,{className:`size-12 rounded-md bg-white flex items-center justify-center overflow-hidden shrink-0`,children:e.logo_url?(0,I.jsx)(`img`,{src:e.logo_url,alt:e.name,className:`w-full h-full object-contain p-1`}):(0,I.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Logo`})}),(0,I.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,I.jsx)(`div`,{className:`font-medium text-foreground group-hover:text-primary transition-colors truncate`,children:e.name}),n&&(0,I.jsxs)(`div`,{className:`text-xs text-muted-foreground flex items-center gap-1 mt-0.5`,children:[(0,I.jsx)(wn,{size:12}),n]})]}),e.website_url&&(0,I.jsx)(dn,{size:16,className:`text-muted-foreground group-hover:text-primary shrink-0`})]})},e.id)})})]})})},`results`)})]})})}var QD=[`menu_settings`],$D=`beephish:menu_settings:v1`,eO=1440*60*1e3,tO=2;function nO(e){if(!(typeof window>`u`))try{window.localStorage.removeItem($D)}catch{}}function rO(e){if(!e||typeof e!=`object`)return!1;let t=e;return t.version!==tO||typeof t.savedAt!=`number`||Number.isNaN(t.savedAt)||!t.data||typeof t.data!=`object`?!1:Object.values(t.data).every(e=>e&&typeof e==`object`&&typeof e.menu_key==`string`&&typeof e.is_enabled==`boolean`)}function iO(){if(typeof window>`u`)return null;let e=null;try{e=window.localStorage.getItem($D)}catch{return null}if(!e)return null;let t;try{t=JSON.parse(e)}catch{return nO(`JSON inválido`),null}return rO(t)?Date.now()-t.savedAt>eO?(nO(`TTL expirado`),null):t:(nO(`formato inesperado`),null)}function aO(e){if(!(typeof window>`u`))try{let t={version:tO,data:e,savedAt:Date.now()};window.localStorage.setItem($D,JSON.stringify(t))}catch{}}async function oO(){let{data:e,error:t}=await Pd.from(`menu_settings`).select(`*`);if(t)throw t;let n={};return(e??[]).forEach(e=>{n[e.menu_key]=e}),n}var sO=iO();function cO(){let e=uc(),{data:t={},isLoading:n,dataUpdatedAt:r}=Tc({queryKey:QD,queryFn:oO,staleTime:300*1e3,gcTime:1800*1e3,initialData:sO?.data,initialDataUpdatedAt:sO?.savedAt,refetchOnMount:!sO||`always`});(0,P.useEffect)(()=>{r&&(!t||Object.keys(t).length===0||aO(t))},[r,t]),(0,P.useEffect)(()=>{let t=e.getQueryCache().subscribe(e=>{if(e.type!==`updated`)return;let t=e.query.queryKey;if(!Array.isArray(t)||t[0]!==QD[0])return;let n=e.query.state.data;n&&Object.keys(n).length>0&&aO(n)});return()=>t()},[e]);let i=(e,n=!0)=>{let r=t[e];return r?r.is_enabled:n},a=!!sO;return{settings:t,loading:n,isEnabled:i,isHydrating:!a&&n,hasHydratedCache:a}}function $({className:e,...t}){return(0,I.jsx)(`div`,{className:m(`animate-pulse rounded-md bg-muted`,e),...t})}var lO=`Popover`,[uO,dO]=o(lO,[Qa]),fO=Qa(),[pO,mO]=uO(lO),hO=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=fO(t),c=P.useRef(null),[u,d]=P.useState(!1),[f,p]=l({prop:r,defaultProp:i??!1,onChange:a,caller:lO});return(0,I.jsx)(ho,{...s,children:(0,I.jsx)(pO,{scope:t,contentId:S(),triggerRef:c,open:f,onOpenChange:p,onOpenToggle:P.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:u,onCustomAnchorAdd:P.useCallback(()=>d(!0),[]),onCustomAnchorRemove:P.useCallback(()=>d(!1),[]),modal:o,children:n})})};hO.displayName=lO;var gO=`PopoverAnchor`,_O=P.forwardRef((e,t)=>
vendor: 4,375 bytes, line 106
106{let{__scopePopover:n,...r}=e,i=mO(gO,n),a=fO(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return P.useEffect(()=>(o(),()=>s()),[o,s]),(0,I.jsx)(go,{...a,...r,ref:t})});_O.displayName=gO;var vO=`PopoverTrigger`,yO=P.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=mO(vO,n),o=fO(n),s=_(t,i.triggerRef),c=(0,I.jsx)(y.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":PO(i.open),...r,ref:s,onClick:a(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?c:(0,I.jsx)(go,{asChild:!0,...o,children:c})});yO.displayName=vO;var bO=`PopoverPortal`,[xO,SO]=uO(bO,{forceMount:void 0}),CO=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=mO(bO,t);return(0,I.jsx)(xO,{scope:t,forceMount:n,children:(0,I.jsx)(b,{present:n||a.open,children:(0,I.jsx)($e,{asChild:!0,container:i,children:r})})})};CO.displayName=bO;var wO=`PopoverContent`,TO=P.forwardRef((e,t)=>{let n=SO(wO,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=mO(wO,e.__scopePopover);return(0,I.jsx)(b,{present:r||a.open,children:a.modal?(0,I.jsx)(DO,{...i,ref:t}):(0,I.jsx)(OO,{...i,ref:t})})});TO.displayName=wO;var EO=h(`PopoverContent.RemoveScroll`),DO=P.forwardRef((e,t)=>{let n=mO(wO,e.__scopePopover),r=P.useRef(null),i=_(t,r),o=P.useRef(!1);return P.useEffect(()=>{let e=r.current;if(e)return fg(e)},[]),(0,I.jsx)(rg,{as:EO,allowPinchZoom:!0,children:(0,I.jsx)(kO,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:a(e.onCloseAutoFocus,e=>{e.preventDefault(),o.current||n.triggerRef.current?.focus()}),onPointerDownOutside:a(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:a(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),OO=P.forwardRef((e,t)=>{let n=mO(wO,e.__scopePopover),r=P.useRef(!1),i=P.useRef(!1);return(0,I.jsx)(kO,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),kO=P.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=mO(wO,n),p=fO(n);return Xm(),(0,I.jsx)(Lm,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,I.jsx)(Ue,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:(0,I.jsx)(_o,{"data-state":PO(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),AO=`PopoverClose`,jO=P.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=mO(AO,n);return(0,I.jsx)(y.button,{type:`button`,...r,ref:t,onClick:a(e.onClick,()=>i.onOpenChange(!1))})});jO.displayName=AO;var MO=`PopoverArrow`,NO=P.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=fO(n);return(0,I.jsx)(vo,{...i,...r,ref:t})});NO.displayName=MO;function PO(e){return e?`open`:`closed`}var FO=hO,IO=yO,LO=CO,RO=TO,zO=FO,BO=IO,VO=P.forwardRef(({className:e,align:t=`center`,sideOffset:n=4,...r},i)=>(0,I.jsx)(LO,{children:(0,I.jsx)(RO,{ref:i,align:t,sideOffset:n,className:m(`z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
106de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,e),...r})}));VO.displayName=RO.displayName;var HO={cta:{assessment:`Diagnóstico Gratuito`,specialist:`Fale com Especialista`,knowOurStory:`Conheça nossa história`,learnMore:`Saiba mais`},nav:{sections:{empresa:`Empresa`,plataforma:`Plataforma`,cases:`Cases`,parceiros:`Parceiros`,recursos:`Recursos`},empresa:{historia:{title:`História`,description:`Conheça nossa trajetória`},valores:{title:`Missão, Visão e Valores`,description:`O que nos move como empresa`},especialista:{title:`Fale com Especialista`,description:`Entre em contato conosco`},carreira:{title:`Carreira`,description:`Oportunidades na Beephish`}},plataforma:{risco:{title:`Risco Humano`,description:`Inteligência comportamental`},comunicacao:{title:`Comunicação`,description:`Comunicação eficiente sobre segurança`},phishing:{title:`Phishing`,description:`Simulações realistas de phishing`},gamificacao:{title:`Gamificação`,description:`Gamificação em segurança`},treinamentos:{title:`Treinamentos`,description:`Trilhas de aprendizado`}},cases:{descricao:{title:`Descrição dos cases`,description:`Cases de sucesso dos nossos clientes`},avaliacoes:{title:`Avaliações públicas`,description:`Avaliações no Gartner Peer Insights`}},parceiros:{programa:{title:`Programa de canais`,description:`Conheça nosso programa de parceiros`},buscar:{title:`Buscar parceiro`,description:`Encontre um parceiro Beephish`},tornarse:{title:`Como se tornar parceiro`,description:`Junte-se ao nosso ecossistema`},tecnologicos:{title:`Parceiros tecnológicos`,description:`Integrações e ecossistema tecnológico`}},recursos:{midia:{title:`Mídia`,description:`Notícias, matérias e coberturas sobre a Beephish`},blog:{title:`Blog`,description:`Artigos e insights`},webinars:{title:`Webinars`,description:`Eventos online sobre segurança`},podcasts:{title:`Podcasts`,description:`Ouça nossos episódios`},casos:{title:`Casos de uso`,description:`Exemplos práticos de uso da plataforma`}},ariaToggle:`Abrir menu`,ariaClose:`Fechar menu`,ariaLoading:`Carregando menu`},footer:{tagline:`Plataforma brasileira de conscientização em segurança e simulações de phishing. Transformando comportamento humano em primeira linha de defesa.`,rights:`© {{year}} Beephish. Todos os direitos reservados.`,legal:{privacy:`Política de Privacidade`,terms:`Termos de Uso`},bhrsDetail:`UHRI em detalhes`,languageAria:`Selecionar idioma`,cookieSettings:`Configurações de cookies`},language:{pt:`Português`,en:`English`,ptShort:`PT`,enShort:`EN`},skipToContent:`Pular para o conteúdo principal`,contactSection:{eyebrow:`Contato`,title:`Vamos conversar?`,description:`Conheça nossa plataforma e descubra como podemos ajudar sua empresa a transformar segurança em cultura.`,bullets:{demo:`Demonstração personalizada da plataforma`,analysis:`Análise gratuita do cenário atual`,proposal:`Proposta sob medida para sua empresa`}},notFound:{title:`404 — Página não encontrada | BeePhish`,heading:`404`,message:`Ops! Página não encontrada`,back:`Voltar para o início`},cookieBanner:{ariaLabel:`Aviso de cookies`,message:`Usamos cookies para medir o desempenho de campanhas e melhorar sua experiência. No Brasil, os cookies de publicidade só ficam ativos se você aceitar.`,learnMore:`Saiba mais na Política de Privacidade`,accept:`Aceitar`,reject:`Rejeitar`}},UO={hero:{title1:`Segurança começa`,title2a:`com pessoas `,title2b:`treinadas`,subtitle:`Enquanto investimos milhões em tecnologia, o comportamento humano ainda define a vulnerabilidade: um clique, uma senha fraca, um e-mail aberto.`},stats:{users:`Usuários na plataforma`,companies:`Empresas atendidas`,riskReduction:`Redução de risco`,headlineA:`Transforme o comportamento humano em um `,headlineB:`pilar de controle de segurança`,subHeadline:`Soluções para empresas de todos os portes e segmentos`},solution:{pill:`Solução brasileira`,titleA:`Pragmática, acessível, `,titleB:`feita para você`,lead:`A Beephish nasce de quem viveu o problema e encontrou a solução. Nossa plataforma foi desenvolvida por profissionais com décadas de experiência em segurança da informação nas maiores empresas do Brasil.`,features:{brasil:{title:`Solução sempre atualizada`,description:`Conteúdos e simulações conectados à realidade e ataques modernos`},suporte:{title:`Suporte próximo`,description:`Time brasileiro pronto para ajudar, sem barreiras de fuso horário.`},rapido:{title:`Implementação rápida`,description:`Comece a ver resultados desde o primeiro mês de uso.`},custo:{title:`Custo acessível`,description:`Preço justo para empresas de todos os tamanhos.`}},founders:{glauco:`25+ anos em riscos digitais. 
107Ex-CISO em empresas como Cielo, Banco Original e Editora Abril.`,bruno:`10+ anos em Segurança da Informação. 
108Experiência em Cielo, Banco Pan, Itaú e Bradesco.`},linkedinAria:`LinkedIn de {{name}}`},method:{title:`Como atuamos`,subtitle:`Conscientização precisa deixar de ser exceção e se tornar cultura.`,pillars:{test:{title:`Testar`,description:`Simulações realistas de phishing em múltiplos canais para medir a vulnerabilidade real.`,f1:`E-mails segmentados`,f2:`Templates customizáveis`,f3:`Treinamentos contínuos`},educate:{title:`Educar`,description:`Treinamentos interativos e conteúdos de conscientização que engajam e transformam comportamentos.`,f1:`Conteúdos próprios`,f2:`Gamificação`,f3:`Score e ranking`},track:{title:`Acompanhar`,description:`Relatórios detalhados e evolução contínua para criar uma verdadeira cultura de segurança.`,f1:`Insights por área`,f2:`Evolução temporal`,f3:`Relatórios executivos`}}},modules:{title:`Módulos da plataforma`,subtitle:`Uma solução completa, 100% SaaS, para criar e manter uma cultura de segurança na sua organização.`,ariaList:`Módulos da plataforma`,ariaPreview:`Visualização do módulo {{title}}: {{desc}}`,items:{risco:{title:`Risco Humano`,description:`Mensure, antecipe e reduza o risco humano com inteligência comportamental aplicada.`,overlay:`Score de risco humano em tempo real, com indicadores comportamentais e tendências por área.`},phishing:{title:`Phishing`,description:`Simule ataques reais e meça a resiliência da sua equipe com campanhas inteligentes.`,overlay:`Campanhas realistas de e-mail, QR code e anexos com métricas detalhadas de cliques e denúncias.`},treinamentos:{title:`Treinamentos`,description:`Capacite seu time com trilhas envolventes que transformam conhecimento em cultura de segurança.`,overlay:`Trilhas de aprendizagem, microlearning e catálogo de cursos com acompanhamento individual.`},comunicacao:{title:`Comunicação`,description:`Comunicação eficiente, inteligente e contínua sobre a melhor linha de defesa.`,overlay:`Avisos, campanhas e c
108onteúdos segmentados para manter a segurança presente no dia a dia.`}},learnMoreAria:`Saiba mais sobre {{title}}`},mobile:{pill:`Mobile`,title:`Segurança que cabe no bolso da sua equipe`,subtitle:`Nosso app mobile leva treinamentos e comunicação para qualquer lugar, engajando colaboradores onde eles realmente estão.`,features:{treinamentos:{title:`Treinamentos`,description:`Trilhas e microlearning na palma da mão, a qualquer hora.`},comunicacao:{title:`Comunicação`,description:`Avisos, campanhas e novidades direto no app.`}}},social:{pill:`Clientes`,title:`Empresas que confiam em nós`,subtitle:`Junte-se às organizações que já transformaram sua cultura de segurança`,empty:`Nenhum cliente cadastrado.`},testimonials:{pill:`Depoimentos`,title:`O que dizem nossos clientes`,subtitle:`Veja como empresas de diversos setores estão transformando sua cultura de segurança com a Beephish.`},ctaSection:{title:`Criar cultura de segurança não é campanha anual`,subtitle:`É compromisso, constância e clareza. Comece hoje a transformar o comportamento da sua equipe em primeira linha de defesa.`}},WO={index:{hero:{badge:`Nossas Soluções`,titleLine1:`Segurança aplicada à`,titleLine2:`realidade da sua operação`,subtitle:`Seja você de TI, RH ou Compliance, temos a solução certa para criar cultura de segurança na sua organização.`},personas:{title:`Por perfil`,subtitle:`Soluções específicas para cada área da sua empresa`,items:{ti:{title:`TI / SecOps`,description:`Para equipes de segurança que precisam de visibilidade sobre vulnerabilidades humanas.`,features:[`Dashboard técnico com métricas detalhadas`,`Integração com ferramentas SIEM`,`Relatórios de compliance automatizados`,`API para integrações customizadas`]},rh:{title:`Recursos Humanos`,description:`Para RH que quer desenvolver uma cultura de segurança entre colaboradores.`,features:[`Onboarding de segurança automatizado`,`Trilhas de aprendizado personalizadas`,`Gamificação para engajamento`,`Certificados e reconhecimentos`]},compliance:{title:`Compliance`,description:`Para profissionais de compliance que precisam evidenciar controles.`,features:[`Conteúdos ISO 27001 e PCI-DSS`,`Trilhas LGPD para toda empresa`,`Relatórios de auditoria prontos`,`Histórico completo de treinamentos`]}}},objectives:{title:`Por objetivo`,subtitle:`Escolha a solução de acordo com seu objetivo principal`,items:{awareness:{title:`Conscientização Contínua`,description:`Transforme conscientização em cultura com conteúdos regulares e relevantes.`},simulations:{title:`Simulações de Phishing`,description:`Teste a resiliência da sua equipe com simulações realistas e multicanal.`},training:{title:`Treinamentos & Conteúdo`,description:`Capacite colaboradores com conteúdos próprios e gamificação.`}}}},securityInfo:{pill:`Segurança da Informação`,titleLine1:`Por que a Segurança da Informação`,titleLine2:`é`,titleHighlight:`Crucial?`,cards:[`Ameaças cibernéticas estão em constante evolução.`,`Dados valiosos estão em risco devido a violações de segurança.`,`A conscientização é a primeira linha de defesa.`,`95% das violações de dados são causadas por erro humano.`,`O custo médio de uma violação de dados é de $3.86 milhões.`,`Mais de 75% das organizações têm experimentado phishing bem-sucedido.`]},securityCulture:{pill:`Conscientização`,titleLine1:`Ciclo de Desenvolvimento da`,titleHighlight:`Cultura de Segurança`,steps:{training:{label:`TREINAMENTO`,title:`Treinamento para os colaboradores`,description:`Capacitação contínua com conteúdos atualizados sobre ameaças cibernéticas e boas práticas de segurança.`},phishing:{label:`PHISHING`,title:`Simulação de ataque de phishing`,description:`Campanhas realistas que testam a resiliência da equipe e identificam vulnerabilidades comportamentais.`},analysis:{label:`ANÁLISE`,title:`Análise dos dados da campanha`,description:`Relatórios detalhados com métricas de desempenho para medir a evolução e ajustar estratégias.`}}},modulesDetail:{pill:`Nossas Soluções`,titleLine1:`Módulos da`,titleHighlight:`plataforma`,subtitle:`Conheça cada módulo e descubra como a Beephish protege sua organização de ponta a ponta.`,imageAlt:`Imagem do módulo`,comingSoon:`Em breve mais detalhes sobre este módulo.`,items:{phishing:{title:`Módulo de Phishing`,shortTitle:`Phishing`,description:`Plataforma SaaS, Conscientização de Segurança da Informação.`,features:[`Painel / Dashboard`,`Grupos por função ou departamento`,`Modelos de E-mail`,`Landing Pages`,`Campanhas com métricas e relatórios`,`Denúncia de Phishing`,`Spoofing de E-mail`,`Landing Pages fake`,`Campanhas de QR-Code, Anexo, Link e Coleta de dados`,`Indicadores, métricas, tendências e maturidade com nível de risco`]},treinamentos:{title:`Módulo de Treinamentos`,shortTitle:`Treinamentos`,description:`Capacite colaboradores com trilhas de aprendizado e conteúdos de conscientização.`,features:[`Trilhas de aprendizagem em Segurança da Informação`,`Catálogo de cursos de conscientização`,`Meus cursos e treinamentos`,`Minhas trilhas de aprendizagem`,`Comunidade`,`Aplicativo com acesso móvel`]},comunicacao:{title:`Módulo de Comunicação`,shortTitle:`Comunicação`,description:`Comunique-se de forma eficiente com toda a organização sobre segurança.`,features:[]},risco:{title:`Módulo de Gestão de Risco Humano`,shortTitle:`Gestão de Risco Humano`,description:`Identifique, meça e reduza o risco humano com inteligência comportamental.`,features:[]}}}},GO={hero:{badge:`Simulação de Phishing`,imageAlt:`Simulação de phishing — Cultura de Conscientização`,titleLine1:`Simulação de Phishing`,titleLine2:`para Empresas`,subtitle:`Simule ataques reais em português, meça a resiliência da equipe e transforme colaboradores em uma camada ativa de defesa contra o phishing.`,cta:`Fale com Especialista`},approach:{card1:`Nossa simulação de phishing transforma colaboradores no ponto mais forte da segurança: através de treinamentos e simulados, atuamos no elo mais frágil e criamos uma camada ativa de proteção contra o phishing.`,card2:`Identifique grupos mais sensíveis ao risco e direcione campanhas de phishing por setor, perfil ou colaborador.`,card3:`Acompanhe ações dos usuários, identifique riscos de forma segura e gere relatórios claros para análise e evolução.`},video:{title:`Veja como a Beephish fortalece sua equipe contra phishing`,subtitle:`Assista ao vídeo`,iframeTitle:`beephish - Cultura de Conscientização`},context:{title1:`Phishing: a porta de entrada para ataques corporativos`,p1:`O phishing é uma das formas mais comuns de engenharia social, usada para roubar dados sensíveis ou obter acesso à rede de uma empresa. Nessas tentativas, mensagens maliciosas induzem o usuário a clicar em links ou anexos com malware. No caso do Business Email Compromise (BEC), o atacante se passa por alguém confiável da empresa para enganar o destinatário e levá-lo a agir como se a comunicação fosse legítima.`,title2:`e-mail Versus Segurança`,p2:`O e-mail segue como o principal canal de ciberataques e uma porta de entrada valiosa para dados sensíveis. Como as organizações depen
108dem dele diariamente, é fundamental contar com uma solução de segurança robusta, integrada e capaz de se adaptar a diferentes ameaças.`,p2Highlight:`A segurança do e-mail é uma necessidade essencial para qualquer empresa.`},highlights:{pill:`Módulo Phishing`,titleLine1:`Conscientização de`,titleLine2:`Segurança da Informação`,items:{personalizadas:{title:`Campanhas de phishing personalizadas`,description:`Simulações sob medida para o contexto, idioma e nível de maturidade da sua organização.`},qrcode:{title:`Campanhas de QR-Code, Anexo, Link e Coleta de dados`,description:`Múltiplos vetores de ataque para testar a equipe diante das ameaças reais do mercado.`},spoofing:{title:`Spoofing de E-mail`,description:`Simule remetentes confiáveis e avalie como seus colaboradores reagem a tentativas de fraude.`},landing:{title:`Landing Pages falsas`,description:`Páginas realistas que reproduzem cenários do dia a dia para medir o comportamento dos usuários.`}},dashboardAlt:`Painel beephish — campanhas de phishing e estatísticas`},impact:{pill:`O problema no Brasil`,title:`O phishing se tornou uma das principais ameaças digitais no país`,callouts:{click:`Clique`,credentials:`Credenciais`,social:`Engenharia social`,impact:`Impacto`},calloutsLabel:`Pontos do fluxo de phishing`,p1Part1:`O phishing deixou de ser um risco pontual e passou a ser uma das principais ameaças digitais no Brasil. Hoje, o país está entre os mais atacados do mundo, com mais de 553 milhões de tentativas de phishing registradas em apenas 12 meses, o que equivale a cerca de 1,5 milhão de ataques por dia.`,p1Part2:`Esse cenário vem se agravando rapidamente: em alguns períodos, o crescimento das tentativas ultrapassou 600% em um único ano, impulsionado principalmente pelo avanço da engenharia social e da inteligência artificial.`,p2Part1:`O impacto financeiro é igualmente alarmante. No Brasil, ataques que têm o phishing como porta de entrada já geraram custos médios superiores a R$ 7 milhões por incidente em empresas, considerando perdas operacionais, multas e danos à reputação.`,p2Part2:`Em nível nacional, golpes digitais movimentaram cerca de R$ 29 bilhões em prejuízos recentes, mostrando o tamanho da indústria do cibercrime.`,p3Part1:`Do lado humano, o problema é ainda mais crítico: cerca de 24% dos brasileiros foram vítimas de golpes digitais em apenas um ano, o que representa mais de 40 milhões de pessoas afetadas.`,p3Part2:`E o crescimento continua — denúncias de crimes cibernéticos cresceram 28,4% em 2025, consolidando o phishing como uma das principais portas de entrada para fraudes e invasões.`,p4:`Em um cenário em que o comportamento humano continua sendo o principal vetor de risco, investir em conscientização, simulação e gestão deixou de ser opcional — é uma prioridade estratégica.`,referencesTitle:`Referências`,notesTitle:`Notas`,ref1:`AJN1 — Brasil teve mais de meio bilhão de ataques de phishing nos últimos 12 meses, com dados atribuídos à Kaspersky.`,ref2:`ISP.Tools — IA Phishing: Brasil registra crescimento de 617%.`,ref3:`IBM Brasil — Custo médio de uma violação de dados no Brasil atinge R$ 7,19 milhões.`,ref4:`G1 — Levantamento Datafolha/Fórum Brasileiro de Segurança Pública aponta prejuízo de quase R$ 29 bilhões com golpes de PIX e boleto falso.`,ref5:`Agência Senado — DataSenado/Nexus: 24% dos brasileiros com mais de 16 anos foram vítimas de golpes digitais, mais de 40,85 milhões de pessoas.`,ref6:`Agência Brasil — SaferNet registra crescimento de 28,4% nas denúncias de crimes cibernéticos em 2025.`,refLabel1:`Referência 1: Brasil teve mais de 553 milhões de ataques de phishing em 12 meses`,refL
108abel2:`Referência 2: Phishing com IA cresceu 617% no Brasil`,refLabel3:`Referência 3: Custo médio de violação de dados no Brasil atinge R$ 7,19 milhões`,refLabel4:`Referência 4: Golpes de PIX e boleto falso geraram prejuízo de R$ 29 bilhões`,refLabel5:`Referência 5: 24% dos brasileiros foram vítimas de golpes digitais`,refLabel6:`Referência 6: Denúncias de crimes cibernéticos cresceram 28,4% em 2025`},features:{pill:`Funcionalidades`,title:`Recursos para reduzir o risco humano`,subtitle:`Explore recursos que ajudam a educar, testar e acompanhar a evolução dos colaboradores contra phishing.`,tablistLabel:`Funcionalidades`,tabs:{grupos:{label:`Grupos`,title:`Grupos de colaboradores`,description:`Segmente colaboradores por área, função ou nível de exposição para identificar grupos mais sensíveis ao risco.`,bullets:[`Grupos por função ou departamento.`]},emails:{label:`E-mails`,title:`Modelos de e-mail e spoofing`,description:`Use modelos prontos e personalize campanhas para simular cenários reais de phishing por e-mail.`,bullets:[`Biblioteca com modelos de e-mails.`,`Campanhas de QR-Code, Anexo, Link e Coleta de dados.`,`Personalização: logotipos da empresa, mensagens personalizadas e elementos visuais relevantes.`]},"landing-pages":{label:`Landing pages`,title:`Landing pages falsas e realistas`,description:`Crie páginas simuladas com captura controlada de dados, clonagem de sites e redirecionamentos seguros.`,bullets:[`Biblioteca com modelos de páginas.`,`Clonagem de Site.`,`Personalização: logotipos da empresa, mensagens personalizadas e elementos visuais relevantes.`,`Spoofing: Falsificação de endereços de e-mail para se passar por remetentes legítimos.`,`Captura de dados.`,`Redirecionamento para página original.`]},metricas:{label:`Métricas e relatórios`,title:`Métricas, relatórios e maturidade`,description:`Acompanhe a evolução dos colaboradores e transforme resultados de campanhas em indicadores de maturidade.`,bullets:[`Métricas completas da campanha.`,`Relatórios executivo e técnico.`,`Lista de entregas de phishing por colaborador.`,`Linha do tempo por colaborador.`]},denuncia:{label:`Denúncia de phishing`,title:`Denúncia de phishing com um clique`,description:`Receba denúncias de phishing e identifique automaticamente se a mensagem faz parte de um simulado.`,bullets:[`Configuração da caixa de CSIRT.`,`Denúncia de phishing.`]},treinamentos:{label:`Treinamentos`,title:`Treinamentos de segurança da informação`,description:`Conteúdos educativos entregues no momento certo para reforçar boas práticas, reduzir riscos e construir uma cultura sólida de segurança.`,bullets:[`Trilhas de aprendizagem por perfil`,`Microconteúdos e certificados`,`Atribuição automática após cliques`]}}},svg:{diagramAlt:`Diagrama técnico simplificado sobre fluxo de phishing`,emailAlt:`Ilustração técnica de e-mail com linha de pesca e anzol`,dashboardAlt:`Mockup técnico de dashboard de controle de phishing em navegador`}},KO={hero:{badge:`Módulo de Treinamentos`,title:`Capacite sua equipe com`,titleHighlight:`Trilhas Inteligentes`,description:`Capacite colaboradores com trilhas de aprendizado e conteúdos de conscientização em segurança da informação.`,cta:`Fale com Especialista`,imageAlt:`Treinamentos - Capacitação contínua`},intro:{pill:`Treinamentos`,title:`Cursos Personalizados`,lead:`Cursos personalizados para cada nível de conhecimento, garantindo que todos na sua equipe estejam preparados.`,description:`Os pontos de falhas são momentos ensináveis e o rastreamento de áreas de melhoria contínua é fundamental para fortalecer um programa de conscientização de segurança.`,highlightsLead:`Nossos serviços são altamente assertivos e projetados para alcançar resultados eficazes, como:`,highlights:[`Simulação realista de phishing: envie e-mails de phishing falsos para identificar vulnerabilidades e medir eficácia do treinamento.`,`Treinamentos Personalizados.`,`Trilhas de treinamentos.`,`Biblioteca de treinamentos.`,`Compliance, LGPD, PCI e ISO27001.`,`Certificado personalizado.`,`Quiz e Prova final.`,`Indicadores e Métricas.`,`Gamificação.`],dashboardAlt:`Dashboard de treinamentos beephish — ranking, certificados e progresso`,dashboardCaption:`Treinamentos em diversos formatos de arquivos: PDF, PowerPoint, PNG, Link (Embeded) e Vídeos.`},cards:[{title:`Biblioteca de treinamentos`,bullets:[`Treinamentos Personalizados.`,`Biblioteca de treinamentos.`,`Compliance, LGPD, PCI e ISO27001.`]},{title:`Meus treinamentos`,bullets:[`Treinamentos inscritos.`,`Certificado personalizado.`,`Quiz e Prova final.`]},{title:`Trilhas de aprendizagem`,bullets:[`Trilhas de treinamentos obrigatórios.`,`Trilhas personalizadas. EX: Departamentos, funções, ou campanhas da organização.`]}],awareness:{pill:`Conscientização`,title:`Aumento da Conscientização`,description:`Reduza os riscos de ataques bem-sucedidos com o treinamento regular.`},metrics:{pill:`Métricas e Relatórios`,title:`Métricas e Relatórios de Campanhas`,description:`Relatórios detalhados que fornecem insights valiosos e ajudam a melhorar continuamente suas defesas.`,items:[`Nível de risco de segurança da informação`,`Economia de Tempo e Recursos`,`Relatórios executivo e técnico.`,`Automatização de treinamento e análise`,`Análise de dados por campanha, grupo e usuário`,`Timeline por colaborador.`],footer:`Com BeePhish, você treina, testa e fortalece a segurança da sua empresa de maneira simples e eficaz`}},qO={hero:{badge:`Módulo de Comunicação`,title:`Comunicação direta com sua equipe sobre`,titleHighlight:`segurança`,description:`Envie boas práticas, newsletters de segurança, comunicados de novos controles e alertas sobre ameaças que estão impactando o mercado — tudo o que o time de segurança precisa comunicar, em um único canal.`,cta:`Fale com Especialista`,imageAlt:`Comunicação - Conscientização e governança`},metrics:{pill:`Gestão de Campanhas`,title:`Gerencie todas as comunicações em um só lugar`,description:`Crie, agende e acompanhe campanhas de comunicação para grupos específicos ou para toda a organização, com status em tempo real e histórico completo.`,highlights:[`Indicadores de entrega, abertura e leitura por campanha.`,`Visão consolidada por grupo, departamento e responsável.`,`Histórico completo de comunicados enviados e arquivados.`,`Status em tempo real: agendado, em progresso e finalizado.`],imageAlt:`Painel de Campanhas do módulo Comunicação BeePhish — listagem com responsável, grupos e status`,caption:`Painel de Campanhas — crie, busque e acompanhe o status de cada comunicação.`},pillars:{pill:`O que você pode comunicar`,title:`Todo tipo de comunicação que o time de segurança precisa enviar`,items:[{title:`Boas práticas de segurança`,description:`Reforce hábitos seguros no dia a dia com mensagens claras, objetivas e contextualizadas para cada público.`},{title:`Newsletter de Segurança`,description:`Envie conteúdos periódicos com novidades, dicas e atualizações do programa de segurança da informação.`},{title:`Alertas de ameaças do mercado`,description:`Comunique rapidamente ameaças emergentes (phishing, ransomware, fraudes) que podem impactar a organização.`},{title:`Comunicados de novos controles`,description:`Anuncie a implementação de políticas, controles e ferramentas de segurança para toda a empresa.`},{title:`Avisos institucionais`,description:`Manutenções, indisponibilidades programadas e qualquer comunicação que o time de segurança julgar necessária.`},{title:`Campanhas segmentadas`,description:`Direcione mensagens para grupos específicos — TI, gestores, departamentos ou toda a base de colaboradores.`}]},cta:`Fale com Especialista`},JO={hero:{badge:`Gestão de Risco Humano`,title:`Human Risk Management`,titleAcronym:`(HRM)`,leadBold:`O maior risco da sua empresa não é técnico.`,leadHighlight:`É humano.`,description:`Transforme comportamento em dados, dados em ação e ação em proteção real com o Human Risk Management da Beephish.`,cta:`Fale com Especialista`,imageAlt:`Human Risk Management`},intro:{official:`Definição pública oficial`,brand:{line1:`Unified`,line2:`Human Risk`,line3:`Index`,acronym:`UHRI`},p1:`O Unified Human Risk Index é uma métrica de cibersegurança comportamental projetada para medir o nível de exposição de identidades a ameaças de engenharia social e transformar o comportamento humano em inteligência de risco acionável para a organização.`,p2:`Ele permite que organizações tratem risco humano como um domínio mensurável de segurança, não apenas como atividade de treinamento.`,preview:{ariaLabel:`Conheça o UHRI em detalhes`,imageAlt:`Pré-visualização do dashboard executivo do Unified Human Risk Index`,live:`Live`,title:`Conheça o UHRI em detalhes`,subtitle:`Veja arquitetura, dimensões, cálculo e indicadores executivos.`,bullets:[`Score humano calculado a partir de Exposição, Comportamento e Contexto`,`Pipeline contínuo: Medir → Priorizar → Atuar`,`Indicadores executivos para comunicar risco humano à liderança`]},ctaButton:`Conheça o UHRI em detalhes`,objective:{imageAlt:`Visual do objetivo do Unified Human Risk Index`,label:`Objetivo do UHRI`},right:{p1:`Em vez de tratar pessoas como o elo mais fraco, você passa a medir, entender e reduzir o risco de cada usuário continuamente.`,p2:`A plataforma da Beephish transforma comportamento em métricas claras, permitindo decisões rápidas, inteligentes e preventivas.`,p3:`O Unified Human Risk Index permite que equipes de segurança:`,bullets:[`identifiquem identidades de alto risco`,`priorizem intervenções adaptativas`,`reduzam exposição a engenharia social`,`acompanhem evolução comportamental`,`comuniquem risco humano ao nível executivo`],callout:`Isso transforma conscientização em telemetria de risco.`,evolutionTitle:`Human Risk Management (HRM) é a evolução da segurança corporativa.`,p4:`A plataforma da Beephish transforma comportamento em métricas claras, permitindo decisões rápidas, inteligentes e preventivas.`,p5:`A transformação digital acelerada tornou os colaboradores o alvo primário de ataques cibernéticos em todo o mundo. O mercado corporativo brasileiro reconhece que a tecnologia de infraestrutura exige o complemento da educação contínua dos usuários. Compreender as melhores práticas de conscientização ajuda as organizações a protegerem seus ativos críticos contra ameaças modernas.`}},dashboard:{pill:`Dashboard Inteligente`,title:`Visibilidade total do risco humano`,description:`Acompanhe em tempo real o score de risco da sua organização, identifique pessoas ou departamentos com maior exposição e tome decisões baseadas em dados comportamentais.`,bullets:[`Score de risco baseado no comportamento real e impacto das pessoas`,`Flexibilidade de uso e integração com mais de 50 fontes de informações`,`Tendências e evolução ao longo do tempo`],live:`Live`,panelTitle:`HRM Dashboard`,uhri:`UHRI`,globalRisk:`Risco Global`,stats:{users:`Usuários analisados`,exposure:`Risco de Exposição`,critical:`Usuários críticos`,trained:`Treinamentos concluídos`},deptTitle:`Risco por Departamento`,evolutionTitle:`Evolução do Risco (últimas 8 semanas)`,evolutionStart:`8 sem atrás`,evolutionEnd:`Atual`,departments:{financeiro:`Financeiro`,comercial:`Comercial`,rh:`RH`,ti:`TI`,juridico:`Jurídico`,marketing:`Marketing`}},theme:{pill:`Experiência Personalizada`,title:`Interface que se adapta a você`,description:`Tudo em uma única plataforma, com uma dashboard clara, visual e acionável, interface amigável, personalização completa, leitura confortável e adaptação total a qualquer tela, a Beephish garante uma navegação fluida, do desktop ao mobile.`,imageAltDark:`Dashboard Beephish - Modo Escuro`,imageAltLight:`Dashboard Beephish - Modo Claro`,caption:`Acompanhe a redução de risco com dados e relatórios claros.`,benefits:[`Redução real de incidentes causados por erro humano`,`Visão clara e contínua do risco da empresa`,`Treinamentos mais eficientes e personalizados`,`Engajamento ativo da equipe`,`Decisões baseadas em dados, não em achismo`]},faq:{pill:`Perguntas Frequentes`,titlePrefix:`Perguntas frequentes sobre`,titleHighlight:`gestão de risco humano 2026`,description:`A transformação digital acelerada tornou os colaboradores o alvo primário de ataques cibernéticos em todo o mundo. O mercado corporativo brasileiro reconhece que a tecnologia de infraestrutura exige o complemento da educação contínua dos usuários. Compreender as melhores práticas de conscientização ajuda as organizações a protegerem seus ativos críticos contra ameaças modernas.`,loading:`Carregando perguntas frequentes`,empty:`Nenhuma pergunta disponível no momento.`,ariaLabel:`Perguntas frequentes sobre gestão de risco humano`,srCollapsed:` (recolhido, pressione Enter para expandir)`,srE
108xpanded:` (expandido, pressione Enter para recolher)`}},YO={hero:{back:`Voltar para Gestão de Risco Humano`,official:`Métrica oficial Beephish`,title:`Unified Human Risk Index`,acronym:`(UHRI)`,description:`A métrica de cibersegurança comportamental que mede o nível de exposição de identidades a ameaças de engenharia social e transforma o comportamento humano em inteligência de risco acionável.`,cta:`Fale com Especialista`,imageAlt:`Unified Human Risk Index`},definicao:{pill:`Definição pública oficial`,title:`Risco humano como domínio mensurável de segurança`,p1:`O Unified Human Risk Index é uma métrica de cibersegurança comportamental, que usa mais de 50 tipos de sinais de segurança, projetada para medir o nível de exposição de identidades a ameaças de engenharia social e transformar o comportamento humano em inteligência de risco acionável para a organização.`,p2:`Ele permite que organizações tratem risco humano como um domínio mensurável de segurança, não apenas como atividade de treinamento.`,objetivoTitle:`Objetivo do UHRI`,objetivoIntro:`O Unified Human Risk Index permite que equipes de segurança:`,objetivos:[`Identifiquem identidades de alto risco`,`Priorizem intervenções adaptativas`,`Reduzam exposição a engenharia social`,`Acompanhem evolução comportamental`,`Comuniquem risco humano ao nível executivo`],callout:`Isso transforma conscientização em telemetria de risco.`},arquitetura:{pill:`Arquitetura conceitual`,title:`Três dimensões observáveis do risco humano`,description:`O score resulta da correlação contínua entre Exposição, Comportamento e Contexto — cada uma representando um aspecto observável do risco humano organizacional.`,dimensoes:[{title:`Exposição`,subtitle:`Risco estrutural`,description:`Mede o quanto uma identidade está sendo alvo de ataques que não dependem diretamente do usuário.`},{title:`Comportamento`,subtitle:`Risco comportamental observável`,description:`Mede o comportamento do usuário no dia-a-dia e o quanto de atitudes de potencial risco ele gera nas tecnologias de segurança.`},{title:`Contexto`,subtitle:`Risco passivo`,description:`Mede o risco da pessoa baseada em quem ela é dentro da empresa: área, cargo, privilégios e dados acessados.`}]},dimensoes:{exposicao:{pill:`Dimensão 01`,title:`Exposição`,intro:`Mede o quanto uma identidade está sendo alvo de ataques que não dependem diretamente do usuário. Inclui sinais como:`,colType:`Tipo de Evento`,colExample:`Exemplo`,footer:`EVENTOS EXTERNOS QUE O USUÁRIO ESTÁ SENDO ALVO`,sinais:[{tipo:`Credential Leak`,exemplo:`E-mail corporativo encontrado em vazamento`},{tipo:`Compromise Alert`,exemplo:`Alerta do Entra ID de conta comprometida`},{tipo:`Malware detectado`,exemplo:`Endpoint com RAT identificado`},{tipo:`Ataque externo`,exemplo:`Brute force contra conta do usuário`},{tipo:`Tentativa de phishing`,exemplo:`E-mail de phishing real direcionado ao usuário`},{tipo:`Impossible Travel`,exemplo:`Login de dois países em minutos`}]},comportamento:{pill:`Dimensão 02`,title:`Comportamento`,intro:`Mede o comportamento do usuário no dia-a-dia e o quanto de atitudes de potencial risco ele gera nas tecnologias de segurança. Inclui sinais como:`,items:[`Interações com simulações de phishing`,`Submissão de credenciais em simulações`,`Tempo de reação a ataques simulados`,`Geração de alertas em tecnologias como DLP, CASB, EDR entre outros`],tag:`Risco comportamental observável`},contexto:{pill:`Dimensão 03`,title:`Contexto`,intro:`Mede o risco da pessoa baseada em quem ela é dentro da empresa. Inclui sinais como:`,items:[`Área`,`Cargo`,`Nível de privilégio`,`Acesso a dados sensíveis`],tag:`Risco passivo dos usuários`}},calculo:{pill:`Cálculo do score`,title:`Correlação ponderada de múltiplos sinais`,p1:`O Unified Human Risk Index é calculado a partir da correlação ponderada entre múltiplos sinais comportamentais, contextuais e identitários coletados continuamente ao longo da jornada de exposição a ataques como engenharia social e risco de erro operacional.`,p2:`O modelo utiliza dados balanceados das 3 dimensões aplicando metodologia proprietária que garante comparabilidade longitudinal entre identidades, departamentos e períodos.`,niveisTitle:`Níveis de risco`,niveisDescription:`O UHRI classifica exposição humana, individualmente em cada dimensão e sumarizada, em escala tangível e comparável ao longo do tempo. Essa classificação permite priorização automática de intervenções como treinamentos, ações de revisão de privilégios e monitoramento específico.`,mock:{title:`Visualização executiva`,live:`Live`,scoreLabel:`Human Risk Score`,trend:`Tendência: aumentando`,sparkPeriod:`Últimos 12 períodos`,sparkDelta:`+16 pts`,highRiskTitle:`Identidades de alto risco`,highRiskSubtitle:`Top tier do dashboard`,levels:{critical:`Crítico`,high:`Alto`,medium:`Médio`,low:`Baixo`},footer:`Conecta comportamento humano à linguagem de cyber risk corporativo.`}},camadas:{pill:`Camadas do UHRI`,title:`Visão multinível e longitudinal`,items:[{title:`Camada organizacional`,subtitle:`O score opera em múltiplos níveis`,items:[`Identidade`,`Departamento`,`Unidade de negócio`,`Organização`],footer:`Permite priorização estratég
108ica.`},{title:`Camada temporal`,subtitle:`Análise longitudinal contínua`,items:[`Redução de exposição`,`Efeito de intervenções`,`Mudanças comportamentais sustentadas`],footer:`Transforma o score em indicador de maturidade.`}]},pipeline:{pill:`Pipeline operacional`,title:`Um ciclo recorrente de redução de risco humano`,description:`O modelo segue três etapas principais que se transformam em um ciclo recorrente, entregando redução de risco humano de forma mensurável.`,etapas:[{step:`Medir`,description:`Identifica identidades com maior exposição comportamental.`,features:[`Coleta contínua de sinais`,`Visão por identidade e grupo`,`Baseline comparável`]},{step:`Priorizar`,description:`Classifica risco com base em impacto potencial e probabilidade.`,features:[`Ranking automatizado`,`Critérios ponderados`,`Foco em alto risco`]},{step:`Atuar`,description:`Ativa intervenções adaptativas baseadas em comportamento observado.`,features:[`Treinamentos direcionados`,`Revisão de privilégios`,`Monitoramento específico`]}],cycle:`Ciclo recorrente de melhoria contínua`},outputs:{pill:`Outputs derivados`,title:`Indicadores estratégicos alimentados pelo UHRI`,description:`O score alimenta indicadores adicionais que ampliam a leitura executiva do risco humano.`,items:[{title:`Human Attack Surface`,description:`Visibilidade da superfície de ataque humana.`},{title:`Probabilidade de exposição de credenciais`,description:`Antecipa o risco de comprometimento identitário.`},{title:`Risco de direcionamento a executivos`,description:`Detecta padrões de ataques voltados a alta liderança.`},{title:`Tendência de melhoria comportamental`,description:`Indicador longitudinal de evolução do risco.`},{title:`Potenciais insiders`,description:`Sinaliza identidades com comportamento atípico relevante.`}]},cta:{title:`Pronto para medir o risco humano da sua organização?`,description:`Fale com um especialista Beephish e descubra como o UHRI transforma comportamento em telemetria de risco acionável.`,primary:`Fale com Especialista`,secondary:`Voltar para HRM`}},XO={hero:{module:`Módulo de Gamificação`,titlePart1:`Transforme segurança em`,titleHighlight:`cultura`,description:`A gamificação da Beephish converte treinamentos obrigatórios em uma jornada competitiva, colaborativa e divertida — engajando toda a empresa em torno da segurança da informação.`,cta:`Fale com Especialista`,imageAlt:`Gamificação - Conscientização através de jogos`},intro:{pill:`O que é Gamificação`,title:`Aprender segurança virou um jogo`,imageAlt:`Painel de gamificação Beephish exibindo ranking, XP e níveis dos colaboradores`,p1:`Gamificação é o uso de mecânicas de jogos — pontos, rankings, desafios e recompensas — aplicadas a contextos reais. Na Beephish, ela acelera o aprendizado de boas práticas de segurança da informação e cria uma cultura contínua de conscientização.`,p2:`Em vez de treinamentos esquecíveis, sua equipe participa de uma jornada envolvente que reforça comportamentos seguros todos os dias.`},benefits:[{title:`+ Engajamento`,description:`Aumente a participação em treinamentos com mecânicas de jogo.`},{title:`+ Retenção`,description:`Aprendizado prático e contínuo que fixa o conhecimento.`},{title:`+ Adesão`,description:`Reduza o tempo de adesão a novas campanhas de segurança.`},{title:`+ Resultados`,description:`Acompanhe a evolução individual e coletiva por dashboards.`}],mechanics:{pill:`Mecânicas do Jogo`,title:`Os elementos que transformam o aprendizado`,description:`Combine mecânicas de jogo de forma estratégica para engajar diferentes perfis de colaboradores.`,items:[{title:`Ranking e Competição`,description:`Placares individuais e por equipes em tempo real estimulam a participação e o espírito de time.`},{title:`Conquistas e Badges`,description:`Reconheça boas práticas com medalhas e selos por treinamentos, simulados e marcos atingidos.`},{title:`Pontuação por Atividades`,description:`Cada simulado, treinamento e quiz gera pontos, destacando os colaboradores mais engajados.`},{title:`Desafios e Missões`,description:`Crie missões temáticas e sazonais para reforçar comportamentos seguros no dia a dia.`},{title:`Engajamento Coletivo`,description:`Transforme a segurança em um movimento cultural envolvendo departamentos e lideranças.`},{title:`Aprendizado Divertido`,description:`Conteúdos interativos e narrativos que tornam a conscientização leve e memorável.`}]},marketplace:{pill:`Marketplace Exclusivo`,title:`Recompensas reais para quem aprende`,p1Prefix:`Sua empresa pode contar com um `,p1Strong:`Marketplace exclusivo e totalmente customizado`,p1Suffix:`, onde os colaboradores trocam os pontos (XP) conquistados na gamificação por recompensas escolhidas pela sua organização.`,p2:`De brindes corporativos a vouchers, ingressos e experiências — o catálogo é definido por você, reforçando a cultura de segurança com reconhecimento tangível. Módulo opcional, contratado conforme a necessidade do seu projeto.`,imageAlt:`Marketplace Beephish exibindo catálogo customizado de recompensas para troca por XP`},journey:{pill:`Como Funciona`,title:`Da configuração ao reconhecimento`,steps:[{step:`01`,title:`Configure a campanha`,description:`Defina objetivos, equipes participantes, regras de pontuação e o período de duração.`},{step:`02`,title:`Engaje os colaboradores`,description:`Lance treinamentos, simulados e desafios. Cada interação gera pontos e desbloqueia conquistas.`},{step:`03`,title:`Acompanhe em tempo real`,description:`Visualize rankings, badges conquistados e indicadores de evolução por área e por usuário.`},{step:`04`,title:`Reconheça e fortaleça a cultura`,description:`Premie destaques, comunique resultados e transforme segurança em hábito permanente.`}],ctaTitle:`Pronto para transformar a segurança da sua empresa em uma jornada envolvente?`,cta:`Fale com Especialista`}},ZO={hero:{imageAlt:`Plataforma Beephish`,badge:`Plataforma completa`,title1:`Capacitação contínua.`,title2:`Dad
108os acionáveis.`,title3:`Segurança real.`,description:`Simulações, treinamentos, comunicação e relatórios integrados para criar uma verdadeira cultura de segurança na sua organização.`,ctaSpecialist:`Fale com Especialista`,ctaSolutions:`Ver soluções`},alternating:{rows:[{imageAlt:`Dashboard da plataforma Beephish`,title:`Dados, ações e resultados. Sem complicação`,description:`A plataforma da Beephish organiza tudo em uma dashboard simples, inteligente e pronta para uso. Dados, treinamentos e relatórios em uma dashboard envolvente, facilitando decisões rápidas e assertivas.`},{imageAlt:`Tela de comunicação e campanhas ativas`,title:`Segurança começa com comunicação clara e constante`,description:`Na Beephish, levamos isso a sério com campanhas ativas que educam, engajam e mantêm sua equipe sempre um passo à frente das ameaças.`,ctaLabel:`Saiba Mais`},{imageAlt:`Gestão do Risco Humano`,titlePrefix:`Human Risk Management`,titleAcronym:`(HRM)`,description:`O risco não está no sistema. Está nas pessoas. Gerencie isso. Com HRM, você identifica, mede e reduz o risco humano antes que ele vire um problema real.`,ctaLabel:`Saiba Mais`}]},features:{title:`Funcionalidades principais`,subtitle:`Ferramentas poderosas para educar, testar e acompanhar a evolução da sua equipe.`,items:[{title:`Simulações de Phishing`,description:`Testes realistas via e-mail, SMS, QR Code e pendrive com templates customizáveis.`},{title:`Comunicação Multicanal`,description:`Integração com Slack, Teams, Google Chat, WhatsApp e E-mail.`},{title:`Segmentação Avançada`,description:`Grupos personalizados por departamento, cargo ou nível de risco.`},{title:`Dashboard Executivo`,description:`Relatórios visuais com insights por colaborador, área e tendências.`},{title:`Compliance Integrado`,description:`Conteúdos alinhados com ISO 27001, PCI-DSS e LGPD.`},{title:`Automação Inteligente`,description:`Campanhas recorrentes e gatilhos automáticos baseados em comportamento.`}]},mobile:{badge:`Acesso Mobile`,titlePrefix:`Todos os recursos disponíveis no App`,titleBrand:`BEEPHISH`,p1:`Acompanhe as informações com métricas que realmente interessam, esteja próximo de relatórios abrangentes com estatísticas e análises úteis.`,p2:`Conhecimento de segurança à todos, treinamentos, governança, comunicação e c
108onformidade na palma de suas mãos.`},analysis:{eyebrow:`ANÁLISE ABRANGENTE`,title:`Métricas e Relatórios da Campanha`,p1:`Relatórios detalhados que fornecem insights valiosos e ajudam a melhorar continuamente suas defesas.`,p2:`Com Beephish, você treina, testa e fortalece a segurança da sua empresa de maneira simples e eficaz`,items:[`Nível de risco de segurança da informação`,`Economia de Tempo e Recursos`,`Relatórios executivo e técnico`,`Automatização de treinamento e análise`,`Análise de dados por campanha, grupo e usuário`,`Timeline por colaborador`]},benefits:{title:`Por que escolher a Beephish?`,subtitle:`Uma plataforma desenvolvida por especialistas brasileiros, para a realidade das empresas brasileiras.`,cta:`Fale com Especialista`,items:[`Resultados visíveis desde o primeiro mês`,`Suporte próximo e em português`,`Implementação em menos de 1 semana`,`Custo acessível para empresas de todos os tamanhos`,`Conteúdos adaptados à realidade brasileira`,`Atualizações constantes de ameaças`]},ctaAbout:{titlePrefix:`Conheça quem está por trás da`,titleBrand:`Beephish`,description:`Somos especialistas brasileiros em segurança da informação, dedicados a proteger pessoas e organizações contra ameaças digitais.`,cta:`Conheça nossa história`}},QO={hero:{imageAlt:`Equipe Beephish`,badge:`Quem Somos`,titleLine1:`Nascemos de quem `,titleLine2:`viveu o problema`,subtitle:`Décadas de experiência em segurança da informação nas maiores empresas do Brasil, transformadas em uma plataforma que faz a diferença.`,cta:`Falar com Especialista`},stats:{users:`Usuários treinados`,companies:`Empresas atendidas`,experience:`Anos de experiência somados`},mission:{quote:`Conscientização precisa deixar de ser exceção e se tornar cultura.`,description:`Enquanto investimos milhões em tecnologia de segurança, ainda é o comportamento humano que define a vulnerabilidade: um clique, uma senha fraca, um e-mail aberto. A Beephish nasceu para mudar essa realidade, criando uma plataforma brasileira que transforma conscientização em cultura organizacional.`},founders:{pill:`Liderança`,title:`Quem está por trás da Beephish`,subtitle:`Décadas de experiência em segurança nas maiores empresas do Brasil, unidos pela missão de transformar a cultura de segurança.`,linkedinCta:`Ver perfil no LinkedIn`,items:{glauco:{name:`Glauco Sampaio`,role:`Fundador`,bio:`25+ anos de experiência em riscos digitais e segurança da informação. Ex-CISO em empresas como Cielo, Banco Original e Editora Abril. Especialista em governança de segurança e gestão de riscos corporativos.`},bruno:{name:`Bruno Kaique`,role:`Fundador`,bio:`10+ anos de experiência em Segurança da Informação com passagens por grandes instituições financeiras como Cielo, Banco Pan, Itaú e Bradesco. 
109
110Gerente de Serviços especializado em implementação de plataformas de conscientização.`}}},advisors:{pill:`Conselho`,title:`Advisors`,subtitle:`Especialistas de referência que fortalecem nossa visão estratégica e a evolução da plataforma.`,linkedinCta:`Ver perfil no LinkedIn`,items:{cassio:{name:`Cassio Sampaio`,role:`Advisor`,bio:`Executivo de tecnologia com mais de 20 anos de experiência internacional em cibersegurança, cloud e Identity & Access Management (IAM). Atuou na liderança de produtos em empresas como Apple, Auth0/Okta, DigitalOcean e Aiven, com forte expertise em plataformas SaaS globais e arquitetura de segurança.`},nycholas:{name:`Nycholas Szucko`,role:`Advisor`,bio:`Comunicador, empreendedor e co-fundador da Verta, c
110om passagens por Cisco, Nozomi, FireEye e Forescout. Conselheiro em empresas como Netskope, UNINTER, GoChange, Nutralider, BeePhish e Dfense, é também diretor de comunicação da Diversity on Boards e cofundador do podcast Conselho & Conselheiros.`}}},values:{pill:`Valores`,title:`Nossos valores`,items:{culture:{title:`Segurança como cultura`,description:`Acreditamos que segurança não é campanha anual, mas compromisso diário.`},results:{title:`Foco em resultados`,description:`Desenvolvemos soluções práticas que geram resultados mensuráveis.`},excellence:{title:`Excelência brasileira`,description:`Criamos tecnologia de ponta adaptada à realidade do Brasil.`}},footerLine1:`Nossos valores não são discurso, são prática diária, estão em cada simulação enviada, em cada treinamento aplicado e em cada decisão tomada para reduzir o risco humano dentro das empresas.`,footerLine2:`No fim, segurança não é sobre sistemas. É sobre comportamento.`,footerHighlight:`E é exatamente aí que a gente atua.`},practice:{pill:`Valores na prática`,titlePart1:`Como nossos valores`,titlePart2:`se traduzem no dia a dia`,subtitle:`Mais do que princípios, são ações concretas que reduzem o risco humano e fortalecem a cultura de segurança nas empresas.`,items:{simulations:{title:`Simulações realistas`,description:`Campanhas de phishing que refletem ameaças reais enfrentadas pelas empresas brasileiras.`},training:{title:`Treinamentos contínuos`,description:`Conteúdos curtos, práticos e aplicáveis, distribuídos ao longo do ano para fixação real.`},monitoring:{title:`Monitoramento ativo`,description:`Acompanhamento constante do comportamento e da evolução da maturidade dos colaboradores.`},data:{title:`Decisões com dados`,description:`Indicadores claros que apoiam diretores e times de segurança na tomada de decisão.`}}}},$O={hero:{imageAlt:`Parceiros Beephish`,badge:`Nossos Parceiros`,titleLine1:`CREDIBILIDADE + `,titleLine2:`SEGURANÇA`,subtitle:`Parceiros que compartilham o mesmo compromisso: segurança, confiança e maturidade digital.`,stats:{phishing:`de todos os e-mails de phishing são involuntariamente abertos pelos usuários.`,breaches:`de todas as violações de dados são causadas por erro humano.`,organizations:`de todas as organizações foram atingidas por alguma tentativa de phishing.`}},regions:{all:`Todas as regiões`,sudeste:`Sudeste`,sul:`Sul`,nordeste:`Nordeste`,"centro-oeste":`Centro-Oeste`,norte:`Norte`,internacional:`Internacional`},list:{partnerSingular:`parceiro`,partnerPlural:`parceiros`,empty:`Nenhum parceiro encontrado nesta região.`,logoFallback:`Logo`,logoAlt:`Logo {{name}}`,visitSite:`Visitar site`}},ek={hero:{titlePart1:`Empresas que `,titleHighlight:`confiam`,subtitle:`Organizações de diversos setores e tamanhos protegem seus colaboradores com a plataforma Beephish.`},stats:{companies:`Empresas`,employees:`Colaboradores`,simulations:`Simulações`,satisfaction:`Satisfação`},list:{title:`Nossos clientes`,clientLabel:`Cliente {{number}}`},cta:{title:`Junte-se a eles`,subtitle:`Comece a proteger sua empresa hoje mesmo com a Beephish.`,button:`Fale com Especialista`}},tk={hero:{badge:`Seja um Parceiro`,titlePart1:`Como se tornar um `,titleHighlight:`parceiro`,subtitle:`Junte-se à nossa rede e leve segurança para mais empresas. Faça parte de um ecossistema comprometido com a proteção digital.`},section:{badge:`Seja um Parceiro`,title:`Quer ser um parceiro?`,description:`Junte-se à nossa rede de parceiros e leve segurança para mais empresas. Faça parte de um ecossistema comprometido com a proteção digital.`,benefits:{materials:`Acesso a materiais exclusivos de vendas`,support:`Suporte técnico e comercial dedicado`,commissions:`Comissões competitivas`,training:`Treinamentos e certificações`},mobileHint:`Preencha o formulário ao lado`,formTitle:`Seja um parceiro`}},nk={common:{searchPlaceholder:`Buscar...`,searchAria:`Buscar`,filterAll:`Todos`,noImage:`Sem imagem`,emptyDefault:`Em breve: novos conteúdos.`,emptyCategory:`Nenhum item encontrado na categoria "{{category}}".`,previous:`Anterior`,next:`Próximo`,notFound:`Conteúdo não encontrado.`,dateLocale:`pt-BR`},blog:{title:`Blog`,subtitle:`Artigos e novidades sobre segurança da informação`,backLabel:`Voltar ao blog`,siteName:`Beephish Blog`,notFound:`Post não encontrado.`}
110,news:{title:`Notícias`,subtitle:`Últimas novidades em segurança da informação`,backLabel:`Voltar às notícias`,siteName:`Beephish Notícias`,sourcePrefix:`Fonte:`,readSource:`Ler na fonte original`},webinars:{title:`Webinars`,subtitle:`Eventos online sobre segurança da informação`,backLabel:`Voltar aos webinars`,siteName:`Beephish Webinars`,watchYoutube:`Assistir no YouTube`},podcasts:{title:`Podcasts`,subtitle:`Ouça nossos episódios sobre segurança e cultura cibernética`,backLabel:`Voltar aos podcasts`,siteName:`Beephish Podcasts`,episodeShort:`Ep. {{number}}`,episodeLong:`Episódio {{number}}`,listenYoutube:`Ouvir no YouTube`},useCases:{title:`Casos de Uso`,subtitle:`Exemplos práticos de como nossos clientes utilizam a plataforma`,backLabel:`Voltar aos casos de uso`,siteName:`Beephish Casos de Uso`},media:{title:`Mídia`,subtitle:`Notícias, matérias e coberturas sobre segurança da informação e a Beephish`,backLabel:`Voltar para Mídia`,siteName:`Beephish Mídia`,sourcePrefix:`Fonte:`,readSource:`Ler na fonte original`}},rk={downloadPdf:`Baixar PDF`,generatingPdf:`Gerando...`,version:`Versão {{version}}`,lastUpdate:`Última atualização: {{date}}`,dateLocale:`pt-BR`,privacy:{fallbackTitle:`Política de Privacidade`,fallbackMessage:`A política de privacidade está sendo elaborada e será disponibilizada em breve.`,pdfFilename:`politica-privacidade-v{{version}}`},terms:{fallbackTitle:`Termos de Uso`,fallbackMessage:`Os termos de uso estão sendo elaborados e serão disponibilizados em breve.`,pdfFilename:`termos-de-uso-v{{version}}`},history:{title:`Histórico de Versões`,view:`Visualizar`,publishedOn:`Publicado em {{date}}`,versionLabel:`Versão {{version}}`}},ik={common:{selectPlaceholder:`Selecione...`,sending:`Enviando...`,optional:`opcional`},validation:{nameMin:`Nome deve ter pelo menos 2 caracteres`,nameMax:`Nome deve ter no máximo 100 caracteres`,emailInvalid:`E-mail inválido`,emailMax:`E-mail deve ter no máximo 255 caracteres`,phoneMin:`Telefone deve ter pelo menos 10 dígitos`,phoneMax:`Telefone deve ter no máximo 20 caracteres`,phoneInvalid:`Telefone inválido`,companyMin:`Empresa deve ter pelo menos 2 caracteres`,companyMax:`Empresa deve ter no máximo 100 caracteres`,positionMin:`Cargo deve ter pelo menos 2 caracteres`,positionMax:`Cargo deve ter no máximo 100 caracteres`,messageMax:`Mensagem deve ter no máximo 1000 caracteres`,cnpjRequired:`CNPJ é obrigatório`,cnpjInvalid:`CNPJ inválido`,companyTypeRequired:`Selecione o tipo de empresa`,companySizeRequired:`Selecione o tamanho da empresa`,regionRequired:`Selecione a região de atuação`,whatsappInvalid:`WhatsApp deve ter 10 (fixo) ou 11 (celular) dígitos`},contact:{defaultTitle:`Falar com Especialista`,successTitle:`Mensagem enviada!`,successMessage:`Entraremos em contato em breve.`,successToast:`Mensagem enviada com sucesso!`,errorToast:`Erro ao enviar mensagem. Tente novamente.`,fields:{name:`Nome completo`,namePlaceholder:`Seu nome`,email:`E-mail corporativo`,emailPlaceholder:`[email protected]`,phone:`Telefone`,phonePlaceholder:`(11) 99999-9999`,company:`Empresa`,companyPlaceholder:`Nome da empresa`,messageOptional:`Mensagem (opcional)`,messagePlaceholder:`Como podemos ajudar?`},submit:`Enviar mensagem`},partner:{defaultTitle:`Seja um parceiro`,successTitle:`Solicitação enviada!`,successMessage:`Nossa equipe entrará em contato em breve para discutir a parceria.`,successToast:`Solicitação enviada com sucesso!`,errorToast:`Erro ao enviar solicitação. Tente novamente.`,fields:{name:`Nome completo`,namePlaceholder:`Seu nome`,position:`Cargo`,positionPlaceholder:`Seu cargo`,email:`E-mail corporativo`,emailPlaceholder:`[email protected]`,phone:`Telefone`,phonePlaceholder:`(11) 99999-9999`,company:`Nome da empresa`,companyPlaceholder:`Nome da sua empresa`,cnpj:`CNPJ`,cnpjPlaceholder:`00.000.000/0000-00`,companyType:`Tipo de empresa`,companySize:`Tamanho da empresa`,region:`Região de atuação`,messageOptional:`Mensagem (opcional)`,messagePlaceholder:`Conte-nos mais sobre sua empresa e interesse na parceria...`},submit:`Enviar solicitação`,notes:{cnpj:`CNPJ`,companyType:`Tipo de empresa`,size:`Tamanho`,region:`Região`,message:`Mensagem`},companyTypes:{reseller:`Revenda`,integrator:`Integrador`,consultant:`Consultoria`,msp:`MSP / MSSP`,distributor:`Distribuidor`,other:`Outro`},companySizes:{"1-10":`1 a 10 funcionários`,"11-50":`11 a 50 funcionários`,"51-200":`51 a 200 funcionários`,"201-500":`201 a 500 funcionários`,"500+":`Mais de 500 funcionários`},regions:{sudeste:`Sudeste`,sul:`Sul`,nordeste:`Nordeste`,"centro-oeste":`Centro-Oeste`,norte:`Norte`,internacional:`Internacional`}}
110,techPartner:{defaultTitle:`Quero ser parceiro tecnológico`,successTitle:`Solicitação enviada!`,successMessage:`Nossa equipe entrará em contato em breve.`,successToast:`Solicitação enviada com sucesso!`,errorToast:`Erro ao enviar. Tente novamente.`,fields:{name:`Nome completo`,namePlaceholder:`Seu nome`,email:`E-mail corporativo`,emailPlaceholder:`[email protected]`,company:`Empresa`,companyPlaceholder:`Nome da empresa`,websiteOptional:`Website (opcional)`,websitePlaceholder:`https://...`,phone:`Telefone`,phonePlaceholder:`(00) 00000-0000`,ramal:`Ramal`,ramalPlaceholder:`Opcional`,whatsapp:`WhatsApp de contato`,whatsappPlaceholder:`(00) 90000-0000`,integrationOptional:`Sobre a integração desejada (opcional)`,integrationPlaceholder:`Conte-nos como sua tecnologia pode integrar com a BeePhish...`},submit:`Enviar solicitação`,notes:{website:`Website`,whatsapp:`WhatsApp`,message:`Mensagem`,extension:`ramal`}},gone:{title:`Página removida — BeePhish`,label:`410 — Gone`,heading:`Esta página foi removida`,message:`O conteúdo de <code>/solucoes/</code> foi reorganizado e agora vive em <code>/plataforma/</code>. Esta URL específica não existe mais.`,ctaPlatform:`Ir para Plataforma`,ctaHome:`Página inicial`}},ak={nav:{back:`Voltar`,next:`Continuar`,loading:`Processando…`,seeResult:`Ver meu resultado`},states:{loading:`Carregando o diagnóstico…`,error:`Não foi possível carregar o diagnóstico. Tente novamente em instantes.`},steps:{triagem:{title:`Sobre a sua empresa`,description:`Quatro perguntas rápidas para contextualizar o diagnóstico. Não entram no cálculo do score.`},nucleo:{title:`Fundamentos de risco humano`,description:`Estas oito perguntas geram o seu score comparável. Responda considerando a situação atual, não a planejada.`},modulo:{title:`Aprofundamento`,description:`Perguntas selecionadas a partir das suas respostas anteriores.`},adaptativas:{title_one:`Última verificação rápida`,title_other:`Últimas verificações rápidas`,description_one:`Não afeta o score — ajuda a tornar as recomendações mais específicas ao seu contexto.`,description_other:`Não afetam o score — ajudam a tornar as recomendações mais específicas ao seu contexto.`}},partial:{eyebrow:`Seu resultado`,sansEquivalent:`Equivalente SANS`,capTitle:`Seu score foi limitado`,capBody:`O resultado foi limitado a {{ceiling}} pontos por ausência de um controle fundamental ({{causes}}). Sem essa base, os demais controles operam sobre um alicerce frágil — e o score não reflete maturidade real.`,gapTitle:`Sua lacuna mais crítica`,unlockTitle:`O relatório completo inclui`,locked:[`Detalhamento por pergunta, com o peso de cada item`,`Seu perfil no módulo complementar`,`Mapeamento com SANS e ISO/IEC 27001`,`Recomendações práticas para cada lacuna identificada`],unlockCta:`Receber o relatório completo`,benchmarkLine:`{{share}}% dos programas estão neste mesmo estágio.`},gate:{title:`Receba o relatório completo`,subtitle:`Saber onde você está é metade do diagnóstico. O relatório completo mostra o caminho.`,fields:{email:`E-mail corporativo`,name:`Nome`,phone:`Telefone`,company:`Empresa`,position:`Cargo`},consent:{report:`Autorizo o uso do meu e-mail para envio do relatório completo deste diagnóstico de maturidade em risco humano.`,commercial:`Aceito receber contato comercial da Beephish sobre produtos e soluções relacionados a este diagnóstico.`},errors:{email:`Informe um e-mail válido.`,consentRequired:`Precisamos da sua autorização para enviar o relatório.`,generic:`Não foi possível liberar o relatório agora. Tente novamente em instantes.`,freeEmail:`Use seu e-mail corporativo. E-mails pessoais (Gmail, Hotmail, Outlook etc.) não são aceitos.`},privacyPrefix:`Ao continuar, você concorda com nossa`,privacyLink:`Política de Privacidade`,dpoNotice:`Seus dados podem ser excluídos a qualquer momento mediante solicitação ao nosso Encarregado de Dados (DPO) em [email protected].`,submit:`Liberar relatório`},report:{eyebrow:`Relatório completo`,profileTitle:`Perfil no módulo complementar`,profiles:{cultura:{low:`Cultura Incipiente`,mid:`Cultura em Formação`,high:`Cultura Estabelecida`},avancado:{low:`Gestão Reativa`,mid:`Gestão Estruturada`,high:`Gestão Proativa`}},breakdownTitle:`Detalhamento por pergunta`,weight:`Peso`,recommendationsTitle:`Recomendações`,profileDescriptions:{cultura:{low:`As ações de conscientização ainda são pontuais e dependem de iniciativa individual. O comportamento seguro acontece quando acontece, sem sustentação do ambiente.`,mid:`Já existem práticas recorrentes, mas desiguais entre áreas e sem reforço contínuo. A cultura se apoia mais no programa do que no hábito das pessoas.`,high:`Segurança faz parte do repertório do dia a dia: as pessoas sabem o que fazer, reportam sem receio e o tema se mantém vivo entre os ciclos formais de treinamento.`},avancado:{low:`O programa responde a eventos depois que eles acontecem. Falta instrumentação para antecipar exposição e priorizar quem está sob maior risco.`,mid:`Há processo e recorrência nos controles, mas a leitura de risco ainda é agregada — trata todo mundo igual, quando o risco nunca é uniforme.`,high:`Os controles operam de forma contínua e segmentada por risco, com revisão periódica. A gestão antecipa exposição em vez de reagir a incidente.`}},benchmarkTitle:`Benchmark de mercado`,benchmarkSameStage:`{{share}}% dos programas estão neste mesmo estágio.`,benchmarkAhead:`Você está à frente de {{ahead}}% do mercado.`,benchmarkLowest:`A maioria do mercado já avançou para além deste estágio.`,benchmarkSource:`Distribuição de estágios — SANS Security Awareness Report 2026.`},qualification:{title:`Quer recomendações mais específicas?`,intro:`Opcional — se quiser que nosso time direcione recomendações mais específicas ao seu contexto, responda mais 3 perguntas rápidas.`,skip:`Agora não`,submit:`Enviar`,thanks:`Obrigado. Suas respostas ajudam nosso time a direcionar melhor as re
110comendações.`},intro:{eyebrow:`Diagnóstico gratuito`,title:`Onde sua empresa está em maturidade de risco humano?`,lead:`Você sabe o quanto sua empresa está preparada para lidar com o fator humano como parte da estratégia de segurança?`,description:`Descubra em apenas 5 minutos. Nossa autoavaliação gera um score de maturidade de 0 a 100, indica o nível correspondente no SANS Security Awareness Maturity Model e mostra onde estão as principais lacunas e quais caminhos priorizar para avançar.`,steps:{title:`Como funciona`,intro:`Você responde a 3 blocos de perguntas de múltipla escolha, avaliando o estágio atual das principais práticas de gestão do risco humano. A partir das suas respostas, você receberá uma visão objetiva do seu nível de maturidade e dos pontos que mais impactam a evolução da sua estratégia de Risco Humano.`,items:[{title:`Contexto`,body:`Porte, estrutura de segurança e histórico de incidentes não influenciam o cálculo do score. Ajudam na interpretação do resultado.`},{title:`Fundamentos`,body:`MFA, controle de acesso, treinamento, phishing, resposta a incidentes, indicadores para a liderança e governança de IA generativa. Este é o bloco que compõe o score, com pesos definidos de acordo com a criticidade de cada componente.`},{title:`Aprofundamento`,body:`Selecionadas com base nas suas respostas anteriores. Quem já realiza campanhas periódicas recebe perguntas diferentes de quem ainda está começando.`}]},result:{title:`O que você recebe`,free:{title:`Na tela, sem cadastro`,items:[`Seu score de 0 a 100 e a faixa de maturidade`,`O nível equivalente no SANS Security Awareness Maturity Model`,`A lacuna mais crítica do seu programa, identificada e nomeada`,`O aviso de limite, quando um controle fundamental estiver ausente`]},gated:{title:`Por e-mail, se você quiser`,items:[`Detalhamento pergunta a pergunta, com o peso de cada item`,`Seu perfil com aprofundamento, com uma visão mais detalhada da sua maturidade`,`Mapeamento com o SANS e a ISO/IEC 27001 (Anexo A), conectando as práticas avaliadas aos principais referenciais de segurança`,`Recomendações práticas para cada lacuna identificada, indicando caminhos para evoluir sua maturidade`]}},honesty:{title:`O que este diagnóstico não é`,paragraphs:[`Este diagnóstico é baseado exclusivamente nas informações declaradas por você e não envolve qualquer verificação técnica. Como toda autoavaliação, os resultados podem refletir uma percepção mais otimista da realidade.`,`Por isso, ele não substitui uma auditoria formal nem o UHRI, índice de risco humano calculado pela Beephish a partir de sinais reais da plataforma, como dados de phishing, DLP e SIEM.`,`Seu objetivo é identificar pontos de atenção e orientar prioridades, e não atestar conformidade ou representar uma avaliação técnica definitiva.`]},cta:`Começar o diagnóstico`,ctaNote:`Leva cerca de 5 minutos. Você confere seu score antes de decidir se quer acessar o relatório completo.`,privacy:`As respostas do questionário referem-se a características da sua organização e não constituem dado pessoal sensível. Nome, e-mail, empresa e cargo, quando informados, são tratados conforme a Lei Geral de Proteção de Dados, com base no seu consentimento, e podem ser excluídos a qualquer momento por solicitação ao nosso Encarregado de Dados em [email protected].`},identificacao:{title:`Antes de começar`,lead:`O relatório completo é enviado por e-mail ao final. Informe seus dados para receber o seu.`,nameLabel:`Nome`,emailLabel:`E-mail corporativo`,phoneLabel:`Telefone (opcional)`,phonePlaceholder:`(11) 98765-4321`,companyLabel:`Empresa`,consent:`Autorizo o uso do meu e-mail para envio do relatório completo deste diagnóstico de maturidade em risco humano.`,nameError:`Informe seu nome para continuar.`,emailError:`Informe um e-mail válido para continuar.`,companyError:`Informe o nome da empresa para continuar.`,consentError:`Precisamos da sua autorização para usar o e-mail informado.`,genericError:`Não foi possível iniciar o diagnóstico agora. Tente novamente em instantes.`,submit:`Começar`,note:`O cargo só será pedido ao final, e é opcional. Contato comercial é autorização à parte, que você decide depois de ver o resultado.`,freeEmailError:`Use seu e-mail corporativo. E-mail
110s pessoais (Gmail, Hotmail, Outlook etc.) não são aceitos.`}},ok={hero:{title:`Fale com a BeePhish`,subtitle:`Converse com nosso time sobre gestão de risco humano, simulações de phishing e treinamentos de conscientização em segurança da informação. Respondemos todas as solicitações comerciais em até um dia útil.`},about:{title:`Quem somos`,description:`A BeePhish é uma plataforma SaaS brasileira de Gestão de Risco Humano (Human Risk Management). Atuamos em três pilares — educar, testar e monitorar — para transformar o comportamento dos colaboradores em um pilar de controle de segurança. Já treinamos mais de 100.000 usuários em mais de 50 empresas, com fundadores que somam décadas de experiência em segurança da informação em grandes organizações brasileiras. A plataforma é aderente à LGPD e está disponível via web e aplicativo mobile.`},channels:{title:`Canais de atendimento`,items:[{name:`Comercial e novas propostas`,description:`Envie o formulário desta página ou escreva para [email protected]. Nosso time comercial retorna com uma conversa de diagnóstico, sem compromisso, para entender o cenário da sua organização.`},{name:`Suporte a clientes`,description:`Clientes ativos são atendidos pelo canal de suporte informado no onboarding e pela central em support.beephish.com.`},{name:`Parcerias`,description:`Empresas interessadas em revender ou integrar a BeePhish devem usar a página Seja um Parceiro, que direciona o cadastro para o time de canais.`},{name:`Privacidade e LGPD`,description:`Solicitações de titulares de dados, previstas na Lei 13.709/2018, devem ser enviadas para [email protected] com o assunto LGPD. O tratamento completo está descrito na nossa Política de Privacidade.`}]},company:{title:`Dados da empresa`,items:[`Razão social: BeePhish`,`E-mail: [email protected]`,`Sede: São Paulo, SP — Brasil`,`Idiomas de atendimento: português e inglês`,`Site oficial: https://beephish.com`]},expect:{title:`O que acontece depois do envio`,description:`Ao enviar o formulário, seus dados vão direto para o nosso CRM e um especialista entra em contato para entender o momento do seu programa de conscientização. Se preferir uma leitura objetiva antes da conversa, você pode responder ao Diagnóstico de Maturidade em Risco Humano e receber um relatório com o retrato atual da sua organização.`},form:{heading:`Fale com um especialista`}},sk={cta:{assessment:`Free Assessment`,specialist:`Talk to a Specialist`,knowOurStory:`Learn our story`,learnMore:`Explore this solution`},nav:{sections:{empresa:`Company`,plataforma:`Platform`,cases:`Cases`,parceiros:`Partners`,recursos:`Resources`},empresa:{historia:{title:`About Us`,description:`Learn about our journey`},valores:{title:`Mission, Vision & Values`,description:`What drives us as a company`},especialista:{title:`Talk to a Specialist`,description:`Get in touch with us`},carreira:{title:`Careers`,description:`Opportunities at Beephish`}},plataforma:{risco:{title:`Human Risk`,description:`Behavioral intelligence`},comunicacao:{title:`Communication`,description:`Effective security communication`},phishing:{title:`Phishing`,description:`Realistic phishing simulations`},gamificacao:{title:`Gamification`,description:`Gamification in security`},treinamentos:{title:`Training`,description:`Learning paths`}},cases:{descricao:{title:`Case studies`,description:`Success stories from our customers`},avaliacoes:{title:`Public reviews`,description:`Reviews on Gartner Peer Insights`}},parceiros:{programa:{title:`Channel program`,description:`Discover our partner program`},buscar:{title:`Find a partner`,description:`Find a Beephish partner`},tornarse:{title:`Become a partner`,description:`Join our ecosystem`},tecnologicos:{title:`Technology partners`,description:`Integrations and tech ecosystem`}},recursos:{midia:{title:`Media`,description:`News, articles and coverage about Beephish`},blog:{title:`Blog`,description:`Articles and insights`},webinars:{title:`Webinars`,description:`Online events on security`},podcasts:{title:`Podcasts`,description:`Listen to our episodes`},casos:{title:`Use cases`,description:`Practical examples of the platform`}},ariaToggle:`Toggle menu`,ariaClose:`Close menu`,ariaLoading:`Loading menu`},footer:{tagline:`Brazilian security awareness and phishing simulation platform. Turning human behavior into the first line of defense.`,rights:`© {{year}} Beephish. All rights reserved.`,legal:{privacy:`Privacy Policy`,terms:`Terms of Use`},bhrsDetail:`UHRI in detail`,languageAria:`Select language`,cookieSettings:`Cookie settings`},language:{pt:`Português`,en:`English`,ptShort:`PT`,enShort:`EN`},skipToContent:`Skip to main content`,contactSection:{eyebrow:`Contact`,title:`Let's talk?`,description:`Get to know our platform and discover how we can help your company turn security into culture.`,bullets:{demo:`Personalized platform demo`,analysis:`Free assessment of your current scenario`,proposal:`Tailored proposal for your company`}},notFound:{title:`404 — Page not found | BeePhish`,heading:`404`,message:`Oops! Page not found`,back:`Return to Home`},cookieBanner:{ariaLabel:`Cookie notice`,message:`We use cookies to measure campaign performance and improve your experience. In Brazil, advertising cookies are only activated if you accept.`,learnMore:`Learn more in the Privacy Policy`,accept:`Accept`,reject:`Reject`}}
110,ck={hero:{title1:`Security starts`,title2a:`with `,title2b:`trained people`,subtitle:`While we invest millions in technology, human behavior still defines vulnerability: a click, a weak password, an opened email.`},stats:{users:`Users on the platform`,companies:`Companies served`,riskReduction:`Risk reduction`,headlineA:`Turn human behavior into a `,headlineB:`security control pillar`,subHeadline:`Solutions for companies of all sizes and industries`},solution:{pill:`Brazilian solution`,titleA:`Pragmatic, accessible, `,titleB:`built for you`,lead:`Beephish was built by people who lived the problem and found the solution. Our platform was developed by professionals with decades of experience in information security at Brazil's largest companies.`,features:{brasil:{title:`Always up-to-date solution`,description:`Content and simulations connected to reality and modern attacks.`},suporte:{title:`Close support`,description:`A Brazilian team ready to help, with no time-zone barriers.`},rapido:{title:`Fast implementation`,description:`Start seeing results from the very first month.`},custo:{title:`Affordable cost`,description:`Fair pricing for companies of every size.`}},founders:{glauco:`25+ years in digital risk. 
111Former CISO at companies like Cielo, Banco Original and Editora Abril.`,bruno:`10+ years in Information Security. 
112Experience at Cielo, Banco Pan, Itaú and Bradesco.`},linkedinAria:`{{name}}'s LinkedIn`},method:{title:`How we work`,subtitle:`Awareness must stop being the exception and become culture.`,pillars:{test:{title:`Test`,description:`Realistic phishing simulations across multiple channels to measure real vulnerability.`,f1:`Targeted emails`,f2:`Custom templates`,f3:`Continuous training`},educate:{title:`Educate`,description:`Interactive training and awareness content that engages and transforms behavior.`,f1:`Original content`,f2:`Gamification`,f3:`Score and ranking`},track:{title:`Track`,description:`Detailed reports and continuous evolution to build a true security culture.`,f1:`Insights by area`,f2:`Evolution over time`,f3:`Executive reports`}}},modules:{title:`Platform modules`,subtitle:`A complete solution to build and maintain a security culture in your organization.`,ariaList:`Platform modules`,ariaPreview:`Preview of module {{title}}: {{desc}}`,items:{risco:{title:`Human Risk`,description:`Measure, anticipate and reduce human risk with applied behavioral intelligence.`,overlay:`Real-time human risk score with behavioral indicators and trends by area.`},phishing:{title:`Phishing`,description:`Simulate real attacks and measure your team's resilience with smart campaigns.`,overlay:`Realistic email, QR-code and attachment campaigns with detailed click and report metrics.`},treinamentos:{title:`Training`,description:`Empower your team with engaging learning paths that turn knowledge into security culture.`,overlay:`Learning paths, microlearning and a course catalog with individual tracking.`},comunicacao:{title:`Communication`,description:`Efficient, smart and continuous communication about the best line of defense.`,overlay:`Notices, campaigns and targeted content to keep security top of mind every day.`}},learnMoreAria:`Learn more about {{title}}`},mobile:{pill:`Mobile`,title:`Security that fits in your team's pocket`,subtitle:`Our mobile app brings training and communication anywhere, engaging employees where they really are.`,features:{treinamentos:{title:`Training`,description:`Learning paths and microlearning in the palm of your hand, anytime.`},comunicacao:{title:`Communication`,description:`Notices, campaigns and updates directly in the app.`}}}
112,social:{pill:`Customers`,title:`Companies that trust us`,subtitle:`Join organizations that have already transformed their security culture`,empty:`No customers registered.`},testimonials:{pill:`Testimonials`,title:`What our customers say`,subtitle:`See how companies in many industries are transforming their security culture with Beephish.`},ctaSection:{title:`Building a security culture is not a yearly campaign`,subtitle:`It's commitment, consistency and clarity. Start today turning your team's behavior into the first line of defense.`}},lk={index:{hero:{badge:`Our Solutions`,titleLine1:`Security applied to`,titleLine2:`your operation's reality`,subtitle:`Whether you're in IT, HR or Compliance, we have the right solution to build a security culture in your organization.`},personas:{title:`By profile`,subtitle:`Specific solutions for each area of your company`,items:{ti:{title:`IT / SecOps`,description:`For security teams that need visibility into human vulnerabilities.`,features:[`Technical dashboard with detailed metrics`,`Integration with SIEM tools`,`Automated compliance reports`,`API for custom integrations`]},rh:{title:`Human Resources`,description:`For HR teams that want to develop a security culture among employees.`,features:[`Automated security onboarding`,`Personalized learning tracks`,`Gamification for engagement`,`Certificates and recognition`]},compliance:{title:`Compliance`,description:`For compliance professionals who need to demonstrate controls.`,features:[`ISO 27001 and PCI-DSS content`,`LGPD/GDPR tracks for the whole company`,`Audit-ready reports`,`Complete training history`]}}},objectives:{title:`By objective`,subtitle:`Choose the solution according to your main objective`,items:{awareness:{title:`Continuous Awareness`,description:`Turn awareness into culture with regular and relevant content.`},simulations:{title:`Phishing Simulations`,description:`Test your team's resilience with realistic, multichannel simulations.`},training:{title:`Training & Content`,description:`Empower employees with proprietary content and gamification.`}}}},securityInfo:{pill:`Information Security`,titleLine1:`Why is Information Security`,titleLine2:`so`,titleHighlight:`Crucial?`,cards:[`Cyber threats are constantly evolving.`,`Valuable data is at risk due to security breaches.`,`Awareness is the first line of defense.`,`95% of data breaches are caused by human error.`,`The average cost of a data breach is $3.86 million.`,`More than 75% of organizations have experienced successful phishing.`]},securityCulture:{pill:`Awareness`,titleLine1:`Development Cycle of a`,titleHighlight:`Security Culture`,steps:{training:{label:`TRAINING`,title:`Training for employees`,description:`Continuous training with up-to-date content on cyber threats and security best practices.`},phishing:{label:`PHISHING`,title:`Phishing attack simulation`,description:`Realistic campaigns that test the team's resilience and identify behavioral vulnerabilities.`},analysis:{label:`ANALYSIS`,title:`Campaign data analysis`,description:`Detailed reports with performance metrics to measure progress and adjust strategies.`}}},modulesDetail:{pill:`Our Solutions`,titleLine1:`Platform`,titleHighlight:`modules`,subtitle:`Get to know each module and discover how Beephish protects your organization end-to-end.`,imageAlt:`Module image`,comingSoon:`More details about this module coming soon.`,items:{phishing:{title:`Phishing Module`,shortTitle:`Phishing`,description:`SaaS platform for Information Security Awareness.`,features:[`Panel / Dashboard`,`Groups by role or department`,`Email templates`,`Landing Pages`,`Campaigns with metrics and reports`,`Phishing reporting`,`Email Spoofing`,`Fake Landing Pages`,`QR-Code, Attachment, Link and Data Collection campaigns`,`Indicators, metrics, trends and maturity with risk level`]},treinamentos:{title:`Training Module`,shortTitle:`Training`,description:`Empower employees with learning tracks and awareness content.`,features:[`Information Security learning tracks`,`Awareness course catalog`,`My courses and training`,`My learning tracks`,`Community`,`Mobile app access`]},comunicacao:{title:`Communication Module`,shortTitle:`Communication`,description:`Communicate efficiently with the entire organization about security.`,features:[]},risco:{title:`Human Risk Management Module`,shortTitle:`Human Risk Management`,description:`Identify, measure and reduce human risk with behavioral intelligence.`,features:[]}}}},uk={hero:{badge:`Phishing Simulation`,imageAlt:`Phishing simulation — Awareness Culture`,titleLine1:`Phishing Simulation`,titleLine2:`for Companies`,subtitle:`Run realistic attack simulations, measure your team's resilience and turn employees into an active layer of defense against phishing.`,cta:`Talk to a Specialist`},approach:{card1:`Our phishing simulation turns employees into the strongest link in security: through training and simulations, we reinfor
112ce the weakest link and build an active layer of protection against phishing.`,card2:`Identify groups most exposed to risk and target phishing campaigns by department, profile or individual.`,card3:`Track user actions, surface risks safely and generate clear reports for analysis and continuous improvement.`},video:{title:`See how Beephish strengthens your team against phishing`,subtitle:`Watch the video`,iframeTitle:`beephish — Awareness Culture`},context:{title1:`Phishing: the gateway to corporate attacks`,p1:`Phishing is one of the most common forms of social engineering, used to steal sensitive data or gain access to a company's network. Malicious messages trick users into clicking links or attachments containing malware. In Business Email Compromise (BEC) cases, the attacker impersonates a trusted person inside the company to deceive the recipient into acting as if the communication were legitimate.`,title2:`Email vs. Security`,p2:`Email remains the main channel for cyberattacks and a valuable gateway to sensitive data. Since organizations rely on it daily, it is essential to count on a robust, integrated security solution capable of adapting to different threats.`,p2Highlight:`Email security is an essential need for any company.`},highlights:{pill:`Phishing Module`,titleLine1:`Information Security`,titleLine2:`Awareness`,items:{personalizadas:{title:`Tailored phishing campaigns`,description:`Simulations customized to your organization's context, language and maturity level.`},qrcode:{title:`QR-Code, Attachment, Link and Data Collection campaigns`,description:`Multiple attack vectors to test your team against the real threats found in the market.`},spoofing:{title:`Email Spoofing`,description:`Simulate trusted senders and assess how your employees react to fraud attempts.`},landing:{title:`Fake Landing Pages`,description:`Realistic pages that reproduce everyday scenarios to measure user behavior.`}},dashboardAlt:`beephish dashboard — phishing campaigns and statistics`},impact:{pill:`The problem in Brazil`,title:`Phishing has become one of the country's main digital threats`,callouts:{click:`Click`,credentials:`Credentials`,social:`Social engineering`,impact:`Impact`},calloutsLabel:`Phishing flow checkpoints`,p1Part1:`Phishing is no longer an isolated risk — it has become one of the main digital threats in Brazil. The country is among the most attacked in the world, with over 553 million phishing attempts recorded in just 12 months — about 1.5 million attacks per day.`,p1Part2:`The scenario is escalating fast: in some periods, the growth of attempts surpassed 600% in a single year, driven mainly by advances in social engineering and artificial intelligence.`,p2Part1:`The financial impact is equally alarming. In Brazil, attacks that begin with phishing have produced average costs above R$ 7 million per incident in companies, considering operational losses, fines and reputational damage.`,p2Part2:`Nationally, digital scams have moved around R$ 29 billion in recent losses, showing the scale of the cybercrime industry.`,p3Part1:`On the human side, the problem is even more critical: about 24% of Brazilians were victims of digital scams in just one year — more than 40 million people affected.`,p3Part2:`And growth continues — reports of cybercrimes grew 28.4% in 2025, consolidating phishing as one of the main entry points for fraud and intrusions.`,p4:`In a scenario where human behavior remains the main risk vector, investing in awareness, simulation and management is no longer optional — it is a strategic priority.`,referencesTitle:`References`,notesTitle:`Notes`,ref1:`AJN1 — Brazil had over half a billion phishing attacks in the last 12 months, based on Kaspersky data.`,ref2:`ISP.Tools — AI Phishing: Brazil records 617% growth.`,ref3:`IBM Brazil — Average cost of a data breach in Brazil reaches R$ 7.19 million.`,ref4:`G1 — Datafolha/Brazilian Public Security Forum survey points to nearly R$ 29 billion in losses from PIX scams and fake bank slips.`,ref5:`Senate Agency — DataSenado/Nexus: 24% of Brazilians over 16 were victims of digital scams — over 40.85 million people.`,ref6:`Agência Brasil — SaferNet records 28.4% growth in cybercrime reports in 2025.`,refLabel1:`Reference 1: Brazil had over 553 million phishing attacks in 12 months`,refLabel2:`Reference 2: AI-driven phishing grew 617% in Brazil`,refLabel3:`Reference 3: Average cost of data breach in Brazil reaches R$ 7.19 million`,refLabel4:`Reference 4: PIX scams and fake bank slips caused R$ 29 billion in losses`,refL
112abel5:`Reference 5: 24% of Brazilians were victims of digital scams`,refLabel6:`Reference 6: Cybercrime reports grew 28.4% in 2025`},features:{pill:`Features`,title:`Resources to reduce human risk`,subtitle:`Explore features that help educate, test and track employees' progress against phishing.`,tablistLabel:`Features`,tabs:{grupos:{label:`Groups`,title:`Employee groups`,description:`Segment employees by area, role or exposure level to identify groups most sensitive to risk.`,bullets:[`Groups by role or department.`]},emails:{label:`Emails`,title:`Email templates and spoofing`,description:`Use ready-made templates and customize campaigns to simulate real email phishing scenarios.`,bullets:[`Email template library.`,`QR-Code, Attachment, Link and Data Collection campaigns.`,`Customization: company logos, personalized messages and relevant visual elements.`]},"landing-pages":{label:`Landing pages`,title:`Realistic fake landing pages`,description:`Create simulated pages with controlled data capture, site cloning and safe redirections.`,bullets:[`Page template library.`,`Site cloning.`,`Customization: company logos, personalized messages and relevant visual elements.`,`Spoofing: forged email addresses to impersonate legitimate senders.`,`Data capture.`,`Redirect to the original page.`]},metricas:{label:`Metrics & reports`,title:`Metrics, reports and maturity`,description:`Track employees' progress and turn campaign results into maturity indicators.`,bullets:[`Complete campaign metrics.`,`Executive and technical reports.`,`Phishing delivery list per employee.`,`Per-employee timeline.`]},denuncia:{label:`Phishing reporting`,title:`One-click phishing reporting`,description:`Receive phishing reports and automatically detect whether the message is part of a simulation.`,bullets:[`CSIRT mailbox configuration.`,`Phishing reporting.`]},treinamentos:{label:`Training`,title:`Information security training`,description:`Educational content delivered at the right moment to reinforce best practices, reduce risk and build a strong security culture.`,bullets:[`Learning paths by profile`,`Microlearning and certificates`,`Automatic assignment after clicks`]}}},svg:{diagramAlt:`Simplified technical diagram of phishing flow`,emailAlt:`Technical illustration of an email with fishing line and hook`,dashboardAlt:`Technical mockup of a phishing control dashboard in a browser`}},dk={hero:{badge:`Training Module`,title:`Empower your team with`,titleHighlight:`Smart Learning Paths`,description:`Empower employees with learning paths and information security awareness content.`,cta:`Talk to a Specialist`,imageAlt:`Training - Continuous capability building`},intro:{pill:`Training`,title:`Personalized Courses`,lead:`Personalized courses for every level of knowledge, ensuring that everyone on your team is prepared.`,description:`Failure points are teachable moments, and tracking areas for continuous improvement is essential to strengthen a security awareness program.`,highlightsLead:`Our services are highly effective and designed to deliver measurable outcomes, such as:`,highlights:[`Realistic phishing simulation: send fake phishing emails to identify vulnerabilities and measure training effectiveness.`,`Personalized training.`,`Learning paths.`,`Training library.`,`Compliance, LGPD, PCI and ISO27001.`,`Custom certificates.`,`Quizzes and final exams.`,`KPIs and metrics.`,`Gamification.`],dashboardAlt:`Beephish training dashboard — ranking, certificates and progress`,dashboardCaption:`Training in multiple file formats: PDF, PowerPoint, PNG, Link (embedded) and Video.`},cards:[{title:`Training library`,bullets:[`Personalized training.`,`Training library.`,`Compliance, LGPD, PCI and ISO27001.`]},{title:`My training`,bullets:[`Enrolled training.`,`Custom certificate.`,`Quiz and final exam.`]},{title:`Learning paths`,bullets:[`Mandatory training paths.`,`Custom paths. E.g.: departments, roles, or organizational campaigns.`]}],awareness:{pill:`Awareness`,title:`Awareness Boost`,description:`Reduce the risk of successful attacks with regular training.`},metrics:{pill:`Metrics & Reports`,title:`Campaign Metrics & Reports`,description:`Detailed reports that provide valuable insights and help you continuously improve your defenses.`,items:[`Information security risk level`,`Time and resource savings`,`Executive and technical reports.`,`Training and analysis automation`,`Data analysis by campaign, group and user`,`Timeline per employee.`],footer:`With BeePhish, you train, test and strengthen your company's security simply and effectively`}},fk={hero:{badge:`Communication Module`,title:`Direct communication with your team about`,titleHighlight:`security`,description:`Send best practices, security newsletters, announcements of new controls, and alerts about threats impacting the market — everything the security team needs to communicate, in a single channel.`,cta:`Talk to a Specialist`,imageAlt:`Communication - Awareness and governance`},metrics:{pill:`Campaign Management`,title:`Manage all communications in one place`,description:`Create, schedule, and track communication campaigns for specific groups or the entire organization, with real-time status and complete history.`,highlights:[`Delivery, open, and read indicators per campaign.`,`Consolidated view by group, department, and owner.`,`Complete history of sent and archived communications.`,`Real-time status: scheduled, in progress, and completed.`],imageAlt:`Campaigns panel of the BeePhish Communication module — listing with owner, groups, and status`,caption:`Campaigns Panel — create, search, and track the status of each communication.`},pillars:{pill:`What you can communicate`,title:`Every type of communication the security team needs to send`,items:[{title:`Security best practices`,description:`Reinforce safe daily habits with clear, objective, and contextualized messages for each audience.`},{title:`Security Newsletter`,description:`Send periodic content with news, tips, and updates about the information security program.`},{title:`Market threat alerts`,description:`Quickly communicate emerging threats (phishing, ransomware, fraud) that may impact the organization.`},{title:`New controls announcements`,description:`Announce the implementation of security policies, controls, and tools across the company.`},{title:`Institutional notices`,description:`Maintenance, scheduled downtime, and any communication the security team deems necessary.`},{title:`Segmented campaigns`,description:`Target messages to specific groups — IT, managers, departments, or your entire employee base.`}]},cta:`Talk to a Specialist`},pk={hero:{badge:`Human Risk Management`,title:`Human Risk Management`,titleAcronym:`(HRM)`,leadBold:`Your company's biggest risk isn't technical.`,leadHighlight:`It's human.`,description:`Turn behavior into data, data into action, and action into real protection with Beephish Human Risk Management.`,cta:`Talk to a Specialist`,imageAlt:`Human Risk Management`},intro:{official:`Official public definition`,brand:{line1:`Unified`,line2:`Human Risk`,line3:`Index`,acronym:`UHRI`},p1:`The Unified Human Risk Index is a behavioral cybersecurity metric designed to measure how exposed identities are to social engineering threats and to turn human behavior into actionable risk intelligence for the organization.`,p2:`It allows organizations to treat human risk as a measurable security domain, not just a training activity.`,preview:{ariaLabel:`Learn about UHRI in detail`,imageAlt:`Preview of the Unified Human Risk Index executive dashboard`,live:`Live`,title:`Learn about UHRI in detail`,subtitle:`See architecture, dimensions, calculation, and executive indicators.`,bullets:[`Human score calculated from Exposure, Behavior, and Context`,`Continuous pipeline: Measure → Prioritize → Act`,`Executive indicators to communicate human risk to leadership`]},ctaButton:`Learn about UHRI in detail`,objective:{imageAlt:`Visual of the Unified Human Risk Index objective`,label:`UHRI Objective`}
112,right:{p1:`Instead of treating people as the weakest link, you start measuring, understanding, and continuously reducing each user's risk.`,p2:`The Beephish platform turns behavior into clear metrics, enabling fast, smart, preventive decisions.`,p3:`The Unified Human Risk Index enables security teams to:`,bullets:[`identify high-risk identities`,`prioritize adaptive interventions`,`reduce exposure to social engineering`,`track behavioral evolution`,`communicate human risk at the executive level`],callout:`This turns awareness into risk telemetry.`,evolutionTitle:`Human Risk Management (HRM) is the evolution of corporate security.`,p4:`The Beephish platform turns behavior into clear metrics, enabling fast, smart, preventive decisions.`,p5:`Accelerated digital transformation has made employees the primary target of cyberattacks worldwide. The Brazilian corporate market recognizes that infrastructure technology requires the complement of continuous user education. Understanding awareness best practices helps organizations protect their critical assets against modern threats.`}},dashboard:{pill:`Smart Dashboard`,title:`Total visibility into human risk`,description:`Track your organization's risk score in real time, identify people or departments with the highest exposure, and make decisions based on behavioral data.`,bullets:[`Risk score based on people's real behavior and impact`,`Flexible use and integration with more than 50 data sources`,`Trends and evolution over time`],live:`Live`,panelTitle:`HRM Dashboard`,uhri:`UHRI`,globalRisk:`Global Risk`,stats:{users:`Users analyzed`,exposure:`Exposure Risk`,critical:`Critical users`,trained:`Trainings completed`},deptTitle:`Risk by Department`,evolutionTitle:`Risk Evolution (last 8 weeks)`,evolutionStart:`8 wks ago`,evolutionEnd:`Now`,departments:{financeiro:`Finance`,comercial:`Sales`,rh:`HR`,ti:`IT`,juridico:`Legal`,marketing:`Marketing`}},theme:{pill:`Personalized Experience`,title:`An interface that adapts to you`,description:`Everything in a single platform, with a clear, visual, and actionable dashboard, friendly interface, full personalization, comfortable reading, and full adaptation to any screen — Beephish ensures fluid navigation from desktop to mobile.`,imageAltDark:`Beephish Dashboard - Dark Mode`,imageAltLight:`Beephish Dashboard - Light Mode`,caption:`Track risk reduction with clear data and reports.`,benefits:[`Real reduction of incidents caused by human error`,`Clear and continuous view of company risk`,`More efficient and personalized trainings`,`Active team engagement`,`Decisions based on data, not guesswork`]},faq:{pill:`Frequently Asked Questions`,titlePrefix:`Frequently asked questions about`,titleHighlight:`human risk management 2026`,description:`Accelerated digital transformation has made employees the primary target of cyberattacks worldwide. The Brazilian corporate market recognizes that infrastru
112cture technology requires the complement of continuous user education. Understanding awareness best practices helps organizations protect their critical assets against modern threats.`,loading:`Loading frequently asked questions`,empty:`No questions available at the moment.`,ariaLabel:`Frequently asked questions about human risk management`,srCollapsed:` (collapsed, press Enter to expand)`,srExpanded:` (expanded, press Enter to collapse)`}},mk={hero:{back:`Back to Human Risk Management`,official:`Official Beephish metric`,title:`Unified Human Risk Index`,acronym:`(UHRI)`,description:`The behavioral cybersecurity metric that measures how exposed identities are to social engineering threats and turns human behavior into actionable risk intelligence.`,cta:`Talk to a Specialist`,imageAlt:`Unified Human Risk Index`},definicao:{pill:`Official public definition`,title:`Human risk as a measurable security domain`,p1:`The Unified Human Risk Index is a behavioral cybersecurity metric, using more than 50 types of security signals, designed to measure how exposed identities are to social engineering threats and to turn human behavior into actionable risk intelligence for the organization.`,p2:`It allows organizations to treat human risk as a measurable security domain, not just a training activity.`,objetivoTitle:`UHRI Objective`,objetivoIntro:`The Unified Human Risk Index enables security teams to:`,objetivos:[`Identify high-risk identities`,`Prioritize adaptive interventions`,`Reduce exposure to social engineering`,`Track behavioral evolution`,`Communicate human risk at the executive level`],callout:`This turns awareness into risk telemetry.`},arquitetura:{pill:`Conceptual architecture`,title:`Three observable dimensions of human risk`,description:`The score results from continuous correlation between Exposure, Behavior, and Context — each representing an observable aspect of organizational human risk.`,dimensoes:[{title:`Exposure`,
112subtitle:`Structural risk`,description:`Measures how much an identity is being targeted by attacks that don't directly depend on the user.`},{title:`Behavior`,subtitle:`Observable behavioral risk`,description:`Measures the user's day-to-day behavior and how many potentially risky actions they generate in security technologies.`},{title:`Context`,subtitle:`Passive risk`,description:`Measures the person's risk based on who they are within the company: area, role, privileges, and accessed data.`}]},dimensoes:{exposicao:{pill:`Dimension 01`,title:`Exposure`,intro:`Measures how much an identity is being targeted by attacks that don't directly depend on the user. Includes signals such as:`,colType:`Event Type`,colExample:`Example`,footer:`This dimension represents structural risk.`,sinais:[{tipo:`Credential Leak`,exemplo:`Corporate email found in a data breach`},{tipo:`Compromise Alert`,exemplo:`Entra ID alert of a compromised account`},{tipo:`Malware detected`,exemplo:`Endpoint with identified RAT`},{tipo:`External attack`,exemplo:`Brute force against the user's account`},{tipo:`Phishing attempt`,exemplo:`Real phishing email targeted at the user`},{tipo:`Impossible Travel`,exemplo:`Login from two countries within minutes`}]},comportamento:{pill:`Dimension 02`,title:`Behavior`,intro:`Measures the user's day-to-day behavior and how many potentially risky actions they generate in security technologies. Includes signals such as:`,items:[`Interactions with phishing simulations`,`Credential submission in simulations`,`Reaction time to simulated attacks`,`Alert generation in technologies like DLP, CASB, EDR, and others`],tag:`Observable behavioral risk`},contexto:{pill:`Dimension 03`,title:`Context`,intro:`Measures the person's risk based on who they are within the company. Includes signals such as:`,items:[`Area`,`Role`,`Privilege level`,`Access to sensitive data`],tag:`Passive user risk`}},calculo:{pill:`Score calculation`,title:`Weighted correlation of multiple signals`,p1:`The Unified Human Risk Index is calculated from the weighted correlation of multiple behavioral, contextual, and identity signals collected continuously throughout the exposure journey to attacks like social engineering and operational error risk.`,p2:`The model uses balanced data from the 3 dimensions, applying proprietary methodology that ensures longitudinal comparability between identities, departments, and periods.`,niveisTitle:`Risk levels`,niveisDescription:`The UHRI classifies human exposure, individually in each dimension and summarized, on a tangible and comparable scale over time. This classification enables automatic prioritization of interventions like training, privilege reviews, and specific monitoring.`,mock:{title:`Executive view`,live:`Live`,scoreLabel:`Human Risk Score`,trend:`Trend: increasing`,sparkPeriod:`Last 12 periods`,sparkDelta:`+16 pts`,highRiskTitle:`High-risk identities`,highRiskSubtitle:`Top tier of the dashboard`,levels:{critical:`Critical`,high:`High`,medium:`Medium`,low:`Low`},footer:`Connects human behavior to corporate cyber risk language.`}},camadas:{pill:`UHRI layers`,title:`Multi-level and longitudinal view`,items:[{title:`Organizational layer`,subtitle:`The score operates at multiple levels`,items:[`Identity`,`Department`,`Business unit`,`Organization`],footer:`Enables strategic prioritization.`},{title:`Temporal layer`,subtitle:`Continuous longitudinal analysis`,items:[`Exposure reduction`,`Effect of interventions`,`Sustained behavioral changes`],footer:`Turns the score into a maturity indicator.`}]},pipeline:{pill:`Operational pipeline`,title:`A recurring cycle of human risk reduction`,description:`The model follows three main steps that turn into a recurring cycle, delivering measurable human risk reduction.`,etapas:[{step:`Measure`,description:`Identifies identities with the greatest behavioral exposure.`,features:[`Continuous signal collection`,`View by identity and group`,`Comparable baseline`]},{step:`Prioritize`,description:`Classifies risk based on potential impact and probability.`,features:[`Automated ranking`,`Weighted criteria`,`Focus on high risk`]},{step:`Act`,description:`Activates adaptive interventions based on observed behavior.`,features:[`Targeted training`,`Privilege reviews`,`Specific monitoring`]}],cycle:`Recurring cycle of continuous improvement`},outputs:{pill:`Derived outputs`,title:`Strategic indicators powered by the UHRI`,description:`The score feeds additional indicators that broaden the executive reading of human risk.`,items:[{title:`Human Attack Surface`,description:`Visibility of the human attack surface.`},{title:`Probability of credential exposure`,description:`Anticipates the risk of identity compromise.`},{title:`Executive targeting risk`,description:`Detects patterns of attacks aimed at top leadership.`},{title:`Behavioral improvement trend`,description:`Longitudinal indicator of risk evolution.`},{title:`Potential insiders`,description:`Flags identities with relevant atypical behavior.`}]},cta:{title:`Ready to measure your organization's human risk?`,description:`Talk to a Beephish specialist and discover how UHRI turns behavior into actionable risk telemetry.`,primary:`Talk to a Specialist`,secondary:`Back to HRM`}},hk={hero:{module:`Gamification Module`,titlePart1:`Turn security into`,titleHighlight:`culture`,description:`Beephish gamification turns mandatory training into a competitive, collaborative, and fun journey — engaging the whole company around information security.`,cta:`Talk to a Specialist`,imageAlt:`Gamification - Awareness through games`},intro:{pill:`What is Gamification`,title:`Learning security became a game`,imageAlt:`Beephish gamification panel showing ranking, XP, and employee levels`,p1:`Gamification is the use of game mechanics — points, rankings, challenges, and rewards — applied to real contexts. At Beephish, it accelerates the learning of information security best practices and builds a continuous awareness culture.`,p2:`Instead of forgettable training, your team takes part in an engaging journey that reinfor
112ces secure behaviors every day.`},benefits:[{title:`+ Engagement`,description:`Increase training participation with game mechanics.`},{title:`+ Retention`,description:`Hands-on, continuous learning that reinforces knowledge.`},{title:`+ Adoption`,description:`Reduce the time to adopt new security campaigns.`},{title:`+ Results`,description:`Track individual and collective progress through dashboards.`}],mechanics:{pill:`Game Mechanics`,title:`The elements that transform learning`,description:`Strategically combine game mechanics to engage different employee profiles.`,items:[{title:`Ranking & Competition`,description:`Real-time individual and team leaderboards encourage participation and team spirit.`},{title:`Achievements & Badges`,description:`Recognize good practices with medals and badges for trainings, simulations, and milestones.`},{title:`Activity Scoring`,description:`Every simulation, training, and quiz earns points, highlighting the most engaged employees.`},{title:`Challenges & Missions`,description:`Create themed and seasonal missions to reinforce secure behaviors day to day.`},{title:`Collective Engagement`,description:`Turn security into a cultural movement involving departments and leadership.`},{title:`Fun Learning`,description:`Interactive, story-driven content that makes awareness light and memorable.`}]},marketplace:{pill:`Exclusive Marketplace`,title:`Real rewards for those who learn`,p1Prefix:`Your company can have an `,p1Strong:`exclusive and fully customized Marketplace`,p1Suffix:`, where employees exchange XP earned in gamification for rewards chosen by your organization.`,p2:`From corporate gifts to vouchers, tickets, and experiences — the catalog is defined by you, reinforcing security culture with tangible recognition. Optional module, contracted as needed for your project.`,imageAlt:`Beephish Marketplace showing a customized catalog of rewards to exchange for XP`},journey:{pill:`How It Works`,title:`From setup to recognition`,steps:[{step:`01`,title:`Set up the campaign`,description:`Define goals, participating teams, scoring rules, and the duration.`},{step:`02`,title:`Engage employees`,description:`Launch trainings, simulations, and challenges. Each interaction earns points and unlocks achievements.`},{step:`03`,title:`Track in real time`,description:`View rankings, earned badges, and progress indicators by area and user.`},{step:`04`,title:`Recognize and strengthen culture`,description:`Reward standouts, communicate results, and turn security into a permanent habit.`}],ctaTitle:`Ready to turn your company's security into an engaging journey?`,cta:`Talk to a Specialist`}},gk={hero:{imageAlt:`Beephish Platform`,badge:`Complete platform`,title1:`Continuous training.`,title2:`Actionable data.`,title3:`Real security.`,description:`Integrated simulations, training, communication, and reports to build a true security culture in your organization.`,ctaSpecialist:`Talk to a Specialist`,ctaSolutions:`See solutions`},alternating:{rows:[{imageAlt:`Beephish platform dashboard`,title:`Data, actions, and results. Without complications`,description:`The Beephish platform organizes everything in a simple, smart, and ready-to-use dashboard. Data, training, and reports in an engaging dashboard, enabling fast and accurate decisions.`},{imageAlt:`Communication and active campaigns screen`,title:`Security starts with clear and constant communication`,description:`At Beephish, we take this seriously with active campaigns that educate, engage, and keep your team always one step ahead of threats.`,ctaLabel:`Learn More`},{imageAlt:`Human Risk Management`,titlePrefix:`Human Risk Management`,titleAcronym:`(HRM)`,description:`Risk isn't in the system. It's in people. Manage it. With HRM, you identify, measure, and reduce human risk before it becomes a real problem.`,ctaLabel:`Learn More`}]},features:{title:`Key features`,subtitle:`Powerful tools to educate, test, and track your team's progress.`,items:[{title:`Phishing Simulations`,description:`Realistic tests via email, SMS, QR Code, and USB drive with customizable templates.`},{title:`Multichannel Communication`,description:`Integration with Slack, Teams, Google Chat, WhatsApp, and Email.`},{title:`Advanced Segmentation`,description:`Custom groups by department, role, or risk level.`},{title:`Executive Dashboard`,description:`Visual reports with insights by employee, area, and trends.`},{title:`Built-in Compliance`,description:`Content aligned with ISO 27001, PCI-DSS, and LGPD.`},{title:`Smart Automation`,description:`Recurring campaigns and automatic triggers based on behavior.`}]},mobile:{badge:`Mobile Access`,titlePrefix:`All features available in the`,titleBrand:`BEEPHISH`,titleSuffix:`App`,p1:`Track information with metrics that really matter, stay close to comprehensive reports with useful statistics and analysis.`,p2:`Security knowledge for everyone — training, governance, communication, and compliance in the palm of your hand.`},analysis:{eyebrow:`COMPREHENSIVE ANALYSIS`,title:`Campaign Metrics and Reports`,p1:`Detailed reports that provide valuable insights and help continuously improve your defenses.`,p2:`With Beephish, you train, test, and strengthen your company's security in a simple and effective way`,items:[`Information security risk level`,`Time and resource savings`,`Executive and technical reports`,`Training and analysis automation`,`Data analysis by campaign, group, and user`,`Timeline by employee`]}
112,benefits:{title:`Why choose Beephish?`,subtitle:`A platform built by Brazilian experts, for the reality of Brazilian companies.`,cta:`Talk to a Specialist`,items:[`Visible results from the first month`,`Close, Portuguese-speaking support`,`Implementation in less than 1 week`,`Affordable cost for companies of all sizes`,`Content adapted to the Brazilian reality`,`Constant threat updates`]},ctaAbout:{titlePrefix:`Meet the team behind`,titleBrand:`Beephish`,description:`We are Brazilian information security experts, dedicated to protecting people and organizations against digital threats.`,cta:`Discover our story`}},_k={hero:{imageAlt:`Beephish team`,badge:`About Us`,titleLine1:`Born from those who `,titleLine2:`lived the problem`,subtitle:`Decades of experience in information security at Brazil's largest companies, transformed into a platform that makes a real difference.`,cta:`Talk to a Specialist`},stats:{users:`Users trained`,companies:`Companies served`,experience:`Combined years of experience`},mission:{quote:`Awareness must stop being the exception and become culture.`,description:`While we invest millions in security technology, human behavior still defines vulnerability: a click, a weak password, an opened email. Beephish was born to change this reality, creating a Brazilian platform that turns awareness into organizational culture.`},founders:{pill:`Leadership`,title:`The people behind Beephish`,subtitle:`Decades of security experience at Brazil's largest companies, united by the mission to transform security culture.`,linkedinCta:`View LinkedIn profile`,items:{glauco:{name:`Glauco Sampaio`,role:`Founder`,bio:`25+ years of experience in digital risk and information security. Former CISO at companies like Cielo, Banco Original and Editora Abril. Specialist in security governance and corporate risk management.`},bruno:{name:`Bruno Kaique`,role:`Founder`,bio:`10+ years of experience in Information Security with roles at major financial institutions such as Cielo, Banco Pan, Itaú and Bradesco. 
113
114Services Manager specialized in implementing awareness platforms.`}}},advisors:{pill:`Advisory Board`,title:`Advisors`,subtitle:`Reference experts who strengthen our strategic vision and platform evolution.`,linkedinCta:`View LinkedIn profile`,items:{cassio:{name:`Cassio Sampaio`,role:`Advisor`,bio:`Technology executive with more than 20 years of international experience in cybersecurity, cloud and Identity & Access Management (IAM). Led product teams at companies such as Apple, Auth0/Okta, DigitalOcean and Aiven, with strong expertise in global SaaS platforms and security architecture.`},nycholas:{name:`Nycholas Szucko`,role:`Advisor`,bio:`Communicator, entrepreneur and co-founder of Verta, with previous roles at Cisco, Nozomi, FireEye and Forescout. Board advisor at companies such as Netskope, UNINTE
114R, GoChange, Nutralider, BeePhish and Dfense, he is also communications director at Diversity on Boards and co-founder of the podcast Conselho & Conselheiros.`}}},values:{pill:`Values`,title:`Our values`,items:{culture:{title:`Security as culture`,description:`We believe security is not an annual campaign but a daily commitment.`},results:{title:`Results-driven`,description:`We build practical solutions that deliver measurable results.`},excellence:{title:`Brazilian excellence`,description:`We craft cutting-edge technology tailored to Brazil's reality.`}},footerLine1:`Our values aren't talk — they are daily practice, present in every simulation sent, every training delivered and every decision made to reduce human risk within companies.`,footerLine2:`In the end, security isn't about systems. It's about behavior.`,footerHighlight:`And that is exactly where we operate.`},practice:{pill:`Values in practice`,titlePart1:`How our values`,titlePart2:`translate into everyday work`,subtitle:`More than principles, they are concrete actions that reduce human risk and strengthen security culture in companies.`,items:{simulations:{title:`Realistic simulations`,description:`Phishing campaigns that mirror real threats faced by Brazilian companies.`},training:{title:`Continuous training`,description:`Short, practical and actionable content delivered throughout the year for real retention.`},monitoring:{title:`Active monitoring`,description:`Constant tracking of employee behavior and maturity evolution.`},data:{title:`Data-driven decisions`,description:`Clear indicators that support directors and security teams in decision-making.`}}}},vk={hero:{imageAlt:`Beephish Partners`,badge:`Our Partners`,titleLine1:`CREDIBILITY + `,titleLine2:`SECURITY`,subtitle:`Partners that share the same commitment: security, trust and digital maturity.`,stats:{phishing:`of all phishing emails are unintentionally opened by users.`,breaches:`of all data breaches are caused by human error.`,organizations:`of all organizations have been hit by some phishing attempt.`}},regions:{all:`All regions`,sudeste:`Southeast`,sul:`South`,nordeste:`Northeast`,"centro-oeste":`Midwest`,norte:`North`,internacional:`International`},list:{partnerSingular:`partner`,partnerPlural:`partners`,empty:`No partners found in this region.`,logoFallback:`Logo`,logoAlt:`{{name}} logo`,visitSite:`Visit website`}},yk={hero:{titlePart1:`Companies that `,titleHighlight:`trust us`,subt
114itle:`Organizations of all sectors and sizes protect their employees with the Beephish platform.`},stats:{companies:`Companies`,employees:`Employees`,simulations:`Simulations`,satisfaction:`Satisfaction`},list:{title:`Our clients`,clientLabel:`Client {{number}}`},cta:{title:`Join them`,subtitle:`Start protecting your company today with Beephish.`,button:`Talk to a Specialist`}},bk={hero:{badge:`Become a Partner`,titlePart1:`How to become a `,titleHighlight:`partner`,subtitle:`Join our network and bring security to more companies. Be part of an ecosystem committed to digital protection.`},section:{badge:`Become a Partner`,title:`Want to become a partner?`,description:`Join our partner network and bring security to more companies. Be part of an ecosystem committed to digital protection.`,benefits:{materials:`Access to exclusive sales materials`,support:`Dedicated technical and commercial support`,commissions:`Competitive commissions`,training:`Training and certifications`},mobileHint:`Fill out the form on the side`,formTitle:`Become a partner`}},xk={common:{searchPlaceholder:`Search...`,searchAria:`Search`,filterAll:`All`,noImage:`No image`,emptyDefault:`Coming soon: new content.`,emptyCategory:`No items found in category "{{category}}".`,previous:`Previous`,next:`Next`,notFound:`Content not found.`,dateLocale:`en-US`},blog:{title:`Blog`,subtitle:`Articles and news about information security`,backLabel:`Back to blog`,siteName:`Beephish Blog`,notFound:`Post not found.`},news:{title:`News`,subtitle:`Latest updates on information security`,backLabel:`Back to news`,siteName:`Beephish News`,sourcePrefix:`Source:`,readSource:`Read at original source`},webinars:{title:`Webinars`,subtitle:`Online events about information security`,backLabel:`Back to webinars`,siteName:`Beephish Webinars`,watchYoutube:`Watch on YouTube`},podcasts:{title:`Podcasts`,subtitle:`Listen to our episodes on security and cyber culture`,backLabel:`Back to podcasts`,siteName:`Beephish Podcasts`,episodeShort:`Ep. {{number}}`,episodeLong:`Episode {{number}}`,listenYoutube:`Listen on YouTube`},useCases:{title:`Use Cases`,subtitle:`Practical examples of how our clients use the platform`,backLabel:`Back to use cases`,siteName:`Beephish Use Cases`},media:{title:`Media`,subtitle:`News, articles and coverage about information security and Beephish`,backLabel:`Back to Media`,siteName:`Beephish Media`,sourcePrefix:`Source:`,readSource:`Read at original source`}},Sk={downloadPdf:`Download PDF`,generatingPdf:`Generating...`,version:`Version {{version}}`,lastUpdate:`Last update: {{date}}`,dateLocale:`en-US`,privacy:{fallbackTitle:`Privacy Policy`,fallbackMessage:`The privacy policy is being prepared and will be available soon.`,pdfFilename:`privacy-policy-v{{version}}`},terms:{fallbackTitle:`Terms of Use`,fallbackMessage:`The terms of use are being prepared and will be available soon.`,pdfFilename:`terms-of-use-v{{version}}`},history:{title:`Version History`,view:`View`,publishedOn:`Published on {{date}}`,versionLabel:`Version {{version}}`}},Ck={common:{selectPlaceholder:`Select...`,sending:`Sending...`,optional:`optional`},validation:{nameMin:`Name must be at least 2 characters`,nameMax:`Name must be at most 100 characters`,emailInvalid:`Invalid email`,emailMax:`Email must be at most 255 characters`,phoneMin:`Phone must have at least 10 digits`,phoneMax:`Phone must be at most 20 characters`,phoneInvalid:`Invalid phone`,companyMin:`Company must be at least 2 characters`,companyMax:`Company must be at most 100 characters`,positionMin:`Position must be at least 2 characters`,positionMax:`Position must be at most 100 characters`,messageMax:`Message must be at most 1000 characters`,cnpjRequired:`CNPJ is required`,cnpjInvalid:`Invalid CNPJ`,companyTypeRequired:`Select the company type`,companySizeRequired:`Select the company size`,regionRequired:`Select the region`,whatsappInvalid:`WhatsApp must have 10 (landline) or 11 (mobile) digits`},contact:{defaultTitle:`Talk to a Specialist`,successTitle:`Message sent!`,successMessage:`We'll get in touch with you soon.`,successToast:`Message sent successfully!`,errorToast:`Error sending message. Please try again.`,fields:{name:`Full name`,namePlaceholder:`Your name`,email:`Business email`,emailPlaceholder:`[email protected]`,phone:`Phone`,phonePlaceholder:`(11) 99999-9999`,company:`Company`,companyPlaceholder:`Company name`,messageOptional:`Message (optional)`,messagePlaceholder:`How can we help?`},submit:`Send message`},partner:{defaultTitle:`Become a partner`,successTitle:`Request sent!`,successMessage:`Our team will get in touch soon to discu
114ss the partnership.`,successToast:`Request sent successfully!`,errorToast:`Error sending request. Please try again.`,fields:{name:`Full name`,namePlaceholder:`Your name`,position:`Position`,positionPlaceholder:`Your position`,email:`Business email`,emailPlaceholder:`[email protected]`,phone:`Phone`,phonePlaceholder:`(11) 99999-9999`,company:`Company name`,companyPlaceholder:`Your company name`,cnpj:`CNPJ`,cnpjPlaceholder:`00.000.000/0000-00`,companyType:`Company type`,companySize:`Company size`,region:`Region`,messageOptional:`Message (optional)`,messagePlaceholder:`Tell us more about your company and interest in the partnership...`},submit:`Send request`,notes:{cnpj:`CNPJ`,companyType:`Company type`,size:`Size`,region:`Region`,message:`Message`},companyTypes:{reseller:`Reseller`,integrator:`Integrator`,consultant:`Consultancy`,msp:`MSP / MSSP`,distributor:`Distributor`,other:`Other`},companySizes:{"1-10":`1 to 10 employees`,"11-50":`11 to 50 employees`,"51-200":`51 to 200 employees`,"201-500":`201 to 500 employees`,"500+":`More than 500 employees`},regions:{sudeste:`Southeast`,sul:`South`,nordeste:`Northeast`,"centro-oeste":`Central-West`,norte:`North`,internacional:`International`}},techPartner:{defaultTitle:`I want to be a technology partner`,successTitle:`Request sent!`,successMessage:`Our team will get in touch soon.`,successToast:`Request sent successfully!`,errorToast:`Error sending. Please try again.`,fields:{name:`Full name`,namePlaceholder:`Your name`,email:`Business email`,emailPlaceholder:`[email protected]`,company:`Company`,companyPlaceholder:`Company name`,websiteOptional:`Website (optional)`,websitePlaceholder:`https://...`,phone:`Phone`,phonePlaceholder:`(00) 00000-0000`,ramal:`Extension`,ramalPlaceholder:`Optional`,whatsapp:`Contact WhatsApp`,whatsappPlaceholder:`(00) 90000-0000`,integrationOptional:`About the desired integration (optional)`,integrationPlaceholder:`Tell us how your technology can integrate with BeePhish...`},submit:`Send request`,notes:{website:`Website`,whatsapp:`WhatsApp`,message:`Me
114ssage`,extension:`ext.`}},gone:{title:`Page removed — BeePhish`,label:`410 — Gone`,heading:`This page has been removed`,message:`The content from <code>/solucoes/</code> has been reorganized and now lives at <code>/plataforma/</code>. This specific URL no longer exists.`,ctaPlatform:`Go to Platform`,ctaHome:`Home page`}},wk={nav:{back:`Back`,next:`Continue`,loading:`Processing…`,seeResult:`See my result`},states:{loading:`Loading the assessment…`,error:`We couldn't load the assessment. Please try again shortly.`},steps:{triagem:{title:`About your company`,description:`Four quick questions to give the assessment context. They do not affect your score.`},nucleo:{title:`Human risk fundamentals`,description:`These eight questions generate your comparable score. Answer for how things stand today, not how they are planned.`},modulo:{title:`Going deeper`,description:`Questions selected based on your previous answers.`},adaptativas:{title_one:`One last quick check`,title_other:`A few last quick checks`,description_one:`This does not affect your score — it makes the recommendations more specific to your context.`,description_other:`These do not affect your score — they make the recommendations more specific to your context.`}},partial:{eyebrow:`Your result`,sansEquivalent:`SANS equivalent`,capBody:`Your result was capped at {{ceiling}} points because a foundational control is missing ({{causes}}). Without that base, every other control rests on weak ground — and the score would not reflect real maturity.`,capTitle:`Your score was capped`,gapTitle:`Your most critical gap`,unlockTitle:`The full report includes`,locked:[`Question-by-question breakdown, with the weight of each item`,`Your profile in the complementary module`,`Mapping to SANS and ISO/IEC 27001`,`Practical recommendations for every gap identified`],unlockCta:`Get the full report`,benchmarkLine:`{{share}}% of programmes sit at this same stage.`},gate:{title:`Get the full report`,subtitle:`Knowing where you stand is half the diagnosis. The full report shows the path.`,fields:{email:`Work email`,name:`Name`,phone:`Phone`,company:`Company`,position:`Job title`},consent:{report:`I authorise the use of my email to receive the full report of this human risk maturity assessment.`,commercial:`I agree to receive commercial contact from Beephish about products and solutions related to this assessment.`},errors:{email:`Please enter a valid email address.`,consentRequired:`We need your authorisation to send the report.`,generic:`We couldn't unlock the report right now. Please try again shortly.`,freeEmail:`Please use your work email. Personal addresses (Gmail, Hotmail, Outlook, etc.) are not accepted.`},privacyPrefix:`By continuing, you agree to our`,privacyLink:`Privacy Policy`,dpoNotice:`Your data can be deleted at any time by contacting our Data Protection Officer (DPO) at [email protected].`,submit:`Unlock report`},report:{eyebrow:`Full report`,profileTitle:`Profile in the complementary module`,profiles:{cultura:{low:`Emerging Culture`,mid:`Developing Culture`,high:`Established Culture`},avancado:{low:`Reactive Management`,mid:`Structured Management`,high:`Proactive Management`}},breakdownTitle:`Question-by-question breakdown`,weight:`Weight`,recommendationsTitle:`Recommendations`,profileDescriptions:{cultura:{low:`Awareness activity is still occasional and depends on individual initiative. Secure behaviour happens when it happens, with nothing in the environment sustaining it.`,mid:`Recurring practices exist, but they are uneven across areas and lack continuous reinforcement. The culture leans on the programme more than on habit.`,high:`Security is part of the daily repertoire: people know what to do, report without fear, and the topic stays alive between formal training cycles.`},avancado:{low:`The programme responds to events after they happen. It lacks the instrumentation to anticipate exposure and prioritise who is most at risk.`,mid:`Controls are in place and recurring, but the read on risk is still aggregate — everyone is treated the same, when risk never is.`,high:`Controls run continuously and segmented by risk, with periodic review. Management anticipates exposure instead of reacting to incidents.`}},benchmarkTitle:`Market benchmark`,benchmarkSameStage:`{{share}}% of programmes sit at this same stage.`,benchmarkAhead:`You are ahead of {{ahead}}% of the market.`,benchmarkLowest:`Most of the market has already moved beyond this stage.`,benchmarkSource:`Stage distribution — SANS Security Awareness Report 2026.`},qualification:{title:`Want more specific recommendations?`,intro:`Optional — if you'd like our team to tailor recommendations to your context, answer 3 more quick questions.`,skip:`Not now`,submit:`Submit`,thanks:`Thank you. Your answers help our team tailor the recommendations.`},intro:{eyebrow:`Free assessment`,title:`Where does your company stand on human risk maturity?`,lead:`Do you know how prepared y
114our company is to handle the human factor as part of its security strategy?`,description:`Find out in just 5 minutes. Our self-assessment generates a maturity score from 0 to 100, indicates the corresponding level in the SANS Security Awareness Maturity Model, and shows where the main gaps are and which paths to prioritize to move forward.`,steps:{title:`How it works`,intro:`You answer 3 blocks of multiple-choice questions, assessing the current stage of the main human risk management practices. Based on your answers, you'll receive an objective view of your maturity level and the points that most impact the evolution of your Human Risk strategy.`,items:[{title:`Context`,body:`Company size, security structure, and incident history do not influence the score calculation. They help interpret the result.`},{title:`Fundamentals`,body:`MFA, access control, training, phishing, incident response, leadership indicators, and generative AI governance. This is the block that makes up the score, with weights defined according to the criticality of each component.`},{title:`Depth`,body:`Selected based on your previous answers. Those who already run periodic campaigns get different questions from those just starting out.`}]},result:{title:`What you get`,free:{title:`On screen, no sign-up`,items:[`Your 0–100 score and maturity band`,`Your equivalent level in the SANS Security Awareness Maturity Model`,`Your most critical gap, identified and named`,`A cap warning when a foun
114dational control is missing`]},gated:{title:`By email, if you want it`,items:[`Question-by-question breakdown, with the weight of each item`,`Your depth profile, with a more detailed view of your maturity`,`Mapping to SANS and ISO/IEC 27001 (Annex A), connecting the assessed practices to the main security frameworks`,`Practical recommendations for each identified gap, indicating paths to evolve your maturity`]}},honesty:{title:`What this assessment is not`,paragraphs:[`This assessment is based exclusively on the information you declare and does not involve any technical verification. Like any self-assessment, the results may reflect a more optimistic perception of reality.`,`Therefore, it does not replace a formal audit or the UHRI, the human risk index calculated by Beephish from real platform signals such as phishing, DLP, and SIEM data.`,`Its purpose is to identify attention points and guide priorities, not to certify compliance or represent a definitive technical evaluation.`]},cta:`Start the assessment`,ctaNote:`Takes about 5 minutes. You check your score before deciding whether to access the full report.`,privacy:`Questionnaire answers describe your organisation and are not sensitive personal data. Name, email, company and job title, when provided, are processed under Brazil's General Data Protection Law on the basis of your consent, and can be deleted at any time by contacting our Data Protection Officer at [email protected].`},identificacao:{title:`Before you start`,lead:`The full report is sent by email at the end. Enter your details to receive yours.`,nameLabel:`Name`,emailLabel:`Work email`,phoneLabel:`Phone (optional)`,phonePlaceholder:`(11) 98765-4321`,companyLabel:`Company`,consent:`I authorise the use of my email to receive the full report of this human risk maturity assessment.`,nameError:`Enter your name to continue.`,emailError:`Enter a valid email address to continue.`,companyError:`Enter your company name to continue.`,consentError:`We need your authorisation to use the email you provided.`,genericError:`We couldn't start the assessment right now. Please try again shortly.`,submit:`Start`,note:`Job title is only asked at the end, and is optional. Commercial contact is a separate authorisation you decide on after seeing your result.`,freeEmailError:`Please use your work email. Personal addresses (Gmail, Hotmail, Outlook, etc.) are not accepted.`}},Tk={hero:{title:`Talk to BeePhish`,subtitle:`Talk to our team about human risk management, phishing simulations and security awareness training. We answer every commercial request within one business day.`},about:{title:`Who we are`,description:`BeePhish is a Brazilian SaaS platform for Human Risk Management. We work across three pillars — educate, test and monitor — to turn employee behaviour into a security control. We have trained more than 100,000 users across 50+ companies, and our founders bring decades of information security experience from large Brazilian organisations. The platform complies with the Brazilian data protection law (LGPD) and is available on web and mobile.`},channels:{title:`How to reach us`,items:[{name:`Sales and new proposals`,description:`Use the form on this page or write to [email protected]. Our sales team replies with a no-commitment discovery call to understand your organisation.`},{name:`Customer support`,description:`Active customers are supported through the channel shared during onboarding and through support.beephish.com.`},{name:`Partnerships`,description:`Companies interested in reselling or integrating with BeePhish should use the Become a Partner page, which routes the request to our channel team.`},{name:`Privacy and data protection`,description:`Data subject requests under the Brazilian LGPD should be sent to [email protected] with the subject LGPD. Full details are in our Privacy Policy.`}]},company:{title:`Company details`,items:[`Legal name: BeePhish`,`Email: [email protected]`,`Headquarters: Sao Paulo, SP — Brazil`,`Languages: Portuguese and English`,`Official website: https://beephish.com`]},expect:{title:`What happens after you submit`,description:`Your details go straight into our CRM and a specialist reaches out to understand where your awareness programme stands today. If you prefer an objective read before the call, take the Human Risk Maturity Assessment and receive a report with a snapshot of your organisation.`},form:{heading:`Talk to a specialist`}},Ek=`beephish_lang`;function Dk(){try{let e=localStorage.getItem(Ek);if(e===`pt`||e===`en`)return e}catch{}return(typeof navigator<`u`?navigator.languages&&navigator.languages.length?navigator.languages:[navigator.language||`pt`]:[`pt`]).some(e=>(e||``).toLowerCase().startsWith(`pt`))?`pt`:`en`}function Ok(e){try{localStorage.setItem(Ek,e)}catch{}Nf.changeLanguage(e)}function kk(){try{let e=localStorage.getItem(Ek);return e===`pt`||e===`en`?e:null}catch{return null}}var Ak=Dk();Nf.use($f).init({resources:{pt:{common:HO,home:UO,solucoes:WO,"solucao-phishing":GO,"solucao-treinamentos":KO,"solucao-comunicacao":qO,"solucao-gestao-risco":JO,bhrs:YO,"solucao-gamificacao":XO,plataforma:ZO,sobre:QO,parceiros:$O,clientes:ek,"como-parceiro":tk,recursos:nk,legal:rk,forms:ik,assessment:ak,contato:ok},en:{common:sk,home:ck,solucoes:lk,"solucao-phishing":uk,"solucao-treinamentos":dk,"solucao-comunicacao":fk,"solucao-gestao-risco":pk,bhrs:mk,"solucao-gamificacao":hk,plataforma:gk,sobre:_k,parceiros:vk,clientes:yk,"como-parceiro":bk,recursos:xk,legal:Sk,forms:Ck,assessment:wk,
114contato:Tk}},lng:Ak,fallbackLng:`pt`,defaultNS:`common`,fallbackNS:`common`,load:`languageOnly`,interpolation:{escapeValue:!1},react:{useSuspense:!1},returnEmptyString:!1,returnNull:!1,saveMissing:!1,parseMissingKeyHandler:(e,t)=>t||(e.split(`.`).pop()??e)}),Nf.on(`missingKey`,(e,t,n)=>{}),typeof document<`u`&&(document.documentElement.lang=Ak===`pt`?`pt-BR`:`en`,Nf.on(`languageChanged`,e=>{document.documentElement.lang=e===`pt`?`pt-BR`:`en`}));var jk=Nf,Mk=[{code:`pt`,labelKey:`language.ptShort`,nameKey:`language.pt`},{code:`en`,labelKey:`language.enShort`,nameKey:`language.en`}];function Nk({className:e,align:t=`end`}){let{t:n,i18n:r}=sp(`common`),[i,a]=(0,P.useState)(!1),o=r.language?.startsWith(`en`)?`en`:`pt`,s=Mk.find(e=>e.code===o)??Mk[0];return(0,I.jsxs)(zO,{open:i,onOpenChange:a,children:[(0,I.jsx)(BO,{asChild:!0,children:(0,I.jsxs)(`button`,{type:`button`,"aria-label":n(`footer.languageAria`),className:m(`inline-flex items-center gap-1.5 rounded-md px-2 py-1.5 text-sm text-muted-foreground hover:text-primary transition-colors`,e),children:[(0,I.jsx)(hn,{size:14}),(0,I.jsx)(`span`,{className:`font-medium`,children:n(s.labelKey)})]})}),(0,I.jsx)(VO,{align:t,className:`w-44 p-1 bg-popover`,children:Mk.map(e=>{let t=e.code===o;return(0,I.jsxs)(`button`,{type:`button`,onClick:()=>{Ok(e.code),a(!1)},className:m(`w-full flex items-center justify-between gap-2 rounded-sm px-3 py-2 text-sm transition-colors hover:bg-secondary`,t?`text-foreground font-medium`:`text-muted-foreground`),children:[(0,I.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,I.jsx)(`span`,{className:`font-medium`,children:n(e.labelKey)}),(0,I.jsx)(`span`,{children:n(e.nameKey)})]}),t&&(0,I.jsx)(on,{size:14,className:`text-primary`})]},e.code)})})]})}var Pk=[{labelKey:`nav.sections.empresa`,links:[{tKey:`nav.empresa.historia`,href:`/sobre`,icon:yn},{tKey:`nav.empresa.valores`,href:`/sobre#valores`,icon:Mn},{tKey:`nav.empresa.especialista`,href:`__specialist__`,icon:On},{tKey:`nav.empresa.carreira`,href:`https://www.linkedin.com/company/beephish/jobs/`,icon:nn,external:!0}]},{labelKey:`nav.sections.plataforma`,links:[{tKey:`nav.plataforma.risco`,href:`/plataforma/gestao-risco`,icon:tn},{tKey:`nav.plataforma.comunicacao`,href:`/plataforma/comunicacao`,icon:Tn},{tKey:`nav.plataforma.phishing`,href:`/plataforma/phishing`,icon:An},{tKey:`nav.plataforma.gamificacao`,href:`/plataforma/gamificacao`,icon:mn},{tKey:`nav.plataforma.treinamentos`,href:`/plataforma/treinamentos`,icon:gn}]},{labelKey:`nav.sections.cases`,links:[{tKey:`nav.cases.descricao`,href:`/clientes`,icon:fn},{tKey:`nav.cases.avaliacoes`,href:`https://www.gartner.com/reviews/product/beephish-1836689823`,icon:dn,external:!0}]},{labelKey:`nav.sections.parceiros`,links:[{tKey:`nav.parceiros.programa`,href:`/parceiros`,icon:_n},{tKey:`nav.parceiros.buscar`,href:`__search_partner__`,icon:kn},{tKey:`nav.parceiros.tornarse`,href:`/parceiros/seja-um-parceiro`,icon:Pn},{tKey:`nav.parceiros.tecnologicos`,href:`/parceiros/parceiros-tecnologicos`,icon:_n}]},{labelKey:`nav.sections.recursos`,links:[{tKey:`nav.recursos.midia`,href:`/midia`,icon:Dn},{tKey:`nav.recursos.blog`,href:`/blog`,icon:en},{tKey:`nav.recursos.webinars`,href:`/webinars`,icon:In},{tKey:`nav.recursos.podcasts`,href:`/podcasts`,icon:En},{tKey:`nav.recursos.casos`,href:`/casos-de-uso`,icon:pn}]}];function Fk(e,t){return e.some(n=>Ik(n.href,t,e))}function Ik(e,t,n){return!e||e===`#`||e.startsWith(`__`)?!1:t===e?!0:e!==`/`&&t.startsWith(e+`/`)?!n.some(n=>n.href!==e&&n.href&&n.href!==`#`&&!n.href.startsWith(`__`)&&n.href.length>e.length&&(t===n.href||t.startsWith(n.href+`/`))):!1}function Lk(){let{t:e}=sp(`common`),[t,n]=P.useState(!1),[r,i]=P.useState(!1),a=Bk(10),{pathname:o}=R(),{isEnabled:s,isHydrating:c}=cO();P.useEffect(()=>{let e=()=>i(!0);return window.addEventListener(`open-search-partner`,e),()=>window.removeEventListener(`open-search-partner`,e)},[]);let l=P.useMemo(()=>Pk.map(e=>e.labelKey===`nav.sections.empresa`?{...e,links:e.links.filter(e=>e.tKey!==`nav.empresa.carreira`||s(`empresa_carreira`,!1))}:e.labelKey===`nav.sections.parceiros`?{...e,links:e.links.filter(e=>e.tKey!==`nav.parceiros.tecnologicos`||s(`parceiros_tecnologicos`,!0))}:e),[s]);return P.useEffect(()=>(t?document.body.style.overflow=`hidden`:document.body.style.overflow=``,()=>{document.body.style.overflow=``}),[t]),(0,I.jsxs)(`header`,{className:m(`fixed top-0 left-0 right-0 z-50 transition-all duration-300`,a?`bg-background/80 backdrop-blur-lg shadow-sm py-2`:`bg-transparent py-4`),children:[(0,I.jsxs)(`div`,{className:`container mx-auto px-4 flex items-center justify-between`,children:[(0,I.jsx)(md,{to:`/`,className:`flex items-center shrink-0`,children:(0,I.jsx)(`img`,{src:Mm,alt:`BeePhish — Plataforma de Simulação de Phishing e Gestão de Risco Humano`,className:m(`w-auto transition-all duration-300`,a?`h-8`:`h-12`)})}),(0,I.jsx)(Cm,{className:`hidden lg:flex`,children:(0,I.jsx)(wm,{children:c?Pk.map(t=>(0,I.jsx)(Tm,{children:(0,I.jsx)(`div`,{className:`flex items-center px-3 py-2`,"aria-hidden":`true`,role:`status`,"aria-label":e(`nav.ariaLoading`),children:(0,I.jsx)($,{className:`h-4 w-20`})})},t.labelKey)):l.map(t=>(0,I.jsxs)(Tm,{children:[(0,I.jsx)(Dm,{className:m(`bg-transparent hover:text-foreground hover:bg-secondary/50 data-[state=open]:bg-secondary/50 text-sm`,Fk(t.links,o)?`text-primary font-semibold`:`text-muted-foreground`),children:e(t.labelKey)}),(0,I.jsx)(Om,{children:(0,I.jsx)(`ul`,{className:`grid grid-cols-2 gap-1 p-4 w-[600px]`,children:t.links.map(e=>(0,I.jsx)(zk,{...e,isActive:Ik(e.href,o,t.links)},e.tKey))})})]},t.labelKey))})}),(0,I.jsxs)(`div`,{className:`hidden lg:flex items-center gap-3`,children:[(0,I.jsx)(Nk,{}),(0,I.jsx)(g,{asChild:!0,variant:`hero-outline`,size:`sm`,children:(0,I.jsx)(md,{to:`/assessment`,children:e(`cta.assessment`)})}),(0,I.jsx)(MD,{source:`header-specialist`,children:(0,I.jsx)(g,{variant:`hero`,size:`sm`,children:e(`cta.specialist`)})})]}),(0,I.jsx)(`button`,{onClick:()=>n(!t),className:`lg:hidden p-2 text-foreground`,"aria-expanded":t,"aria-controls":`mobile-menu`,"aria-label":e(`nav.ariaToggle`),children:(0,I.jsx)(pp,{open:t,className:`size-6`})})]}),(0,I.jsxs)(Rk,{open:t,onClose:()=>n(!1),children:[(0,I.jsxs)(`div`,{className:`flex flex-col gap-6 p-6`,children:[l.map(t=>(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`p`,{className:`text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-3`,children:e(t.labelKey)}),t.links.map(t=>{let r=e(`${t.tKey}.title`);return t.href===`__specialist__`?(0,I.jsx)(MD,{source:`header-mobile-menu-specialist`,children:(0,I.jsxs)(`button`,{type:`button`,onClick:()=>n(!1),className:`w-full text-left flex items-center gap-3 py-2.5 text-foreground hover:text-primary transition-colors`,children:[(0,I.jsx)(t.icon,{size:18,className:`text-muted-foreground`}),r]})},t.tKey):t.href===`__search_partner__`?(0,I.jsxs)(`button`,{type:`button`,onClick:()=>{n(!1),window.dispatchEvent(new CustomEvent(`open-search-partner`))},className:`w-full text-left flex items-center gap-3 py-2.5 text-foreground hover:text-primary transition-colors`,children:[(0,I.jsx)(t.icon,{size:18,className:`text-muted-foreground`}),r]},t.tKey):t.external?(0,I.jsxs)(`a`,{href:t.href,target:`_blank`,rel:`noopener noreferrer`,onClick:()=>{fp(t.tKey,t.href,{source:`header-mobile`}),n(!1)},className:`flex items-center gap-3 py-2.5 text-foreground hover:text-primary transition-colors`,children:[(0,I.jsx)(t.icon,{size:18,className:`text-muted-foreground`}),r]},t.tKey):(0,I.jsxs)(md,{to:t.href,onClick:()=>n(!1),className:`flex items-center gap-3 py-2.5 text-foreground hover:text-primary transition-colors`,children:[(0,I.jsx)(t.icon,{size:18,className:`text-muted-foreground`}),r]},t.tKey)}),c&&t.labelKey===`nav.sections.empresa`&&(0,I.jsxs)(`div`,{className:`flex items-center gap-3 py-2.5`,"aria-hidden":`true`,children:[(0,I.jsx)($,{className:`h-[18px] w-[18px] rounded`}),(0,I.jsx)($,{className:`h-4 w-24`})]})]},t.labelKey)),(0,I.jsx)(`div`,{className:`pt-2`,children:(0,I.jsx)(Nk,{align:`start`})})]}),(0,I.jsxs)(`div`,{className:`border-t border-border p-6 flex flex-col gap-3`,children:[(0,I.jsx)(g,{asChild:!0,variant:`hero-outline`,className:`w-full`,children:(0,I.jsx)(md,{to:`/assessment`,onClick:()=>n(!1),children:e(`cta.assessment`)})}),(0,I.jsx)(MD,{source:`header-mobile-specialist`,children:(0,I.jsx)(g,{variant:`hero`,className:`w-full`,onClick:()=>n(!1),children:e(`cta.specialist`)})})]})]}),(0,I.jsx)(ZD,{open:r,onOpenChange:i})]})}function Rk({open:e,children:t,onClose:n}){let{t:r}=sp(`common`);return!e||typeof window>`u`?null:(0,Pe.createPortal)((0,I.jsx)(`div`,{className:`fixed inset-0 z-[60] bg-background/95 backdrop-blur-lg pt-6 overflow-y-auto`,children:(0,I.jsxs)(`div`,{className:`container mx-auto`,children:[(0,I.jsx)(`div`,{className:`flex justify-end px-4 mb-4`,children:(0,I.jsx)(`button`,{onClick:n,className:`p-2 text-foreground`,"aria-label":r(`nav.ariaClose`),children:(0,I.jsx)(pp,{open:!0,className:`size-6`})})}),t]})}),document.body)}function zk({tKey:e,icon:t,href:n,external:r,isActive:i}){let{t:a}=sp(`common`),o=a(`${e}.title`),s=a(`${e}.description`,{defaultValue:``}),c=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`div`,{className:m(`mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-md border`,i?`border-primary/30 bg-primary/10`:`border-border bg-secondary/50`),children:(0,I.jsx)(t,{size:16,className:`text-primary`})}),(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`div`,{className:m(`text-sm font-medium`,i?`text-primary`:`text-foreground`),children:o}),s&&(0,I.jsx)(`p`,{className:`text-xs text-muted-foreground leading-snug mt-0.5`,children:s})]})]});return n===`__specialist__`?(0,I.jsx)(`li`,{children:(0,I.jsx)(MD,{source:`header-menu-specialist`,children:(0,I.jsx)(`button`,{type:`button`,className:m(`w-full text-left flex items-start gap-3 rounded-lg p-3 transition-colors hover:bg-secondary/50`,i&&`bg-primary/5`),children:c})})}):n===`__search_partner__`?(0,I.jsx)(`li`,{children:(0,I.jsx)(`button`,{type:`button`,onClick:()=>window.dispatchEvent(new CustomEvent(`open-search-partner`)),className:m(`w-full text-left flex items-start gap-3 rounded-lg p-3 transition-colors hover:bg-secondary/50`,i&&`bg-primary/5`),children:c})}):r?(0,I.jsx)(`li`,{children:(0,I.jsx)(km,{asChild:!0,children:(0,I.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,onClick:()=>fp(e,n,{source:`header-desktop`}),className:m(`flex items-start gap-3 rounded-lg p-3 transition-colors hover:bg-secondary/50`,i&&`bg-primary/5`),children:c})})}):(0,I.jsx)(`li`,{children:(0,I.jsx)(km,{asChild:!0,children:(0,I.jsx)(md,{to:n,className:m(`flex items-start gap-3 rounded-lg p-3 transition-colors hover:bg-secondary/50`,i&&`bg-primary/5`),children:c})})})}function Bk(e){let[t,n]=P.useState(!1),r=P.useCallback(()=>{n(window.scrollY>e)},[e]);return P.useEffect(()=>(window.addEventListener(`scroll`,r),()=>window.removeEventListener(`scroll`,r)),[r]),P.useEffect(()=>{r()},[r]),t}var Vk=[{labelKey:`nav.sections.empresa`,links:[{href:`/sobre`,tKey:`nav.empresa.historia.title`},{href:`/sobre#valores`,tKey:`nav.empresa.valores.title`},{href:`https://www.linkedin.com/company/beephish/jobs/`,tKey:`nav.empresa.carreira.title`,external:!0},{href:`__specialist__`,tKey:`nav.empresa.especialista.title`}]},{labelKey:`nav.sections.plataforma`,links:[{href:`/plataforma/gestao-risco`,tKey:`nav.plataforma.risco.title`},{href:`/plataforma/gestao-risco/bhrs`,tKey:`footer.bhrsDetail`,indent:!0},{href:`/plataforma/phishing`,tKey:`nav.plataforma.phishing.title`},{href:`/plataforma/treinamentos`,tKey:`nav.plataforma.treinamentos.title`},{href:`/plataforma/comunicacao`,tKey:`nav.plataforma.comunicacao.title`},{href:`/plataforma/gamificacao`,tKey:`nav.plataforma.gamificacao.title`}]},{labelKey:`nav.sections.cases`,links:[{href:`/clientes`,tKey:`nav.cases.descricao.title`},{href:`https://www.gartner.com/reviews/product/beephish-1836689823`,tKey:`nav.cases.avaliacoes.title`,external:!0}]},{labelKey:`nav.sections.parceiros`,links:[{href:`/parceiros`,tKey:`nav.parceiros.programa.title`},{href:`__search_partner__`,tKey:`nav.parceiros.buscar.title`},{href:`/parceiros/seja-um-parceiro`,tKey:`nav.parceiros.tornarse.title`},{href:`/parceiros/parceiros-tecnologicos`,tKey:`nav.parceiros.tecnologicos.title`,menuKey:`parceiros_tecnologicos`}]},{labelKey:`nav.sections.recursos`,links:[{href:`/midia`,tKey:`nav.recursos.midia.title`},{href:`/blog`,tKey:`nav.recursos.blog.title`},{href:`/webinars`,tKey:`nav.recursos.webinars.title`},{href:`/podcasts`,tKey:`nav.recursos.podcasts.title`},{href:`/casos-de-uso`,tKey:`nav.recursos.casos.title`}]}],Hk=[{href:`/privacidade`,tKey:`footer.legal.privacy`},{href:`/termos`,tKey:`footer.legal.terms`}];function Uk(){let{t:e}=sp(`common`),t=new Date().getFullYear(),n=R(),{isEnabled:r}=cO(),i=Vk.map(e=>({...e,links:e.links.filter(e=>!e.menuKey||r(e.menuKey,!0))}));return(0,I.jsx)(`footer`,{className:`bg-card border-t border-border`,children:(0,I.jsxs)(`div`,{className:`container mx-auto px-4 py-16`,children:[(0,I.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-12 gap-12 mb-12`,children:[(0,I.jsxs)(`div`,{className:`lg:col-span-3`,children:[(0,I.jsx)(md,{to:`/`,className:`inline-block mb-4 group`,children:(0,I.jsx)(`img`,{src:Mm,alt:`BeePhish — Plataforma de Simulação de Phishing e Gestão de Risco Humano`,width:227,height:64,className:`h-16 w-auto transition-all duration-300 group-hover:scale-105 group-hover:brightness-110`})}),(0,I.jsx)(`p`,{className:`text-muted-foreground text-sm leading-relaxed mb-6 max-w-sm`,children:e(`footer.tagline`)}),(0,I.jsxs)(`div`,{className:`flex items-center gap-4 mb-6`,children:[(0,I.jsx)(`a`,{href:`https://linkedin.com/company/beephish`,target:`_blank`,rel:`noopener noreferrer`,className:`w-10 h-10 rounded-lg bg-secondary flex items-center justify-center text-muted-foreground hover:text-primary hover:bg-secondary/80 transition-colors`,"aria-label":`LinkedIn`,children:(0,I.jsx)(xn,{size:18})}),(0,I.jsx)(`a`,{href:`https://instagram.com/beephish`,target:`_blank`,rel:`noopener noreferrer`,className:`w-10 h-10 rounded-lg bg-secondary flex items-center justify-center text-muted-foreground hover:text-primary hover:bg-secondary/80 transition-colors`,"aria-label":`Instagram`,children:(0,I.jsx)(bn,{size:18})})]}),(0,I.jsx)(`ul`,{className:`space-y-2`,children:(0,I.jsx)(`li`,{children:(0,I.jsxs)(`a`,{href:`mailto:[email protected]`,className:`text-sm text-muted-foreground hover:text-primary transition-colors flex items-center gap-2`,children:[(0,I.jsx)(Cn,{size:14}),`[email protected]`]})})})]}),(0,I.jsx)(`div`,{className:`lg:col-span-9 grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 ga
114p-8`,children:i.map(t=>(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`h4`,{className:`font-heading font-semibold text-foreground mb-4`,children:e(t.labelKey)}),(0,I.jsxs)(`ul`,{className:`space-y-3`,children:[t.links.map(r=>{let i=n.pathname===r.href,a=m(`text-sm transition-colors inline-flex items-center gap-2`,r.indent&&`ml-4 text-xs`,i?`text-primary font-semibold`:`text-muted-foreground hover:text-primary`),o=e(r.tKey),s=(0,I.jsxs)(I.Fragment,{children:[i&&(0,I.jsx)(`span`,{"aria-hidden":`true`,className:`inline-block w-1.5 h-1.5 rounded-full bg-primary shadow-[0_0_8px_hsl(var(--primary))] animate-pulse`}),o]});return r.href===`__specialist__`?(0,I.jsx)(`li`,{children:(0,I.jsx)(MD,{source:`footer-specialist`,children:(0,I.jsx)(`button`,{type:`button`,className:a,children:s})})},`${t.labelKey}-${r.tKey}`):r.href===`__search_partner__`?(0,I.jsx)(`li`,{children:(0,I.jsx)(`button`,{type:`button`,className:a,onClick:()=>window.dispatchEvent(new CustomEvent(`open-search-partner`)),children:s})},`${t.labelKey}-${r.tKey}`):r.external?(0,I.jsx)(`li`,{children:(0,I.jsx)(`a`,{href:r.href,target:`_blank`,rel:`noopener noreferrer`,onClick:()=>fp(r.tKey,r.href,{source:`footer`}),className:a,children:s})},`${t.labelKey}-${r.tKey}`):(0,I.jsx)(`li`,{children:(0,I.jsx)(md,{to:r.href,className:a,children:s})},`${t.labelKey}-${r.tKey}`)}),t.labelKey===`nav.sections.recursos`&&(0,I.jsx)(`li`,{className:`pt-6`,children:(0,I.jsx)(Nk,{align:`start`,className:`px-0`})})]})]},t.labelKey))})]}),(0,I.jsxs)(`div`,{className:`pt-8 border-t border-border flex flex-col md:flex-row items-center justify-between gap-4`,children:[(0,I.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:e(`footer.rights`,{year:t})}),(0,I.jsxs)(`div`,{className:`flex items-center gap-6`,children:[(0,I.jsx)(`button`,{type:`button`,onClick:()=>window.dispatchEvent(new CustomEvent(`open-cookie-settings`)),className:`text-sm text-muted-foreground hover:text-primary transition-colors`,children:e(`footer.cookieSettings`)}),Hk.map(t=>(0,I.jsx)(md,{to:t.href,className:`text-sm text-muted-foreground hover:text-primary transition-colors`,children:e(t.tKey)},t.href))]})]})]})})}function Wk({source:e=`website_contact_section`}){let{t}=sp(`common`);return(0,I.jsx)(`section`,{className:`py-24 bg-card/50`,children:(0,I.jsx)(`div`,{className:`container mx-auto px-4`,children:(0,I.jsxs)(`div`,{className:`max-w-6xl mx-auto grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-16 items-center`,children:[(0,I.jsxs)(N.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},children:[(0,I.jsxs)(`span`,{className:`inline-flex items-center gap-2 text-primary font-semibold text-sm uppercase tracking-wider mb-4`,children:[(0,I.jsx)(`div`,{className:`w-8 h-px bg-primary`}),t(`contactSection.eyebrow`)]}),(0,I.jsx)(`h2`,{className:`font-heading text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-6`,children:t(`contactSection.title`)}),(0,I.jsx)(`p`,{className:`text-lg text-muted-foreground mb-6 leading-relaxed`,children:t(`contactSection.description`)}),(0,I.jsxs)(`ul`,{className:`space-y-3 text-muted-foreground`,children:[(0,I.jsxs)(`li`,{className:`flex items-center gap-3`,children:[(0,I.jsx)(`div`,{className:`w-2 h-2 rounded-full bg-primary`}),t(`contactSection.bullets.demo`)]}),(0,I.jsxs)(`li`,{className:`flex items-center gap-3`,children:[(0,I.jsx)(`div`,{className:`w-2 h-2 rounded-full bg-primary`}),t(`contactSection.bullets.analysis`)]}),(0,I.jsxs)(`li`,{className:`flex items-center gap-3`,children:[(0,I.jsx)(`div`,{className:`w-2 h-2 rounded-full bg-primary`}),t(`contactSection.bullets.proposal`)]})]})]}),(0,I.jsx)(N.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.2},className:`bg-background/80 backdrop-blur-sm rounded-2xl p-8 border border-border/50 shadow-lg`,children:(0,I.jsx)(AD,{source:e})})]})})})}function Gk({children:e}){let{t}=sp(`common`),{pathname:n,hash:r,key:i}=R(),a=[`/blog`,`/midia`,`/webinars`,`/podcasts`,`/casos-de-uso`].some(e=>n===e||n.startsWith(`${e}/`)),o=n!==`/`&&!a&&n!==`/parceiros/seja-um-parceiro`&&n!==`/parceiros/parceiros-tecnologicos`&&n!==`/privacidade`&&n!==`/termos`&&n!==`/contato`&&!n.startsWith(`/assessment`);return(0,P.useEffect)(()=>
114{if(!r){window.scrollTo({top:0,behavior:`auto`});return}let e=r.replace(`#`,``),t=0,n=window.setInterval(()=>{let r=document.getElementById(e);r?(r.scrollIntoView({behavior:`smooth`,block:`start`}),window.clearInterval(n)):++t>=20&&window.clearInterval(n)},50);return()=>window.clearInterval(n)},[n,r,i]),(0,I.jsxs)(`div`,{className:`min-h-screen flex flex-col bg-background`,children:[(0,I.jsx)(`a`,{href:`#main-content`,className:`sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-[100] focus:bg-primary focus:text-primary-foreground focus:px-4 focus:py-2 focus:rounded-md focus:shadow-lg focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2`,children:t(`skipToContent`)}),(0,I.jsx)(Lk,{}),(0,I.jsx)(`main`,{id:`main-content`,tabIndex:-1,className:`flex-1`,children:e}),o&&(0,I.jsx)(Wk,{source:`website_${n.replace(/^\//,``).replace(/\//g,`_`)||`home`}`}),(0,I.jsx)(Uk,{})]})}var Kk=`/assets/hero-team-480-DkYRSH48.avif`,qk=`/assets/hero-team-768-BZYod6J4.avif`,Jk=`/assets/hero-team-1024-oh2Bdhud.avif`,Yk=`/assets/hero-team-480-Ct_iBxOs.webp`,Xk=`/assets/hero-team-768-CuiCs4h7.webp`,Zk=`/assets/hero-team-1024-DltreALs.webp`,Qk=`/assets/hero-team-480-DkRwu-XC.jpg`,$k=`/assets/hero-team-768-d19XqIza.jpg`,eA=`/assets/hero-team-1024-BVy0tVos.jpg`,tA=(0,P.lazy)(()=>w(()=>import(`./HeroBackground-RSlzb1F6.js`).then(e=>({default:e.HeroBackground})),__vite__mapDeps([0,1,2,3]))),nA=(0,P.lazy)(()=>w(()=>import(`./HeroAppPreview-CtbDfJRG.js`).then(e=>({default:e.HeroAppPreview})),__vite__mapDeps([4,1,2,5,6,7,8,3])));function rA(){let{t:e}=sp([`home`,`common`]);return(0,I.jsxs)(`section`,{className:`relative min-h-screen flex flex-col pt-32 pb-0 overflow-hidden`,children:[(0,I.jsxs)(`div`,{className:`absolute inset-0 z-0`,children:[(0,I.jsxs)(`picture`,{children:[(0,I.jsx)(`source`,{type:`image/avif`,srcSet:`${Kk} 480w, ${qk} 768w, ${Jk} 1024w`,sizes:`100vw`}),(0,I.jsx)(`source`,{type:`image/webp`,srcSet:`${Yk} 480w, ${Xk} 768w, ${Zk} 1024w`,sizes:`100vw`}),(0,I.jsx)(`img`,{src:$k,srcSet:`${Qk} 480w, ${$k} 768w, ${eA} 1024w`,sizes:`100vw`,alt:``,width:1024,height:1024,fetchPriority:`high`,decoding:`async`,className:`w-full h-full object-cover`})]}),(0,I.jsx)(`div`,{className:`absolute inset-0 bg-background/90`})]}),(0,I.jsx)(P.Suspense,{fallback:null,children:(0,I.jsx)(tA,{})}),(0,I.jsx)(`div`,{className:`container mx-auto px-4 relative z-10 flex-1 flex flex-col justify-center`,children:(0,I.jsxs)(`div`,{children:[(0,I.jsxs)(`h1`,{className:`font-heading font-bold text-foreground mb-6 leading-tight lg:mt-[94px] max-w-3xl text-left`,style:{fontSize:`3.35rem`},children:[(0,I.jsx)(`span`,{className:`block`,children:e(`home:hero.title1`)}),(0,I.jsxs)(`span`,{className:`block`,children:[e(`home:hero.title2a`),(0,I.jsx)(`span`,{className:`text-gradient inline-block`,children:e(`home:hero.title2b`)})]})]}),(0,I.jsxs)(`div`,{className:`flex flex-col md:flex-row md:items-end md:justify-between gap-6 mt-8`,children:[(0,I.jsx)(`p`,{className:`text-base md:text-lg text-muted-foreground max-w-xl leading-relaxed`,children:e(`home:hero.subtitle`)}),(0,I.jsx)(`div`,{className:`shrink-0`,children:(0,I.jsx)(MD,{source:`home-hero-specialist`,children:(0,I.jsxs)(g,{variant:`hero`,className:`group`,children:[(0,I.jsx)(Rn,{size:15,className:`mr-2 transition-transform group-hover:rotate-12`}),e(`common:cta.specialist`),(0,I.jsx)($t,{size:15,className:`ml-2 transition-transform group-hover:translate-x-1`})]})})})]})]})}),(0,I.jsx)(`div`,{className:`relative z-10 mt-16 md:mt-20 w-full bg-black/20 backdrop-blur-xl backdrop-saturate-150 pt-12 md:pt-16 mt-auto`,children:(0,I.jsx)(P.Suspense,{fallback:(0,I.jsx)(`div`,{style:{minHeight:400}}),children:(0,I.jsx)(nA,{})})})]})}function iA(e,{end:t,duration:n=2e3,delay:r=0}){let[i,a]=(0,P.useState)(0),o=tD(e,{once:!0,margin:`-100px`});return(0,P.useEffect)(()=>{if(!o)return;let e=Date.now()+r,i=e+n,s=()=>{let r=Date.now();if(r<e){requestAnimationFrame(s);return}if(r>=i){a(t);return}let o=1-2**(-10*((r-e)/n));a(Math.floor(o*t)),requestAnimationFrame(s)};requestAnimationFrame(s)},[o,t,n,r]),i}function aA({icon:e,value:t,suffix:n,label:r,index:i}){let a=(0,P.useRef)(null),o=iA(a,{end:t,duration:2e3,delay:i*200});return(0,I.jsxs)(N.div,{ref:a,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:`text-center`,children:[(0,I.jsx)(`div`,{className:`inline-flex items-center justify-center w-12 h-12 rounded-xl bg-primary/10`,style:{marginBottom:`42px`},children:(0,I.jsx)(e,{size:24,className:`text-primary`})}),(0,I.jsxs)(`div`,{className:`font-heading font-bold text-gradient mb-2`,style:{fontSize:`2.45rem`}
114,children:[o.toLocaleString(`pt-BR`),n]}),(0,I.jsx)(`div`,{className:`text-muted-foreground font-medium`,children:r})]})}function oA(){let{t:e}=sp(`home`);return(0,I.jsx)(`section`,{style:{paddingTop:`124px`,paddingBottom:`124px`},children:(0,I.jsxs)(`div`,{className:`container mx-auto px-4`,children:[(0,I.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-8 max-w-4xl mx-auto`,children:[{icon:Fn,value:1e5,suffix:`+`,label:e(`stats.users`)},{icon:rn,value:50,suffix:`+`,label:e(`stats.companies`)},{icon:Nn,value:90,suffix:`%`,label:e(`stats.riskReduction`)}].map((e,t)=>(0,I.jsx)(aA,{icon:e.icon,value:e.value,suffix:e.suffix,label:e.label,index:t},e.label))}),(0,I.jsxs)(N.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},className:`text-center mt-16 max-w-3xl mx-auto`,children:[(0,I.jsxs)(`h2`,{className:`font-heading text-2xl md:text-3xl lg:text-4xl font-bold text-foreground leading-tight`,children:[e(`stats.headlineA`),(0,I.jsx)(`span`,{className:`text-gradient`,children:e(`stats.headlineB`)})]}),(0,I.jsx)(`p`,{className:`mt-4 text-base md:text-lg text-muted-foreground`,children:e(`stats.subHeadline`)})]})]})})}var sA=[.25,.46,.45,.94],cA=[{icon:wn,key:`brasil`},{icon:vn,key:`suporte`},{icon:Rn,key:`rapido`},{icon:un,key:`custo`}],lA=[{name:`Glauco Sampaio`,descKey:`glauco`,linkedin:`https://www.linkedin.com/in/glaucosampaio/`},{name:`Bruno Kaique`,descKey:`bruno`,linkedin:`https://www.linkedin.com/in/brunokaique/`}],uA={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:.3}}},dA={hidden:{opacity:0,y:30,scale:.95},visible:{opacity:1,y:0,scale:1,transition:{duration:.5,ease:sA}}};function fA(){let{t:e}=sp([`home`,`common`]),t=(0,P.useRef)(null),n=tD(t,{once:!0,margin:`-100px`}),{scrollYProgress:r}=KE({target:t,offset:[`start end`,`end start`]}),i=XE(r,[0,1],[`-10%`,`10%`]);return(0,I.jsxs)(`section`,{ref:t,className:`py-[108px] relative overflow-hidden`,children:[(0,I.jsx)(N.div,{className:`absolute -left-32 top-1/2 -translate-y-1/2 w-96 h-96 bg-primary/5 rounded-full blur-3xl`,style:{x:i}}),(0,I.jsx)(`div`,{className:`container mx-auto px-4 relative z-10`,children:(0,I.jsx)(`div`,{className:`max-w-6xl mx-auto`,children:(0,I.jsxs)(`div`,{className:`grid lg:grid-cols-[1fr_1.4fr] gap-20 items-center`,children:[(0,I.jsxs)(N.div,{initial:{opacity:0,x:-50},animate:n?{opacity:1,x:0}:{},transition:{duration:.7,ease:[.25,.46,.45,.94]},children:[(0,I.jsx)(N.div,{className:`inline-flex items-center gap-2 bg-primary/10 border border-primary/20 rounded-full px-4 py-2 mb-6`,initial:{opacity:0,scale:.9},animate:n?{opacity:1,scale:1}:{},transition:{duration:.5,delay:.2},children:(0,I.jsx)(`span`,{className:`text-sm text-primary font-medium`,children:e(`solution.pill`)})}),(0,I.jsxs)(`h2`,{className:`font-heading text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-6`,children:[e(`solution.titleA`),(0,I.jsx)(`span`,{className:`text-gradient`,children:e(`solution.titleB`)})]}),(0,I.jsx)(`p`,{className:`text-lg text-muted-foreground mb-8 leading-relaxed`,children:e(`solution.lead`)}),(0,I.jsx)(N.div,{className:`space-y-4 mb-8`,variants:uA,initial:`hidden`,animate:n?`visible`:`hidden`,children:lA.map(t=>(0,I.jsxs)(N.div,{className:`card-glass rounded-xl p-4`,variants:dA,whileHover:{x:8,transition:{duration:.2}},children:[(0,I.jsx)(`p`,{className:`font-semibold text-foreground mb-1`,children:t.name}),(0,I.jsx)(`p`,{className:`text-sm text-muted-foreground mb-3 whitespace-pre-line`,children:e(`solution.founders.${t.descKey}`)}),(0,I.jsxs)(`a`,{href:t.linkedin,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-primary transition-colors`,"aria-label":e(`solution.linkedinAria`,{name:t.name}),children:[(0,I.jsx)(xn,{size:16}),(0,I.jsx)(`span`,{children:`LinkedIn`})]})]},t.name))}),(0,I.jsx)(N.div,{initial:{opacity:0,y:20},animate:n?{opacity:1,y:0}:{},transition:{duration:.5,delay:.6},className:`mt-16`,children:(0,I.jsx)(g,{variant:`hero`,asChild:!0,children:(0,I.jsxs)(md,{to:`/sobre`,className:`group`,children:[e(`common:cta.knowOurStory`,{defaultValue:`Conheça nossa história`}),(0,I.jsx)($t,{size:18,className:`transition-transform group-hover:translate-x-1`})]})})})]}),(0,I.jsx)(N.div,{className:`grid grid-cols-2 gap-4`,variants:uA,initial:`hidden`,animate:n?`visible`:`hidden`,children:cA.map(t=>(0,I.jsxs)(N.div,{variants:dA,className:`card-glass rounded-2xl p-6 hover:border-primary/30 transition-colors group`,whileHover:{y:-8,scale:1.02,transition:{duration:.3}},children:[(0,I.jsx)(N.div,{className:`w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center mb-4 group-hover:bg-primary/20 transition-colors`,whileHover:{rotate:10},children:(0,I.jsx)(t.icon,{size:20,className:`text-primary`})}),(0,I.jsx)(`h3`,{className:`font-heading font-semibold text-foreground mb-2`,children:e(`solution.features.${t.key}.title`)}),(0,I.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:e(`solution.features.${t.key}.description`)})]},t.key))})]})})})]})}var pA=[.25,.46,.45,.94],mA=[{icon:Mn,key:`test`},{icon:en,key:`educate`},{icon:an,key:`track`}],hA={hidden:{opacity:0}
114,visible:{opacity:1,transition:{staggerChildren:.2,delayChildren:.3}}},gA={hidden:{opacity:0,y:50,scale:.9},visible:{opacity:1,y:0,scale:1,transition:{duration:.6,ease:pA}}};function _A(){let{t:e}=sp(`home`),t=(0,P.useRef)(null),n=tD(t,{once:!0,margin:`-100px`}),r=QE(),{scrollYProgress:i}=KE({target:t,offset:[`start end`,`end start`]}),a=XE(i,[0,1],[`0%`,`15%`]),o=r?void 0:{y:-12,transition:{duration:.3}},s=r?void 0:{scale:1.1,rotate:10};return(0,I.jsxs)(`section`,{ref:t,className:`py-[108px] relative bg-card/50 overflow-hidden`,children:[(0,I.jsx)(N.div,{className:`absolute inset-0 bg-grid-pattern opacity-10`,style:r?void 0:{y:a}}),!r&&(0,I.jsx)(N.div,{className:`absolute right-10 top-32 w-48 h-48 bg-primary/5 rounded-full blur-3xl`,animate:{y:[0,20,0],opacity:[.3,.5,.3]},transition:{duration:6,repeat:1/0,ease:`easeInOut`}}),(0,I.jsx)(`div`,{className:`container mx-auto px-4 relative z-10`,children:(0,I.jsxs)(`div`,{className:`max-w-6xl mx-auto`,children:[(0,I.jsxs)(N.div,{initial:{opacity:0,y:30},animate:n?{opacity:1,y:0}:{},transition:{duration:.7,ease:[.25,.46,.45,.94]},className:`text-center mb-16`,children:[(0,I.jsx)(`h2`,{className:`font-heading text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-6`,children:e(`method.title`)}),(0,I.jsx)(`p`,{className:`text-lg text-muted-foreground max-w-2xl mx-auto`,children:e(`method.subtitle`)})]}),(0,I.jsx)(N.div,{className:`grid md:grid-cols-3 gap-8`,variants:hA,initial:`hidden`,animate:n?`visible`:`hidden`,children:mA.map((t,i)=>{let a=[e(`method.pillars.${t.key}.f1`),e(`method.pillars.${t.key}.f2`),e(`method.pillars.${t.key}.f3`)];return(0,I.jsxs)(N.div,{variants:gA,className:`group relative overflow-visible pt-3 pl-3 sm:pt-4 sm:pl-4`,whileHover:o,children:[i<2&&(0,I.jsx)(N.div,{className:`hidden md:block absolute top-16 -right-4 w-8 z-10`,initial:{opacity:0,x:-10},animate:n?{opacity:1,x:0}:{},transition:{duration:.5,delay:.5+i*.2},children:(0,I.jsx)(N.div,{animate:r?void 0:{x:[0,4,0]},transition:r?void 0:{duration:2.4,repeat:1/0,ease:`easeInOut`,delay:i*.4},className:`text-border group-hover:text-primary/60 transition-colors duration-300`,children:(0,I.jsx)($t,{size:24})})}),(0,I.jsx)(N.div,{className:`absolute left-0 top-0 z-20 flex h-7 w-7 items-center justify-center rounded-full bg-primary text-xs font-bold text-primary-foreground shadow-md transition-transform duration-300 group-hover:scale-110 sm:h-8 sm:w-8 sm:text-sm`,initial:{scale:0,rotate:-180},animate:n?{scale:1,rotate:0}:{},transition:{duration:.5,delay:.4+i*.15,type:`spring`},children:i+1}),(0,I.jsxs)(`div`,{className:`card-glass relative h-full overflow-hidden rounded-2xl border border-border/50 p-6 transition-all duration-300 group-hover:border-primary/40 group-hover:bg-card/70 group-hover:shadow-xl group-hover:shadow-primary/10 sm:p-8`,children:[(0,I.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-500 group-hover:opacity-100 motion-reduce:transition-none`,style:{background:`radial-gradient(600px circle at 50% 0%, hsl(var(--primary) / 0.08), transparent 60%)`}}),(0,I.jsx)(N.div,{className:`relative mb-5 flex h-12 w-12 items-center justify-center rounded-2xl bg-primary/10 transition-colors duration-300 group-hover:bg-primary/20 sm:mb-6 sm:h-14 sm:w-14`,whileHover:s,children:(0,I.jsx)(t.icon,{size:28,className:`text-primary transition-transform duration-300 group-hover:scale-110 motion-reduce:group-hover:scale-100`})}),(0,I.jsx)(`h3`,{className:`font-heading mb-3 text-xl font-bold text-foreground transition-colors duration-300 group-hover:text-primary sm:text-2xl`,children:e(`method.pillars.${t.key}.title`)}),(0,I.jsx)(`p`,{className:`mb-6 leading-relaxed text-muted-foreground`,children:e(`method.pillars.${t.key}.description`)}),(0,I.jsx)(`ul`,{className:`relative space-y-2`,children:a.map((e,t)=>(0,I.jsxs)(N.li,{className:`flex items-center gap-2 text-sm text-muted-foreground transition-colors duration-300 group-hover:text-foreground/80`,initial:{opacity:0,x:-10},animate:n?{opacity:1,x:0}:{},transition:{duration:.3,delay:.6+i*.15+t*.1},children:[(0,I.jsx)(N.div,{className:`h-1.5 w-1.5 rounded-full bg-primary`,animate:r?void 0:{scale:[1,1.3,1]},transition:r?void 0:{duration:2,repeat:1/0,delay:t*.3}}),e]},e))})]})]},t.key)})})]})})]})}var vA=`/assets/treinamentos-CPq1merc.avif`,yA=`/assets/risco-humano-tkiWWZq2.jpg`,bA=`/assets/phishing-CV7tbGwS.avif`,xA=`/assets/comunicacao-BRbIJIO-.avif`,SA=8e3,CA=[{href:`/plataforma/gestao-risco`,icon:tn,key:`risco`,image:yA},{href:`/plataforma/phishing`,icon:Cn,key:`phishing`,image:bA},{href:`/plataforma/treinamentos`,icon:gn,key:`treinamentos`,image:vA},{href:`/plataforma/comunicacao`,icon:Tn,key:`comunicacao`,image:xA}];function wA(){let{t:e}=sp([`home`,`common`]),t=CA.map(t=>({href:t.href,icon:t.icon,image:t.image,title:e(`modules.items.${t.key}.title`),description:e(`modules.items.${t.key}.description`),overlay:e(`modules.items.${t.key}.overlay`)})),[n,r]=(0,P.useState)(0),[i,a]=(0,P.useState)(!1),[o,s]=(0,P.useState)(!1),c=(0,P.useRef)(null);return(0,P.useEffect)(()=>
114{if(!c.current||o)return;let e=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(s(!0),e.disconnect())})},{threshold:.4});return e.observe(c.current),()=>e.disconnect()},[o]),(0,P.useEffect)(()=>{if(i||!o)return;let e=window.setInterval(()=>{r(e=>(e+1)%t.length)},SA);return()=>window.clearInterval(e)},[i,o]),(0,I.jsxs)(`section`,{ref:c,className:`py-[108px] relative overflow-hidden bg-bee-surface-light pt-[132px] pb-[64px]`,children:[(0,I.jsx)(N.div,{className:`absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-primary/5 rounded-full blur-3xl`,"aria-hidden":!0}),(0,I.jsx)(`div`,{className:`container mx-auto px-4 relative z-10`,children:(0,I.jsxs)(`div`,{className:`max-w-7xl mx-auto`,children:[(0,I.jsxs)(N.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:`-100px`},transition:{duration:.7,ease:[.25,.46,.45,.94]},className:`text-center mb-10`,children:[(0,I.jsx)(`h2`,{className:`font-heading text-3xl md:text-4xl lg:text-5xl font-bold text-on-light mb-3`,children:e(`modules.title`)}),(0,I.jsx)(`p`,{className:`text-base text-on-light-muted max-w-2xl mx-auto`,children:e(`modules.subtitle`)})]}),(0,I.jsxs)(`div`,{className:`grid lg:grid-cols-[2fr_3fr] gap-12 items-center`,children:[(0,I.jsxs)(`div`,{role:`tablist`,"aria-label":e(`modules.ariaList`),"aria-orientation":`vertical`,className:`relative grid grid-rows-4 gap-3 auto-rows-fr`,children:[(0,I.jsx)(N.div,{className:`absolute left-0 right-0 bg-white rounded-2xl shadow-lg shadow-black/5 pointer-events-none overflow-hidden`,initial:!1,animate:{top:`calc((100% - ${(t.length-1)*12}px) / ${t.length} * ${n} + ${n*12}px)`,height:`calc((100% - ${(t.length-1)*12}px) / ${t.length})`},transition:{duration:.8,ease:[.22,1,.36,1]},"aria-hidden":`true`,children:(0,I.jsx)(`div`,{className:`absolute top-0 left-0 h-0.5 w-full bg-primary/80 origin-left`,style:{animation:`module-progress ${SA}ms linear forwards`,animationPlayState:i||!o?`paused`:`running`}},`progress-${n}`)}),t.map((i,o)=>{let s=o===n;return(0,I.jsxs)(`button`,{id:`module-tab-${o}`,role:`tab`,type:`button`,"aria-selected":s,"aria-controls":`module-panel-${o}`,tabIndex:s?0:-1,onClick:()=>r(o),onFocus:()=>{r(o),a(!0)},onBlur:()=>a(!1),onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),onKeyDown:e=>{let n=t.length-1,i=o;if(e.key===`ArrowDown`||e.key===`ArrowRight`)i=o===n?0:o+1;else if(e.key===`ArrowUp`||e.key===`ArrowLeft`)i=o===0?n:o-1;else if(e.key===`Home`)i=0;else if(e.key===`End`)i=n;else return;e.preventDefault(),r(i),document.getElementById(`module-tab-${i}`)?.focus()},className:`relative text-left rounded-2xl p-4 overflow-hidden group z-10 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-bee-surface-light`,children:[!s&&(0,I.jsx)(`div`,{className:`absolute inset-0 bg-transparent group-hover:bg-white/40 rounded-2xl transition-colors duration-300`}),(0,I.jsxs)(`div`,{className:`relative flex items-start gap-4`,children:[(0,I.jsx)(N.div,{animate:{backgroundColor:s?`hsl(var(--primary))`:`hsl(var(--primary) / 0.1)`,color:s?`hsl(var(--on-light))`:`hsl(var(--primary))`},transition:{duration:.4},className:`w-11 h-11 rounded-xl flex items-center justify-center shrink-0`,"aria-hidden":`true`,children:(0,I.jsx)(i.icon,{size:22})}),(0,I.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,I.jsx)(`h3`,{className:`font-heading font-bold text-lg text-on-light leading-tight`,children:i.title}),(0,I.jsx)(`p`,{className:`text-sm text-on-light-muted leading-relaxed mb-2`,children:i.description}),i.href!==`#`&&(0,I.jsxs)(md,{to:i.href,onClick:e=>e.stopPropagation(),className:`inline-flex items-center gap-1 text-sm font-semibold text-on-light hover:gap-2 transition-all rounded focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-bee-surface-light`,"aria-label":e(`modules.learnMoreAria`,{title:i.title}),children:[e(`common:cta.learnMore`),(0,I.jsx)($t,{size:14,"aria-hidden":`true`})]})]})]})]},i.title)})]}),(0,I.jsxs)(`div`,{role:`tabpanel`,id:`module-panel-${n}`,"aria-labelledby":`module-tab-${n}`,"aria-live":`polite`,"aria-atomic":`true`,className:`relative rounded-2xl overflow-hidden bg-white border border-black/5 h-[580px]`,children:[(0,I.jsxs)(`span`,{className:`sr-only`,children:[`Visualização do módulo `,t[n].title,`: `,t[n].description]}),(0,I.jsx)(mE,{mode:`wait`,children:t[n].image&&(0,I.jsx)(N.img,{src:t[n].image,alt:``,role:`presentation`,loading:`lazy`,width:1024,height:1024,initial:{opacity:0,scale:1.05}
114,animate:{opacity:1,scale:1},exit:{opacity:0,scale:1.02},transition:{duration:.6,ease:[.22,1,.36,1]},className:`absolute inset-0 w-full h-full object-cover object-top grayscale`},t[n].title)}),(0,I.jsx)(`div`,{className:`absolute inset-x-0 bottom-0 h-1/2 bg-gradient-to-t from-white via-white/80 to-transparent pointer-events-none`,"aria-hidden":`true`}),(0,I.jsx)(mE,{mode:`wait`,children:(0,I.jsx)(N.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:6},transition:{duration:.5,ease:[.22,1,.36,1]},className:`absolute left-6 right-6 bottom-6 rounded-2xl bg-white/30 backdrop-blur-md border border-white/40 p-5`,children:(0,I.jsx)(`p`,{className:`text-sm md:text-base text-on-light leading-relaxed font-medium`,children:t[n].overlay})},`overlay-${n}`)})]})]})]})})]})}var TA=P.forwardRef(({className:e,children:t,variant:n=`solid`,tone:r=`dark`,icon:i,...a},o)=>{let s=r===`light`;if(n===`dash`){let n=s?`text-on-light`:`text-primary`,r=s?`bg-on-light`:`bg-primary`;return(0,I.jsxs)(`span`,{ref:o,className:m(`inline-flex items-center gap-2 font-semibold text-sm uppercase tracking-wider`,n,e),...a,children:[(0,I.jsx)(`span`,{className:m(`h-px w-8`,r),"aria-hidden":`true`}),i,t]})}return(0,I.jsxs)(`span`,{ref:o,className:m(`inline-flex items-center gap-2 px-5 py-2 rounded-full border backdrop-blur-md font-semibold text-sm uppercase tracking-wider`,s?`border-on-light/20 bg-on-light/5 text-on-light`:`border-primary/20 bg-primary/10 text-primary`,e),...a,children:[i,t]})});TA.displayName=`Pill`;function EA({className:e}){return(0,I.jsxs)(`svg`,{viewBox:`0 0 400 360`,role:`img`,"aria-label":`Mockup técnico de smartphone, vista frontal — metade superior`,className:e,fill:`none`,stroke:`currentColor`,strokeWidth:1.25,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,I.jsx)(`rect`,{x:`60`,y:`20`,width:`280`,height:`560`,rx:`38`,ry:`38`}),(0,I.jsx)(`rect`,{x:`68`,y:`28`,width:`264`,height:`544`,rx:`32`,ry:`32`,opacity:.6}),(0,I.jsx)(`rect`,{x:`82`,y:`78`,width:`236`,height:`480`,rx:`6`,ry:`6`}),(0,I.jsx)(`rect`,{x:`170`,y:`44`,width:`60`,height:`6`,rx:`3`,ry:`3`}),(0,I.jsx)(`circle`,{cx:`152`,cy:`47`,r:`3.2`}),(0,I.jsx)(`circle`,{cx:`248`,cy:`47`,r:`2`,opacity:.5}),(0,I.jsx)(`line`,{x1:`60`,y1:`120`,x2:`60`,y2:`148`,strokeWidth:2}),(0,I.jsx)(`line`,{x1:`60`,y1:`170`,x2:`60`,y2:`208`,strokeWidth:2}),(0,I.jsx)(`line`,{x1:`60`,y1:`220`,x2:`60`,y2:`258`,strokeWidth:2}),(0,I.jsx)(`line`,{x1:`340`,y1:`160`,x2:`340`,y2:`210`,strokeWidth:2}),(0,I.jsxs)(`g`,{opacity:.35,children:[(0,I.jsx)(`line`,{x1:`40`,y1:`20`,x2:`52`,y2:`20`}),(0,I.jsx)(`line`,{x1:`40`,y1:`20`,x2:`40`,y2:`32`}),(0,I.jsx)(`line`,{x1:`360`,y1:`20`,x2:`348`,y2:`20`}),(0,I.jsx)(`line`,{x1:`360`,y1:`20`,x2:`360`,y2:`32`})]}),(0,I.jsx)(`line`,{x1:`20`,y1:`340`,x2:`380`,y2:`340`,strokeDasharray:`4 6`,opacity:.25})]})}var DA=[{icon:gn,key:`treinamentos`},{icon:Tn,key:`comunicacao`}];function OA(){let{t:e}=sp(`home`),t=DA.map(t=>({icon:t.icon,title:e(`mobile.features.${t.key}.title`),description:e(`mobile.features.${t.key}.description`)}));return(0,I.jsx)(`section`,{className:`py-[108px] relative overflow-hidden bg-bee-surface-light pt-[64px] border-b border-[hsl(0_0%_88%)]`,children:(0,I.jsx)(`div`,{className:`container mx-auto px-4 relative z-10`,children:(0,I.jsx)(`div`,{className:`max-w-7xl mx-auto`,children:(0,I.jsxs)(`div`,{className:`grid lg:grid-cols-[40%_60%] gap-12 items-center`,children:[(0,I.jsx)(N.div,{initial:{opacity:0,x:-40},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:`-100px`},transition:{duration:.8,ease:[.22,1,.36,1]},className:`relative h-[420px] overflow-hidden flex items-start justify-center text-on-light`,children:(0,I.jsx)(EA,{className:`w-auto h-[440px]`})}),(0,I.jsxs)(N.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:`-100px`},transition:{duration:.7,ease:[.22,1,.36,1]},children:[(0,I.jsx)(TA,{icon:(0,I.jsx)(jn,{size:16,"aria-hidden":`true`}),className:`mb-5`,children:e(`mobile.pill`)}),(0,I.jsx)(`h2`,{className:`font-heading text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold text-on-light mb-5 leading-snug md:leading-tight max-w-[18ch]`,children:e(`mobile.title`)}),(0,I.jsx)(`p`,{className:`text-lg text-on-light-muted mb-8 leading-relaxed max-w-2xl`,children:e(`mobile.subtitle`)}),(0,I.jsxs)(`ul`,{className:`grid sm:grid-cols-3 gap-5 max-w-2xl`,children:[t.map(e=>(0,I.jsxs)(`li`,{className:`flex flex-col gap-2`,children:[(0,I.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center`,children:(0,I.jsx)(e.icon,{size:20,"aria-hidden":`true`})}),(0,I.jsx)(`h3`,{className:`font-heading font-bold text-base text-on-light`,children:e.title}),(0,I.jsx)(`p`,{className:`text-sm text-on-light-muted leading-relaxed`,children:e.description})]},e.title)),(0,I.jsx)(`li`,{"aria-hidden":`true`,className:`hidden sm:block`})]})]})]})})})})}var kA=e=>{let t=[...e];for(let e=t.length-1;e>0;e--){let n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t},AA=(e,t)=>
114{let n=kA(e),r=Array.from({length:t},()=>[]);n.forEach((e,n)=>{r[n%t].push(e)});let i=Math.max(...r.map(e=>e.length));return r.forEach(e=>{for(;e.length<i;)e.push(n[Math.floor(Math.random()*n.length)])}),r},jA=P.memo(({logos:e,index:t,currentTime:n})=>{let r=2e3,i=t*200,a=e.length||1,o=(n+i)%(r*a),s=Math.floor(o/r)%a,c=(0,P.useMemo)(()=>e[s]||e[0],[e,s]),[l,u]=(0,P.useState)(!1);if((0,P.useEffect)(()=>{u(!1)},[c?.id]),!c)return null;let d=()=>(0,I.jsx)(`span`,{className:`font-heading font-bold text-lg md:text-xl text-on-light-muted/70 tracking-tight`,children:c.name});return(0,I.jsx)(N.div,{className:`relative h-16 w-[110px] overflow-hidden md:h-20 md:w-44 flex items-center justify-center`,initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:t*.1,duration:.5,ease:`easeOut`},children:(0,I.jsx)(mE,{mode:`wait`,children:(0,I.jsx)(N.div,{className:`absolute inset-0 flex items-center justify-center`,initial:{y:20,opacity:0,filter:`blur(8px)`},animate:{y:0,opacity:1,filter:`blur(0px)`},exit:{y:-20,opacity:0,filter:`blur(8px)`},transition:{duration:.5,ease:`easeInOut`},children:(()=>{if(typeof c.img==`string`)return l?d():(0,I.jsx)(`img`,{src:c.img,alt:c.name,width:120,height:56,loading:`lazy`,referrerPolicy:`no-referrer`,onError:()=>u(!0),className:`max-h-12 md:max-h-16 w-auto max-w-[100px] md:max-w-[140px] object-contain grayscale hover:grayscale-0 transition-[filter] duration-300 motion-reduce:transition-none motion-reduce:duration-0`});let e=c.img;return(0,I.jsx)(e,{className:`max-h-12 md:max-h-16 w-auto max-w-[100px] md:max-w-[140px] grayscale hover:grayscale-0 transition-[filter] duration-300 motion-reduce:transition-none motion-reduce:duration-0`})})()},`${c.id}-${s}`)})})});jA.displayName=`LogoColumn`;function MA({columnCount:e=2,logos:t}){let[n,r]=(0,P.useState)([]),[i,a]=(0,P.useState)(0),o=(0,P.useCallback)(()=>{a(e=>e+100)},[]);return(0,P.useEffect)(()=>{let e=setInterval(o,100);return()=>clearInterval(e)},[o]),(0,P.useEffect)(()=>{let n=AA(t,e);r(n)},[t,e]),(0,I.jsx)(`div`,{className:`flex gap-6 md:gap-12 items-center justify-center`,children:n.map((e,t)=>(0,I.jsx)(jA,{logos:e,index:t,currentTime:i},t))})}var NA=d(`tracking-tight pb-3 bg-clip-text text-transparent`,{variants:{variant:{default:`bg-gradient-to-b from-[hsl(var(--text-on-light))] via-[hsl(var(--text-on-light)/0.9)] to-[hsl(var(--text-on-light)/0.8)]`,dark:`bg-gradient-to-t from-foreground to-foreground/80`,pink:`bg-gradient-to-t from-accent to-accent/90`,light:`bg-gradient-to-t from-muted-foreground to-muted-foreground/80`,secondary:`bg-gradient-to-t from-muted-foreground to-muted-foreground/80`},size:{default:`text-2xl sm:text-3xl lg:text-4xl`,xxs:`text-base sm:text-lg lg:text-lg`,xs:`text-lg sm:text-xl lg:text-2xl`,sm:`text-xl sm:text-2xl lg:text-3xl`,md:`text-2xl sm:text-3xl lg:text-4xl`,lg:`text-3xl sm:text-4xl lg:text-5xl`,xl:`text-4xl sm:text-5xl lg:text-6xl`,xll:`text-5xl sm:text-6xl lg:text-[5.4rem] lg:leading-[0.5rem]`,xxl:`text-5xl sm:text-6xl lg:text-[6rem]`,xxxl:`text-5xl sm:text-6xl lg:text-[8rem]`},weight:{default:`font-bold`,thin:`font-thin`,base:`font-base`,semi:`font-semibold`,bold:`font-bold`,black:`font-black`}},defaultVariants:{variant:`default`,size:`default`,weight:`default`}}),PA=P.forwardRef(({asChild:e,variant:t,weight:n,size:r,className:i,children:a,...o},s)=>(0,I.jsx)(e?p:`h2`,{ref:s,...o,className:i,children:(0,I.jsx)(`span`,{className:m(NA({variant:t,size:r,weight:n})),children:a})}));PA.displayName=`GradientHeading`;function FA(){let{t:e}=sp(`home`),[t,n]=(0,P.useState)([]),[r,i]=(0,P.useState)(!0);(0,P.useEffect)(()=>{(async()=>{let{data:e,error:t}=await Pd.from(`clients`).select(`id, name, logo_url`).eq(`is_active`,!0).order(`display_order`,{ascending:!0});!t&&e&&n(e),i(!1)})()},[]);let a=(0,P.useMemo)(()=>t.filter(e=>!!e.logo_url).map(e=>({id:e.id,name:e.name,img:e.logo_url})),[t]),[o,s]=(0,P.useState)(!1);(0,P.useEffect)(()=>{let e=window.matchMedia(`(max-width: 767px)`),t=()=>s(e.matches);return t(),e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]);let c=o?2:6,l=Math.min(Math.max(a.length,1),c);return(0,I.jsx)(`section`,{id:`clientes`,className:`pt-16 md:pt-24 pb-[132px] relative overflow-hidden bg-bee-surface-light`,children:(0,I.jsx)(`div`,{className:`container mx-auto px-4`,children:(0,I.jsxs)(N.div,{initial:{opacity:0,y:30}
114,animate:{opacity:1,y:0},transition:{duration:.7,ease:[.25,.46,.45,.94]},className:`flex flex-col items-center justify-center`,children:[(0,I.jsx)(`div`,{className:`flex justify-center`,children:(0,I.jsx)(N.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.5,delay:.1},className:`inline-flex items-center gap-2 border border-on-light/20 px-4 py-1.5 rounded-full text-sm font-medium text-on-light bg-on-light/5`,children:e(`social.pill`)})}),(0,I.jsxs)(`div`,{className:`text-center mt-6 space-y-2`,children:[(0,I.jsx)(PA,{size:`lg`,weight:`bold`,children:e(`social.title`)}),(0,I.jsx)(N.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.3},className:`text-lg text-on-light-muted max-w-2xl mx-auto`,children:e(`social.subtitle`)})]}),(0,I.jsx)(N.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.8,delay:.4},className:`mt-12 w-full flex justify-center px-6 md:px-0`,children:r?(0,I.jsx)(`div`,{className:`w-full max-w-4xl grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-8 items-center`,children:Array.from({length:6}).map((e,t)=>(0,I.jsx)(`div`,{className:`flex items-center justify-center ${t>=3?`hidden md:flex`:``} ${t>=4?`md:hidden lg:flex`:``}`,children:(0,I.jsx)($,{className:`h-12 w-28 rounded-lg`})},t))}):a.length>0?(0,I.jsx)(MA,{logos:a,columnCount:l}):(0,I.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:e(`social.empty`)})})]})})})}var IA=e=>(0,I.jsx)(`div`,{className:e.className,children:(0,I.jsx)(N.div,{animate:{translateY:`-50%`},transition:{duration:e.duration||10,repeat:1/0,ease:`linear`,repeatType:`loop`},className:`flex flex-col gap-6 pb-6`,children:[...[,,].fill(0).map((t,n)=>(0,I.jsx)(P.Fragment,{children:e.testimonials.map(({text:e,image:t,name:r,role:i},a)=>(0,I.jsxs)(`div`,{className:`bg-white rounded-2xl p-6 shadow-sm border border-black/5 hover:shadow-md transition-shadow duration-300`,children:[(0,I.jsx)(`p`,{className:`text-on-light-muted leading-relaxed`,children:e}),(0,I.jsxs)(`div`,{className:`flex items-center gap-3 mt-5`,children:[(0,I.jsx)(`img`,{src:t,alt:r,className:`h-10 w-10 rounded-full object-cover`}),(0,I.jsxs)(`div`,{className:`flex flex-col`,children:[(0,I.jsx)(`p`,{className:`font-medium text-on-light tracking-tight leading-5`,children:r}),(0,I.jsx)(`p`,{className:`text-on-light-muted text-sm leading-5 tracking-tight`,children:i})]})]})]},`${n}-${a}`))},n))]})});function LA(e){let t=[...e];for(let e=t.length-1;e>0;e--){let n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t}function RA(){let{t:e}=sp(`home`),t=(0,P.useRef)(null),n=tD(t,{once:!0,margin:`-100px`}),[r,i]=(0,P.useState)([]);(0,P.useEffect)(()=>{Pd.from(`testimonials`).select(`id, name, role, text, image_url`).eq(`is_active`,!0).then(({data:e})=>{e&&i(LA(e))})},[]);let a=`data:image/svg+xml;base64,`+btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><rect width="40" height="40" fill="#e5e7eb" rx="20"/><text x="50%" y="54%" dominant-baseline="middle" text-anchor="middle" fill="#9ca3af" font-size="18">?</text></svg>`),o=(0,P.useMemo)(()=>r.map(e=>({text:e.text,image:e.image_url||a,name:e.name,role:e.role})),[r]),s=Math.ceil(o.length/3),c=o.slice(0,s),l=o.slice(s,s*2),u=o.slice(s*2);return r.length===0?(0,I.jsx)(`section`,{ref:t,className:`py-16 md:py-24 bg-bee-surface-light`,children:(0,I.jsxs)(`div`,{className:`container mx-auto px-4`,children:[(0,I.jsxs)(`div`,{className:`flex flex-col items-center justify-center`,children:[(0,I.jsx)($,{className:`h-8 w-32 rounded-full mb-6`}),(0,I.jsx)($,{className:`h-10 w-80 md:w-[500px] mb-4`}),(0,I.jsx)($,{className:`h-6 w-64 md:w-[400px]`})]}),(0,I.jsxs)(`div`,{className:`flex justify-center gap-6 mt-12 max-h-[600px] overflow-hidden`,children:[(0,I.jsx)(`div`,{className:`flex flex-col gap-6 w-[340px]`,children:[1,2,3].map(e=>(0,I.jsxs)(`div`,{className:`bg-white rounded-2xl p-6 border border-black/5 space-y-4`,children:[(0,I.jsx)($,{className:`h-4 w-full`}),(0,I.jsx)($,{className:`h-4 w-3/4`}),(0,I.jsx)($,{className:`h-4 w-1/2`}),(0,I.jsxs)(`div`,{className:`flex items-center gap-3 mt-5`,children:[(0,I.jsx)($,{className:`h-10 w-10 rounded-full`}),(0,I.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,I.jsx)($,{className:`h-4 w-24`}),(0,I.jsx)($,{className:`h-3 w-32`})]})]})]},e))}),(0,I.jsx)(`div`,{className:`hidden md:flex flex-col gap-6 w-[340px]`,children:[1,2,3].map(e=>(0,I.jsxs)(`div`,{className:`bg-white rounded-2xl p-6 border border-black/5 space-y-4`,children:[(0,I.jsx)($,{className:`h-4 w-full`}),(0,I.jsx)($,{className:`h-4 w-2/3`}),(0,I.jsxs)(`div`,{className:`flex items-center gap-3 mt-5`,children:[(0,I.jsx)($,{className:`h-10 w-10 rounded-full`}),(0,I.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,I.jsx)($,{className:`h-4 w-20`}),(0,I.jsx)($,{className:`h-3 w-28`})]})]})]},e))}),(0,I.jsx)(`div`,{className:`hidden lg:flex flex-col gap-6 w-[340px]`,children:[1,2,3].map(e=>(0,I.jsxs)(`div`,{className:`bg-white rounded-2xl p-6 border border-black/5 space-y-4`,children:[(0,I.jsx)($,{className:`h-4 w-full`}),(0,I.jsx)($,{className:`h-4 w-4/5`}),(0,I.jsx)($,{className:`h-4 w-1/2`}),(0,I.jsxs)(`div`,{className:`flex items-center gap-3 mt-5`,children:[(0,I.jsx)($,{className:`h-10 w-10 rounded-full`}),(0,I.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,I.jsx)($,{className:`h-4 w-24`}),(0,I.jsx)($,{className:`h-3 w-32`})]})]})]},e))})]})]})}):(0,I.jsx)(`section`,{ref:t,className:`py-16 md:py-24 relative overflow-hidden bg-bee-surface-light`,children:(0,I.jsxs)(`div`,{className:`container mx-auto px-4`,children:[(0,I.jsxs)(N.div,{initial:{opacity:0,y:30},animate:n?{opacity:1,y:0}:{},transition:{duration:.7,ease:[.25,.46,.45,.94]},className:`flex flex-col items-center justify-center`,children:[(0,I.jsx)(`div`,{className:`flex justify-center`,children:(0,I.jsx)(N.div,{initial:{opacity:0,scale:.9},animate:n?{opacity:1,scale:1}:{},transition:{duration:.5,delay:.1},className:`inline-flex items-center gap-2 border border-on-light/20 px-4 py-1.5 rounded-full text-sm font-medium text-on-light bg-on-light/5`,children:e(`testimonials.pill`)})}),(0,I.jsx)(N.h2,{initial:{opacity:0,y:20},animate:n?{opacity:1,y:0}:{},transition:{duration:.6,delay:.2},className:`font-heading text-3xl md:text-5xl font-bold text-center mt-6 text-on-light`,children:e(`testimonials.title`)}),(0,I.jsx)(N.p,{initial:{opacity:0,y:20},animate:n?{opacity:1,y:0}:{},transition:{duration:.6,delay:.3},className:`text-center mt-5 text-lg text-on-light-muted max-w-2xl`,children:e(`testimonials.subtitle`)})]}),(0,I.jsxs)(N.div,{initial:{opacity:0}
114,animate:n?{opacity:1}:{},transition:{duration:.8,delay:.4},className:`flex justify-center gap-6 mt-12 [mask-image:linear-gradient(to_bottom,transparent,black_25%,black_75%,transparent)] max-h-[600px] overflow-hidden`,children:[(0,I.jsx)(IA,{testimonials:o,duration:15,className:`md:hidden`}),(0,I.jsx)(IA,{testimonials:c,duration:15,className:`hidden md:block`}),(0,I.jsx)(IA,{testimonials:l,className:`hidden md:block`,duration:19}),(0,I.jsx)(IA,{testimonials:u,className:`hidden lg:block`,duration:17})]})]})})}function zA(){let{t:e}=sp([`home`,`common`]),t=(0,P.useRef)(null),n=tD(t,{once:!0,margin:`-100px`}),{scrollYProgress:r}=KE({target:t,offset:[`start end`,`end start`]}),i=XE(r,[0,.5,1],[.8,1.2,1]),a=XE(r,[0,.5,1],[.3,.6,.3]);return(0,I.jsxs)(`section`,{ref:t,className:`py-[108px] relative overflow-hidden`,children:[(0,I.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-b from-background via-card to-background`}),(0,I.jsx)(N.div,{className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-primary/5 rounded-full blur-3xl`,style:{scale:i,opacity:a}}),(0,I.jsx)(N.div,{className:`absolute top-20 left-20 w-4 h-4 bg-primary/30 rounded-full`,animate:{y:[0,-20,0],opacity:[.3,.7,.3]},transition:{duration:4,repeat:1/0,ease:`easeInOut`}}),(0,I.jsx)(N.div,{className:`absolute bottom-32 right-32 w-3 h-3 bg-accent/30 rounded-full`,animate:{y:[0,15,0],opacity:[.3,.7,.3]},transition:{duration:3,repeat:1/0,ease:`easeInOut`,delay:1}}),(0,I.jsx)(`div`,{className:`container mx-auto px-4 relative z-10`,children:(0,I.jsxs)(N.div,{initial:{opacity:0,y:40,scale:.95},animate:n?{opacity:1,y:0,scale:1}:{},transition:{duration:.7,ease:[.25,.46,.45,.94]},className:`max-w-4xl mx-auto text-center`,children:[(0,I.jsx)(N.div,{className:`inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-primary/10 mb-8`,initial:{scale:0,rotate:-180},animate:n?{scale:1,rotate:0}:{},transition:{duration:.6,delay:.2,type:`spring`},whileHover:{scale:1.1,rotate:10},children:(0,I.jsx)(An,{size:32,className:`text-primary`})}),(0,I.jsx)(N.h2,{className:`font-heading text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-6`,initial:{opacity:0,y:20},animate:n?{opacity:1,y:0}:{},transition:{duration:.6,delay:.3},children:e(`home:ctaSection.title`)}),(0,I.jsx)(N.p,{className:`text-xl text-muted-foreground mb-10 max-w-2xl mx-auto`,initial:{opacity:0,y:20},animate:n?{opacity:1,y:0}:{},transition:{duration:.6,delay:.4},children:e(`home:ctaSection.subtitle`)}),(0,I.jsx)(N.div,{className:`flex flex-col sm:flex-row items-center justify-center gap-4`,initial:{opacity:0,y:20},animate:n?{opacity:1,y:0}:{},transition:{duration:.6,delay:.5},children:(0,I.jsx)(N.div,{whileHover:{scale:1.02},whileTap:{scale:.98},children:(0,I.jsx)(MD,{source:`home-cta-specialist`,children:(0,I.jsxs)(g,{variant:`hero`,size:`xl`,className:`group`,children:[e(`common:cta.specialist`),(0,I.jsx)($t,{size:20,className:`transition-transform group-hover:translate-x-1`})]})})})})]})})]})}var BA=()=>(0,I.jsxs)(Gk,{children:[(0,I.jsx)(rA,{}),(0,I.jsx)(oA,{}),(0,I.jsx)(fA,{}),(0,I.jsx)(_A,{}),(0,I.jsx)(wA,{}),(0,I.jsx)(OA,{}),(0,I.jsx)(RA,{}),(0,I.jsx)(FA,{}),(0,I.jsx)(zA,{})]}),VA=new Map,HA=300*1e3,UA=155;function WA(e){let t=e||``;if(t.length<=UA)return t;let n=t.slice(0,UA-1),r=n.lastIndexOf(` `);return`${(r>80?n.slice(0,r):n).replace(/[\s.,;:–—-]+$/,``)}…`}var GA=new Set([`/assessment/questionario`]);function KA(e){let[t,n]=(0,P.useState)(null);return(0,P.useEffect)(()=>{let t=VA.get(e);if(t&&Date.now()-t.timestamp<HA){n(t.data),YA(t.data);return}let r=!1;async function i(){let[{data:t},{data:i}]=await Promise.all([Pd.from(`seo_global_settings`).select(`*`).limit(1),Pd.from(`seo_page_overrides`).select(`*`).eq(`route_path`,e).eq(`is_active`,!0).limit(1)]);if(r)return;let a=t?.[0],o=i?.[0];if(!a)return;let s=o?.page_title||a.default_title||``,c=a.title_template?a.title_template.replace(`{page_title}`,s):s,l={title:c,description:WA(o?.meta_description||a.default_description||``),canonical:o?.canonical_url||`${a.default_canonical_base}${e===`/`?``:e}`,robots:GA.has(e)?`noindex, nofollow`:o?.robots||a.default_robots||`index,follow`,ogTitle:o?.og_title||a.og_default_title||c,ogDescription:WA(o?.og_description||a.og_default_description||``),ogImage:o?.og_image_url||a.og_default_image_url||``,ogSiteName:a.og_site_name||a.site_name||``,twitterCard:a.twitter_card_type||`summary_large_image`,twitterTitle:o?.twitter_title||o?.og_title||a.og_default_title||c,twitterDescription:o?.twitter_description||o?.og_description||a.og_default_description||``,twitterImage:o?.twitter_image_url||o?.og_image_url||a.og_default_image_url||``,twitterSite:a.twitter_site||null,twitterCreator:a.twitter_creator||null,structuredData:o?.structured_data_jsonld||null};VA.set(e,{data:l,timestamp:Date.now()}),n(l),YA(l)}return i(),()=>{r=!0}},[e]),t}function qA(e,t,n=!1){let r=n?`property`:`name`,i=document.querySelector(`meta[${r}="${e}"]`);if(!t){i?.remove();return}i||(i=document.createElement(`meta`),i.setAttribute(r,e),document.head.appendChild(i)),i.content=t}function JA(e,t){let n=document.querySelector(`link[rel="${e}"]`);if(!t){n?.remove();return}n||(n=document.createElement(`link`),n.rel=e,document.head.appendChild(n)),n.href=t}function YA(e){document.title=e.title,qA(`description`,e.description),qA(`robots`,e.robots),JA(`canonical`,e.canonical),qA(`og:title`,e.ogTitle,!0),qA(`og:description`,e.ogDescription,!0),qA(`og:image`,e.ogImage,!0),qA(`og:site_name`,e.ogSiteName,!0),qA(`og:url`,e.canonical,!0),qA(`og:type`,`website`,!0),qA(`twitter:card`,e.twitterCard),qA(`twitter:title`,e.twitterTitle),qA(`twitter:description`,e.twitterDescription),qA(`twitter:image`,e.twitterImage),e.twitterSite&&qA(`twitter:site`,e.twitterSite),e.twitterCreator&&qA(`twitter:creator`,e.twitterCreator);let t=document.querySelector(`script[data-seo-jsonld]`);e.structuredData?(t||(t=document.createElement(`script`),t.type=`application/ld+json`,t.setAttribute(`data-seo-jsonld`,`true`),document.head.appendChild(t)),t.textContent=JSON.stringify(e.structuredData)):t?.remove()}function XA(){return KA(R().pathname),null}var ZA={human:`Pessoas`,search_engine:`Buscadores`,ai_agent:`Agentes de IA`,bot:`Bots / automação`,preview:`Preview de link`,unknown:`Desconhecido`},QA=[{re:/GPTBot/i,kind:`ai_agent`,label:`GPTBot`},{re:/OAI-SearchBot/i,kind:`ai_agent`,label:`OAI-SearchBot`},{re:/ChatGPT-User/i,kind:`ai_agent`,label:`ChatGPT-User`},{re:/ClaudeBot|Claude-Web|anthropic-ai/i,kind:`ai_agent`,label:`ClaudeBot`},{re:/PerplexityBot|Perplexity-User/i,kind:`ai_agent`,label:`PerplexityBot`},{re:/Google-Extended/i,kind:`ai_agent`,label:`Google-Extended`},{re:/Googlebot-?News|Google-CloudVertexBot/i,kind:`ai_agent`,label:`Google Vertex`},{re:/Bytespider/i,kind:`ai_agent`,label:`Bytespider`},{re:/Meta-ExternalAgent|FacebookBot/i,kind:`ai_agent`,label:`Meta-ExternalAgent`},{re:/Amazonbot/i,kind:`ai_agent`,label:`Amazonbot`},{re:/YouBot|Diffbot|cohere-ai|Applebot-Extended/i,kind:`ai_agent`,label:`Outro agente de IA`},{re:/Googlebot|Google-InspectionTool|Storebot-Google/i,kind:`search_engine`,label:`Googlebot`},{re:/bingbot|BingPreview|adidxbot/i,kind:`search_engine`,label:`Bingbot`},{re:/DuckDuckBot|DuckAssistBot/i,kind:`search_engine`,label:`DuckDuckBot`},{re:/YandexBot/i,kind:`search_engine`,label:`YandexBot`},{re:/Baiduspider/i,kind:`search_engine`,label:`Baiduspider`},{re:/Applebot/i,kind:`search_engine`,label:`Applebot`},{re:/Slurp/i,kind:`search_engine`,label:`Yahoo Slurp`},{re:/SeznamBot|Qwantify|PetalBot/i,kind:`search_engine`,label:`Outro buscador`},{re:/WhatsApp/i,kind:`preview`,label:`WhatsApp`},{re:/Slackbot|Slack-ImgProxy/i,kind:`preview`,label:`Slack`},{re:/LinkedInBot/i,kind:`preview`,label:`LinkedIn`},{re:/Discordbot/i,kind:`preview`,label:`Discord`},{re:/Twitterbot/i,kind:`preview`,label:`X / Twitter`},{re:/TelegramBot/i,kind:`preview`,label:`Telegram`},{re:/facebookexternalhit/i,kind:`preview`,label:`Facebook`},{re:/Embedly|Iframely|SkypeUriPreview/i,kind:`preview`,label:`Outro preview`},{re:/HeadlessChrome|Headless/i,kind:`bot`,label:`Navegador headless`},{re:/Playwright|Puppeteer|Selenium|PhantomJS/i,kind:`bot`,label:`Automação de browser`},{re:/curl\//i,kind:`bot`,label:`curl`},{re:/Wget/i,kind:`bot`,label:`wget`},{re:/python-requests|httpx|aiohttp|urllib|Scrapy|Go-http-client|okhttp|axios|node-fetch|Java\//i,kind:`bot`,label:`Biblioteca HTTP`},{re:/AhrefsBot|SemrushBot|MJ12bot|DotBot|DataForSeoBot|BLEXBot|Screaming Frog/i,kind:`bot`,label:`Crawler de SEO`},{re:/UptimeRobot|Pingdom|StatusCake|Site24x7|Lighthouse|PTST|GTmetrix/i,kind:`bot`,label:`Monitoramento`},{re:/\bbot\b|spider|crawler|crawl/i,kind:`bot`,label:`Outro bot`}];function $A(e,t=!1){let n=(e??``).trim();if(!n)return{kind:`unknown`,label:`Desconhecido`};for(let e of QA)if(e.re.test(n))return{kind:e.kind,label:e.label};return t?{kind:`bot`,label:`Automação de browser`}:{kind:`human`,label:ej(n)}}function ej(e){return/Edg\//i.test(e)?`Edge`:/OPR\/|Opera/i.test(e)?`Opera`:/SamsungBrowser/i.test(e)?`Samsung Internet`:/Firefox\//i.test(e)?`Firefox`:/Chrome\/|CriOS/i.test(e)?`Chrome`:/Safari\//i.test(e)?`Safari`:`Outro navegador`}var tj=`bp_session_id`,nj=`bp_session_ts`,rj=1800*1e3;function ij(){let e=Date.now(),t=sessionStorage.getItem(tj),n=parseInt(sessionStorage.getItem(nj)||`0`,10);if(t&&e-n<rj)return sessionStorage.setItem(nj,String(e)),{id:t,isNew:!1};let r=crypto.randomUUID();return sessionStorage.setItem(tj,r),sessionStorage.setItem(nj,String(e)),{id:r,isNew:!0}}function aj(){let e=R(),t=(0,P.useRef)(null);return(0,P.useEffect)(()=>{let n=e.pathname;if(n.startsWith(`/admin`)||n.startsWith(`/aceitar-convite`)||n.startsWith(`/auth`)||t.current===n)return;t.current=n;let{id:r,isNew:i}=ij(),{kind:a,label:o}=$A(navigator.userAgent,!!navigator.webdriver);Pd.from(`analytics_pageviews`).insert({session_id:r,path:n,referrer:i&&document.referrer||null,is_entry:i,client_kind:a,client_label:o}).then(({error:e})=>{e&&console.warn(`pageview track error`,e.message)})},[e.pathname]),null}
114var oj=`2026-09-1`,sj=`bp_cookie_consent`,cj=`open-cookie-settings`;function lj(){try{let e=localStorage.getItem(sj);if(!e)return null;let t=JSON.parse(e);return t.decision!==`accepted`&&t.decision!==`rejected`?null:t}catch{return null}}function uj(e,t){let n={decision:e,ts:new Date().toISOString(),region:t,noticeVersion:oj};try{localStorage.setItem(sj,JSON.stringify(n))}catch{}return n}function dj(e){let t=e?`granted`:`denied`,n={ad_storage:t,ad_user_data:t,ad_personalization:t,analytics_storage:t};typeof window.gtag==`function`?window.gtag(`consent`,`update`,n):(window.dataLayer=window.dataLayer||[],window.dataLayer.push([`consent`,`update`,n]))}async function fj(e=2e3){try{let t=new AbortController,n=setTimeout(()=>t.abort(),e),r=await fetch(`/cdn-cgi/trace`,{signal:t.signal,cache:`no-store`});if(clearTimeout(n),!r.ok)return null;let i=(await r.text()).match(/^loc=(.+)$/m);return i?i[1].trim():null}catch{return null}}function pj(e){return!e||e===`XX`||e===`T1`||e===`BR`}function mj(){let{t:e}=sp(`common`),[t,n]=(0,P.useState)(!1),[r,i]=(0,P.useState)(null),a=(0,P.useCallback)(async()=>{let e=lj(),t=await fj();if(i(t),e){dj(e.decision===`accepted`),n(!1);return}if(pj(t)){n(!0);return}dj(!0)},[]);(0,P.useEffect)(()=>{a()},[a]),(0,P.useEffect)(()=>{let e=()=>{n(!0)};return window.addEventListener(cj,e),()=>window.removeEventListener(cj,e)},[]);let o=(0,P.useCallback)(e=>{uj(e,r),dj(e===`accepted`),n(!1)},[r]);return t?(0,I.jsx)(`div`,{role:`dialog`,"aria-modal":`false`,"aria-label":e(`cookieBanner.ariaLabel`),className:`fixed bottom-0 left-0 right-0 z-[90] border-t border-border bg-card/95 backdrop-blur-md shadow-[0_-8px_30px_rgba(0,0,0,0.35)]`,children:(0,I.jsxs)(`div`,{className:`container mx-auto px-4 py-5 flex flex-col md:flex-row md:items-center gap-4`,children:[(0,I.jsxs)(`div`,{className:`flex items-start gap-3 flex-1`,children:[(0,I.jsx)(ln,{className:`h-5 w-5 text-primary shrink-0 mt-0.5`,"aria-hidden":`true`}),(0,I.jsxs)(`p`,{className:`text-sm text-muted-foreground leading-relaxed`,children:[e(`cookieBanner.message`),` `,(0,I.jsx)(md,{to:`/privacidade`,className:`text-primary underline-offset-4 hover:underline`,children:e(`cookieBanner.learnMore`)})]})]}),(0,I.jsxs)(`div`,{className:`flex items-center gap-3 shrink-0`,children:[(0,I.jsx)(g,{variant:`outline`,size:`sm`,onClick:()=>o(`rejected`),children:e(`cookieBanner.reject`)}),(0,I.jsx)(g,{variant:`hero`,size:`sm`,onClick:()=>o(`accepted`),children:e(`cookieBanner.accept`)})]})]})}):null}var hj={phishing:`/plataforma/phishing`,treinamentos:`/plataforma/treinamentos`,comunicacao:`/plataforma/comunicacao`,"gestao-risco":`/plataforma/gestao-risco`,"gestao-risco/bhrs":`/plataforma/gestao-risco/bhrs`,gamificacao:`/plataforma/gamificacao`,jogos:`/plataforma/gamificacao`};function gj(){let{pathname:e,search:t,hash:n}=R(),r=hj[e.replace(/^\/solucoes\/?/,``).replace(/\/+$/,``)];return r?(0,I.jsx)(xu,{to:`${r}${t}${n}`,replace:!0}):(0,I.jsx)(Oj,{})}function _j(){let{pathname:e,search:t,hash:n}=R(),r=e.replace(/^\/noticias\/?/,``).replace(/\/+$/,``);return(0,I.jsx)(xu,{to:`${r?`/midia/${r}`:`/midia`}${t}${n}`,replace:!0})}var vj={jogos:`/plataforma/gamificacao`};function yj(){let{pathname:e,search:t,hash:n}=R(),r=vj[e.replace(/^\/plataforma\/?/,``).replace(/\/+$/,``)];return r?(0,I.jsx)(xu,{to:`${r}${t}${n}`,replace:!0}):(0,I.jsx)(Yj,{})}var bj=F(()=>w(()=>import(`./Plataforma-_aep3djC.js`),__vite__mapDeps([9,1,2,10,11,5,3,12]))),xj=F(()=>w(()=>import(`./Solucoes-afO8FU6l.js`),__vite__mapDeps([13,1,2,10,5,14,15,16,17,18,8,19,3]))),Sj=F(()=>w(()=>import(`./SolucaoPhishing-Cgok1YFb.js`),__vite__mapDeps([20,1,2,10,8,5,19,3,21,22,23]))),Cj=F(()=>w(()=>import(`./SolucaoTreinamentos-BIqcwX_v.js`),__vite__mapDeps([24,1,2,10,5,25,26,16,7,27,28,29,3,12,21,22,23]))),wj=F(()=>w(()=>import(`./SolucaoComunicacao-DwEWvu0n.js`),__vite__mapDeps([30,1,2,10,5,31,26,32,18,3,21,22]))),Tj=F(()=>w(()=>import(`./SolucaoGestaoRisco-CsYexQRP.js`),__vite__mapDeps([33,1,2,34,10,35,36,37,5,38,26,39,40,18,7,8,19,3,41,42,43,44,45,21]))),Ej=F(()=>w(()=>import(`./SolucaoGamificacao-CbJqJg-_.js`),__vite__mapDeps([46,1,2,10,5,47,48,27,28,3,22]))),Dj=F(()=>w(()=>
114import(`./Bhrs-Dx0Cvz4n.js`),__vite__mapDeps([49,1,2,10,5,38,50,51,26,39,40,18,47,27,8,29,3,21]))),Oj=F(()=>w(()=>import(`./Gone-BjBrL-ve.js`),__vite__mapDeps([52,1,2]))),kj=F(()=>w(()=>import(`./Parceiros-DGXLrES8.js`),__vite__mapDeps([53,1,2,3]))),Aj=F(()=>w(()=>import(`./ComoSeTornarParceiro-ClVBMDr7.js`),__vite__mapDeps([54,1,2,10,3]))),jj=F(()=>w(()=>import(`./ParceirosTecnologicos-w1qsCcus.js`),__vite__mapDeps([55,1,2,10,3]))),Mj=F(()=>w(()=>import(`./Clientes-CG0GfuLo.js`),__vite__mapDeps([56,1,2,10,57,5,14,3,43]))),Nj=F(()=>w(()=>import(`./Sobre-DJpp3Pwe.js`),__vite__mapDeps([58,1,2,10,25,5,39,3]))),Pj=F(()=>w(()=>import(`./Blog-bPoyP62L.js`),__vite__mapDeps([59,2,1,60,10,57,5,14,3,61,62,63]))),Fj=F(()=>w(()=>import(`./BlogPost-69r2goHD.js`),__vite__mapDeps([64,1,2,50,5,62,10,42,43]))),Ij=F(()=>w(()=>import(`./Webinars-Dmo8v7Pr.js`),__vite__mapDeps([65,2,1,66,5,60,10,57,14,3,61,62,63]))),Lj=F(()=>w(()=>import(`./WebinarPost-BRpnUMZa.js`),__vite__mapDeps([67,2,1,10,68,50,5,62,42,43,69]))),Rj=F(()=>w(()=>import(`./Podcasts-D3VGfURy.js`),__vite__mapDeps([70,2,1,71,5,60,10,57,14,3,61,62,63]))),zj=F(()=>w(()=>import(`./PodcastPost-XfDxoAGE.js`),__vite__mapDeps([72,2,1,10,71,5,68,50,62,42,43,69]))),Bj=F(()=>w(()=>import(`./CasosDeUso-Dfl157qy.js`),__vite__mapDeps([73,2,1,60,10,57,5,14,3,61,62,63]))),Vj=F(()=>w(()=>import(`./CasoDeUsoPost-BiwtoFh1.js`),__vite__mapDeps([74,2,1,68,50,5,62,10,42,43]))),Hj=F(()=>w(()=>import(`./Midia-Dwv3-oYS.js`),__vite__mapDeps([75,2,1,60,10,57,5,14,3,61,62,63]))),Uj=F(()=>w(()=>import(`./MidiaPost-BDqR_Msf.js`),__vite__mapDeps([76,2,1,10,68,50,5,62,42,43]))),Wj=F(()=>w(()=>import(`./Contato-W4_kU6oS.js`),__vite__mapDeps([77,2,1,42]))),Gj=F(()=>w(()=>import(`./Privacidade-CsKAYwUq.js`),__vite__mapDeps([78,1,2,10,6,5,62,43,79,80,39,81,44,34,35,36,37]))),Kj=F(()=>w(()=>import(`./Termos-BO8qhk_O.js`),__vite__mapDeps([82,1,2,10,6,5,62,43,79,80,39,81,44,34,35,36,37]))),qj=F(()=>w(()=>import(`./AssessmentIntro-H9ru7IWn.js`),__vite__mapDeps([83,2,1,10,5,51,84,7]))),Jj=F(()=>w(()=>import(`./Assessment-BVZvG376.js`),__vite__mapDeps([85,1,2,34,10,35,36,37,5,84,61,86,87,88]))),Yj=F(()=>w(()=>import(`./NotFound-CsNjVCuU.js`),__vite__mapDeps([89,1,2]))),Xj=F(()=>w(()=>import(`./Auth-C5jsSJh0.js`),__vite__mapDeps([90,1,2,10,91,5,39,84,3,61,86,35,36,92]))),Zj=F(()=>w(()=>import(`./Dashboard-ByvhP-7y.js`),__vite__mapDeps([93,1,2,36,10,5,38,94,31,57,14,8,61,86,35,41,34,95,96,97,66,98,37,99,100,15,18,48,92,39,101,47,27,28,3,62]))),Qj=F(()=>w(()=>import(`./BlogAdmin-CFKmxMyD.js`),__vite__mapDeps([102,2,1,103,10,98,36,34,35,37,5,99,14,100,15,18,48,92,104,105,106,107,3,61,86,95,62,63,108,88,109,110,111,112,81]))),$j=F(()=>w(()=>import(`./ResearchAdmin-rg7CWuGj.js`),__vite__mapDeps([113,2,1,103,10,98,36,34,35,37,5,99,14,100,15,18,48,92,104,105,106,107,3,61,86,95,62,63,108,88,109,110,111,112,81]))),eM=F(()=>w(()=>import(`./ResearchPage-BuMyP5Fa.js`),__vite__mapDeps([114,1,2,42,43]))),tM=F(()=>w(()=>import(`./DocumentoRedirect-CC6HRkc_.js`),__vite__mapDeps([115,1,2,89]))),nM=F(()=>w(()=>import(`./DocumentosAdmin-B48HK53l.js`),__vite__mapDeps([116,1,2,10,99,5,14,100,15,18,48,92,117,105,106,107,111,3,61,86,35,36,41,34,95,62,109]))),rM=F(()=>w(()=>import(`./WebinarsAdmin-BYYLjkxp.js`),__vite__mapDeps([118,2,1,103,10,98,36,34,35,37,5,99,14,100,15,18,48,92,104,105,106,107,3,61,86,95,62,63,108,88,109,110,111,112,81]))),iM=F(()=>w(()=>import(`./PodcastsAdmin-DlOUM5UA.js`),__vite__mapDeps([119,2,1,103,10,98,36,34,35,37,5,99,14,100,15,18,48,92,104,105,106,107,3,61,86,95,62,63,108,88,109,110,111,112,81]))),aM=F(()=>w(()=>import(`./CasosDeUsoAdmin-BUFk4Ulb.js`),__vite__mapDeps([120,2,1,103,10,98,36,34,35,37,5,99,14,100,15,18,48,92,104,105,106,107,3,61,86,95,62,63,108,88,109,110,111,112,81]))),oM=F(()=>w(()=>import(`./MediaAdmin-CoWSwL1a.js`),__vite__mapDeps([121,2,1,103,10,98,36,34,35,37,5,99,14,100,15,18,48,92,104,105,106,107,3,61,86,95,62,63,108,88,109,110,111,112,81]))),sM=F(()=>w(()=>import(`./ClientesAdmin-DEjk3nlZ.js`),__vite__mapDeps([122,1,2,10,99,5,14,100,15,18,48,92,105,106,107,3,61,86,35,36,41,34,95,62,109,110,111]))),cM=F(()=>w(()=>import(`./SuccessCasesAdmin-nrV6haed.js`),__vite__mapDeps([123,1,2,10,98,36,34,35,37,5,99,14,100,15,18,48,92,105,106,107,3,61,86,41,95,110,111,112,81]))),lM=F(()=>w(()=>
114import(`./ParceirosAdmin-D_tjcPBY.js`),__vite__mapDeps([124,1,2,10,98,36,34,35,37,5,99,14,100,15,18,48,92,105,106,107,3,61,86,41,95,62,109,110,111]))),uM=F(()=>w(()=>import(`./CRMAdmin-C6ctCltn.js`),__vite__mapDeps([125,1,2,10,5,94,31,57,14,8,61,86,35,36,41,34,95,96,66,98,37,26,99,100,15,18,48,92,71,105,106,107,126,3,62,109,127]))),dM=F(()=>w(()=>import(`./LegalDocumentsAdmin-DRVugCSi.js`),__vite__mapDeps([128,1,2,10,99,5,14,100,15,18,48,92,71,39,105,106,107,129,61,95,62,43,79,108,34,35,36,37,88,112,81,96,127,130]))),fM=F(()=>w(()=>import(`./SeoAdmin-CTFf-scL.js`),__vite__mapDeps([131,1,2,10,5,97,26,99,14,100,15,18,48,92,132,129,61,86,35,36,95,62,108,34,37,88,109,110,111,133]))),pM=F(()=>w(()=>import(`./TestimonialsAdmin-CTtyk0cf.js`),__vite__mapDeps([134,1,2,10,99,5,14,100,15,18,48,92,132,105,107,126,61,86,35,36,41,34,109,110,111,130]))),mM=F(()=>w(()=>import(`./PaginasAdmin-DWRZ5_NC.js`),__vite__mapDeps([135,1,2,10,99,5,14,100,15,18,48,92,11,95,110,111]))),hM=F(()=>w(()=>import(`./MenuAdmin-f3WE8f0l.js`),__vite__mapDeps([136,1,2,26,5,99,10,14,100,15,18,48,92,137,3,86,35,36,41,34,95,62]))),gM=F(()=>w(()=>import(`./ImagensAdmin-BfV-Mfr0.js`),__vite__mapDeps([138,1,2,10,99,5,14,100,15,18,48,92,117,132,107,111,61,86,35,36]))),_M=F(()=>w(()=>import(`./ParceirosTecnologicosAdmin-CQ38n0Vx.js`),__vite__mapDeps([139,1,2,10,98,36,34,35,37,5,99,14,100,15,18,48,92,105,106,107,3,61,86,41,95,62,109,110,111]))),vM=F(()=>w(()=>import(`./FaqAdmin-BQNLoUTG.js`),__vite__mapDeps([140,1,2,10,5,98,36,34,35,37,99,14,100,15,18,48,92,39,104,132,105,107,61,86,41,62,43,112,81,96,127,130,45]))),yM=F(()=>w(()=>import(`./UsuariosAdmin-CnAmpX01.js`),__vite__mapDeps([141,1,2,10,98,36,34,35,37,5,99,14,100,15,18,48,92,117,39,142,105,17,32,7,107,8,126,61,86,95,62,96,127]))),bM=F(()=>w(()=>import(`./AnalyticsSettingsAdmin-DvqLtEEk.js`),__vite__mapDeps([143,1,2,10,99,5,14,100,15,18,48,92,61,86,35,36,41,34,95]))),xM=F(()=>w(()=>import(`./MeuPerfil-CQwGYOCO.js`),__vite__mapDeps([144,1,2,10,99,5,14,100,15,18,48,92,91,39,84,142,7,126,61,86,35,36,95,109]))),SM=F(()=>w(()=>import(`./ConvitesAuditoria-Pe3KQmsS.js`),__vite__mapDeps([145,1,2,10,5,26,99,14,100,15,18,48,92,137,71,8,95,62]))),CM=F(()=>w(()=>import(`./PedidosResetSenha-rIeCGGL7.js`),__vite__mapDeps([146,1,2,10,99,5,14,100,15,18,48,92,7,61,86,35,36,95,62]))),wM=F(()=>w(()=>import(`./AuditoriaAcessos-cGaj4qg5.js`),__vite__mapDeps([147,1,2,26,5,99,10,14,100,15,18,48,92,137,61,95,62,108,34,35,36,37,88]))),TM=F(()=>w(()=>import(`./DiagnosticoAdmin-6qzXwS5r.js`),__vite__mapDeps([148,1,2,99,10,5,14,100,15,18,48,92,61,86,35,36,95,87,34,62,108,37,88,133]))),EM=F(()=>w(()=>import(`./AceitarConvite-Bj7sIBmZ.js`),__vite__mapDeps([149,1,2,10,7,5,61,86,35,36,95,92]))),DM=F(()=>w(()=>import(`./ConvitePreview-CrlpLaXF.js`),__vite__mapDeps([150,1,2,10,18,5,7,95,92]))),OM=F(()=>w(()=>import(`./RedefinirSenha-D2L3J2vM.js`),__vite__mapDeps([151,1,2,10,91,5,39,100,18,61,86,35,36,95,92]))),kM=new tc;(0,xe.createRoot)(document.getElementById(`root`)).render((0,I.jsx)(()=>(0,I.jsx)(dc,{client:kM,children:(0,I.jsx)(rs,{children:(0,I.jsxs)(Id,{children:[(0,I.jsx)(qn,{}),(0,I.jsx)(kr,{}),(0,I.jsxs)(fd,{children:[(0,I.jsx)(XA,{}),(0,I.jsx)(aj,{}),(0,I.jsx)(mj,{}),(0,I.jsx)(P.Suspense,{fallback:null,children:(0,I.jsxs)(Cu,{children:[(0,I.jsx)(z,{path:`/`,element:(0,I.jsx)(BA,{})}),(0,I.jsx)(z,{path:`/assessment`,element:(0,I.jsx)(qj,{})}),(0,I.jsx)(z,{path:`/assessment/questionario`,element:(0,I.jsx)(Jj,{})}),(0,I.jsx)(z,{path:`/plataforma`,element:(0,I.jsx)(bj,{})}),(0,I.jsx)(z,{path:`/solucoes`,element:(0,I.jsx)(xj,{})}),(0,I.jsx)(z,{path:`/plataforma/phishing`,element:(0,I.jsx)(Sj,{})}),(0,I.jsx)(z,{path:`/plataforma/treinamentos`,element:(0,I.jsx)(Cj,{})}),(0,I.jsx)(z,{path:`/plataforma/comunicacao`,element:(0,I.jsx)(wj,{})}),(0,I.jsx)(z,{path:`/plataforma/gestao-risco`,element:(0,I.jsx)(Tj,{})}),(0,I.jsx)(z,{path:`/plataforma/gestao-risco/bhrs`,element:(0,I.jsx)(Dj,{})}),(0,I.jsx)(z,{path:`/plataforma/gamificacao`,element:(0,I.jsx)(Ej,{})}),(0,I.jsx)(z,{path:`/solucoes/*`,element:(0,I.jsx)(gj,{})}),(0,I.jsx)(z,{path:`/plataforma/*`,element:(0,I.jsx)(yj,{})}),(0,I.jsx)(z,{path:`/parceiros`,element:(0,I.jsx)(kj,{})}),(0,I.jsx)(z,{path:`/parceiros/parceiros-tecnologicos`,element:(0,I.jsx)(jj,{})}),(0,I.jsx)(z,{path:`/parceiros/seja-um-parceiro`,element:(0,I.jsx)(Aj,{})}),(0,I.jsx)(z,{path:`/clientes`,element:(0,I.jsx)(Mj,{})}),(0,I.jsx)(z,{path:`/sobre`,element:(0,I.jsx)(Nj,{})}),(0,I.jsx)(z,{path:`/blog`,element:(0,I.jsx)(Pj,{})}),(0,I.jsx)(z,{path:`/blog/alem-de-identifcar-e-preciso-relatar-ameacas`,element:(0,I.jsx)(xu,{to:`/blog/alem-de-identificar-e-preciso-relatar-ameacas`,replace:!0})}),(0,I.jsx)(z,{path:`/blog/:slug`,element:(0,I.jsx)(Fj,{})}),(0,I.jsx)(z,{path:`/noticias/*`,element:(0,I.jsx)(_j,{})}),(0,I.jsx)(z,{path:`/webinars`,element:(0,I.jsx)(Ij,{})}),(0,I.jsx)(z,{path:`/webinars/:slug`,element:(0,I.jsx)(Lj,{})}),(0,I.jsx)(z,{path:`/podcasts`,element:(0,I.jsx)(Rj,{})}),(0,I.jsx)(z,{path:`/podcasts/:slug`,element:(0,I.jsx)(zj,{})}),(0,I.jsx)(z,{path:`/casos-de-uso`,element:(0,I.jsx)(Bj,{})}
114),(0,I.jsx)(z,{path:`/casos-de-uso/:slug`,element:(0,I.jsx)(Vj,{})}),(0,I.jsx)(z,{path:`/midia`,element:(0,I.jsx)(Hj,{})}),(0,I.jsx)(z,{path:`/midia/:slug`,element:(0,I.jsx)(Uj,{})}),(0,I.jsx)(z,{path:`/research/:slug`,element:(0,I.jsx)(eM,{})}),(0,I.jsx)(z,{path:`/documentos/:slug`,element:(0,I.jsx)(tM,{})}),(0,I.jsx)(z,{path:`/contato`,element:(0,I.jsx)(Wj,{})}),(0,I.jsx)(z,{path:`/privacidade`,element:(0,I.jsx)(Gj,{})}),(0,I.jsx)(z,{path:`/termos`,element:(0,I.jsx)(Kj,{})}),(0,I.jsx)(z,{path:`/auth`,element:(0,I.jsx)(Xj,{})}),(0,I.jsx)(z,{path:`/admin`,element:(0,I.jsx)(Zj,{})}),(0,I.jsx)(z,{path:`/admin/meu-perfil`,element:(0,I.jsx)(xM,{})}),(0,I.jsx)(z,{path:`/admin/convites-auditoria`,element:(0,I.jsx)(SM,{})}),(0,I.jsx)(z,{path:`/admin/pedidos-reset-senha`,element:(0,I.jsx)(CM,{})}),(0,I.jsx)(z,{path:`/admin/auditoria-acessos`,element:(0,I.jsx)(wM,{})}),(0,I.jsx)(z,{path:`/admin/diagnostico`,element:(0,I.jsx)(TM,{})}),(0,I.jsx)(z,{path:`/admin/usuarios`,element:(0,I.jsx)(yM,{})}),(0,I.jsx)(z,{path:`/admin/analytics-config`,element:(0,I.jsx)(bM,{})}),(0,I.jsx)(z,{path:`/aceitar-convite`,element:(0,I.jsx)(EM,{})}),(0,I.jsx)(z,{path:`/convite`,element:(0,I.jsx)(DM,{})}),(0,I.jsx)(z,{path:`/redefinir-senha`,element:(0,I.jsx)(OM,{})}),(0,I.jsx)(z,{path:`/reset-password`,element:(0,I.jsx)(OM,{})}),(0,I.jsx)(z,{path:`/admin/blog`,element:(0,I.jsx)(Qj,{})}),(0,I.jsx)(z,{path:`/admin/research`,element:(0,I.jsx)($j,{})}),(0,I.jsx)(z,{path:`/admin/noticias`,element:(0,I.jsx)(xu,{to:`/admin/midia`,replace:!0})}),(0,I.jsx)(z,{path:`/admin/webinars`,element:(0,I.jsx)(rM,{})}),(0,I.jsx)(z,{path:`/admin/podcasts`,element:(0,I.jsx)(iM,{})}),(0,I.jsx)(z,{path:`/admin/casos-de-uso`,element:(0,I.jsx)(aM,{})}),(0,I.jsx)(z,{path:`/admin/midia`,element:(0,I.jsx)(oM,{})}),(0,I.jsx)(z,{path:`/admin/clientes`,element:(0,I.jsx)(sM,{})}),(0,I.jsx)(z,{path:`/admin/cases-de-sucesso`,element:(0,I.jsx)(cM,{})}),(0,I.jsx)(z,{path:`/admin/parceiros`,element:(0,I.jsx)(lM,{})}),(0,I.jsx)(z,{path:`/admin/parceiros-tecnologicos`,element:(0,I.jsx)(_M,{})}),(0,I.jsx)(z,{path:`/admin/crm`,element:(0,I.jsx)(uM,{})}),(0,I.jsx)(z,{path:`/admin/documentos-legais`,element:(0,I.jsx)(dM,{})}),(0,I.jsx)(z,{path:`/admin/seo`,element:(0,I.jsx)(fM,{})}),(0,I.jsx)(z,{path:`/admin/depoimentos`,element:(0,I.jsx)(pM,{})}),(0,I.jsx)(z,{path:`/admin/paginas`,element:(0,I.jsx)(mM,{})}),(0,I.jsx)(z,{path:`/admin/menu`,element:(0,I.jsx)(hM,{})}),(0,I.jsx)(z,{path:`/admin/faq`,element:(0,I.jsx)(vM,{})}),(0,I.jsx)(z,{path:`/admin/imagens`,element:(0,I.jsx)(gM,{})}),(0,I.jsx)(z,{path:`/admin/documentos`,element:(0,I.jsx)(nM,{})}),(0,I.jsx)(z,{path:`*`,element:(0,I.jsx)(Yj,{})})]})})]})]})})}),{}));export{o_ as $,as as $t,AD as A,fn as An,Pf as At,uD as B,$t as Bn,Sd as Bt,BD as C,xn as Cn,rp as Ct,MD as D,hn as Dn,Kf as Dt,ND as E,gn as En,Yf as Et,yD as F,on as Fn,md as Ft,KE as G,Ne as Gn,vs as Gt,tD as H,$e as Hn,uc as Ht,vD as I,an as In,xu as It,dT as J,js as Jt,mE as K,ls as Kt,gD as L,rn as Ln,R as Lt,SD as M,un as Mn,pf as Mt,bD as N,cn as Nn,Ld as Nt,jD as O,mn as On,Hf as Ot,xD as P,sn as Pn,Pd as Pt,t_ as Q,rs as Qt,dD as R,tn as Rn,Yl as Rt,VD as S,Sn,sp as St,ID as T,_n as Tn,Qf as Tt,QE as U,Ue as Un,Ys as Ut,lD as V,et as Vn,Tc as Vt,XE as W,Fe as Wn,Hs as Wt,Mv as X,is as Xt,Pw as Y,ss as Yt,Ev as Z,os as Zt,GD as _,Dn as _n,gp as _t,iA as a,Ya as an,$g as at,zD as b,wn as bn,up as bt,jk as c,Ln as cn,qg as ct,BO as d,Nn as dn,Hg as dt,go as en,u_ as et,$ as f,Mn as fn,hg as ft,YD as g,On as gn,Lm as gt,JD as h,kn as hn,Xm as ht,TA as i,Qa as in,Zg as it,DD as j,dn as jn,If as jt,PD as k,pn as kn,Vf as kt,zO as l,In as ln,Qg as lt,cO as m,An as mn,rg as mt,JA as n,_o as nn,l_ as nt,Gk as o,fr as on,Xg as ot,QD as p,jn as pn,fg as pt,yT as q,xs as qt,qA as r,ho as rn,e_ as rt,kk as s,Rn as sn,Yg as st,ZA as t,vo as tn,s_ as tt,VO as u,Fn as un,Jg as ut,WD as v,En as vn,hp as vt,HD as w,yn as wn,ep as wt,UD as x,Cn as xn,dp as xt,FD as y,Tn as yn,fp as yt,cD as z,en as zn,Zl as zt};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.