1import{r as p,j as o,w as E,k as C,M as V,l as A,O as F,S as N,m as O,n as U}from"./chunk-PVWAREVJ-CB1ckK9y.js";import{a as $,l as v,T as L}from"./react-2JobpjGn.js";import{u as h}from"./useTranslation-FHOnR8C3.js";import{i as S}from"./i18next-CH5i1yFY.js";import{e as P,Z as l,a as x,s as T}from"./errors-BxvIj8zZ.js";import{c as j}from"./utils-Bt5IX6-4.js";import{z as R}from"./index-DNhaXUUp.js";import{T as z}from"./index-CVIt0u3V.js";import{A as W}from"./auth-provider-BhzpdS91.js";import"./context-DvKGMYY4.js";import"./index-CC88cGQ9.js";import"./preload-helper-ckwbz45p.js";import"./index-C1YNYdv3.js";var q=({children:t,options:e={},state:i,queryClient:r})=>{const n=$(r),d=p.useRef(e);d.current=e;const a=p.useMemo(()=>{if(i){if(typeof i!="object")return;const s=n.getQueryCache(),y=i.queries||[],u=[],f=[];for(const c of y){const m=s.get(c.queryHash);m?(c.state.dataUpdatedAt>m.state.dataUpdatedAt||c.promise&&m.state.status!=="pending"&&m.state.fetchStatus!=="fetching"&&c.dehydratedAt!==void 0&&c.dehydratedAt>m.state.dataUpdatedAt)&&f.push(c):u.push(c)}if(u.length>0&&v(n,{queries:u},d.current),f.length>0)return f}},[n,i]);return p.useEffect(()=>{a&&v(n,{queries:a},d.current)},[n,a]),t};const I='"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif';function M(){const t=document.createElement("canvas");t.width=t.height=1;const e=t.getContext("2d",{willReadFrequently:!0});return e.textBaseline="top",e.font=`100px ${I}`,e.scale(.01,.01),e}function _(t,e,i){return t.clearRect(0,0,100,100),t.fillStyle=i,t.fillText(e,0,0),t.getImageData(0,0,1,1).data.join(",")}function b(t){const e=M(),i=_(e,t,"#fff"),r=_(e,t,"#000");return r===i&&!r.startsWith("0,0,0,")}function Q(t="Twemoji Country Flags",e="https://cdn.jsdelivr.net/npm/[email protected]/dist/TwemojiCountryFlags.woff2"){if(typeof window<"u"&&b("ð")&&!b("ð¨ð")){const i=document.createElement("style");return i.textContent=`@font-face { 2 font-family: "${t}"; 3 unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, 4 U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F; 5 src: url('${e}') format('woff2'); 6 font-display: swap; 7 }`,document.head.appendChild(i),!0}return!1}function B(t){let{i18n:e}=h();p.useEffect(()=>{e.language!==t&&e.changeLanguage(t)},[t,e])}var D=(t,e)=>typeof e=="bigint"?e.toString():e;function g(t,e=" | "){return t.map(i=>typeof i=="string"?`'${i}'`:i).join(e)}var k=t=>{if(typeof t!="object"||t===null)return!1;for(const e in t)if(!Object.prototype.hasOwnProperty.call(t,e))return!1;return!0},Z=(t,e)=>{if(typeof t=="string")return{key:t,values:{}};if(k(t)){const i="key"in t&&typeof t.key=="string"?t.key:e,r="values"in t&&k(t.values)?t.values:{};return{key:i,values:r}}return{key:e,values:{}}},w="zod",G=t=>(e,i)=>{var y;const{t:r,ns:n,handlePath:d}={t:S.t,ns:w,...t,handlePath:(t==null?void 0:t.handlePath)!==!1?{context:"with_path",ns:(t==null?void 0:t.ns)??w,keyPrefix:void 0,...t==null?void 0:t.handlePath}:null};let a;a=P(e,i).message;const s=e.path.length>0&&d?{context:d.context,path:r([d.keyPrefix,e.path.join(".")].filter(Boolean).join("."),{ns:d.ns,defaultValue:e.path.join(".")})}:{};switch(e.code){case l.invalid_type:e.received===x.undefined?a=r("errors.invalid_type_received_undefined",{ns:n,defaultValue:a,...s}):e.received===x.null?a=r("errors.invalid_type_received_null",{ns:n,defaultValue:a,...s}):a=r("errors.invalid_type",{expected:r(`types.${e.expected}`,{defaultValue:e.expected,ns:n}),received:r(`types.${e.received}`,{defaultValue:e.received,ns:n}),ns:n,defaultValue:a,...s});break;case l.invalid_literal:a=r("errors.invalid_literal",{expected:JSON.stringify(e.expected,D),ns:n,defaultValue:a,...s});break;case l.unrecognized_keys:a=r("errors.unrecognized_keys",{keys:g(e.keys,", "),count:e.keys.length,ns:n,defaultValue:a,...s});break;case l.invalid_union:a=r("errors.invalid_union",{ns:n,defaultValue:a,...s});break;case l.invalid_union_discriminator:a=r("errors.invalid_union_discriminator",{options:g(e.options),ns:n,defaultValue:a,...s});break;
7case l.invalid_enum_value:a=r("errors.invalid_enum_value",{options:g(e.options),received:e.received,ns:n,defaultValue:a,...s});break;case l.invalid_arguments:a=r("errors.invalid_arguments",{ns:n,defaultValue:a,...s});break;case l.invalid_return_type:a=r("errors.invalid_return_type",{ns:n,defaultValue:a,...s});break;case l.invalid_date:a=r("errors.invalid_date",{ns:n,defaultValue:a,...s});break;case l.invalid_string:typeof e.validation=="object"?"startsWith"in e.validation?a=r("errors.invalid_string.startsWith",{startsWith:e.validation.startsWith,ns:n,defaultValue:a,...s}):"endsWith"in e.validation&&(a=r("errors.invalid_string.endsWith",{endsWith:e.validation.endsWith,ns:n,defaultValue:a,...s})):a=r(`errors.invalid_string.${e.validation}`,{validation:r(`validations.${e.validation}`,{defaultValue:e.validation,ns:n}),ns:n,defaultValue:a,...s});break;case l.too_small:const u=e.type==="date"?new Date(e.minimum):e.minimum;a=r(`errors.too_small.${e.type}.${e.exact?"exact":e.inclusive?"inclusive":"not_inclusive"}`,{minimum:u,count:typeof u=="number"?u:void 0,ns:n,defaultValue:a,...s});break;case l.too_big:const f=e.type==="date"?new Date(e.maximum):e.maximum;a=r(`errors.too_big.${e.type}.${e.exact?"exact":e.inclusive?"inclusive":"not_inclusive"}`,{maximum:f,count:typeof f=="number"?f:void 0,ns:n,defaultValue:a,...s});break;case l.custom:const{key:c,values:m}=Z((y=e.params)==null?void 0:y.i18n,"errors.custom");a=r(c,{...m,ns:n,defaultValue:a,...s});break;case l.invalid_intersection_types:a=r("errors.invalid_intersection_types",{ns:n,defaultValue:a,...s});break;case l.not_multiple_of:a=r("errors.not_multiple_of",{multipleOf:e.multipleOf,ns:n,defaultValue:a,...s});break;case l.not_finite:a=r("errors.not_finite",{ns:n,defaultValue:a,...s});break}return{message:a}};function H({className:t,size:e="md",showText:i=!0}){const r={sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"};return o.jsxs("div",{className:j("bg-background flex min-h-screen flex-col items-center justify-center",t),children:[o.jsx("div",{className:"relative",children:o.jsx("div",{className:j("flex items-center justify-center",r[e]),children:o.jsx("img",{src:"/logo.svg",alt:"FOCAL Logo",className:"h-full min-w-40 object-contain"})})}),i&&o.jsx("div",{className:"mt-6 space-y-2",children:o.jsxs("div",{className:"flex justify-center space-x-1",children:[o.jsx("div",{className:"bg-primary size-1.5 animate-bounce rounded-full [animation-delay:-0.3s]"}),o.jsx("div",{className:"bg-primary size-1.5 animate-bounce rounded-full [animation-delay:-0.15s]"}),o.jsx("div",{className:"bg-primary size-1.5 animate-bounce rounded-full"})]})})]})}const J=({...t})=>{const{theme:e="system"}=R();return o.jsx(z,{theme:e,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...t})},ue=()=>[{title:"FOCAL"},{name:"description",content:"Foro de ContadurÃas Gubernamentales de América Latina"},{property:"og:type",content:"website"},{property:"og:title",content:"FOCAL"},{property:"og:description",content:"Foro de ContadurÃas Gubernamentales de América Latina"},{property:"og:image",content:"https://focal-website.focal-232.workers.dev/social/focal-og-facebook.jpg"},{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"630"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:"FOCAL"},{name:"twitter:description",content:"Foro de ContadurÃas Gubernamentales de América Latina"},{name:"twitter:image",content:"https://focal-website.focal-232.workers.dev/social/focal-og-twitter.jpg"},{property:"og:image:alt",content:"FOCAL - Foro de ContadurÃas Gubernamentales de América Latina"}],fe=()=>[{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"}],me=E(function(e){const{locale:i,supabaseUrl:r,supabaseAnonKey:n,dehydratedState:d}=e.loaderData,{i18n:a}=h(),{t:s}=h("zod");return Q(),p.useEffect(()=>{T(G({t:(u,f)=>{const{...c}=f??{};return s(u,c)}}))},[a.language,s]),B(i),o.jsxs("html",{dir:a.dir(a.language),lang:a.language,children:[o.jsxs("head",{children:[o.jsx("meta",{charSet:"utf-8"}),o.jsx("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),o.jsx("link",{href:"/favicon.png",rel:"icon",type:"image/x-icon"}),o.jsx(V,{}),o.jsx(A,{})]}),o.jsxs("body",{children:[o.jsx(W,{supabaseAnonKey:n,supabaseUrl:r,children:o.jsx(L,{children:o.jsx(q,{state:d,children:o.jsx(p.Suspense,{fallback:o.jsx(H,{}),children:o.jsx(F,{})})})})}),o.jsx(J,{}),o.jsx(N,{}),o.jsx(O,{})]})]})}),pe=C(function({error:e}){let i="Oops!",r="An unexpected error occurred.";return U(e)&&(i=e.status===404?"404":"Error",r=e.status===404?"The requested page could not be found.":e.statusText||r),o.jsxs("main",{className:"container pt-16",children:[o.jsx("h1",{children:i}),o.jsx("p",{children:r}),null]})});export{pe as ErrorBoundary,me as default,fe as links,ue as meta};
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.