1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="be71bae4-49de-77ac-5f3c-d67026c276ed")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,919411,377636,747195,e=>{"use strict";var t,n,r,o,i=e.i(173686);let s="1.6.22";function l(e){return Object.fromEntries(Object.entries(e).map(e=>{let[t,n]=e;return[t,{code:t,message:n,toString:()=>t}]}))}let a=l({INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration",TOKEN_URL_NOT_FOUND:"Invalid OAuth configuration. Token URL not found.",PROVIDER_CONFIG_NOT_FOUND:"No config found for provider",PROVIDER_ID_REQUIRED:"Provider ID is required",INVALID_OAUTH_CONFIG:"Invalid OAuth configuration.",SESSION_REQUIRED:"Session is required",ISSUER_MISMATCH:"OAuth issuer mismatch. The authorization server issuer does not match the expected value (RFC 9207).",ISSUER_MISSING:"OAuth issuer parameter missing. The authorization server did not include the required iss parameter (RFC 9207)."}),u=l({INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",PHONE_NUMBER_NOT_EXIST:"phone number isn't registered",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified",PHONE_NUMBER_CANNOT_BE_UPDATED:"Phone number cannot be updated",SEND_OTP_NOT_IMPLEMENTED:"sendOTP not implemented",TOO_MANY_ATTEMPTS:"Too many attempts"});var c=e.i(933915);let d=Object.create(null),f=e=>{var t,n;return(null==(t=globalThis.process)?void 0:t.env)||(null==(n=globalThis.Deno)?void 0:n.env.toObject())||globalThis.__env__||(e?d:globalThis)},p=new Proxy(d,{get(e,t){var n;return null!=(n=f()[t])?n:d[t]},has:(e,t)=>t in f()||t in d,set:(e,t,n)=>(f(!0)[t]=n,!0),deleteProperty(e,t){if(!t)return!1;let n=f(!0);return delete n[t],!0},ownKeys:()=>Object.keys(f(!0))});function E(e,t){var n,r,o;return void 0!==c.default&&c.default.env?null!=(n=c.default.env[e])?n:t:"u">typeof Deno?null!=(r=Deno.env.get(e))?r:t:"u">typeof Bun&&null!=(o=Bun.env[e])?o:t}function h(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function v(e,t){var n=h(e,t,"get");return n.get?n.get.call(e):n.value}p.NODE_ENV,Object.freeze({get BETTER_AUTH_SECRET(){return E("BETTER_AUTH_SECRET")},get AUTH_SECRET(){return E("AUTH_SECRET")},get BETTER_AUTH_TELEMETRY(){return E("BETTER_AUTH_TELEMETRY")},get BETTER_AUTH_TELEMETRY_ID(){return E("BETTER_AUTH_TELEMETRY_ID")},get NODE_ENV(){return E("NODE_ENV","development")},get PACKAGE_VERSION(){return E("PACKAGE_VERSION","0.0.0")},get BETTER_AUTH_TELEMETRY_ENDPOINT(){return E("BETTER_AUTH_TELEMETRY_ENDPOINT","")}}),l({USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",INVALID_USER:"Invalid user",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",TOKEN_EXPIRED:"Token expired",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists.",USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL:"User already exists. Use another email.",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CHANGE_EMAIL_DISABLED:"Change email is disabled",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account.",CROSS_SITE_
2NAVIGATION_LOGIN_BLOCKED:"Cross-site navigation login blocked. This request appears to be a CSRF attack.",VERIFICATION_EMAIL_NOT_ENABLED:"Verification email isn't enabled",EMAIL_ALREADY_VERIFIED:"Email is already verified",EMAIL_MISMATCH:"Email mismatch",SESSION_NOT_FRESH:"Session is not fresh",LINKED_ACCOUNT_ALREADY_EXISTS:"Linked account already exists",INVALID_ORIGIN:"Invalid origin",INVALID_CALLBACK_URL:"Invalid callbackURL",INVALID_REDIRECT_URL:"Invalid redirectURL",INVALID_ERROR_CALLBACK_URL:"Invalid errorCallbackURL",INVALID_NEW_USER_CALLBACK_URL:"Invalid newUserCallbackURL",MISSING_OR_NULL_ORIGIN:"Missing or null Origin",CALLBACK_URL_REQUIRED:"callbackURL is required",FAILED_TO_CREATE_VERIFICATION:"Unable to create verification",FIELD_NOT_ALLOWED:"Field not allowed to be set",ASYNC_VALIDATION_NOT_SUPPORTED:"Async validation is not supported",VALIDATION_ERROR:"Validation Error",MISSING_FIELD:"Field is required",METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED:"POST method requires deferSessionRefresh to be enabled in session config",BODY_MUST_BE_AN_OBJECT:"Body must be an object",PASSWORD_ALREADY_SET:"User already has a password set"}),e.s(["_",0,v],377636);var _=e.i(189917);function T(e,t,n){var r=h(e,t,"set");if(r.set)r.set.call(e,n);else{if(!r.writable)throw TypeError("attempted to set read only private field");r.value=n}return n}e.s(["_",0,T],747195);let O={OK:200,CREATED:201,ACCEPTED:202,NO_CONTENT:204,MULTIPLE_CHOICES:300,MOVED_PERMANENTLY:301,FOUND:302,SEE_OTHER:303,NOT_MODIFIED:304,TEMPORARY_REDIRECT:307,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTHENTICATION_REQUIRED:407,REQUEST_TIMEOUT:408,CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,"I'M_A_TEAPOT":418,MISDIRECTED_REQUEST:421,UNPROCESSABLE_ENTITY:422,LOCKED:423,FAILED_DEPENDENCY:424,TOO_EARLY:425,UPGRADE_REQUIRED:426,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,REQUEST_HEADER_FIELDS_TOO_LARGE:431,UNAVAILABLE_FOR_LEGAL_REASONS:451,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505,VARIANT_ALSO_NEGOTIATES:506,INSUFFICIENT_STORAGE:507,LOOP_DETECTED:508,NOT_EXTENDED:510,NETWORK_AUTHENTICATION_REQUIRED:511};var R=class extends Error{constructor(e="INTERNAL_SERVER_ERROR",t,n={},r="number"==typeof e?e:O[e]){super(null==t?void 0:t.message,(null==t?void 0:t.cause)?{cause:t.cause}:void 0),this.status=e,this.body=t,this.headers=n,this.statusCode=r,this.name="APIError",this.status=e,this.headers=n,this.statusCode=r,this.body=t}};Symbol.for("better-call:api-error-headers"),t=R,n=Error,r=new WeakMap,Object.defineProperty((class e extends t{get errorStack(){return v(this,r)}constructor(...e){if(function(){let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return void 0===e?Object.isExtensible(Error):Object.prototype.hasOwnProperty.call(e,"writable")?e.writable:void 0!==e.set}()){const t=Error.stackTraceLimit;Error.stackTraceLimit=0,super(...e),(0,_._)(this,r,{writable:!0,value:void 0}),Error.stackTraceLimit=t}else super(...e),(0,_._)(this,r,{writable:!0,value:void 0});const t=Error().stack;t&&T(this,r,function(e){let t=e.split("\n at ");return t.length<=1?e:(t.splice(1,1),t.join("\n at "))}(t.replace(/^Error/,this.name)))}}).prototype,"constructor",{get:()=>n,enumerable:!1,configurable:!0});var g=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack=""}};function b(e){let t=e.length;for(;t>0&&47===e.charCodeAt(t-1);)t--;return t===e.length?e:e.slice(0,t)}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/api/auth";try{let t=new URL(e);if("http:"!==t.protocol&&"https:"!==t.protocol)throw new g("Invalid base URL: ".concat(e,". URL must include 'http://' or 'https://'"))}catch(t){if(t instanceof g)throw t;throw new g("Invalid base URL: ".concat(e,". Please provide a valid base URL."),{cause:t})}if(function(e){try{return"/"!==(b(new URL(e).pathname)||"/")}catch{throw new g("Invalid base URL: ".concat(e,". Please provide a valid base URL."))}}(e))return e;let n=b(e);return t&&"/"!==t?(t=t.startsWith("/")?t:"/".concat(t),"".concat(n).concat(t)):n}let I={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*:/},A=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,S={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:1/0,"-infinity":-1/0},L=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/,m=["javascript:","data:","vbscript:"],N={id:"redirect",name:"Redirect",hooks:{onSuccess(e){var t,n;if((null==(t=e.data)?void 0:t.url)&&(null==(n=e.data)?void 0:n.redirect)&&function(e){let t;try{t=new URL(e)}catch{return!0}return!m.includes(t.protocol)}(e.data.url)&&"u">typeof window&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}},w=(e,t,n,r)=>(e.events=e.events||{},e.events[n+10]||(e.events[n+10]=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])});function U(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function D(e,t){if(e===t)return!0;
2if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!D(e[n],t[n]))return!1;return!0}if(U(e)&&U(t)){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!(r in t)||!D(e[r],t[r]))return!1;return!0}return!1}var P=e.i(906334);let C=Symbol.for("better-auth:broadcast-channel");var F=class{subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if("u">typeof window)try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:Math.floor(Date.now()/1e3)}))}catch{}}setup(){if("u"<typeof window||void 0===window.addEventListener)return()=>{};let e=e=>{var t;if(e.key!==this.name)return;let n=JSON.parse(null!=(t=e.newValue)?t:"{}");(null==n?void 0:n.event)==="session"&&(null==n?void 0:n.data)&&this.listeners.forEach(e=>e(n))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}constructor(e="better-auth.message"){(0,P._)(this,"listeners",new Set),(0,P._)(this,"name",void 0),this.name=e}};function j(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"better-auth.message";return globalThis[C]||(globalThis[C]=new F(e)),globalThis[C]}let M=Symbol.for("better-auth:focus-manager");var B=class{subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if("u"<typeof window||"u"<typeof document||void 0===window.addEventListener)return()=>{};let e=()=>{"visible"===document.visibilityState&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}constructor(){(0,P._)(this,"listeners",new Set)}};function k(){return globalThis[M]||(globalThis[M]=new B),globalThis[M]}let x=Symbol.for("better-auth:online-manager");var V=class{subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if("u"<typeof window||void 0===window.addEventListener)return()=>{};let e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}constructor(){(0,P._)(this,"listeners",new Set),(0,P._)(this,"isOnline","u"<typeof navigator||navigator.onLine)}};function H(){return globalThis[x]||(globalThis[x]=new V),globalThis[x]}let q=()=>Math.floor(Date.now()/1e3),G=[],W=0,Y=(o=globalThis).nanostoresGlobal||(o.nanostoresGlobal={epoch:0}),K=e=>{let t=[],n={eq:Object.is,get:()=>(n.lc||n.listen(()=>{})(),n.value),init:e,lc:0,listen:e=>(n.lc=t.push(e),()=>{for(let t=W+4;t<G.length;)G[t]===e?G.splice(t,4):t+=4;let r=t.indexOf(e);~r&&(t.splice(r,1),--n.lc||n.off())}),notify(e,r){Y.epoch++;let o=!G.length;for(let o of t)G.push(o,n,e,r);o&&(()=>{let e;for(W=0;W<G.length;W+=4)try{G[W](G[W+1].value,G[W+2],G[W+3])}catch(t){e=t}if(G.length=0,e)throw e})()},off(){},set(e){let t=n.value;n.eq(t,e)||(n.value=e,n.notify(t))},subscribe(e){let t=n.listen(e);return e(n.value),t},value:e};return n};function X(e){return"object"==typeof e&&null!==e&&"data"in e&&"error"in e?e:{data:e,error:null}}function Q(e,t){return D(e.data,t.data)&&e.error===t.error&&e.isPending===t.isPending&&e.isRefetching===t.isRefetching&&e.refetch===t.refetch}function $(e){if(null===e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.iterator in e)&&(!(Symbol.toStringTag in e)||"[object Module]"===Object.prototype.toString.call(e))}function z(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce((t,n)=>(function e(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",o=arguments.length>3?arguments[3]:void 0;if(!$(n))return e(t,{},r,o);let i={...n};for(let n of Object.keys(t)){if("__proto__"===n||"constructor"===n)continue;let s=t[n];null!=s&&(o&&o(i,n,s,r)||(Array.isArray(s)&&Array.isArray(i[n])?i[n]=[...s,...i[n]]:$(s)&&$(i[n])?i[n]=e(s,i[n],(r?"".concat(r,"."):"")+n.toString(),o):i[n]=s))}return i})(t,n,"",e),{})}}let J=z();
2z((e,t,n)=>{if(void 0!==e[t]&&"function"==typeof n)return e[t]=n(e[t]),!0}),z((e,t,n)=>{if(Array.isArray(e[t])&&"function"==typeof n)return e[t]=n(e[t]),!0});var Z=Object.defineProperty,ee=Object.defineProperties,et=Object.getOwnPropertyDescriptors,en=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,eo=Object.prototype.propertyIsEnumerable,ei=(e,t,n)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,es=(e,t)=>{for(var n in t||(t={}))er.call(t,n)&&ei(e,n,t[n]);if(en)for(var n of en(t))eo.call(t,n)&&ei(e,n,t[n]);return e},el=(e,t)=>ee(e,et(t)),ea=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n,Error.captureStackTrace(this,this.constructor)}},eu=async(e,t)=>{var n,r,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 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==(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}},ec=class{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}constructor(e){this.options=e}},ed=class{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)}constructor(e){this.options=e}},ef=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 ".concat(r)}else if("Basic"===e.auth.type){let[r,o]=await Promise.all([n(e.auth.username),n(e.auth.password)]);if(!r||!o)return t;t.authorization="Basic ".concat(btoa("".concat(r,":").concat(o)))}else if("Custom"===e.auth.type){let[r,o]=await Promise.all([n(e.auth.prefix),n(e.auth.value)]);if(!o)return t;t.authorization="".concat(null!=r?r:""," ").concat(o)}}return t},ep=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function eE(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 eh(e){try{return JSON.parse(e)}catch(t){return e}}function ev(e){return"function"==typeof e}function e_(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r={};for(let e of t)if(e)if(e instanceof Headers)e.forEach((e,t)=>{r[t]=e});else for(let[t,n]of Array.isArray(e)?e:Object.entries(e))null!=n&&(r[t]=n);return r}async function eT(e){let t=new Headers(e_(null==e?void 0:e.headers,await ef(e)));if(!t.has("content-type")){let n=eE(null==e?void 0:e.body)?"application/json":null;n&&t.set("content-type",n)}return t}var eO=class e extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,e.prototype)}};async function eR(e,t){let n=await e["~standard"].validate(t);if(n.issues)throw new eO(n.issues);return n.value}var eg=["get","post","put","patch","delete"],eb=async(e,t)=>{var n,r,o,i,s,l,a,u;let c,{hooks:d,url:f,options:p}=await eu(e,t),E=function(e){if(null==e?void 0:e.customFetchImpl)return e.customFetchImpl;if("u">typeof globalThis&&ev(globalThis.fetch))return globalThis.fetch;if("u">typeof window&&ev(window.fetch))return window.fetch;throw Error("No fetch implementation found")}(p),h=new AbortController,v=null!=(n=p.signal)?n:h.signal,_=function(e,t){let{baseURL:n,params:r,query:o}=t||{query:{},params:{},baseURL:""},i=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";if(e.startsWith("@")){let t=e.toString().split("@")[1].split("/")[0];eg.includes(t)&&(e=e.replace("@".concat(t,"/"),"/"))}i.endsWith("/")||(i+="/");let[s,l]=e.replace(i,"").split("?"),a=new URLSearchParams(l);for(let[e,t]of Object.entries(o||{})){let n;if(null!=t){if("string"==typeof t)n=t;else if(Array.isArray(t)){for(let n of t)a.append(e,n);continue}else n=JSON.stringify(t);a.set(e,n)}}let u=new Map;if(r)if(Array.isArray(r))for(let[e,t]of s.split("/").filter(e=>e.startsWith(":")).entries()){let n=r[e];u.set(t,String(n))}else for(let[e,t]of Object.entries(r))u.set(":".concat(e),String(t));s=(s=s.split("/").map(e=>(function(e,t){let n,r=e;for(let[e,n]of t)r=r.replace(e,n);if("."===(n=r)||".."===n)throw TypeError("Path parameters cannot be reserved path segments");return encodeURIComponent(r)})(e,u)).join("/")).replace(/^\/+/,"");let c=a.toString();return(c=c.length>0?"?".concat(c).replace(/\+/g,"%20"):"",i.startsWith("http"))?new URL("".concat(s).concat(c),i):"".concat(i).c
2oncat(s).concat(c)}(f,p),T=await eT(p),O=function(e,t){let n,{body:r}=e;return r?eE(r)&&"string"!=typeof r?"application/x-www-form-urlencoded"===((n=t.get("content-type"))?n.split(";")[0].trim().toLowerCase():null)?new URLSearchParams(r).toString():JSON.stringify(r):r:null}(p,T),R=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 eg.includes(r)?r.toUpperCase():(null==t?void 0:t.body)?"POST":"GET"}return(null==t?void 0:t.body)?"POST":"GET"}(f,p),g=el(es({},p),{url:_,headers:T,body:O,method:R,signal:v});for(let e of d.onRequest)if(e){let t=await e(g);"object"==typeof t&&null!==t&&Object.assign(g,t)}("pipeTo"in g&&"function"==typeof g.pipeTo||"function"==typeof(null==(r=null==t?void 0:t.body)?void 0:r.pipe))&&!("duplex"in g)&&(g.duplex="half");let{clearTimeout:b}=(!(null==p?void 0:p.signal)&&(null==p?void 0:p.timeout)&&(c=setTimeout(()=>null==h?void 0:h.abort(),null==p?void 0:p.timeout)),{abortTimeout:c,clearTimeout:()=>{c&&clearTimeout(c)}}),y=await E(g.url,g);b();let I={response:y,request:g};for(let e of d.onResponse)if(e){let n=await e(el(es({},I),{response:(null==(o=null==t?void 0:t.hookOptions)?void 0:o.cloneResponse)?y.clone():y}));n instanceof Response?y=n:"object"==typeof n&&null!==n&&(y=n.response)}if(y.ok){if("HEAD"===g.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 ep.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}(y),n={data:null,response:y,request:g};if("json"===e||"text"===e){let e=await y.text(),t=null!=(i=g.jsonParser)?i:eh;n.data=await t(e)}else n.data=await y[e]();for(let e of((null==g?void 0:g.output)&&g.output&&!g.disableValidation&&(n.data=await eR(g.output,n.data)),d.onSuccess))e&&await e(el(es({},n),{response:(null==(s=null==t?void 0:t.hookOptions)?void 0:s.cloneResponse)?y.clone():y}));return(null==t?void 0:t.throw)?n.data:{data:n.data,error:null}}let A=null!=(l=null==t?void 0:t.jsonParser)?l:eh,S=await y.text(),L=function(e){try{return JSON.parse(e),!0}catch(e){return!1}}(S),m=L?await A(S):null,N={response:y,responseText:S,request:g,error:el(es({},m),{status:y.status,statusText:y.statusText})};for(let e of d.onError)e&&await e(el(es({},N),{response:(null==(a=null==t?void 0:t.hookOptions)?void 0:a.cloneResponse)?y.clone():y}));if(null==t?void 0:t.retry){let n=function(e){if("number"==typeof e)return new ec({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new ec(e);case"exponential":return new ed(e);default:throw Error("Invalid retry strategy")}}(t.retry),r=null!=(u=t.retryAttempt)?u:0;if(await n.shouldAttemptRetry(r,y)){for(let e of d.onRetry)e&&await e(I);let o=n.getDelay(r);return await new Promise(e=>setTimeout(e,o)),await eb(e,el(es({},t),{retryAttempt:r+1}))}}if(null==t?void 0:t.throw)throw new ea(y.status,y.statusText,L?m:S);return{data:null,error:el(es({},m),{status:y.status,statusText:y.statusText})}};let ey=/[\p{Ll}\d]+|\p{Lu}+(?!\p{Ll})|\p{Lu}[\p{Ll}\d]+|\p{Lo}+/gu,eI=/['\u2019]/g;function eA(e){var t;return(null!=(t=e.replace(eI,"").match(ey))?t:[]).map(e=>e.toLowerCase()).join("-")}function eS(e,t){let n=t.split(".").flatMap(e=>(function e(t){if(eL.test(t)){let[,n,r]=t.match(eL);return[...e(n),r]}return[t]})(e)),r=e;for(let e of n){if(null==r)return;r=r[e]}return r}let eL=/(.*)\[(\d+)\]/;var em=e.i(565428);let eN=function(e){var t;let{pluginPathMethods:n,pluginsActions:r,pluginsAtoms:o,$fetch:i,$store:s,atomListeners:l}=(e=>{var t,n,r,o,i,s,l,a,u,d,f,E;let h,v,_,T,O,R,b,m="credentials"in Request.prototype,U=null!=(t=null!=(n=function(e,t,n,r){if(e)return y(e,t);if(!1!==r){let e=p.BETTER_AUTH_URL||p.NEXT_PUBLIC_BETTER_AUTH_URL||p.PUBLIC_BETTER_AUTH_URL||p.NUXT_PUBLIC_BETTER_AUTH_URL||p.NUXT_PUBLIC_AUTH_URL||("/"!==p.BASE_URL?p.BASE_URL:void 0);if(e)return y(e,t)}null==n||n.headers.get("x-forwarded-host"),null==n||n.headers.get("x-forwarded-proto");if(n){let e=function(e){try{let t=new URL(e);return"null"===t.origin?null:t.origin}catch{return null}}(n.url);if(!e)throw new g("Could not get origin from request. Please provide a valid base URL.");return y(e,t)}if("u">typeof window&&window.location)return y(window.location.origin,t)}(null==e?void 0:e.baseURL,null==e?void 0:e.basePath,void 0,void 0))?n:(e=>{if(void 0!==c.default){if(c.default.env.NEXT_PUBLIC_AUTH_URL)return c.default.env.NEXT_PUBLIC_AUTH_URL;if("u"<typeof window){if(c.default.env.NEXTAUTH_URL)try{return c.default.env.NEXTAUTH_URL}catch{}if(c.default.env.VERCEL_URL)try{let t=c.default.env.VERCEL_URL.startsWith("http")?"":"https://";
2return"".concat(new URL("".concat(t).concat(c.default.env.VERCEL_URL)).origin).concat(null!=e?e:"/api/auth")}catch{}}}})(null==e?void 0:e.basePath))?t:"/api/auth",P=(null==e||null==(o=e.plugins)?void 0:o.flatMap(e=>e.fetchPlugins).filter(e=>void 0!==e))||[],C={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:null==e||null==(i=e.fetchOptions)?void 0:i.onSuccess,onError:null==e||null==(s=e.fetchOptions)?void 0:s.onError,onRequest:null==e||null==(l=e.fetchOptions)?void 0:l.onRequest,onResponse:null==e||null==(a=e.fetchOptions)?void 0:a.onResponse}},{onSuccess:F,onError:M,onRequest:B,onResponse:x,...V}=(null==e?void 0:e.fetchOptions)||{},G=(f={baseURL:U,...m?{credentials:"include"}:{},method:"GET",jsonParser:e=>e?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{strict:!0};return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{strict:n=!1,warnings:r=!1,reviver:o,parseDates:i=!0}=t;if("string"!=typeof e)return e;let s=e.trim(),l=s.toLowerCase();if(l.length<=9&&l in S)return S[l];if(!A.test(s)){if(n)throw SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(I).some(e=>{let[t,n]=e,o=n.test(s);return o&&r&&console.warn("[better-json] Detected potential prototype pollution attempt using ".concat(t," pattern")),o})&&n)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){r&&console.warn('[better-json] Dropping "'.concat(e,'" key to prevent prototype pollution'));return}if(i&&"string"==typeof t){let e=function(e){let t=L.exec(e);if(!t)return null;let[,n,r,o,i,s,l,a,u,c,d]=t,f=new Date(Date.UTC(parseInt(n,10),parseInt(r,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);f.setUTCMinutes(f.getUTCMinutes()+e)}return f instanceof Date&&!isNaN(f.getTime())?f: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,...V,plugins:[C,...V.plugins||[],...(null==e?void 0:e.disableDefaultFetchPlugins)?[]:[N],...P]},async function(e,t){let n,r=el(es(es({},f),t),{headers:e_(null==f?void 0:f.headers,null==t?void 0:t.headers),plugins:[...(null==f?void 0:f.plugins)||[],(n=f||{},{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 n;return null!=(n=t.schema)&&!!n.config&&(e.startsWith(t.schema.config.baseURL||"")||e.startsWith(t.schema.config.prefix||""))}))?void 0:o.schema)||n.schema;if(l){let n=e;(null==(i=l.config)?void 0:i.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==(s=l.config)?void 0:s.baseURL)&&n.startsWith(l.config.baseURL)&&(n=n.replace(l.config.baseURL,"")),n.startsWith("/")&&"@"===n.charAt(1)&&(n=n.substring(1));let r=l.schema[n];if(r){let n=null==t?void 0:t.headers;if(r.headers&&!(null==t?void 0:t.disableValidation)){let e={};if(null==t?void 0:t.headers){if(t.headers instanceof Headers)t.headers.forEach((t,n)=>{e[n.toLowerCase()]=t});else if("object"==typeof t.headers)for(let[n,r]of Object.entries(t.headers))null!=r&&(e[n.toLowerCase()]=r)}let o=await eR(r.headers,e),i={};for(let[e,t]of Object.entries(o))i[e.toLowerCase()]=t;n=i}let o=el(es({},t),{method:r.method,output:r.output,headers:n});return(null==t?void 0:t.disableValidation)||(o=el(es({},o),{body:r.input?await eR(r.input,null==t?void 0:t.body):null==t?void 0:t.body,params:r.params?await eR(r.params,null==t?void 0:t.params):null==t?void 0:t.params,query:r.query?await eR(r.query,null==t?void 0:t.query):null==t?void 0:t.query})),{url:e,options:o}}}return{url:e,options:t}}}),...(null==t?void 0:t.plugins)||[]]});if(null==f?void 0:f.catchAllError)try{return await eb(e,r)}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 eb(e,r)}),{$sessionSignal:W,session:Y,broadcastSessionUpdate:$}=(v=K(!1),T=K({data:null,error:null,isPending:!0,isRefetching:!1,refetch:_=e=>R(e)}),w(T,e=>{let{newValue:t,abort:n}=e;Q(T.value,t)&&n()},2,e=>{let t=T.set,n=T.setKey;
2return T.setKey&&(T.setKey=(t,r)=>{let o;if(e({abort:()=>{o=!0},changed:t,newValue:{...T.value,[t]:r}}),!o)return n(t,r)}),T.set=n=>{let r;if(e({abort:()=>{r=!0},newValue:n}),!r)return t(n)},()=>{T.set=t,T.setKey=n}}),O=e=>{if(h!==e)return;let t=T.get();h=void 0,(t.isPending||t.isRefetching)&&T.set({...t,isPending:!1,isRefetching:!1,refetch:_})},R=async e=>{null==h||h.abort();let t=new AbortController;h=t;let n=T.get();T.set({...n,isPending:null===n.data,isRefetching:!0,error:null,refetch:_});try{var r;let n=await G("/get-session",{method:"GET",query:null==e?void 0:e.query,signal:t.signal});if(t.signal.aborted)return void O(t);let{data:o,error:i}=X(n);if(null==o?void 0:o.needsRefresh)try{let e=await G("/get-session",{method:"POST",signal:t.signal});if(t.signal.aborted)return void O(t);({data:o,error:i}=X(e))}catch{if(t.signal.aborted)return void O(t)}if(i){let e=T.get(),t=(null==i?void 0:i.status)===401;T.set({data:t?null:e.data,error:i,isPending:!1,isRefetching:!1,refetch:_});return}let s=(r=o)&&(null!==r.session||null!==r.user)?r:null,l=T.get(),a=null!=l.data&&null!=s&&D(l.data,s)?l.data:s;T.set({data:a,error:null,isPending:!1,isRefetching:!1,refetch:_})}catch(n){if(t.signal.aborted)return void O(t);let e=T.get();T.set({data:e.data,error:n,isPending:!1,isRefetching:!1,refetch:_})}},b=()=>{},E=()=>{let t;"u"<typeof window||(t=setTimeout(()=>{R()},0));let n=function(e){var t,n,r,o,i,s;let{fetchSession:l,shouldPollSession:a=()=>!0,sessionSignal:u,options:c={}}=e,d=null!=(t=null==(o=c.sessionOptions)?void 0:o.refetchInterval)?t:0,f=null==(n=null==(i=c.sessionOptions)?void 0:i.refetchOnWindowFocus)||n,p=null!=(r=null==(s=c.sessionOptions)?void 0:s.refetchWhenOffline)&&r,E={isInitialized:!1,lastSessionRequest:0},h=e=>{if(p||H().isOnline){if((null==e?void 0:e.event)==="storage")return void l();if((null==e?void 0:e.event)==="poll"){E.lastSessionRequest=q(),l();return}if((null==e?void 0:e.event)==="visibilitychange"){if(q()-E.lastSessionRequest<5)return;E.lastSessionRequest=q(),l();return}l()}};return{init:()=>{E.isInitialized||(E.isInitialized=!0,d&&d>0&&(E.pollInterval=setInterval(()=>{a()&&h({event:"poll"})},1e3*d)),E.unsubscribeBroadcast=j().subscribe(()=>{h({event:"storage"})}),f&&(E.unsubscribeFocus=k().subscribe(()=>{h({event:"visibilitychange"})})),E.unsubscribeOnline=H().subscribe(e=>{e&&h({event:"visibilitychange"})}),E.unsubscribeSignal=u.listen(()=>{l()}),E.cleanupBroadcastSetup=j().setup(),E.cleanupFocusSetup=k().setup(),E.cleanupOnlineSetup=H().setup())},cleanup:()=>{E.isInitialized&&(E.pollInterval&&(clearInterval(E.pollInterval),E.pollInterval=void 0),E.unsubscribeBroadcast&&(E.unsubscribeBroadcast(),E.unsubscribeBroadcast=void 0),E.unsubscribeFocus&&(E.unsubscribeFocus(),E.unsubscribeFocus=void 0),E.unsubscribeOnline&&(E.unsubscribeOnline(),E.unsubscribeOnline=void 0),E.unsubscribeSignal&&(E.unsubscribeSignal(),E.unsubscribeSignal=void 0),E.cleanupBroadcastSetup&&(E.cleanupBroadcastSetup(),E.cleanupBroadcastSetup=void 0),E.cleanupFocusSetup&&(E.cleanupFocusSetup(),E.cleanupFocusSetup=void 0),E.cleanupOnlineSetup&&(E.cleanupOnlineSetup(),E.cleanupOnlineSetup=void 0),E.isInitialized=!1,E.lastSessionRequest=0)},triggerRefetch:h,broadcastSessionUpdate:e=>{j().post({event:"session",data:{trigger:e},clientId:Math.random().toString(36).substring(7)})}}}({fetchSession:R,shouldPollSession:()=>null!=T.get().data,sessionSignal:v,options:e});return n.init(),b=n.broadcastSessionUpdate,()=>{t&&clearTimeout(t);let e=h;null==e||e.abort(),e&&O(e),n.cleanup()}},w(T,e=>{let t=E();t&&T.events[6].push(t)},5,e=>{let t=T.listen;T.listen=function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return T.lc||T.active||(T.active=!0,e()),t(...r)};let n=T.off;return T.events[6]=[],T.off=()=>{n(),setTimeout(()=>{if(T.active&&!T.lc){for(let e of(T.active=!1,T.events[6]))e();T.events[6]=[]}},1e3)},()=>{T.listen=t,T.off=n}}),{session:T,$sessionSignal:v,broadcastSessionUpdate:e=>b(e)}),z=(null==e?void 0:e.plugins)||[],Z={},ee={$sessionSignal:W,session:Y},et={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"PO
2ST","/delete-user":"POST"},en=[{signal:"$sessionSignal",matcher:e=>"/sign-out"===e||"/update-user"===e||"/update-session"===e||"/sign-up/email"===e||"/sign-in/email"===e||"/delete-user"===e||"/verify-email"===e||"/revoke-sessions"===e||"/revoke-session"===e||"/revoke-other-sessions"===e||"/change-email"===e||"/change-password"===e,callback(e){"/sign-out"===e?$("signout"):("/update-user"===e||"/update-session"===e)&&$("updateUser")}}];for(let e of z)e.getAtoms&&Object.assign(ee,null==(d=e.getAtoms)?void 0:d.call(e,G)),e.pathMethods&&Object.assign(et,e.pathMethods),e.atomListeners&&en.push(...e.atomListeners);let er={notify:e=>{ee[e].set(!ee[e].get())},listen:(e,t)=>{ee[e].subscribe(t)},atoms:ee};for(let t of z)t.getActions&&(Z=J(null!=(r=null==(u=t.getActions)?void 0:u.call(t,G,er,e))?r:{},Z));return{get baseURL(){return U},pluginsActions:Z,pluginsAtoms:ee,pluginPathMethods:et,atomListeners:en,$fetch:G,$store:er}})(e),a={};for(let[e,t]of Object.entries(o))a[function(e){return"use".concat(e.charAt(0).toUpperCase()+e.slice(1))}(e)]=()=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,em.useRef)(e.get()),{keys:r,deps:o=[e,r]}=t,i=(0,em.useCallback)(t=>{let o=e=>{n.current!==e&&(n.current=e,t())};if(o(e.value),null==r?void 0:r.length){let t;return t=new Set(r),e.listen((e,n,i)=>{(void 0===i?r.some(t=>void 0===n||e[t]!==n[t]||eS(e,t)!==eS(n,t)):t.has(i)||t.has(i.split(/\.|\[/)[0]))&&o(e)})}return e.listen(o)},o),s=()=>n.current;return(0,em.useSyncExternalStore)(i,s,s)})(t);return t={...r,...a,$fetch:i,$store:s},function e(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];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,s)=>{let a="/"+r.map(eA).join("/"),u=s[0]||{},c=s[1]||{},{query:d,fetchOptions:f,...p}=u,E={...c,...f},h=function(e,t,n){let r=t[e],{fetchOptions:o,query:i,...s}=n||{};return r||((null==o?void 0:o.method)?o.method:s&&Object.keys(s).length>0?"POST":"GET")}(a,n,u);return await i(a,{...E,body:"GET"===h?void 0:{...p,...(null==E?void 0:E.body)||{}},query:d||(null==E?void 0:E.query),method:h,async onSuccess(e){var t,n;if(await (null==E||null==(t=E.onSuccess)?void 0:t.call(E,e)),!l||E.disableSignal)return;let r=l.filter(e=>e.matcher(a));if(!r.length)return;let i=new Set;for(let e of r){let t=o[e.signal];if(!t)return;if(i.has(e.signal))continue;i.add(e.signal);let r=t.get();setTimeout(()=>{t.set(!r)},10),null==(n=e.callback)||n.call(e,a)}}})}})}()}({baseURL:i.default.apiBaseUrl,basePath:"/api/agent/auth",plugins:[{id:"generic-oauth-client",version:s,$InferServerPlugin:{},$ERROR_CODES:a},{id:"magic-link",version:s,$InferServerPlugin:{}},{id:"phoneNumber",version:s,$InferServerPlugin:{},atomListeners:[{matcher:e=>"/phone-number/update"===e||"/phone-number/verify"===e||"/sign-in/phone-number"===e,signal:"$sessionSignal"}],$ERROR_CODES:u}]}),{useSession:ew}=eN,eU=async()=>{await eN.signOut()},eD=async e=>await eN.phoneNumber.sendOtp({phoneNumber:e}),eP=async e=>{let{phoneNumber:t,code:n}=e;return await eN.phoneNumber.verify({phoneNumber:t,code:n})};e.s(["sendPhoneOtp",0,eD,"signOut",0,eU,"useMagicLinkSignIn",0,e=>{let{onError:t,onSuccess:n}=e,[r,o]=(0,em.useState)(!1);return{isSendingMagicLink:r,sendMagicLink:async e=>{let{email:r,callbackRoute:i,errorCallbackRoute:s}=e;o(!0);try{await eN.signIn.magicLink({email:r,callbackURL:"".concat(window.location.origin).concat(i),errorCallbackURL:"".concat(window.location.origin).concat(s),fetchOptions:{onError:e=>{var n;let{error:r,response:o}=e;if(429===o.status){let e=Number(o.headers.get("X-Retry-After"));t({message:"RATE_LIMIT_EXCEEDED",retryAfter:e||void 0});return}t({message:null!=(n=null==r?void 0:r.message)?n:"UNKNOWN_ERROR"})},onSuccess:()=>{n()}}})}finally{o(!1)}}}},"useSession",0,ew,"useSocialSignIn",0,e=>{let{onError:t}=e,[n,r]=(0,em.useState)(!1);return{isSocialSigningIn:n,signInSocial:async e=>{let{provider:n,callbackRoute:o,errorCallbackRoute:i}=e;r(!0);try{let e=await eN.signIn.social({callbackURL:"".concat(window.location.origin).concat(o),errorCallbackURL:"".concat(window.location.origin).concat(i,"?source=").concat(n),provider:n});if(e.error){var s;t({message:null!=(s=e.error.message)?s:"UNKNOWN_ERROR"})}}finally{r(!1)}}}},"verifyMagicLink",0,e=>eN.magicLink.verify({query:{token:e}}),"verifyPhoneOtp",0,eP],919411)}]); 3 4//# debugId=be71bae4-49de-77ac-5f3c-d67026c276ed 5//# sourceMappingURL=1t6o4niyt6829.js.map
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.