PageSourceSearch

https://lucidmonday.com/_next/static/chunks/1591-73542077a1810db4.js?dpl=dpl_38gMX3eoapngJ8XjAbf9ZPXQNiJ3

js lucidmonday.com collected 2026-10-02 23:54:04 UTC 23,525 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1591],{14156:(e,t,r)=>{r.d(t,{MB:()=>y});var n=r(81829),o=r(35850),i=r(95368);function s(e,t="/api/auth"){if(function(e){try{let t=new URL(e).pathname.replace(/\/+$/,"")||"/";return"/"!==t}catch(t){throw new i.B(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}(e))return e;let r=e.replace(/\/+$/,"");return t&&"/"!==t?(t=t.startsWith("/")?t:`/${t}`,`${r}${t}`):r}var l=r(73353),a=r(93760);let u={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*:/},c=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,d={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:1/0,"-infinity":-1/0},f=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/,p={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=r(48503);function y(e){var t,r;let{pluginPathMethods:y,pluginsActions:v,pluginsAtoms:m,$fetch:g,$store:b,atomListeners:w}=((e,t)=>{let r="credentials"in Request.prototype,h=function(e,t,r,n){if(e)return s(e,t);if(!1!==n){let e=o.e.BETTER_AUTH_URL||o.e.NEXT_PUBLIC_BETTER_AUTH_URL||o.e.PUBLIC_BETTER_AUTH_URL||o.e.NUXT_PUBLIC_BETTER_AUTH_URL||o.e.NUXT_PUBLIC_AUTH_URL||("/"!==o.e.BASE_URL?o.e.BASE_URL:void 0);if(e)return s(e,t)}let l=r?.headers.get("x-forwarded-host"),a=r?.headers.get("x-forwarded-proto");if(l&&a)return s(`${a}://${l}`,t);if(r){let e=function(e){try{return new URL(e).origin}catch(e){return null}}(r.url);if(!e)throw new i.B("Could not get origin from request. Please provide a valid base URL.");return s(e,t)}if("undefined"!=typeof window&&window.location)return s(window.location.origin,t)}(e?.baseURL,e?.basePath,void 0,void 0)??"/api/auth",y=e?.plugins?.flatMap(e=>e.fetchPlugins).filter(e=>void 0!==e)||[],v={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:m,onError:g,onRequest:b,onResponse:w,...R}=e?.fetchOptions||{},O=(0,n.Hy)({baseURL:h,...r?{credentials:"include"}:{},method:"GET",jsonParser:e=>e?function(e,t={strict:!0}){return function(e,t={}){let{strict:r=!1,warnings:n=!1,reviver:o,parseDates:i=!0}=t;if("string"!=typeof e)return e;let s=e.trim();if(s.length>0&&'"'===s[0]&&s.endsWith('"')&&!s.slice(1,-1).includes('"'))return s.slice(1,-1);let l=s.toLowerCase();if(l.length<=9&&l in d)return d[l];if(!c.test(s)){if(r)throw SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(u).some(([e,t])=>{let r=t.test(s);return r&&n&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${e} pattern`),r})&&r)throw Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(s,(e,t)=>{if("__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t){n&&console.warn(`[better-json] Dropping "${e}" key to prevent prototype pollution`);return}if(i&&"string"==typeof t){let e=function(e){let t=f.exec(e);if(!t)return null;let[,r,n,o,i,s,l,a,u,c,d]=t,p=new Date(Date.UTC(parseInt(r,10),parseInt(n,10)-1,parseInt(o,10),parseInt(i,10),parseInt(s,10),parseInt(l,10),a?parseInt(a.padEnd(3,"0"),10):0));if(u){let e=(60*parseInt(c,10)+parseInt(d,10))*("+"===u?-1:1);p.setUTCMinutes(p.getUTCMinutes()+e)}
1return p instanceof Date&&!isNaN(p.getTime())?p:null}(t);if(e)return e}return o?o(e,t):t})}catch(t){if(r)throw t;return e}}(e,t)}(e,{strict:!1}):null,customFetchImpl:fetch,...R,plugins:[v,...R.plugins||[],...e?.disableDefaultFetchPlugins?[]:[p],...y]}),{$sessionSignal:T,session:S}=function(e){let t=(0,l.eU)(!1);return{session:(0,a.u)(t,"/get-session",e,{method:"GET"}),$sessionSignal:t}}(O),E=e?.plugins||[],j={},P={$sessionSignal:T,session:S},A={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},U=[{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 E)e.getAtoms&&Object.assign(P,e.getAtoms?.(O)),e.pathMethods&&Object.assign(A,e.pathMethods),e.atomListeners&&U.push(...e.atomListeners);let x={notify:e=>{P[e].set(!P[e].get())},listen:(e,t)=>{P[e].subscribe(t)},atoms:P};for(let t of E)t.getActions&&Object.assign(j,t.getActions?.(O,x,e));return{get baseURL(){return h},pluginsActions:j,pluginsAtoms:P,pluginPathMethods:A,atomListeners:U,$fetch:O,$store:x}})(e),R={};for(let[e,t]of Object.entries(m)){R[`use${(r=e).charAt(0).toUpperCase()+r.slice(1)}`]=()=>(function(e,t={}){let r=(0,h.useRef)(e.get()),{keys:n,deps:o=[e,n]}=t,i=(0,h.useCallback)(t=>{let o=e=>{r.current!==e&&(r.current=e,t())};if(o(e.value),n?.length){let t;return t=new Set(n).add(void 0),e.listen((e,r,n)=>{t.has(n)&&o(e,r,n)})}return e.listen(o)},o),s=()=>r.current;return(0,h.useSyncExternalStore)(i,s,s)})(t)}return t={...v,...R,$fetch:g,$store:b},function e(r=[]){return new Proxy(function(){},{get(n,o){var i;if("string"!=typeof o||"then"===o||"catch"===o||"finally"===o)return;let s=[...r,o],l=t;for(let e of s)if(l&&"object"==typeof l&&e in l)l=l[e];else{l=void 0;break}return"function"==typeof l?l:"object"==typeof(i=l)&&null!==i&&"get"in i&&"function"==typeof i.get&&"lc"in i&&"number"==typeof i.lc?l:e(s)},apply:async(e,t,n)=>{let o="/"+r.map(e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)).join("/"),i=n[0]||{},s=n[1]||{},{query:l,fetchOptions:a,...u}=i,c={...s,...a},d=function(e,t,r){let n=t[e],{fetchOptions:o,query:i,...s}=r||{};return n||(o?.method?o.method:s&&Object.keys(s).length>0?"POST":"GET")}(o,y,i);return await g(o,{...c,body:"GET"===d?void 0:{...u,...c?.body||{}},query:l||c?.query,method:d,async onSuccess(e){await c?.onSuccess?.(e);let t=w?.find(e=>e.matcher(o));if(!t)return;let r=m[t.signal];if(!r)return;let n=r.get();setTimeout(()=>{r.set(!n)},10)}})}})}()}},21187:(e,t,r)=>{r.d(t,{F:()=>s});var n=r(64139);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=n.$,s=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return i(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:s,defaultVariants:l}=t,a=Object.keys(s).map(e=>{let t=null==r?void 0:r[e],n=null==l?void 0:l[e];if(null===t)return null;let i=o(t)||o(n);return s[e][i]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return i(e,a,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...u}[t]):({...l,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},35850:(e,t,r)=>{r.d(t,{e:()=>s});var n=r(55036);let o=Object.create(null),i=e=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?o:globalThis),s=new Proxy(o,{get:(e,t)=>i()[t]??o[t],has:(e,t)=>t in i()||t in o,set:(e,t,r)=>(i(!0)[t]=r,!0),deleteProperty(e,t){if(!t)return!1;let r=i(!0);return delete r[t],!0},ownKeys:()=>Object.keys(i(!0))});void 0!==n&&n.env},42418:(e,t,r)=>{r.d(t,{px:()=>d}),r(81829),r(35850),r(93760);var n=r(95368);function o(e){return{newRole:e=>{var t;return{authorize(e,r="AND"){let o=!1;for(let[i,s]of Object.entries(e)){let e=t[i];if(!e)return{success:!1,error:`You are not allowed to access resource: ${i}`};if(Array.isArray(s))o=s.every(t=>e.includes(t));else if("object"==typeof s)o="OR"===s.connector?s.actions.some(t=>e.includes(t)):s.actions.every(t=>e.includes(t));else throw new n.B("Invalid access control request");
1if(o&&"OR"===r)return{success:o};if(!o&&"AND"===r)return{success:!1,error:`unauthorized to access resource "${i}"`}}return o?{success:o}:{success:!1,error:"Not authorized"}},statements:t=e}},statements:e}}let i=o({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]});i.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),i.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),i.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]});class s{createNewAbortSignal(){if(this.controller){let e=Error("Cancelling existing WebAuthn API call for new one");e.name="AbortError",this.controller.abort(e)}let e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){let e=Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}}new s;let l=o({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),a=l.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),u=l.newRole({user:[],session:[]}),c={admin:a,user:u},d=e=>{let t={admin:a,user:u,...e?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:r=>(e=>{if(e.userId&&e.options?.adminUserIds?.includes(e.userId))return!0;if(!e.permissions&&!e.permission)return!1;let t=(e.role||e.options?.defaultRole||"user").split(","),r=e.options?.roles||c;for(let n of t){let t=r[n],o=t?.authorize(e.permission??e.permissions);if(o?.success)return!0}return!1})({role:r.role,options:{ac:e?.ac,roles:t},permissions:r.permissions??r.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}}},55835:(e,t,r)=>{r.d(t,{DX:()=>l,TL:()=>s});var n=r(48503),o=r(66903),i=r(95039);function s(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var s;let e,l,a=(s=r,(l=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(l=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),u=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,o.t)(t,a):a),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:o,...s}=e,l=n.Children.toArray(o),a=l.find(u);if(a){let e=a.props.children,o=l.map(t=>t!==a?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...s,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...s,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}var l=s("Slot"),a=Symbol("radix.slottable");function u(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}},62429:(e,t,r)=>{r.d(t,{X:()=>n});let n=e=>({id:"stripe-client",$InferServerPlugin:{},pathMethods:{"/subscription/restore":"POST","/subscription/billing-portal":"POST"}})},66903:(e,t,r)=>{r.d(t,{s:()=>s,t:()=>i});var n=r(48503);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():o(e[t],null)}}}}function s(...e){return n.useCallback(i(...e),e)}},73353:(e,t,r)=>{r.d(t,{eU:()=>s});let n=[],o=0,i=0,s=e=>{let t=[],r={get:()=>(r.lc||r.listen(()=>{})(),r.value),lc:0,listen:e=>(r.lc=t.push(e),()=>{for(let t=o+4;t<n.length;)n[t]===e?n.splice(t,4):t+=4;let i=t.indexOf(e);~i&&(t.splice(i,1),--r.lc||r.off())}),notify(e,s){i++;let l=!n.length;for(let o of t)n.push(o,r.value,e,s);if(l){for(o=0;o<n.length;o+=4)n[o](n[o+1],n[o+2],n[o+3]);n.length=0}},off(){},set(e){let t=r.value;t!==e&&(r.value=e,r.notify(t))},subscribe(e){let t=r.listen(e);return e(r.value),t},value:e};return r}},81829:(e,t,r)=>{r.d(t,{Hy:()=>E}
1);var n=Object.defineProperty,o=Object.defineProperties,i=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,u=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=(e,t)=>{for(var r in t||(t={}))l.call(t,r)&&u(e,r,t[r]);if(s)for(var r of s(t))a.call(t,r)&&u(e,r,t[r]);return e},d=(e,t)=>o(e,i(t)),f=class extends Error{constructor(e,t,r){super(t||e.toString(),{cause:r}),this.status=e,this.statusText=t,this.error=r}},p=async(e,t)=>{var r,n,o,i,s,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 n=await (null==(r=c.init)?void 0:r.call(c,e.toString(),t));a=n.options||a,e=n.url}u.onRequest.push(null==(n=c.hooks)?void 0:n.onRequest),u.onResponse.push(null==(o=c.hooks)?void 0:o.onResponse),u.onSuccess.push(null==(i=c.hooks)?void 0:i.onSuccess),u.onError.push(null==(s=c.hooks)?void 0:s.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={},r=async e=>"function"==typeof e?await e():e;if(null==e?void 0:e.auth){if("Bearer"===e.auth.type){let n=await r(e.auth.token);if(!n)return t;t.authorization=`Bearer ${n}`}else if("Basic"===e.auth.type){let n=r(e.auth.username),o=r(e.auth.password);if(!n||!o)return t;t.authorization=`Basic ${btoa(`${n}:${o}`)}`}else if("Custom"===e.auth.type){let n=r(e.auth.value);if(!n)return t;t.authorization=`${r(e.auth.prefix)} ${n}`}}return t},m=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function g(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 b(e){try{return JSON.parse(e)}catch(t){return e}}function w(e){return"function"==typeof e}async function R(e){let t=new Headers(null==e?void 0:e.headers);for(let[r,n]of Object.entries(await v(e)||{}))t.set(r,n);if(!t.has("content-type")){let r=g(null==e?void 0:e.body)?"application/json":null;r&&t.set("content-type",r)}return t}var O=class e extends Error{constructor(t,r){super(r||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,e.prototype)}};async function T(e,t){let r=await e["~standard"].validate(t);if(r.issues)throw new O(r.issues);return r.value}var S=["get","post","put","patch","delete"],E=e=>async function(t,r){let n,o=d(c(c({},e),r),{plugins:[...(null==e?void 0:e.plugins)||[],(n=e||{},{id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,t){var r,o,i,s;let l=(null==(o=null==(r=n.plugins)?void 0:r.find(t=>{var r;return null!=(r=t.schema)&&!!r.config&&(e.startsWith(t.schema.config.baseURL||"")||e.startsWith(t.schema.config.prefix||""))}))?void 0:o.schema)||n.schema;if(l){let r=e;(null==(i=l.config)?void 0:i.prefix)&&r.startsWith(l.config.prefix)&&(r=r.replace(l.config.prefix,""),l.config.baseURL&&(e=e.replace(l.config.prefix,l.config.baseURL))),(null==(s=l.config)?void 0:s.baseURL)&&r.startsWith(l.config.baseURL)&&(r=r.replace(l.config.baseURL,""));let n=l.schema[r];if(n){let r=d(c({},t),{method:n.method,output:n.output});return(null==t?void 0:t.disableValidation)||(r=d(c({},r),{body:n.input?await T(n.input,null==t?void 0:t.body):null==t?void 0:t.body,params:n.params?await T(n.params,null==t?void 0:t.params):null==t?void 0:t.params,query:n.query?await T(n.query,null==t?void 0:t.query):null==t?void 0:t.query})),{url:e,options:r}}}return{url:e,options:t}}})]});if(null==e?void 0:e.catchAllError)try{return await j(t,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 j(t,o)},j=async(e,t)=>{var r,n,o,i,s,l,a,u;let{hooks:v,url:O,options:E}=await p(e,t),P=function(e){if(null==e?void 0:e.customFetchImpl)return e.customFetchImpl;if("undefined"!=typeof globalThis&&w(globalThis.fetch))return globalThis.fetch;if("undefined"!=typeof window&&w(window.fetch))return window.fetch;throw Error("No fetch implementation found")}(E),A=new AbortController,U=null!=(r=E.signal)?r:A.signal,x=function(e,t){let{baseURL:r,params:n,query:o}=t||{query:{},params:{},baseURL:""},i=e.startsWith("http")?e.split("/").slice(0,3).join("/"):r||"";if(e.startsWith("@")){let t=e.toString().split("@")[1].split("/")[0];S.includes(t)&&(e=e.replace(`@${t}/`,"/"))}i.endsWith("/")||(i+="/");let[s,l]=e.replace(i,"").split("?"),a=new URLSearchParams(l);for(let[e,t]of Object.entries(o||{}))null!=t&&a.set(e,String(t));if(n)if(Array.isArray(n))for(let[e,t]of s.split("/").filter(e=>e.startsWith(":")).entries()){let r=n[e];s=s.replace(t,r)}else for(let[e,t]of Object.entries(n))s=s.replace(`:${e}`,String(t));(s=s.split("/").map(encodeURIComponent).join("/")).startsWith("/")&&(s=s.slice(1));let u=a.toString();return(u=u.length>0?`?${u}`.replace(/\+/g,"%20"):"",i.startsWith("http"))?new URL(`${s}${u}`,i):`${i}${s}${u}`}(O,E),$=function(e){if(!(null==e?void 0:e.body))return null;let t=new Headers(null==e?void 0:e.headers);if(g(e.body)&&!t.has("content-type")){for(let[t,r]of Object.entries(null==e?void 0:e.body))r instanceof Date&&(e.body[t]=r.toISOString());return JSON.stringify(e.body)}return e.body}(E),_=await R(E),I=function(e,t){var r;if(null==t?void 0:t.method)return t.method.toUpperCase();if(e.startsWith("@")){let n=null==(r=e.split("@")[1])?void 0:r.split("/")[0];return S.includes(n)?n.toUpperCase():(null==t?void 0:t.body)?"POST":"GET"}return(null==t?void 0:t.body)?"POST":"GET"}(O,E),L=d(c({},E),{url:x,headers:_,body:$,method:I,signal:U});for(let e of v.onRequest)if(e){let t=await e(L);t instanceof Object&&(L=t)}("pipeTo"in L&&"function"==typeof L.pipeTo||"function"==typeof(null==(n=null==t?void 0:t.body)?void 0:n.pi
1pe))&&!("duplex"in L)&&(L.duplex="half");let{clearTimeout:k}=function(e,t){let r;return!(null==e?void 0:e.signal)&&(null==e?void 0:e.timeout)&&(r=setTimeout(()=>null==t?void 0:t.abort(),null==e?void 0:e.timeout)),{abortTimeout:r,clearTimeout:()=>{r&&clearTimeout(r)}}}(E,A),C=await P(L.url,L);k();let N={response:C,request:L};for(let e of v.onResponse)if(e){let r=await e(d(c({},N),{response:(null==(o=null==t?void 0:t.hookOptions)?void 0:o.cloneResponse)?C.clone():C}));r instanceof Response?C=r:r instanceof Object&&(C=r.response)}if(C.ok){if("HEAD"===L.method)return{data:"",error:null};let e=function(e){let t=e.headers.get("content-type"),r=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";let n=t.split(";").shift()||"";return m.test(n)?"json":r.has(n)||n.startsWith("text/")?"text":"blob"}(C),r={data:"",response:C,request:L};if("json"===e||"text"===e){let e=await C.text(),t=null!=(i=L.jsonParser)?i:b;r.data=await t(e)}else r.data=await C[e]();for(let e of((null==L?void 0:L.output)&&L.output&&!L.disableValidation&&(r.data=await T(L.output,r.data)),v.onSuccess))e&&await e(d(c({},r),{response:(null==(s=null==t?void 0:t.hookOptions)?void 0:s.cloneResponse)?C.clone():C}));return(null==t?void 0:t.throw)?r.data:{data:r.data,error:null}}let q=null!=(l=null==t?void 0:t.jsonParser)?l:b,W=await C.text(),B=function(e){try{return JSON.parse(e),!0}catch(e){return!1}}(W),D=B?await q(W):null,F={response:C,responseText:W,request:L,error:d(c({},D),{status:C.status,statusText:C.statusText})};for(let e of v.onError)e&&await e(d(c({},F),{response:(null==(a=null==t?void 0:t.hookOptions)?void 0:a.cloneResponse)?C.clone():C}));if(null==t?void 0:t.retry){let r=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),n=null!=(u=t.retryAttempt)?u:0;if(await r.shouldAttemptRetry(n,C)){for(let e of v.onRetry)e&&await e(N);let o=r.getDelay(n);return await new Promise(e=>setTimeout(e,o)),await j(e,d(c({},t),{retryAttempt:n+1}))}}if(null==t?void 0:t.throw)throw new f(C.status,C.statusText,B?D:W);return{data:null,error:d(c({},D),{status:C.status,statusText:C.statusText})}}},93760:(e,t,r)=>{r.d(t,{u:()=>s});var n=r(73353);let o=(e,t)=>((e,t,r,n)=>(e.events=e.events||{},e.events[15]||(e.events[15]=n(t=>{e.events[r].reduceRight((e,t)=>(t(e),e),{shared:{},...t})})),e.events[r]=e.events[r]||[],e.events[r].push(t),()=>{let n=e.events[r],o=n.indexOf(t);n.splice(o,1),n.length||(delete e.events[r],e.events[r+10](),delete e.events[r+10])}))(e,r=>{let n=t(r);n&&e.events[6].push(n)},5,t=>{let r=e.listen;e.listen=(...n)=>(e.lc||e.active||(e.active=!0,t()),r(...n));let n=e.off;return e.events[6]=[],e.off=()=>{n(),setTimeout(()=>{if(e.active&&!e.lc){for(let t of(e.active=!1,e.events[6]))t();e.events[6]=[]}},1e3)},()=>{e.listen=r,e.off=n}}),i="undefined"==typeof window,s=(e,t,r,s)=>{let l=(0,n.eU)({data:null,error:null,isPending:!0,isRefetching:!1,refetch:e=>a(e)}),a=e=>{let n="function"==typeof s?s({data:l.get().data,error:l.get().error,isPending:l.get().isPending}):s;r(t,{...n,query:{...n?.query,...e?.query},async onSuccess(e){l.set({data:e.data,error:null,isPending:!1,isRefetching:!1,refetch:l.value.refetch}),await n?.onSuccess?.(e)},async onError(e){let{request:t}=e,r="number"==typeof t.retry?t.retry:t.retry?.attempts,o=t.retryAttempt||0;r&&o<r||(l.set({error:e.error,data:null,isPending:!1,isRefetching:!1,refetch:l.value.refetch}),await n?.onError?.(e))},async onRequest(e){let t=l.get();l.set({isPending:null===t.data,data:t.data,error:null,isRefetching:!0,refetch:l.value.refetch}),await n?.onRequest?.(e)}}).catch(e=>{l.set({error:e,data:null,isPending:!1,isRefetching:!1,refetch:l.value.refetch})})};e=Array.isArray(e)?e:[e];let u=!1;for(let t of e)t.subscribe(()=>{i||(u?a():o(l,()=>{let e=setTimeout(()=>{u||(a(),u=!0)},0);return()=>{l.off(),t.off(),clearTimeout(e)}}))});return l}},95368:(e,t,r)=>{r.d(t,{B:()=>n});class n extends Error{constructor(e,t){super(e),this.name="BetterAuthError",this.message=e,this.cause=t,this.stack=""}}}}]);

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.