PageSourceSearch

https://www.native-english.ru/_next/static/chunks/0roo1110jrlaa.js?dpl=da07ad23

js native-english.ru collected 2026-09-24 20:24:55 UTC 35,846 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,875628,267985,e=>{"use strict";let t;var r,n,i=e.i(374514);let o=Object.create(null),s=e=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?o:globalThis),a=new Proxy(o,{get:(e,t)=>s()[t]??o[t],has:(e,t)=>t in s()||t in o,set:(e,t,r)=>(s(!0)[t]=r,!0),deleteProperty(e,t){if(!t)return!1;let r=s(!0);return delete r[t],!0},ownKeys:()=>Object.keys(s(!0))});function l(e,t){return void 0!==i.default&&i.default.env?i.default.env[e]??t:"u">typeof Deno?Deno.env.get(e)??t:"u">typeof Bun?Bun.env[e]??t:t}function u(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,{code:e,message:t,toString:()=>e}]))}a.NODE_ENV,Object.freeze({get BETTER_AUTH_SECRET(){return l("BETTER_AUTH_SECRET")},get AUTH_SECRET(){return l("AUTH_SECRET")},get BETTER_AUTH_TELEMETRY(){return l("BETTER_AUTH_TELEMETRY")},get BETTER_AUTH_TELEMETRY_ID(){return l("BETTER_AUTH_TELEMETRY_ID")},get NODE_ENV(){return l("NODE_ENV","development")},get PACKAGE_VERSION(){return l("PACKAGE_VERSION","0.0.0")},get BETTER_AUTH_TELEMETRY_ENDPOINT(){return l("BETTER_AUTH_TELEMETRY_ENDPOINT","")}}),u({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_NAVIGATION_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_
1NEW_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"});let c={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 d=class extends Error{status;body;headers;statusCode;constructor(e="INTERNAL_SERVER_ERROR",t,r={},n="number"==typeof e?e:c[e]){super(t?.message,t?.cause?{cause:t.cause}:void 0),this.status=e,this.body=t,this.headers=r,this.statusCode=n,this.name="APIError",this.status=e,this.headers=r,this.statusCode=n,this.body=t}};Symbol.for("better-call:api-error-headers"),r=d,n=Error,Object.defineProperty((class e extends r{#e;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),Error.stackTraceLimit=t}else super(...e);const t=Error().stack;t&&(this.#e=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)))}get errorStack(){return this.#e}}).prototype,"constructor",{get:()=>n,enumerable:!1,configurable:!0});var f=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack=""}};function p(e){let t=e.length;for(;t>0&&47===e.charCodeAt(t-1);)t--;return t===e.length?e:e.slice(0,t)}function h(e,t="/api/auth"){try{let t=new URL(e);if("http:"!==t.protocol&&"https:"!==t.protocol)throw new f(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){if(t instanceof f)throw t;throw new f(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}if(function(e){try{return"/"!==(p(new URL(e).pathname)||"/")}catch{throw new f(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}(e))return e;let r=p(e);return t&&"/"!==t?(t=t.startsWith("/")?t:`/${t}`,`${r}${t}`):r}let E={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*:/},y=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,T={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:1/0,"-infinity":-1/0},v=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/,g=["javascript:","data:","vbscript:"],b={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&function(e){let t;try{t=new URL(e)}catch{return!0}return!g.includes(t.protocol)}(e.data.url)&&"u">typeof window&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}},O=(e,t,r,n)=>(e.events=e.events||{},e.events[r+10]||(e.events[r+10]=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],i=n.indexOf(t);~i&&(n.splice(i,1),n.length||(e.events[r+10](),delete e.events[r+10]))}),_=(e,t)=>
1O(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}});function R(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function m(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!m(e[r],t[r]))return!1;return!0}if(R(e)&&R(t)){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(!(n in t)||!m(e[n],t[n]))return!1;return!0}return!1}function S(e,t){return O(e,({newValue:r,abort:n})=>{t(e.value,r)&&n()},2,t=>{let r=e.set,n=e.setKey;return e.setKey&&(e.setKey=(r,i)=>{let o;if(t({abort:()=>{o=!0},changed:r,newValue:{...e.value,[r]:i}}),!o)return n(r,i)}),e.set=e=>{let n;if(t({abort:()=>{n=!0},newValue:e}),!n)return r(e)},()=>{e.set=r,e.setKey=n}})}let A=Symbol.for("better-auth:broadcast-channel");var I=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}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=>{if(e.key!==this.name)return;let t=JSON.parse(e.newValue??"{}");t?.event==="session"&&t?.data&&this.listeners.forEach(e=>e(t))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function L(e="better-auth.message"){return globalThis[A]||(globalThis[A]=new I(e)),globalThis[A]}let w=Symbol.for("better-auth:focus-manager");var U=class{listeners=new Set;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)}}};function N(){return globalThis[w]||(globalThis[w]=new U),globalThis[w]}let D=Symbol.for("better-auth:online-manager");var P=class{listeners=new Set;isOnline="u"<typeof navigator||navigator.onLine;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)}}};function C(){return globalThis[D]||(globalThis[D]=new P),globalThis[D]}let j=()=>Math.floor(Date.now()/1e3),F=[],B=0,k=globalThis.nanostoresGlobal||={epoch:0},q=e=>{let t=[],r={eq:Object.is,get:()=>(r.lc||r.listen(()=>{})(),r.value),init:e,lc:0,listen:e=>(r.lc=t.push(e),()=>{for(let t=B;t<F.length;)F[t]===e?F.splice(t,4):t+=4;let n=t.indexOf(e);~n&&(t.splice(n,1),--r.lc||r.off())}),notify(e,n){k.epoch++;let i=!F.length;for(let i of t)F.push(i,r,e,n);i&&(()=>{let e,t;for(;B<F.length;){t=B,B+=4;try{F[t](F[t+1].value,F[t+2],F[t+3])}catch(t){e=t}}if(F.length=B=0,e)throw e})()},off(){},set(e){let t=r.value;r.eq(t,e)||(r.value=e,r.notify(t))},subscribe(e){let t=r.listen(e);return e(r.value),t},value:e};return r};function M(e){return"object"==typeof e&&null!==e&&"data"in e&&"error"in e?e:{data:e,error:null}}function x(e,t){return m(e.data,t.data)&&e.error===t.error&&e.isPending===t.isPending&&e.isRefetching===t.isRefetching&&e.refetch===t.refetch}function V(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 H(e){return(...t)=>t.reduce((t,r)=>(function e(t,r,n=".",i){if(!V(r))return e(t,{},n,i);let o={...r};for(let r of Object.keys(t)){if("__proto__"===r||"constructor"===r)continue;let s=t[r];null!=s&&(i&&i(o,r,s,n)||(Array.isArray(s)&&Array.isArray(o[r])?o[r]=[...s,...o[r]]:V(s)&&V(o[r])?o[r]=e(s,o[r],(n?`${n}.`:"")+r.toString(),i):o[r]=s))}return o}
1)(t,r,"",e),{})}let $=H();H((e,t,r)=>{if(void 0!==e[t]&&"function"==typeof r)return e[t]=r(e[t]),!0}),H((e,t,r)=>{if(Array.isArray(e[t])&&"function"==typeof r)return e[t]=r(e[t]),!0});var G=class extends Error{constructor(e,t,r){super(t||e.toString(),{cause:r}),this.status=e,this.statusText=t,this.error=r,Error.captureStackTrace(this,this.constructor)}};let W=async(e,t)=>{let r=t||{},n={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:r,hooks:n};for(let c of(null==t?void 0:t.plugins)||[]){var i,o,s,a,l,u;if(c.init){let t=await (null==(u=c.init)?void 0:u.call(c,e.toString(),r));r=t.options||r,e=t.url}n.onRequest.push(null==(i=c.hooks)?void 0:i.onRequest),n.onResponse.push(null==(o=c.hooks)?void 0:o.onResponse),n.onSuccess.push(null==(s=c.hooks)?void 0:s.onSuccess),n.onError.push(null==(a=c.hooks)?void 0:a.onError),n.onRetry.push(null==(l=c.hooks)?void 0:l.onRetry)}return{url:e,options:r,hooks:n}};var 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(){return this.options.delay}},K=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)}};let X=["get","post","put","patch","delete"];function Q(e){if(!e.startsWith("@"))return{method:void 0,path:e};let t=e.indexOf("/"),r=e.slice(1,-1===t?void 0:t);return X.includes(r)?{method:r,path:-1===t?e:e.slice(t+1)}:{method:void 0,path:e}}let J=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,i]=await Promise.all([r(e.auth.username),r(e.auth.password)]);if(!n||!i)return t;t.authorization=`Basic ${btoa(`${n}:${i}`)}`}else if("Custom"===e.auth.type){let[n,i]=await Promise.all([r(e.auth.prefix),r(e.auth.value)]);if(!i)return t;t.authorization=`${null!=n?n:""} ${i}`}}return t},z=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Z(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 ee(e){try{return JSON.parse(e)}catch(t){return e}}function et(e){return"function"==typeof e}function er(...e){let t={};for(let r of e)if(r)if(r instanceof Headers)r.forEach((e,r)=>{t[r]=e});else for(let[e,n]of Array.isArray(r)?r:Object.entries(r))null!=n&&(t[e]=n);return t}async function en(e){let t=new Headers(er(null==e?void 0:e.headers,await J(e)));if(!t.has("content-type")){let r=Z(null==e?void 0:e.body)?"application/json":null;r&&t.set("content-type",r)}return t}var ei=class e extends Error{constructor(t,r){super(r||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,e.prototype)}};async function eo(e,t){let r=await e["~standard"].validate(t);if(r.issues)throw new ei(r.issues);return r.value}function es(e){return(es="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ea(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function el(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ea(Object(r),!0).forEach(function(t){!function(e,t,r){var n;(n=function(e,t){if("object"!=es(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=es(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==es(n)?n:n+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ea(Object(r)).forEac
1h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let eu=async(e,t)=>{var r,n,i,o,s,a,l,u;let c,{hooks:d,url:f,options:p}=await W(e,t),h=function(e){if(null==e?void 0:e.customFetchImpl)return e.customFetchImpl;if("u">typeof globalThis&&et(globalThis.fetch))return globalThis.fetch;if("u">typeof window&&et(window.fetch))return window.fetch;throw Error("No fetch implementation found")}(p),E=new AbortController,y=null!=(r=p.signal)?r:E.signal,T=function(e,t){let{baseURL:r,params:n,query:i}=t||{query:{},params:{},baseURL:""},o=e.startsWith("http")?e.split("/").slice(0,3).join("/"):r||"",{path:s}=Q(e);s!==e&&(e=`/${s}`),o.endsWith("/")||(o+="/");let[a,l]=e.replace(o,"").split("?"),u=new URLSearchParams(l);for(let[e,t]of Object.entries(i||{})){let r;if(null!=t){if("string"==typeof t)r=t;else if(Array.isArray(t)){for(let r of t)u.append(e,r);continue}else r=JSON.stringify(t);u.set(e,r)}}let c=new Map;if(n)if(Array.isArray(n))for(let[e,t]of a.split("/").filter(e=>e.startsWith(":")).entr
1ies()){let r=n[e];c.set(t,String(r))}else for(let[e,t]of Object.entries(n))c.set(`:${e}`,String(t));a=(a=a.split("/").map(e=>(function(e,t){let r=t.get(e);if(void 0===r)return e.split(":").map(e=>encodeURIComponent(e)).join(":");if("."===r||".."===r)throw TypeError("Path parameters cannot be reserved path segments");return encodeURIComponent(r)})(e,c)).join("/")).replace(/^\/+/,"");let d=u.toString();return(d=d.length>0?`?${d}`.replace(/\+/g,"%20"):"",o.startsWith("http"))?new URL(`${a}${d}`,o):`${o}${a}${d}`}(f,p),v=await en(p),g=function(e,t){let r,{body:n}=e;return n?Z(n)&&"string"!=typeof n?"application/x-www-form-urlencoded"===((r=t.get("content-type"))?r.split(";")[0].trim().toLowerCase():null)?new URLSearchParams(n).toString():JSON.stringify(n):n:null}(p,v),b=function(e,t){if(null==t?void 0:t.method)return t.method.toUpperCase();let{method:r}=Q(e);return r?r.toUpperCase():(null==t?void 0:t.body)?"POST":"GET"}(f,p),O=el(el({},p),{},{url:T,headers:v,body:g,method:b,signal:y});for(let e of d.onRequest)if(e){let t=await e(O);"object"==typeof t&&null!==t&&Object.assign(O,t)}("pipeTo"in O&&"function"==typeof O.pipeTo||"function"==typeof(null==t||null==(n=t.body)?void 0:n.pipe))&&!("duplex"in O)&&(O.duplex="half");let{clearTimeout:_}=(!(null==p?void 0:p.signal)&&(null==p?void 0:p.timeout)&&(c=setTimeout(()=>null==E?void 0:E.abort(),null==p?void 0:p.timeout)),{abortTimeout:c,clearTimeout:()=>{c&&clearTimeout(c)}}),R=await h(O.url,O);_();let m={response:R,request:O};for(let e of d.onResponse)if(e){let r=await e(el(el({},m),{},{response:(null==t||null==(o=t.hookOptions)?void 0:o.cloneResponse)?R.clone():R}));r instanceof Response?R=r:"object"==typeof r&&null!==r&&(R=r.response)}if(R.ok){if("HEAD"===O.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 z.test(n)?"json":r.has(n)||n.startsWith("text/")?"text":"blob"}(R),r={data:null,response:R,request:O};if("json"===e||"text"===e){let e=await R.text();r.data=await (null!=(s=O.jsonParser)?s:ee)(e)}else r.data=await R[e]();for(let e of((null==O?void 0:O.output)&&O.output&&!O.disableValidation&&(r.data=await eo(O.output,r.data)),d.onSuccess))e&&await e(el(el({},r),{},{response:(null==t||null==(a=t.hookOptions)?void 0:a.cloneResponse)?R.clone():R}));return(null==t?void 0:t.throw)?r.data:{data:r.data,error:null}}let S=null!=(i=null==t?void 0:t.jsonParser)?i:ee,A=await R.text(),I=function(e){try{return JSON.parse(e),!0}catch(e){return!1}}(A),L=I?await S(A):null,w={response:R,responseText:A,request:O,error:el(el({},L),{},{status:R.status,statusText:R.statusText})};for(let e of d.onError)e&&await e(el(el({},w),{},{response:(null==t||null==(l=t.hookOptions)?void 0:l.cloneResponse)?R.clone():R}));if(null==t?void 0:t.retry){let r=function(e){if("number"==typeof e)return new Y({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new Y(e);case"exponential":return new K(e);default:throw Error("Invalid retry strategy")}}(t.retry),n=null!=(u=t.retryAttempt)?u:0;if(await r.shouldAttemptRetry(n,R)){for(let e of d.onRetry)e&&await e(m);let i=r.getDelay(n);return await new Promise(e=>setTimeout(e,i)),await eu(e,el(el({},t),{},{retryAttempt:n+1}))}}if(null==t?void 0:t.throw)throw new G(R.status,R.statusText,I?L:A);return{data:null,error:el(el({},L),{},{status:R.status,statusText:R.statusText})}},ec=/[\p{Ll}\d]+|\p{Lu}+(?!\p{Ll})|\p{Lu}[\p{Ll}\d]+|\p{Lo}+/gu,ed=/['\u2019]/g;function ef(e){return(e.replace(ed,"").match(ec)??[]).map(e=>e.toLowerCase()).join("-")}function ep(e,t){let r=t.split(".").flatMap(e=>(function e(t){if(eh.test(t)){let[,r,n]=t.match(eh);return[...e(r),n]}return[t]})(e)),n=e;for(let e of r){if(null==n)return;n=n[e]}return n}let eh=/(.*)\[(\d+)\]/;var eE=e.i(303506);function ey(e,t){return m(e.data,t.data)&&e.error===t.error&&e.isPending===t.isPending&&e.isRefetching===t.isRefetching&&e.refetch===t.refetch}let eT=function(e){var t;let{pluginPathMethods:r,pluginsActions:n,pluginsAtoms:o,hydrateSession:s,$fetch:l,$store:u,atomListeners:c}=(e=>{var t;let r,n,o,s,l,u,c,d,p,g="credentials"in Request.prototype,O=function(e,t,r,n){if(e)return h(e,t);if(!1!==n){let e=a.BETTER_AUTH_URL||a.NEXT_PUBLIC_BETTER_AUTH_URL||a.PUBLIC_BETTER_AUTH_URL||a.NUXT_PUBLIC_BETTER_AUTH_URL||a.NUXT_PUBLIC_AUTH_URL||("/"!==a.BASE_URL?a.BASE_URL:void 0);if(e)return h(e,t)}r?.headers.get("x-forwarded-host"),r?.headers.get("x-forwarded-proto");if(r){let e=function(e){try{let t=new URL(e);return"null"===t.origin?null:t.origin}catch{return null}}(r.url);if(!e)throw new f("Could not get origin from request. Please provide a valid base URL.");return h(e,t)}if("u">typeof window&&window.location)return h(window.location.origin,t)}(e?.baseURL,e?.basePath,void 0,void 0)??(e=>{if(void 0!==i.default){if(i.default.env.NEXT_PUBLIC_AUTH_URL)return i.default.env.NEXT_PUBLIC_AUTH_URL;if("u"<typeof window){if(i.default.env.NEXTAUTH_URL)try{return i.default.env.NEXTAUTH_URL}catch{}if(i.default.env.VERCEL_URL)try{let t=i.default.env.VERCEL_URL.startsWith("http")?"":"https://";return`${new URL(`${t}${i.default.env.VERCEL_URL}`).origin}${e??"/api/auth"}`}catch{}}}})(e?.basePath)??"/api/auth",R=e?.plugins?.flatMap(e=>e.fetchPlugins).filter(e=>void 0!==e)||[],A={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:w,onRequest:U,onResponse:D,...P}=e?.fetchOptions||{},F=(t={baseURL:O,...g?{credentials:"include"}:{},method:"GET",jsonParser:e=>e?function(e,t={strict:!0}){return function(e,t={}){let{strict:r=!1,warnings:n=!1,reviver:i,parseDates:o=!0}=t;if("string"!=typeof e)return e;let s=e.trim(),a=s.toLowerCase();if(a.length<=9&&a in T)return T[a];
1if(!y.test(s)){if(r)throw SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(E).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(o&&"string"==typeof t){let e=function(e){let t=v.exec(e);if(!t)return null;let[,r,n,i,o,s,a,l,u,c,d]=t,f=new Date(Date.UTC(parseInt(r,10),parseInt(n,10)-1,parseInt(i,10),parseInt(o,10),parseInt(s,10),parseInt(a,10),l?parseInt(l.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 i?i(e,t):t})}catch(t){if(r)throw t;return e}}(e,t)}(e,{strict:!1}):null,customFetchImpl:fetch,...P,plugins:[A,...P.plugins||[],...e?.disableDefaultFetchPlugins?[]:[b],...R]},async function(e,r){let n,i=el(el(el({},t),r),{},{headers:er(null==t?void 0:t.headers,null==r?void 0:r.headers),plugins:[...(null==t?void 0:t.plugins)||[],(n=t||{},{id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,t){var r,i,o,s;let a=el(el({},t),void 0!==n.query&&{query:el(el({},n.query),null==t?void 0:t.query)}),l=(null==(r=n.plugins)||null==(r=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:r.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==(o=l.config)?void 0:o.baseURL)&&r.startsWith(l.config.baseURL)&&(r=r.replace(l.config.baseURL,"")),r.startsWith("/")&&"@"===r.charAt(1)&&(r=r.substring(1));let u=l.schema[r];if(u){let{method:i,path:o}=Q(r);i&&(e=e.slice(0,e.length-r.length)+o);let l=null==t?void 0:t.headers;if(u.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,r)=>{e[r.toLowerCase()]=t});else if("object"==typeof t.headers)for(let[r,n]of Object.entries(t.headers))null!=n&&(e[r.toLowerCase()]=n)}let r=await eo(u.headers,e),n={};for(let[e,t]of Object.entries(r))n[e.toLowerCase()]=t;l=n}let c=null!=(s=u.method)?s:i;if(a=el(el(el(el({},a),void 0!==c&&{method:c}),void 0!==u.output&&{output:u.output}),void 0!==l&&{headers:l}),!(null==t?void 0:t.disableValidation)){if(u.query&&(a.query=await eo(u.query,null==t?void 0:t.query),null!==a.query&&"object"==typeof a.query)){let e=el({},n.query);for(let r of Object.keys(e))(null==t?void 0:t.query)&&Object.prototype.hasOwnProperty.call(t.query,r)&&(e[r]=t.query[r]);a.query=el(el({},e),a.query)}a=el(el({},a),{},{body:u.input?await eo(u.input,null==t?void 0:t.body):null==t?void 0:t.body,params:u.params?await eo(u.params,null==t?void 0:t.params):null==t?void 0:t.params})}return{url:e,options:a}}}return el({url:e},(void 0!==t||void 0!==n.query)&&{options:a})}}),...(null==r?void 0:r.plugins)||[]]});if(null==t?void 0:t.catchAllError)try{return await eu(e,i)}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 eu(e,i)}),{$sessionSignal:B,session:k,broadcastSessionUpdate:V}=(n=q(!1),o=0,s=0,n.listen(()=>{s++,o=0}),S(u=q({data:null,error:null,isPending:!0,isRefetching:!1,refetch:l=e=>d(e)}),x),c=async(e,t)=>{let r=u.value;if(u.set({...r,isPending:null===r.data,isRefetching:!0,error:null,refetch:l}),e.aborted)return"aborted";try{var n;let r=await F("/get-session",{method:"GET",query:t?.query,signal:e});if(e.aborted)return"aborted";let{data:i,error:o}=M(r),s="fresh";if(i?.needsRefresh)try{let t=await F("/get-session",{method:"POST",signal:e});if(e.aborted)return"aborted";({data:i,error:o}=M(t))}catch{if(e.aborted)return"aborted";s="stale"}if(o){let e=u.value,t=o?.status===401;return u.set({data:t?null:e.data,error:o,isPending:!1,isRefetching:!1,refetch:l}),"failed"}let a=(n=i)&&(null!==n.session||null!==n.user)?n:null,c=u.value,d=null!=c.data&&null!=a&&m(c.data,a)?c.data:a;return u.set({data:d,error:null,isPending:!1,isRefetching:!1,refetch:l}),s}catch(r){if(e.aborted)return"aborted";let t=u.value;return u.set({data:t.data,error:r,isPending:!1,isRefetching:!1,refetch:l}),"failed"}},d=e=>{o=0,r?.cancel();let t=new AbortController,n={cancel:()=>t.abort(),promise:Promise.resolve().then(()=>t.signal.aborted?"aborted":c(t.signal,e)),revision:s};r=n;let i=e=>{if(r===n){let t,i;r=void 0,"fresh"===e&&n.revision===s&&(i=(t=u.value.data?.session?.expiresAt)instanceof Date?t.getTime():1/0,o=Math.min(Date.now()+1e3,i))}};return n.promise.then(i,()=>i("failed")),n.promise.then(()=>void 0)},p=()=>{},_(u,()=>{let t;"u"<typeof window||(t=setTimeout(()=>{r?.revision===s?r.promise.then(()=>void 0):Date.now()<o?Promise.resolve():d()},0));let i=function(e){let{fetchSession:t,shouldPollSession:r=()=>!0,sessionSignal:n,options:i={}}=e,o=i.sessionOptions?.refetchInterval??0,s=i.sessionOptions?.refetchOnWindowFocus??!0,a=i.sessionOptions?.refetchWhenOffline??!1,l={isInitialized:!1,lastSessionRequest:0},u=e=>{if(a||C().isOnline){if(e?.event==="storage")return void t();if(e?.event==="poll"){l.lastSessionRequest=j(),t();return}if(e?.event==="visibilitychange"){if(j()-l.lastSessionRequest<5)return;l.lastSessionRequest=j(),t();return}t()}};return{init:()=>{l.isInitialized||(l.isInitialized=!0,o&&o>0&&(l.pollInterval=setInterval(()=>{r()&&u({event:"poll"})},1e3*o)),l.unsubscribeBroadcast=L().subscribe(()=>{u({event:"storage"})}),s&&(l.unsubscribeFocus=N().subscribe(()=>{u({event:"visibilitychange"})})),l.unsubscribeOnline=C().subscribe(e=>{e&&u({event:"visibilitychange"})}),l.unsubscribeSignal=n.listen(()=>{t()}),l.cleanupBroadcastSetup=L().setup(),l.cleanupFocusSetup=N().setup(),l.cleanupOnlineSetup=C().setup())},cleanup:()=>{l.isInitialized&&(l.pollInterval&&(clearInterval(l.pollInterval),l.pollInterval=void 0),l.unsubscribeBroadcast&&(l.unsubscribeBroadcast(),l.unsubscribeBroadcast=void 0),l.unsubscribeFocus&&(l.unsubscribeFocus(),l.unsubscribeFocus=void 0),l.unsubscribeOnline&&(l.unsubscribeOnline(),l.unsubscribeOnline=void 0),l.unsubscribeSignal&&(l.unsubscribeSignal(),l.unsubscribeSignal=void 0),l.cleanupBroadcastSetup&&(l.cleanupBroadcastSetup(),l.cleanupBroadcastSetup=void 0),l.cleanupFocusSetup&&(l.cleanupFocusSetup(),l.cleanupFocusSetup=void 0),l.cleanupOnlineSetup&&(l.cleanupOnlineSetup(),l.cleanupOnlineSetup=void 0),l.isInitialized=!1,l.lastSessionRequest=0)},triggerRefetch:u,broadcastSessionUpdate:e=>{L().post({event:"session",data:{trigger:e},clientId:Math.random().toString(36).substring(7)})}}}({fetchSession:d,shouldPollSession:()=>null!=u.value.data,sessionSignal:n,options:e});return i.init(),p=i.broadcastSessionUpdate,()=>{t&&clearTimeout(t),i.cleanup()}}),{session:u,$sessionSignal:n,broadcastSessionUpdate:e=>p(e)}),H=!1,G=e?.plugins||[],W={},Y={$sessionSignal:B,session:k}
1,K={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},X=[{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?V("signout"):("/update-user"===e||"/update-session"===e)&&V("updateUser")}}];for(let e of G)e.getAtoms&&Object.assign(Y,e.getAtoms?.(F)),e.pathMethods&&Object.assign(K,e.pathMethods),e.atomListeners&&X.push(...e.atomListeners);let J={notify:e=>{Y[e].set(!Y[e].get())},listen:(e,t)=>{Y[e].subscribe(t)},atoms:Y};for(let t of G)t.getActions&&(W=$(t.getActions?.(F,J,e)??{},W));return{get baseURL(){return O},pluginsActions:W,pluginsAtoms:Y,pluginPathMethods:K,atomListeners:X,hydrateSession:e=>{H||null===e||(H=!0,function(e,t){if("u"<typeof window)return;let r=e.get();null===r.data&&null!==t&&e.set({...r,data:t,error:null,isPending:!1})}(k,e))},$sessionSignal:B,$fetch:F,$store:J}})(e),d={};for(let[e,t]of Object.entries(o))d[function(e){return`use${e.charAt(0).toUpperCase()+e.slice(1)}`}(e)]=()=>(function(e,t={}){let r=(0,eE.useRef)(e.get()),{keys:n,deps:i=[e,n]}=t,o=(0,eE.useCallback)(t=>{let i=e=>{r.current!==e&&(r.current=e,t())};if(i(e.value),n?.length){let t;return t=new Set(n),e.listen((e,r,o)=>{(void 0===o?n.some(t=>void 0===r||e[t]!==r[t]||ep(e,t)!==ep(r,t)):t.has(o)||t.has(o.split(/\.|\[/)[0]))&&i(e)})}return e.listen(i)},i),s=()=>r.current;return(0,eE.useSyncExternalStore)(o,s,s)})(t);return t={...n,...d,hydrateSession:s,$fetch:l,$store:u},function e(n=[]){return new Proxy(function(){},{get(r,i){var o;if("string"!=typeof i||"then"===i||"catch"===i||"finally"===i)return;let s=[...n,i],a=t;for(let e of s)if(a&&"object"==typeof a&&e in a)a=a[e];else{a=void 0;break}return"function"==typeof a?a:"object"==typeof(o=a)&&null!==o&&"get"in o&&"function"==typeof o.get&&"lc"in o&&"number"==typeof o.lc?a:e(s)},apply:async(e,t,i)=>{let s="/"+n.map(ef).join("/"),a=i[0]||{},u=i[1]||{},{query:d,fetchOptions:f,...p}=a,h={...u,...f},E=function(e,t,r){let n=t[e],{fetchOptions:i,query:o,...s}=r||{};return n||(i?.method?i.method:s&&Object.keys(s).length>0?"POST":"GET")}(s,r,a);return await l(s,{...h,body:"GET"===E?void 0:{...p,...h?.body||{}},query:d||h?.query,method:E,async onSuccess(e){if(await h?.onSuccess?.(e),!c||h.disableSignal)return;let t=c.filter(e=>e.matcher(s));if(!t.length)return;let r=new Set;for(let e of t){let t=o[e.signal];if(!t)return;if(r.has(e.signal))continue;r.add(e.signal);let n=t.get();setTimeout(()=>{t.set(!n)},10),e.callback?.(s)}}})}})}()}({plugins:[{id:"email-otp",version:"1.7.5",$InferServerPlugin:{},atomListeners:[{matcher:e=>"/email-otp/verify-email"===e||"/sign-in/email-otp"===e||"/email-otp/request-email-change"===e,signal:"$sessionSignal"}],$ERROR_CODES:u({OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",TOO_MANY_ATTEMPTS:"Too many attempts"})},(t=q(null),{id:"user-plugin",$InferServerPlugin:{},getAtoms:e=>{var r,n;let i,o,s,a,l,u;return{user:(r=t,n={method:"GET"},_(i=q({data:null,error:null,isPending:!0,isRefetching:!1,refetch:e=>o(e)}
1),()=>S(i,ey)),o=async t=>new Promise(r=>{let o="function"==typeof n?n({data:i.get().data,error:i.get().error,isPending:i.get().isPending}):n;e("/user/get-data",{...o,query:{...o?.query,...t?.query},async onSuccess(e){let t=i.get(),r=null!=t.data&&null!=e.data&&m(t.data,e.data)?t.data:e.data;i.set({data:r,error:null,isPending:!1,isRefetching:!1,refetch:i.value.refetch}),await o?.onSuccess?.(e)},async onError(e){let{request:t}=e,r="number"==typeof t.retry?t.retry:t.retry?.attempts,n=t.retryAttempt||0;if(r&&n<r)return;let s=401===e.error.status;i.set({error:e.error,data:s?null:i.get().data,isPending:!1,isRefetching:!1,refetch:i.value.refetch}),await o?.onError?.(e)},async onRequest(e){let t=i.get();i.set({isPending:null===t.data,data:t.data,error:null,isRefetching:!0,refetch:i.value.refetch}),await o?.onRequest?.(e)}}).catch(e=>{i.set({error:e,data:i.get().data,isPending:!1,isRefetching:!1,refetch:i.value.refetch})}).finally(()=>{r(void 0)})}),r=Array.isArray(r)?r:[r],s=!1,a=!1,l=!1,u=()=>{if(s){l=!0;return}s=!0,o().finally(()=>{s=!1;let e=l&&a;l=!1,e&&u()})},_(i,()=>{let e;if("u"<typeof window)return;a=!0;let t=!1,n=r.map(r=>r.listen(()=>{t?o():(t=!0,clearTimeout(e),u())}));return e=setTimeout(()=>{t=!0,u()},0),()=>{for(let e of(a=!1,n))e();clearTimeout(e)}}),i),$userSignal:t}},atomListeners:[{matcher:e=>"/sign-out"===e||"/update-user"===e||"/delete-user"===e||e.startsWith("/sign-in")||e.startsWith("/sign-up"),signal:"$userSignal"}]})]});e.s(["authClient",0,eT],267985),e.s(["useSessionUser",0,function(){let{data:e,error:t,isPending:r,refetch:n}=eT.useUser();return{user:e,error:t,isPending:r,refetch:n}}],875628)}]);

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.