PageSourceSearch

https://belborbacombr.vercel.app/_next/static/chunks/5979-c052f55d3c5c2c78.js

js belborbacombr.vercel.app collected 2026-10-03 06:10:43 UTC 17,465 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5979],{5979:(e,t,n)=>{n.d(t,{MB:()=>J});var r=Object.defineProperty,o=Object.defineProperties,s=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&u(e,n,t[n]);if(i)for(var n of i(t))a.call(t,n)&&u(e,n,t[n]);return e},f=(e,t)=>o(e,s(t)),p=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n}},d=async(e,t)=>{var n,r,o,s,i,l;let a=t||{},u={onRequest:[null==t?void 0:t.onRequest],onResponse:[null==t?void 0:t.onResponse],onSuccess:[null==t?void 0:t.onSuccess],onError:[null==t?void 0:t.onError],onRetry:[null==t?void 0:t.onRetry]};if(!t||!(null==t?void 0:t.plugins))return{url:e,options:a,hooks:u};for(let c of(null==t?void 0:t.plugins)||[]){if(c.init){let r=await (null==(n=c.init)?void 0:n.call(c,e.toString(),t));a=r.options||a,e=r.url}u.onRequest.push(null==(r=c.hooks)?void 0:r.onRequest),u.onResponse.push(null==(o=c.hooks)?void 0:o.onResponse),u.onSuccess.push(null==(s=c.hooks)?void 0:s.onSuccess),u.onError.push(null==(i=c.hooks)?void 0:i.onError),u.onRetry.push(null==(l=c.hooks)?void 0:l.onRetry)}return{url:e,options:a,hooks:u}},h=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},y=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}},v=async e=>{let t={},n=async e=>"function"==typeof e?await e():e;if(null==e?void 0:e.auth){if("Bearer"===e.auth.type){let r=await n(e.auth.token);if(!r)return t;t.authorization=`Bearer ${r}`}else if("Basic"===e.auth.type){let r=n(e.auth.username),o=n(e.auth.password);if(!r||!o)return t;t.authorization=`Basic ${btoa(`${r}:${o}`)}`}else if("Custom"===e.auth.type){let r=n(e.auth.value);if(!r)return t;t.authorization=`${n(e.auth.prefix)} ${r}`}}return t},g=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function m(e){if(void 0===e)return!1;let t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===t||"object"===t&&(!!Array.isArray(e)||!e.buffer&&(e.constructor&&"Object"===e.constructor.name||"function"==typeof e.toJSON))}function w(e){try{return JSON.parse(e)}catch(t){return e}}function b(e){return"function"==typeof e}async function R(e){let t=new Headers(null==e?void 0:e.headers);for(let[n,r]of Object.entries(await v(e)||{}))t.set(n,r);if(!t.has("content-type")){let n=m(null==e?void 0:e.body)?"application/json":null;n&&t.set("content-type",n)}return t}var T=class e extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,e.prototype)}};async function O(e,t){let n=await e["~standard"].validate(t);if(n.issues)throw new T(n.issues);return n.value}var S=["get","post","put","patch","delete"],E=async(e,t)=>{var n,r,o,s,i,l,a,u;let{hooks:v,url:T,options:j}=await d(e,t),P=function(e){if(null==e?void 0:e.customFetchImpl)return e.customFetchImpl;if("undefined"!=typeof globalThis&&b(globalThis.fetch))return globalThis.fetch;if("undefined"!=typeof window&&b(window.fetch))return window.fetch;throw Error("No fetch implementation found")}(j),U=new AbortController,_=null!=(n=j.signal)?n:U.signal,x=function(e,t){let{baseURL:n,params:r,query:o}=t||{query:{},params:{},baseURL:""},s=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";if(e.startsWith("@")){let t=e.toString().split("@")[1].split("/")[0];S.includes(t)&&(e=e.replace(`@${t}/`,"/"))}s.endsWith("/")||(s+="/");let[i,l]=e.replace(s,"").split("?"),a=new URLSearchParams(l);for(let[e,t]of Object.entries(o||{}))null!=t&&a.set(e,String(t));if(r)if(Array.isArray(r))for(let[e,t]of i.split("/").filter(e=>e.startsWith(":")).entries()){let n=r[e];i=i.replace(t,n)}else for(let[e,t]of Object.entries(r))i=i.replace(`:${e}`,String(t));(i=i.split("/").map(encodeURIComponent).join("/")).startsWith("/")&&(i=i.slice(1));let u=a.toString();return(u=u.length>0?`?${u}`.replace(/\+/g,"%20"):"",s.startsWith("http"))?new URL(`${i}${u}`,s):`${s}${i}${u}`}(T,j),A=function(e){if(!(null==e?void 0:e.body))return null;let t=new Headers(null==e?void 0:e.headers);if(m(e.body)&&!t.has("content-type")){for(let[t,n]of Object.entries(null==e?void 0:e.body))n instanceof Date&&(e.body[t]=n.toISOString());return JSON.stringify(e.body)}return e.body}(j),$=await R(j),L=function(e,t){var n;if(null==t?void 0:t.method)return t.method.toUpperCase();if(e.startsWith("@")){let r=null==(n=e.split("@")[1])?void 0:n.split("/")[0];return S.includes(r)?r.toUpperCase():(null==t?void 0:t.body)?"POST":"GET"}return(null==t?void 0:t.body)?"POST":"GET"}(T,j),k=f(c({},j),{url:x,headers:$,body:A,method:L,signal:_});for(let e of v.onRequest)if(e){let t=await e(k);t instanceof Object&&(k=t)}("pipeTo"in k&&"function"==typeof k.pipeTo||"function"==typeof(null==(r=null==t?void 0:t.body)?void 0:r.pipe))&&!("duplex"in k)&&(k.duplex="half");let{clearTimeout:q}=function(e,t){let n;return!(null==e?void 0:e.signal)&&(null==e?void 0:e.timeout)&&(n=setTimeout(()=>null==t?void 0:t.abort(),null==e?void 0:e.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}(j,U),I=await P(k.url,k);q();let C={response:I,request:k};for(let e of v.onResponse)if(e){let n=await e(f(c({},C),{response:(null==(o=null==t?void 0:t.hookOptions)?void 0:o.cloneResponse)?I.clone():I}));n instanceof Response?I=n:n instanceof Object&&(I=n.response)}if(I.ok){if("HEAD"===k.method)return{data:"",error:null};let e=function(e){let t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";let r=t.split(";").shift()||"";return g.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}(I),n={data:"",response:I,request:k};if("json"===e||"text"===e){let e=await I.text(),t=null!=(s=k.jsonParser)?s:w;n.data=await t(e)}else n.data=await I[e]();for(let e of((null==k?void 0:k.output)&&k.output&&!k.disableValidation&&(n.data=await O(k.output,n.data)),v.onSuccess))e&&await e(f(c({},n),{response:(null==(i=null==t?void 0:t.hookOptions)?void 0:i.cloneResponse)?I.clone():I}));return(null==t?void 0:t.throw)?n.data:{data:n.data,error:null}}let N=null!=(l=null==t?void 0:t.jsonParser)?l:w,B=await I.text(),W=function(e){try{return JSON.parse(e),!0}catch(e){return!1}}(B),D=W?await N(B):null,F={response:I,responseText:B,request:k,error:f(c({},D),{status:I.status,statusText:I.statusText})};for(let e of v.onError)e&&await e(f(c({},F),{response:(null==(a=null==t?void 0:t.hookOptions)?void 0:a.cloneResponse)?I.clone():I}));if(null==t?void 0:t.retry){let n=function(e){if("number"==typeof e)return new h({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new h(e);case"exponential":return new y(e);default:throw Error("Invalid retry strategy")}}(t.retry),r=null!=(u=t.retryAttempt)?u:0;
1if(await n.shouldAttemptRetry(r,I)){for(let e of v.onRetry)e&&await e(C);let o=n.getDelay(r);return await new Promise(e=>setTimeout(e,o)),await E(e,f(c({},t),{retryAttempt:r+1}))}}if(null==t?void 0:t.throw)throw new p(I.status,I.statusText,W?D:B);return{data:null,error:f(c({},D),{status:I.status,statusText:I.statusText})}},j=n(5704);let P=Object.create(null),U=e=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?P:globalThis),_=new Proxy(P,{get:(e,t)=>U()[t]??P[t],has:(e,t)=>t in U()||t in P,set:(e,t,n)=>(U(!0)[t]=n,!0),deleteProperty(e,t){if(!t)return!1;let n=U(!0);return delete n[t],!0},ownKeys:()=>Object.keys(U(!0))});void 0!==j&&j.env;class x extends Error{constructor(e,t){super(e),this.name="BetterAuthError",this.message=e,this.cause=t,this.stack=""}}function A(e,t="/api/auth"){return!function(e){try{let t=new URL(e);return"/"!==t.pathname}catch(t){throw new x(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}(e)?(t=t.startsWith("/")?t:`/${t}`,`${e.replace(/\/+$/,"")}${t}`):e}let $=[],L=0,k=0,q=e=>{let t=[],n={get:()=>(n.lc||n.listen(()=>{})(),n.value),lc:0,listen:e=>(n.lc=t.push(e),()=>{for(let t=L+4;t<$.length;)$[t]===e?$.splice(t,4):t+=4;let r=t.indexOf(e);~r&&(t.splice(r,1),--n.lc||n.off())}),notify(e,r){k++;let o=!$.length;for(let o of t)$.push(o,n.value,e,r);if(o){for(L=0;L<$.length;L+=4)$[L]($[L+1],$[L+2],$[L+3]);$.length=0}},off(){},set(e){let t=n.value;t!==e&&(n.value=e,n.notify(t))},subscribe(e){let t=n.listen(e);return e(n.value),t},value:e};return n},I=(e,t)=>((e,t,n,r)=>(e.events=e.events||{},e.events[15]||(e.events[15]=r(t=>{e.events[n].reduceRight((e,t)=>(t(e),e),{shared:{},...t})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let r=e.events[n],o=r.indexOf(t);r.splice(o,1),r.length||(delete e.events[n],e.events[n+10](),delete e.events[n+10])}))(e,n=>{let r=t(n);r&&e.events[6].push(r)},5,t=>{let n=e.listen;e.listen=(...r)=>(e.lc||e.active||(e.active=!0,t()),n(...r));let r=e.off;return e.events[6]=[],e.off=()=>{r(),setTimeout(()=>{if(e.active&&!e.lc){for(let t of(e.active=!1,e.events[6]))t();e.events[6]=[]}},1e3)},()=>{e.listen=n,e.off=r}}),C="undefined"==typeof window,N={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},B=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,W={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:1/0,"-infinity":-1/0},D=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/,F={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&"undefined"!=typeof window&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}};var H=n(2115);function J(e){var t,n;let{pluginPathMethods:r,pluginsActions:o,pluginsAtoms:s,$fetch:i,$store:l,atomListeners:a}=(e=>{let t,n="credentials"in Request.prototype,r=function(e,t,n){if(e)return A(e,t);let r=_.BETTER_AUTH_URL||_.NEXT_PUBLIC_BETTER_AUTH_URL||_.PUBLIC_BETTER_AUTH_URL||_.NUXT_PUBLIC_BETTER_AUTH_URL||_.NUXT_PUBLIC_AUTH_URL||("/"!==_.BASE_URL?_.BASE_URL:void 0);if(r)return A(r,t);let o=void 0,s=void 0;if(o&&s)return A(`${s}://${o}`,t);if(n){let e=function(e){try{return new URL(e).origin}catch(e){return null}}(n.url);if(!e)throw new x("Could not get origin from request. Please provide a valid base URL.");return A(e,t)}if("undefined"!=typeof window&&window.location)return A(window.location.origin,t)}(e?.baseURL,e?.basePath),o=e?.plugins?.flatMap(e=>e.fetchPlugins).filter(e=>void 0!==e)||[],s={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:i,onError:l,onRequest:a,onResponse:u,...p}=e?.fetchOptions||{},d=(t={baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser:e=>e?function(e,t={strict:!0}){return function(e,t={}){let{strict:n=!1,warnings:r=!1,reviver:o,parseDates:s=!0}=t;if("string"!=typeof e)return e;let i=e.trim();if('"'===i[0]&&i.endsWith('"')&&!i.slice(1,-1).includes('"'))return i.slice(1,-1);let l=i.toLowerCase();if(l.length<=9&&l in W)return W[l];
1if(!B.test(i)){if(n)throw SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(N).some(([e,t])=>{let n=t.test(i);return n&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${e} pattern`),n})&&n)throw Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(i,(e,t)=>{if("__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t){r&&console.warn(`[better-json] Dropping "${e}" key to prevent prototype pollution`);return}if(s&&"string"==typeof t){let e=function(e){let t=D.exec(e);if(!t)return null;let[,n,r,o,s,i,l,a,u,c,f]=t,p=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(o,10),parseInt(s,10),parseInt(i,10),parseInt(l,10),a?parseInt(a.padEnd(3,"0"),10):0));if(u){let e=(60*parseInt(c,10)+parseInt(f,10))*("+"===u?-1:1);p.setUTCMinutes(p.getUTCMinutes()+e)}return p instanceof Date&&!isNaN(p.getTime())?p:null}(t);if(e)return e}return o?o(e,t):t})}catch(t){if(n)throw t;return e}}(e,t)}(e,{strict:!1}):null,customFetchImpl:fetch,...p,plugins:[s,...p.plugins||[],...e?.disableDefaultFetchPlugins?[]:[F],...o]},async function(e,n){let r,o=f(c(c({},t),n),{plugins:[...(null==t?void 0:t.plugins)||[],(r=t||{},{id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,t){var n,o,s,i;let l=(null==(o=null==(n=r.plugins)?void 0:n.find(t=>{var n;return null!=(n=t.schema)&&!!n.config&&(e.startsWith(t.schema.config.baseURL||"")||e.startsWith(t.schema.config.prefix||""))}))?void 0:o.schema)||r.schema;if(l){let n=e;(null==(s=l.config)?void 0:s.prefix)&&n.startsWith(l.config.prefix)&&(n=n.replace(l.config.prefix,""),l.config.baseURL&&(e=e.replace(l.config.prefix,l.config.baseURL))),(null==(i=l.config)?void 0:i.baseURL)&&n.startsWith(l.config.baseURL)&&(n=n.replace(l.config.baseURL,""));let r=l.schema[n];if(r){let n=f(c({},t),{method:r.method,output:r.output});return(null==t?void 0:t.disableValidation)||(n=f(c({},n),{body:r.input?await O(r.input,null==t?void 0:t.body):null==t?void 0:t.body,params:r.params?await O(r.params,null==t?void 0:t.params):null==t?void 0:t.params,query:r.query?await O(r.query,null==t?void 0:t.query):null==t?void 0:t.query})),{url:e,options:n}}}return{url:e,options:t}}})]});if(null==t?void 0:t.catchAllError)try{return await E(e,o)}catch(e){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:e}}}return await E(e,o)}),{$sessionSignal:h,session:y}=function(e){let t=q(!1);return{session:((e,t,n,r)=>{let o=q({data:null,error:null,isPending:!0,isRefetching:!1,refetch:e=>s(e)}),s=e=>{let s="function"==typeof r?r({data:o.get().data,error:o.get().error,isPending:o.get().isPending}):r;n(t,{...s,query:{...s?.query,...e?.query},async onSuccess(e){o.set({data:e.data,error:null,isPending:!1,isRefetching:!1,refetch:o.value.refetch}),await s?.onSuccess?.(e)},async onError(e){let{request:t}=e,n="number"==typeof t.retry?t.retry:t.retry?.attempts,r=t.retryAttempt||0;n&&r<n||(o.set({error:e.error,data:null,isPending:!1,isRefetching:!1,refetch:o.value.refetch}),await s?.onError?.(e))},async onRequest(e){let t=o.get();o.set({isPending:null===t.data,data:t.data,error:null,isRefetching:!0,refetch:o.value.refetch}),await s?.onRequest?.(e)}}).catch(e=>{o.set({error:e,data:null,isPending:!1,isRefetching:!1,refetch:o.value.refetch})})};e=Array.isArray(e)?e:[e];let i=!1;for(let t of e)t.subscribe(()=>{C||(i?s():I(o,()=>(setTimeout(()=>{s()},0),i=!0,()=>{o.off(),t.off()})))});return o})(t,"/get-session",e,{method:"GET"}),$sessionSignal:t}}(d),v=e?.plugins||[],g={},m={$sessionSignal:h,session:y},w={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},b=[{signal:"$sessionSignal",matcher:e=>"/sign-out"===e||"/update-user"===e||e.startsWith("/sign-in")||e.startsWith("/sign-up")||"/delete-user"===e||"/verify-email"===e}];for(let e of v)e.getAtoms&&Object.assign(m,e.getAtoms?.(d)),e.pathMethods&&Object.assign(w,e.pathMethods),e.atomListeners&&b.push(...e.atomListeners);let R={notify:e=>{m[e].set(!m[e].get())},listen:(e,t)=>{m[e].subscribe(t)},atoms:m};for(let t of v)t.getActions&&Object.assign(g,t.getActions?.(d,R,e));return{pluginsActions:g,pluginsAtoms:m,pluginPathMethods:w,atomListeners:b,$fetch:d,$store:R}})(e),u={};for(let[e,t]of Object.entries(s)){u[`use${(n=e).charAt(0).toUpperCase()+n.slice(1)}`]=()=>(function(e,t={}){let n=(0,H.useRef)(e.get()),{keys:r,deps:o=[e,r]}=t,s=(0,H.useCallback)(t=>{let o=e=>{n.current!==e&&(n.current=e,t())};if(o(e.value),r?.length){let t;return t=new Set(r).add(void 0),e.listen((e,n,r)=>{t.has(r)&&o(e,n,r)})}return e.listen(o)},o),i=()=>n.current;return(0,H.useSyncExternalStore)(s,i,i)})(t)}return t={...o,...u,$fetch:i,$store:l},function e(n=[]){return new Proxy(function(){},{get(r,o){var s;if("then"===o||"catch"===o||"finally"===o)return;let i=[...n,o],l=t;for(let e of i)if(l&&"object"==typeof l&&e in l)l=l[e];else{l=void 0;break}return"function"==typeof l?l:"object"==typeof(s=l)&&null!==s&&"get"in s&&"function"==typeof s.get&&"lc"in s&&"number"==typeof s.lc?l:e(i)},apply:async(e,t,o)=>{let l="/"+n.map(e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)).join("/"),u=o[0]||{},c=o[1]||{},{query:f,fetchOptions:p,...d}=u,h={...c,...p},y=function(e,t,n){let r=t[e],{fetchOptions:o,query:s,...i}=n||{};return r||(o?.method?o.method:i&&Object.keys(i).length>0?"POST":"GET")}(l,r,u);return await i(l,{...h,body:"GET"===y?void 0:{...d,...h?.body||{}},query:f||h?.query,method:y,async onSuccess(e){await h?.onSuccess?.(e);let t=a?.find(e=>e.matcher(l));if(!t)return;let n=s[t.signal];if(!n)return;let r=n.get();setTimeout(()=>{n.set(!r)},10)}})}})}()}}}]);

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.