PageSourceSearch

https://app.instantcompliance.ai/_next/static/chunks/1tju63iucq10g.js?dpl=dpl_Hp5h1EF55gyJ9sEwcqUgnNZEAYHs

js instantcompliance.ai collected 2026-09-24 14:29:58 UTC 113,056 bytes, 8 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,385717,(e,t,r)=>{"use strict";function i(e,t,r){if(e){for(let i of(r&&(r=r.toLowerCase()),e))if(t===i.domain?.split(":",1)[0].toLowerCase()||r===i.defaultLocale.toLowerCase()||i.locales?.some(e=>e.toLowerCase()===r))return i}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"detectDomainLocale",{enumerable:!0,get:function(){return i}})},364943,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addPathSuffix",{enumerable:!0,get:function(){return n}});let i=e.r(247585);function n(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:o}=(0,i.parsePath)(e);return`${r}${t}${n}${o}`}},589398,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return o}});let i=e.r(691080),n=e.r(792540);function o(e,t,r,o){if(!t||t===r)return e;let a=e.toLowerCase();return!o&&((0,n.pathHasPrefix)(a,"/api")||(0,n.pathHasPrefix)(a,`/${t.toLowerCase()}`))?e:(0,i.addPathPrefix)(e,`/${t}`)}},939989,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"formatNextPathnameInfo",{enumerable:!0,get:function(){return s}});let i=e.r(998149),n=e.r(691080),o=e.r(364943),a=e.r(589398);function s(e){let t=(0,a.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,i.removeTrailingSlash)(t)),e.buildId&&(t=(0,o.addPathSuffix)((0,n.addPathPrefix)(t,`/_next/data/${e.buildId}`),"/"===e.pathname?"index.json":".json")),t=(0,n.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,o.addPathSuffix)(t,"/"):(0,i.removeTrailingSlash)(t)}},310634,(e,t,r)=>{"use strict";function i(e,t){let r;if(t?.host&&!Array.isArray(t.host))r=t.host.toString().split(":",1)[0];else{if(!e.hostname)return;r=e.hostname}return r.toLowerCase()}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getHostname",{enumerable:!0,get:function(){return i}})},922896,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let i=new WeakMap;function n(e,t){let r;if(!t)return{pathname:e};let n=i.get(t);n||(n=t.map(e=>e.toLowerCase()),i.set(t,n));let o=e.split("/",2);if(!o[1])return{pathname:e};let a=o[1].toLowerCase(),s=n.indexOf(a);return s<0?{pathname:e}:(r=t[s],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}},272183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removePathPrefix",{enumerable:!0,get:function(){return n}});let i=e.r(792540);function n(e,t){if(!(0,i.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}},225448,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getNextPathnameInfo",{enumerable:!0,get:function(){return a}});let i=e.r(922896),n=e.r(272183),o=e.r(792540);function a(e,t){let{basePath:r,i18n:a,trailingSlash:s}=t.nextConfig??{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};r&&(0,o.pathHasPrefix)(c.pathname,r)&&(c.pathname=(0,n.removePathPrefix)(c.pathname,r),c.basePath=r);let l=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");c.buildId=e[0],l="index"!==e[1]?`/${e.slice(1).join("/")}`:"/",!0===t.parseData&&(c.pathname=l)}if(a){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,i.normalizeLocalePath)(c.pathname,a.locales);c.locale=e.detectedLocale,c.pathname=e.pathname??c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(l):(0,i.normalizeLocalePath)(l,a.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},674144,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NextURL",{enumerable:!0,get:function(){return u}});let i=e.r(385717),n=e.r(939989),o=e.r(310634),a=e.r(225448),s=/^(?:127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)$/;function c(e,t){let r=new URL(String(e),t&&String(t));return s.test(r.hostname)&&(r.hostname="localhost"),r}let l=Symbol("NextURLInternal");class u{constructor(e,t,r){let i,n;"object"==typeof t&&"pathname"in t||"string"==typeof t?(i=t,n=r||{}):n=r||t||{},this[l]={url:c(e,i??n.base),options:n,basePath:""},this.analyze()}analyze(){var e,t,r,n,s;let c=(0,a.getNextPathnameInfo)(this[l].url.pathname,{nextConfig:this[l].options.nextConfig,parseData:!0,i18nProvider:this[l].options.i18nProvider}),u=(0,o.getHostname)(this[l].url,this[l].options.headers);this[l].domainLocale=this[l].options.i18nProvider?this[l].options.i18nProvider.detectDomainLocale(u):(0,i.detectDomainLocale)(null==(t=this[l].options.nextConfig)||null==(e=t.i18n)?void 0:e.domains,u);let d=(null==(r=this[l].domainLocale)?void 0:r.defaultLocale)||(null==(s=this[l].options.nextConfig)||null==(n=s.i18n)?void 0:n.defaultLocale);this[l].url.pathname=c.pathname,this[l].defaultLocale=d,this[l].basePath=c.basePath??"",this[l].buildId=c.buildId,this[l].locale=c.locale??d,this[l].trailingSlash=c.trailingSlash}formatPathname(){return(0,n.formatNextPathnameInfo)({basePath:this[l].basePath,buildId:this[l].buildId,defaultLocale:this[l].options.forceLocale?void 0:this[l].defaultLocale,locale:this[l].locale,pathname:this[l].url.pathname,trailingSlash:this[l].trailingSlash})}formatSearch(){return this[l].url.search}get buildId(){return this[l].buildId}set buildId(e){this[l].buildId=e}get locale(){return this[l].locale??""}set locale(e){var t,r;if(!this[l].locale||!(null==(r=this[l].options.nextConfig)||null==(t=r.i18n)?void 0:t.locales.includes(e)))throw Object.defineProperty(TypeError(`The NextURL configuration includes no locale "${e}
1"`),"__NEXT_ERROR_CODE",{value:"E597",enumerable:!1,configurable:!0});this[l].locale=e}get defaultLocale(){return this[l].defaultLocale}get domainLocale(){return this[l].domainLocale}get searchParams(){return this[l].url.searchParams}get host(){return this[l].url.host}set host(e){this[l].url.host=e}get hostname(){return this[l].url.hostname}set hostname(e){this[l].url.hostname=e}get port(){return this[l].url.port}set port(e){this[l].url.port=e}get protocol(){return this[l].url.protocol}set protocol(e){this[l].url.protocol=e}get href(){let e=this.formatPathname(),t=this.formatSearch();return`${this.protocol}//${this.host}${e}${t}${this.hash}`}set href(e){this[l].url=c(e),this.analyze()}get origin(){return this[l].url.origin}get pathname(){return this[l].url.pathname}set pathname(e){this[l].url.pathname=e}get hash(){return this[l].url.hash}set hash(e){this[l].url.hash=e}get search(){return this[l].url.search}set search(e){this[l].url.search=e}get password(){return this[l].url.password}set password(e){this[l].url.password=e}get username(){return this[l].url.username}set username(e){this[l].url.username=e}get basePath(){return this[l].basePath}set basePath(e){this[l].basePath=e.startsWith("/")?e:`/${e}`}toString(){return this.href}toJSON(){return this.href}[Symbol.for("edge-runtime.inspect.custom")](){return{href:this.href,origin:this.origin,protocol:this.protocol,username:this.username,password:this.password,host:this.host,hostname:this.hostname,port:this.port,pathname:this.pathname,search:this.search,searchParams:this.searchParams,hash:this.hash}}clone(){return new u(String(this),this[l].options)}}},811924,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={fromNodeOutgoingHttpHeaders:function(){return a},normalizeNextQueryParam:function(){return u},splitCookiesString:function(){return s},toNodeOutgoingHttpHeaders:function(){return c},validateURL:function(){return l}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let o=e.r(49718);function a(e){let t=new Headers;for(let[r,i]of Object.entries(e))for(let e of Array.isArray(i)?i:[i])void 0!==e&&("number"==typeof e&&(e=e.toString()),t.append(r,e));return t}function s(e){var t,r,i,n,o,a=[],s=0;function c(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,o=!1;c();)if(","===(r=e.charAt(s))){for(i=s,s+=1,c(),n=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(o=!0,s=n,a.push(e.substring(t,i)),t=s):s=i+1}else s+=1;(!o||s>=e.length)&&a.push(e.substring(t,e.length))}return a}function c(e){let t={},r=[];if(e)for(let[i,n]of e.entries())"set-cookie"===i.toLowerCase()?(r.push(...s(n)),t[i]=1===r.length?r[0]:r):t[i]=n;return t}function l(e){try{return String(new URL(String(e)))}catch(t){throw Object.defineProperty(Error(`URL is malformed "${String(e)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,{cause:t}),"__NEXT_ERROR_CODE",{value:"E61",enumerable:!1,configurable:!0})}}function u(e){for(let t of[o.NEXT_QUERY_PARAM_PREFIX,o.NEXT_INTERCEPTION_MARKER_PREFIX])if(e!==t&&e.startsWith(t))return e.substring(t.length);return null}},399934,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={PageSignatureError:function(){return o},RemovedPageError:function(){return a},RemovedUAError:function(){return s}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});class o extends Error{constructor({page:e}){super(`The middleware "${e}" accepts an async API directly with the form:
2  
3  export function middleware(request, event) {
4    return NextResponse.redirect('/new-location')
5  }
6  
7  Read more: https://nextjs.org/docs/messages/middleware-new-signature
8  `)}}class a extends Error{constructor(){super("The request.page has been deprecated in favour of `URLPattern`.\n  Read more: https://nextjs.org/docs/messages/middleware-request-page\n  ")}}class s extends Error{constructor(){super("The request.ua has been removed in favour of `userAgent` function.\n  Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent\n  ")}}},705354,(e,t,r)=>{"use strict";
8Object.defineProperty(r,"__esModule",{value:!0});var i={INTERNALS:function(){return l},NextRequest:function(){return u}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let o=e.r(674144),a=e.r(811924),s=e.r(399934),c=e.r(943783),l=Symbol("internal request");class u extends Request{constructor(e,t={}){const r="string"!=typeof e&&"url"in e?e.url:String(e);(0,a.validateURL)(r),t.body&&"half"!==t.duplex&&(t.duplex="half"),e instanceof Request?super(e,t):super(r,t);const i=new o.NextURL(r,{headers:(0,a.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:t.nextConfig});this[l]={cookies:new c.RequestCookies(this.headers),nextUrl:i,url:i.toString()}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,nextUrl:this.nextUrl,url:this.url,bodyUsed:this.bodyUsed,cache:this.cache,credentials:this.credentials,destination:this.destination,headers:Object.fromEntries(this.headers),integrity:this.integrity,keepalive:this.keepalive,method:this.method,mode:this.mode,redirect:this.redirect,referrer:this.referrer,referrerPolicy:this.referrerPolicy,signal:this.signal}}get cookies(){return this[l].cookies}get nextUrl(){return this[l].nextUrl}get page(){throw new s.RemovedPageError}get ua(){throw new s.RemovedUAError}get url(){return this[l].url}}},813523,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NextResponse",{enumerable:!0,get:function(){return d}});let i=e.r(943783),n=e.r(674144),o=e.r(811924),a=e.r(580422),s=e.r(943783),c=Symbol("internal response"),l=new Set([301,302,303,307,308]);function u(e,t){var r;if(null==e||null==(r=e.request)?void 0:r.headers){if(!(e.request.headers instanceof Headers))throw Object.defineProperty(Error("request.headers must be an instance of Headers"),"__NEXT_ERROR_CODE",{value:"E119",enumerable:!1,configurable:!0});let r=[];for(let[i,n]of e.request.headers)t.set("x-middleware-request-"+i,n),r.push(i);t.set("x-middleware-override-headers",r.join(","))}}class d extends Response{constructor(e,t={}){super(e,t);const r=this.headers,l=new Proxy(new s.ResponseCookies(r),{get(e,n,o){switch(n){case"delete":case"set":return(...o)=>{let a=Reflect.apply(e[n],e,o),c=new Headers(r);return a instanceof s.ResponseCookies&&r.set("x-middleware-set-cookie",a.getAll().map(e=>(0,i.stringifyCookie)(e)).join(",")),u(t,c),a};default:return a.ReflectAdapter.get(e,n,o)}}});this[c]={cookies:l,url:t.url?new n.NextURL(t.url,{headers:(0,o.toNodeOutgoingHttpHeaders)(r),nextConfig:t.nextConfig}):void 0}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,url:this.url,body:this.body,bodyUsed:this.bodyUsed,headers:Object.fromEntries(this.headers),ok:this.ok,redirected:this.redirected,status:this.status,statusText:this.statusText,type:this.type}}get cookies(){return this[c].cookies}static json(e,t){let r=Response.json(e,t);return new d(r.body,r)}static redirect(e,t){let r="number"==typeof t?t:(null==t?void 0:t.status)??307;if(!l.has(r))throw Object.defineProperty(RangeError('Failed to execute "redirect" on "response": Invalid status code'),"__NEXT_ERROR_CODE",{value:"E529",enumerable:!1,configurable:!0});let i="object"==typeof t?t:{},n=new Headers(null==i?void 0:i.headers);return n.set("Location",(0,o.validateURL)(e)),new d(null,{...i,headers:n,status:r})}static rewrite(e,t){let r=new Headers(null==t?void 0:t.headers);return r.set("x-middleware-rewrite",(0,o.validateURL)(e)),u(t,r),new d(null,{...t,headers:r})}static next(e){let t=new Headers(null==e?void 0:e.headers);return t.set("x-middleware-next","1"),u(e,t),new d(null,{...e,headers:t})}}},839724,(e,t,r)=>{"use strict";function i(){throw Object.defineProperty(Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead'),"__NEXT_ERROR_CODE",{value:"E183",enumerable:!1,configurable:!0})}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageResponse",{enumerable:!0,get:function(){return i}})},749847,(e,t,r)=>{var i={226:function(t,r){!function(i){"use strict";var n="function",o="undefined",a="object",s="string",c="major",l="model",u="name",d="type",p="vendor",h="version",f="architecture",m="console",y="mobile",b="tablet",g="smarttv",w="wearable",_="embedded",v="Amazon",E="Apple",x="ASUS",S="BlackBerry",k="Browser",A="Chrome",C="Firefox",P="Google",R="Huawei",O="Microsoft",j="Motorola",T="Opera",I="Samsung",N="Sharp",D="Sony",U="Xiaomi",K="Zebra",W="Facebook",M="Chromium OS",$="Mac OS",L=function(e,t){var r={};for(var i in e)t[i]&&t[i].length%2==0?r[i]=t[i].concat(e[i]):r[i]=e[i];return r},H=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},F=function(e,t){return typeof e===s&&-1!==q(t).indexOf(q(e))},q=function(e){return e.toLowerCase()},B=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,350)},J=function(e,t){for(var r,i,o,s,c,l,u=0;u<t.length&&!c;){var d=t[u],p=t[u+1];for(r=i=0;r<d.length&&!c&&d[r];)if(c=d[r++].exec(e))for(o=0;o<p.length;o++)l=c[++i],typeof(s=p[o])===a&&s.length>0?2===s.length?typeof s[1]==n?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==n||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):void 0:this[s[0]]=l?s[1].call(this,l,s[2]):void 0:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):void 0):this[s]=l||void 0;u+=2}},z=function(e,t){for(var r in t)if(typeof t[r]===a&&t[r].length>0){for(var i=0;i<t[r].length;i++)if(F(t[r][i],e))return"?"===r?void 0:r}else if(F(t[r],e))return"?"===r?void 0:r;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,h],[/opios[\/ ]+([\w\.]+)/i],[h,[u,T+" Mini"]],[/\bopr\/([\w\.]+)/i],[h,[u,T]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,h],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[u,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[h,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[h,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+
vendor: 6,130 bytes, line 8
8)/,"$1 Secure "+k],h],[/\bfocus\/([\w\.]+)/i],[h,[u,C+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[u,T+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[u,T+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[u,"MIUI "+k]],[/fxios\/([-\w\.]+)/i],[h,[u,C]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+k]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+k],h],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,h],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,W],h],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[u,A+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,A+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[u,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[h,z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[u,C+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[u,h],[/(cobalt)\/([\w\.]+)/i],[u,[h,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,q]],[/((?:i[346]|x)86)[;\)]/i],[[f,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/windows (ce|mobile); ppc;/i],[[f,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[f,/ower/,"",q]],[/(sun4\w)[;\)]/i],[[f,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[f,q]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[p,I],[d,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[p,I],[d,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[p,E],[d,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[p,E],[d,b]],[/(macintosh);/i],[l,[p,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[p,N],[d,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[p,R],[d,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[p,R],[d,y]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[p,U],[d,y]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[p,U],[d,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[p,"OPPO"],[d,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[p,"Vivo"],[d,y]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[l,[p,"Realme"],[d,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[p,j],[d,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[p,j],[d,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[p,"LG"],[d,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[p,"LG"],[d,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[p,"Lenovo"],[d,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[p,"Nokia"],[d,y]],[/(pixel c)\b/i],[l,[p,P],[d,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[p,P],[d,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[p,D],[d,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[p,D],[d,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[p,"OnePlus"],[d,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[p,v],[d,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[p,v],[d,y]],[/(playbook);[-\w\),; ]+(rim)/i],[l,p,[d,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[p,S],[d,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[p,x],[d,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[p,x],[d,y]],[/(nexus 9)/i],[l,[p,"HTC"],[d,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[l,/_/g," "],[d,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[p,"Acer"],[d,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[p,"Meizu"],[d,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 3,691 bytes, line 8
8s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,l,[d,y]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,l,[d,b]],[/(surface duo)/i],[l,[p,O],[d,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[p,"Fairphone"],[d,y]],[/(u304aa)/i],[l,[p,"AT&T"],[d,y]],[/\bsie-(\w*)/i],[l,[p,"Siemens"],[d,y]],[/\b(rct\w+) b/i],[l,[p,"RCA"],[d,b]],[/\b(venue[\d ]{2,7}) b/i],[l,[p,"Dell"],[d,b]],[/\b(q(?:mv|ta)\w+) b/i],[l,[p,"Verizon"],[d,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[p,"Barnes & Noble"],[d,b]],[/\b(tm\d{3}\w+) b/i],[l,[p,"NuVision"],[d,b]],[/\b(k88) b/i],[l,[p,"ZTE"],[d,b]],[/\b(nx\d{3}j) b/i],[l,[p,"ZTE"],[d,y]],[/\b(gen\d{3}) b.+49h/i],[l,[p,"Swiss"],[d,y]],[/\b(zur\d{3}) b/i],[l,[p,"Swiss"],[d,b]],[/\b((zeki)?tb.*\b) b/i],[l,[p,"Zeki"],[d,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],l,[d,b]],[/\b(ns-?\w{0,9}) b/i],[l,[p,"Insignia"],[d,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[p,"NextBook"],[d,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],l,[d,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],l,[d,y]],[/\b(ph-1) /i],[l,[p,"Essential"],[d,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[p,"Envizen"],[d,b]],[/\b(trio[-\w\. ]+) b/i],[l,[p,"MachSpeed"],[d,b]],[/\btu_(1491) b/i],[l,[p,"Rotor"],[d,b]],[/(shield[\w ]+) b/i],[l,[p,"Nvidia"],[d,b]],[/(sprint) (\w+)/i],[p,l,[d,y]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[p,O],[d,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[p,K],[d,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[p,K],[d,y]],[/smart-tv.+(samsung)/i],[p,[d,g]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[p,I],[d,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,"LG"],[d,g]],[/(apple) ?tv/i],[p,[l,E+" TV"],[d,g]],[/crkey/i],[[l,A+"cast"],[p,P],[d,g]],[/droid.+aft(\w)( bui|\))/i],[l,[p,v],[d,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[p,N],[d,g]],[/(bravia[\w ]+)( bui|\))/i],[l,[p,D],[d,g]],[/(mitv-\w{5}) bui/i],[l,[p,U],[d,g]],[/Hbbtv.*(technisat) (.*);/i],[p,l,[d,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,B],[l,B],[d,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,l,[d,m]],[/droid.+; (shield) bui/i],[l,[p,"Nvidia"],[d,m]],[/(playstation [345portablevi]+)/i],[l,[p,D],[d,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[p,O],[d,m]],[/((pebble))app/i],[p,l,[d,w]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[p,E],[d,w]],[/droid.+; (glass) \d/i],[l,[p,P],[d,w]],[/droid.+; (wt63?0{2,3})\)/i],[l,[p,K],[d,w]],[/(quest( 2| pro)?)/i],[l,[p,W],[d,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[d,_]],[/(aeobc)\b/i],[l,[p,v],[d,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[d,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[d,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,y]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,h],[/rv\
8:([\w\.]{1,9})\b.+(gecko)/i],[h,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,h],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[h,z,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[h,z,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,$],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,h],[/\(bb(10);/i],[h,[u,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[u,C+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[u,A+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,M],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,h],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,h]]},V=function(e,t){if(typeof e===a&&(t=e,e=void 0),!(this instanceof V))return new V(e,t).getResult();var r=typeof i!==o&&i.navigator?i.navigator:void 0,m=e||(r&&r.userAgent?r.userAgent:""),g=r&&r.userAgentData?r.userAgentData:void 0,w=t?L(X,t):X,_=r&&r.userAgent==m;return this.getBrowser=function(){var e,t={};return t[u]=void 0,t[h]=void 0,J.call(t,m,w.browser),t[c]=typeof(e=t[h])===s?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,_&&r&&r.brave&&typeof r.brave.isBrave==n&&(t[u]="Brave"),t},this.getCPU=function(){var e={};return e[f]=void 0,J.call(e,m,w.cpu),e},this.getDevice=function(){var e={};return e[p]=void 0,e[l]=void 0,e[d]=void 0,J.call(e,m,w.device),_&&!e[d]&&g&&g.mobile&&(e[d]=y),_&&"Macintosh"==e[l]&&r&&typeof r.standalone!==o&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[l]="iPad",e[d]=b),e},this.getEngine=function(){var e={};return e[u]=void 0,e[h]=void 0,J.call(e,m,w.engine),e},this.getOS=function(){var e={};return e[u]=void 0,e[h]=void 0,J.call(e,m,w.os),_&&!e[u]&&g&&"Unknown"!=g.platform&&(e[u]=g.platform.replace(/chrome os/i,M).replace(/macos/i,$)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return m},this.setUA=function(e){return m=typeof e===s&&e.length>350?B(e,350):e,this},this.setUA(m),this};if(V.VERSION="1.0.35",V.BROWSER=H([u,h,c]),V.CPU=H([f]),V.DEVICE=H([l,p,d,m,y,g,b,w,_]),V.ENGINE=V.OS=H([u,h]),typeof r!==o)t.exports&&(r=t.exports=V),r.UAParser=V;else if(typeof define===n&&define.amd)e.r,void 0!==V&&e.v(V);else typeof i!==o&&(i.UAParser=V);var Y=typeof i!==o&&(i.jQuery||i.Zepto);if(Y&&!Y.ua){var Z=new V;Y.ua=Z.getResult(),Y.ua.get=function(){return Z.getUA()},Y.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var r in t)Y.ua[r]=t[r]}}}("object"==typeof window?window:this)}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}},a=!0;try{i[e].call(r.exports,r,r.exports,o),a=!1}finally{a&&delete n[e]}return r.exports}o.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/ua-parser-js/",t.exports=o(226)},750322,(e,t,r)=>{"use strict";
8Object.defineProperty(r,"__esModule",{value:!0});var i,n={isBot:function(){return s},userAgent:function(){return l},userAgentFromString:function(){return c}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=(i=e.r(749847))&&i.__esModule?i:{default:i};function s(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver|GPTBot/i.test(e)}function c(e){return{...(0,a.default)(e),isBot:void 0!==e&&s(e)}}function l({headers:e}){return c(e.get("user-agent")||void 0)}},33408,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"URLPattern",{enumerable:!0,get:function(){return i}});let i="u"<typeof URLPattern?void 0:URLPattern},653892,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"after",{enumerable:!0,get:function(){return n}});let i=e.r(919318);function n(e){let t=i.workAsyncStorage.getStore();if(!t)throw Object.defineProperty(Error("`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context"),"__NEXT_ERROR_CODE",{value:"E468",enumerable:!1,configurable:!0});let{afterContext:r}=t;return r.after(e)}},716745,(e,t,r)=>{"use strict";var i,n;Object.defineProperty(r,"__esModule",{value:!0}
8),i=e.r(653892),n=r,Object.keys(i).forEach(function(e){"default"===e||Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:function(){return i[e]}})})},290616,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"connection",{enumerable:!0,get:function(){return u}});let i=e.r(919318),n=e.r(206689),o=e.r(551382),a=e.r(743959),s=e.r(590868),c=e.r(293407);e.r(884867);let l=e.r(835624);function u(){let e=i.workAsyncStorage.getStore(),t=n.workUnitAsyncStorage.getStore();if(e){if(t&&"after"===t.phase&&!(0,c.isRequestAPICallableInsideAfter)())throw Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside \`after()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but \`after()\` executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E827",enumerable:!1,configurable:!0});if(e.forceStatic)return Promise.resolve(void 0);if(e.dynamicShouldError)throw Object.defineProperty(new a.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E847",enumerable:!1,configurable:!0});if(t)switch(t.type){case"cache":{let t=Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual request, but caches must be able to be produced before a request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E841",enumerable:!1,configurable:!0});throw Error.captureStackTrace(t,u),e.invalidDynamicUsageError??=t,t}case"private-cache":{let t=Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside "use cache: private". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual navigation request, but caches must be able to be produced before a navigation request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E837",enumerable:!1,configurable:!0});throw Error.captureStackTrace(t,u),e.invalidDynamicUsageError??=t,t}case"unstable-cache":throw Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside a function cached with \`unstable_cache()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E840",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1125",enumerable:!1,configurable:!0});case"prerender":case"prerender-client":case"prerender-runtime":return(0,s.makeHangingPromise)(t.renderSignal,e.route,"`connection()`");case"validation-client":{let e="`connection`";throw Object.defineProperty(new l.InvariantError(`${e} must not be used within a Client Component. Next.js should be preventing ${e} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1063",enumerable:!1,configurable:!0})}case"prerender-ppr":return(0,o.postponeWithTracking)(e.route,"connection",t.dynamicTracking);case"prerender-legacy":return(0,o.throwToInterruptStaticGeneration)("connection",e,t);case"request":if((0,o.trackDynamicDataInDynamicRender)(t),t.asyncApiPromises)return t.asyncApiPromises.connection;return Promise.resolve(void 0)}}(0,n.throwForMissingRequestStore)("connection")}},798398,(e,t,r)=>{let i={NextRequest:e.r(705354).NextRequest,NextResponse:e.r(813523).NextResponse,ImageResponse:e.r(839724).ImageResponse,userAgentFromString:e.r(750322).userAgentFromString,userAgent:e.r(750322).userAgent,URLPattern:e.r(33408).URLPattern,after:e.r(716745).after,connection:e.r(290616).connection};t.exports=i,r.NextRequest=i.NextRequest,r.NextResponse=i.NextResponse,r.ImageResponse=i.ImageResponse,r.userAgentFromString=i.userAgentFromString,r.userAgent=i.userAgent,r.URLPattern=i.URLPattern,r.after=i.after,r.connection=i.connection},395937,(e,t,r)=>{"use strict";
8Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"cookies",{enumerable:!0,get:function(){return h}});let i=e.r(23920),n=e.r(943783),o=e.r(919318),a=e.r(206689),s=e.r(551382),c=e.r(743959),l=e.r(590868),u=e.r(477854),d=e.r(293407),p=e.r(835624);function h(){let e="cookies",t=o.workAsyncStorage.getStore(),r=a.workUnitAsyncStorage.getStore();if(t){if(r&&"after"===r.phase&&!(0,d.isRequestAPICallableInsideAfter)())throw Object.defineProperty(Error(`Route ${t.route} used \`cookies()\` inside \`after()\`. This is not supported. If you need this data inside an \`after()\` callback, use \`cookies()\` outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E843",enumerable:!1,configurable:!0});if(t.forceStatic)return m(i.RequestCookiesAdapter.seal(new n.RequestCookies(new Headers({}))));if(t.dynamicShouldError)throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${t.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`cookies()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E849",enumerable:!1,configurable:!0});if(r)switch(r.type){case"cache":let o=Object.defineProperty(Error(`Route ${t.route} used \`cookies()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E831",enumerable:!1,configurable:!0});throw Error.captureStackTrace(o,h),t.invalidDynamicUsageError??=o,o;case"unstable-cache":throw Object.defineProperty(Error(`Route ${t.route} used \`cookies()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E846",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(Error(`Route ${t.route} used \`cookies()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1123",enumerable:!1,configurable:!0});case"prerender":var u=t,y=r;let b=f.get(y);if(b)return b;let g=(0,l.makeHangingPromise)(y.renderSignal,u.route,"`cookies()`");return f.set(y,g),g;case"prerender-client":case"validation-client":let w="`cookies`";throw Object.defineProperty(new p.InvariantError(`${w} must not be used within a Client Component. Next.js should be preventing ${w} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1037",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,s.postponeWithTracking)(t.route,e,r.dynamicTracking);case"prerender-legacy":return(0,s.throwToInterruptStaticGeneration)(e,t,r);case"prerender-runtime":return(0,l.delayUntilRuntimeStage)(r,m(r.cookies));case"private-cache":return m(r.cookies);case"request":let _;if((0,s.trackDynamicDataInDynamicRender)(r),_=(0,i.areCookiesMutableInCurrentPhase)(r)?r.userspaceMutableCookies:r.cookies,!r.asyncApiPromises)return m(_);{let e=(0,a.isInEarlyRenderStage)(r);if(_===r.mutableCookies)return e?r.asyncApiPromises.earlyMutableCookies:r.asyncApiPromises.mutableCookies;return e?r.asyncApiPromises.earlyCookies:r.asyncApiPromises.cookies}}}(0,a.throwForMissingRequestStore)(e)}e.r(884867);let f=new WeakMap;function m(e){let t=f.get(e);if(t)return t;let r=Promise.resolve(e);return f.set(e,r),r}(0,u.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`cookies()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E830",enumerable:!1,
8configurable:!0})})},63363,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"headers",{enumerable:!0,get:function(){return p}});let i=e.r(698402),n=e.r(919318),o=e.r(206689),a=e.r(551382),s=e.r(743959),c=e.r(590868),l=e.r(477854),u=e.r(293407),d=e.r(835624);function p(){let e="headers",t=n.workAsyncStorage.getStore(),r=o.workUnitAsyncStorage.getStore();if(t){if(r&&"after"===r.phase&&!(0,u.isRequestAPICallableInsideAfter)())throw Object.defineProperty(Error(`Route ${t.route} used \`headers()\` inside \`after()\`. This is not supported. If you need this data inside an \`after()\` callback, use \`headers()\` outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E839",enumerable:!1,configurable:!0});if(t.forceStatic)return f(i.HeadersAdapter.seal(new Headers({})));if(r)switch(r.type){case"cache":{let e=Object.defineProperty(Error(`Route ${t.route} used \`headers()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E833",enumerable:!1,configurable:!0});throw Error.captureStackTrace(e,p),t.invalidDynamicUsageError??=e,e}case"unstable-cache":throw Object.defineProperty(Error(`Route ${t.route} used \`headers()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E838",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(Error(`Route ${t.route} used \`headers()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1134",enumerable:!1,configurable:!0})}if(t.dynamicShouldError)throw Object.defineProperty(new s.StaticGenBailoutError(`Route ${t.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E828",enumerable:!1,configurable:!0});if(r)switch(r.type){case"prerender":var l=t,m=r;let n=h.get(m);if(n)return n;let y=(0,c.makeHangingPromise)(m.renderSignal,l.route,"`headers()`");return h.set(m,y),y;case"prerender-client":case"validation-client":let b="`headers`";throw Object.defineProperty(new d.InvariantError(`${b} must not be used within a client component. Next.js should be preventing ${b} from being included in client components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1017",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,a.postponeWithTracking)(t.route,e,r.dynamicTracking);case"prerender-legacy":return(0,a.throwToInterruptStaticGeneration)(e,t,r);case"prerender-runtime":return(0,c.delayUntilRuntimeStage)(r,f(r.headers));case"private-cache":return f(r.headers);case"request":if((0,a.trackDynamicDataInDynamicRender)(r),r.asyncApiPromises)return(0,o.isInEarlyRenderStage)(r)?r.asyncApiPromises.earlyHeaders:r.asyncApiPromises.headers;return f(r.headers)}}(0,o.throwForMissingRequestStore)(e)}e.r(884867);let h=new WeakMap;function f(e){let t=h.get(e);if(t)return t;let r=Promise.resolve(e);return h.set(e,r),r}(0,l.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`headers()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E836",enumerable:!1,
8configurable:!0})})},192219,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"draftMode",{enumerable:!0,get:function(){return d}});let i=e.r(206689),n=e.r(919318),o=e.r(551382),a=e.r(477854),s=e.r(743959),c=e.r(37891),l=e.r(835624),u=e.r(590868);function d(){let e="draftMode",t=n.workAsyncStorage.getStore(),r=i.workUnitAsyncStorage.getStore();switch((!t||!r)&&(0,i.throwForMissingRequestStore)(e),r.type){case"prerender-runtime":return(0,u.delayUntilRuntimeStage)(r,p(r.draftMode,t));case"request":return p(r.draftMode,t);case"cache":case"private-cache":case"unstable-cache":let o=(0,i.getDraftModeProviderForCacheScope)(t,r);if(o)return p(o,t);case"prerender":case"prerender-ppr":case"prerender-legacy":return p(null,t);case"prerender-client":case"validation-client":{let e="`draftMode`";throw Object.defineProperty(new l.InvariantError(`${e} must not be used within a Client Component. Next.js should be preventing ${e} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1046",enumerable:!1,configurable:!0})}case"generate-static-params":throw Object.defineProperty(Error(`Route ${t.route} used \`${e}()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1132",enumerable:!1,configurable:!0});default:return r}}function p(e,t){let r=f.get(e??h);return r||Promise.resolve(new m(e))}e.r(580422);let h={},f=new WeakMap;class m{constructor(e){this._provider=e}get isEnabled(){return null!==this._provider&&this._provider.isEnabled}enable(){y("draftMode().enable()",this.enable),null!==this._provider&&this._provider.enable()}disable(){y("draftMode().disable()",this.disable),null!==this._provider&&this._provider.disable()}}function y(e,t){let r=n.workAsyncStorage.getStore(),a=i.workUnitAsyncStorage.getStore();if(r){if((null==a?void 0:a.phase)==="after")throw Object.defineProperty(Error(`Route ${r.route} used "${e}" inside \`after()\`. The enabled status of \`draftMode()\` can be read inside \`after()\` but you cannot enable or disable \`draftMode()\`. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E845",enumerable:!1,configurable:!0});if(r.dynamicShouldError)throw Object.defineProperty(new s.StaticGenBailoutError(`Route ${r.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(a)switch(a.type){case"cache":case"private-cache":{let i=Object.defineProperty(Error(`Route ${r.route} used "${e}" inside "use cache". The enabled status of \`draftMode()\` can be read in caches but you must not enable or disable \`draftMode()\` inside a cache. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E829",enumerable:!1,configurable:!0});throw Error.captureStackTrace(i,t),r.invalidDynamicUsageError??=i,i}case"unstable-cache":throw Object.defineProperty(Error(`Route ${r.route} used "${e}" inside a function cached with \`unstable_cache()\`. The enabled status of \`draftMode()\` can be read in caches but you must not enable or disable \`draftMode()\` inside a cache. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E844",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":{let t=Object.defineProperty(Error(`Route ${r.route} used ${e} without first calling \`await connection()\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-headers`),"__NEXT_ERROR_CODE",{value:"E126",enumerable:!1,configurable:!0});return(0,o.abortAndThrowOnSynchronousRequestDataAccess)(r.route,e,t,a)}case"prerender-client":case"validation-client":let i="`draftMode`";throw Object.defineProperty(new l.InvariantError(`${i} must not be used within a Client Component. Next.js should be preventing ${i} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1046",enumerable:!1,
8configurable:!0});case"prerender-ppr":return(0,o.postponeWithTracking)(r.route,e,a.dynamicTracking);case"prerender-legacy":a.revalidate=0;let n=Object.defineProperty(new c.DynamicServerError(`Route ${r.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw r.dynamicUsageDescription=e,r.dynamicUsageStack=n.stack,n;case"request":(0,o.trackDynamicDataInDynamicRender)(a);break;case"generate-static-params":throw Object.defineProperty(Error(`Route ${r.route} used \`${e}\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1121",enumerable:!1,configurable:!0})}}}(0,a.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`draftMode()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E835",enumerable:!1,configurable:!0})})},31245,(e,t,r)=>{t.exports.cookies=e.r(395937).cookies,t.exports.headers=e.r(63363).headers,t.exports.draftMode=e.r(192219).draftMode},621141,447196,e=>{"use strict";let t,r,i,n;new WeakMap,new WeakMap,new WeakMap,new WeakSet;var o=e.i(658042);let a=async(e,t,r,i,n)=>{let{crypto:{subtle:o}}=(()=>{if("u">typeof globalThis)return globalThis;if("u">typeof self)return self;if("u">typeof window)return window;throw Error("unable to locate global object")})();return new Uint8Array(await o.deriveBits({name:"HKDF",hash:`SHA-${e.substr(3)}`,salt:r,info:i},await o.importKey("raw",t,"HKDF",!1,["deriveBits"]),n<<3))};function s(e,t){if("string"==typeof e)return new TextEncoder().encode(e);if(!(e instanceof Uint8Array))throw TypeError(`"${t}"" must be an instance of Uint8Array or a string`);return e}async function c(e,t,r,i,n){return a(function(e){switch(e){case"sha256":case"sha384":case"sha512":case"sha1":return e;default:throw TypeError('unsupported "digest" value')}}(e),function(e){let t=s(e,"ikm");if(!t.byteLength)throw TypeError('"ikm" must be at least one byte in length');return t}(t),s(r,"salt"),function(e){let t=s(e,"info");if(t.byteLength>1024)throw TypeError('"info" must not contain more than 1024 bytes');return t}(i),function(e,t){if("number"!=typeof e||!Number.isInteger(e)||e<1)throw TypeError('"keylen" must be a positive integer');if(e>255*(parseInt(t.substr(3),10)>>3||20))throw TypeError('"keylen" too large');return e}(n,e))}let l=new TextEncoder,u=new TextDecoder;function d(...e){let t=new Uint8Array(e.reduce((e,{length:t})=>e+t,0)),r=0;for(let i of e)t.set(i,r),r+=i.length;return t}function p(e,t,r){if(t<0||t>=0x100000000)throw RangeError(`value must be >= 0 and <= ${0x100000000-1}. Received ${t}`);e.set([t>>>24,t>>>16,t>>>8,255&t],r)}function h(e){let t=Math.floor(e/0x100000000),r=new Uint8Array(8);return p(r,t,0),p(r,e%0x100000000,4),r}function f(e){let t=new Uint8Array(4);return p(t,e),t}function m(e){if(Uint8Array.fromBase64)return Uint8Array.fromBase64("string"==typeof e?e:u.decode(e),{alphabet:"base64url"});let t=e;t instanceof Uint8Array&&(t=u.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{var r=t;if(Uint8Array.fromBase64)return Uint8Array.fromBase64(r);let e=atob(r),i=new Uint8Array(e.length);for(let t=0;t<e.length;t++)i[t]=e.charCodeAt(t);return i}catch{throw TypeError("The input to be decoded is not correctly encoded.")}}function y(e){let t=e;return("string"==typeof t&&(t=l.encode(t)),Uint8Array.prototype.toBase64)?t.toBase64({alphabet:"base64url",omitPadding:!0}):(function(e){if(Uint8Array.prototype.toBase64)return e.toBase64();let t=[];for(let r=0;r<e.length;r+=32768)t.push(String.fromCharCode.apply(null,e.subarray(r,r+32768)));return btoa(t.join(""))})(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}e.s(["decode",0,m,"encode",0,y],878750);Symbol();
8class b extends Error{static code="ERR_JOSE_GENERIC";code="ERR_JOSE_GENERIC";constructor(e,t){super(e,t),this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}class g extends b{static code="ERR_JWT_CLAIM_VALIDATION_FAILED";code="ERR_JWT_CLAIM_VALIDATION_FAILED";claim;reason;payload;constructor(e,t,r="unspecified",i="unspecified"){super(e,{cause:{claim:r,reason:i,payload:t}}),this.claim=r,this.reason=i,this.payload=t}}class w extends b{static code="ERR_JWT_EXPIRED";code="ERR_JWT_EXPIRED";claim;reason;payload;constructor(e,t,r="unspecified",i="unspecified"){super(e,{cause:{claim:r,reason:i,payload:t}}),this.claim=r,this.reason=i,this.payload=t}}class _ extends b{static code="ERR_JOSE_ALG_NOT_ALLOWED";code="ERR_JOSE_ALG_NOT_ALLOWED"}class v extends b{static code="ERR_JOSE_NOT_SUPPORTED";code="ERR_JOSE_NOT_SUPPORTED"}class E extends b{static code="ERR_JWE_DECRYPTION_FAILED";code="ERR_JWE_DECRYPTION_FAILED";constructor(e="decryption operation failed",t){super(e,t)}}class x extends b{static code="ERR_JWE_INVALID";code="ERR_JWE_INVALID"}class S extends b{static code="ERR_JWT_INVALID";code="ERR_JWT_INVALID"}class k extends b{static code="ERR_JWK_INVALID";code="ERR_JWK_INVALID"}class A extends b{[Symbol.asyncIterator];static code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";constructor(e="multiple matching keys found in the JSON Web Key Set",t){super(e,t)}}function C(e){switch(e){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new v(`Unsupported JWE Algorithm: ${e}`)}}let P=(e,t)=>{if(t.length<<3!==C(e))throw new x("Invalid Initialization Vector length")},R=(e,t)=>{let r=e.byteLength<<3;if(r!==t)throw new x(`Invalid Content Encryption Key length. Expected ${t} bits, got ${r} bits`)};function O(e,t="algorithm.name"){return TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function j(e,t){return e.name===t}function T(e,t,r){switch(t){case"A128GCM":case"A192GCM":case"A256GCM":{if(!j(e.algorithm,"AES-GCM"))throw O("AES-GCM");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw O(r,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!j(e.algorithm,"AES-KW"))throw O("AES-KW");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw O(r,"algorithm.length");break}case"ECDH":switch(e.algorithm.name){case"ECDH":case"X25519":break;default:throw O("ECDH or X25519")}break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!j(e.algorithm,"PBKDF2"))throw O("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!j(e.algorithm,"RSA-OAEP"))throw O("RSA-OAEP");let r=parseInt(t.slice(9),10)||1;if(parseInt(e.algorithm.hash.name.slice(4),10)!==r)throw O(`SHA-${r}`,"algorithm.hash");break}default:throw TypeError("CryptoKey does not support this operation")}if(r&&!e.usages.includes(r))throw TypeError(`CryptoKey does not support this operation, its usages must include ${r}.`)}function I(e,t,...r){if((r=r.filter(Boolean)).length>2){let t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else 2===r.length?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}let N=(e,...t)=>I("Key must be ",e,...t);function D(e,t,...r){return I(`Key for the ${e} algorithm must be `,t,...r)}function U(e){if(!K(e))throw Error("CryptoKey instance expected")}function K(e){return e?.[Symbol.toStringTag]==="CryptoKey"}function W(e){return e?.[Symbol.toStringTag]==="KeyObject"}let M=e=>K(e)||W(e);function $(e,t){if(e.algorithm.length!==parseInt(t.slice(1,4),10))throw TypeError(`Invalid key size for alg: ${t}`)}function L(e,t,r){return e instanceof Uint8Array?crypto.subtle.importKey("raw",e,"AES-KW",!0,[r]):(T(e,t,r),e)}async function H(e,t,r){let i=await L(t,e,"unwrapKey");$(i,e);let n=await crypto.subtle.unwrapKey("raw",r,i,"AES-KW",{hash:"SHA-256",
8name:"HMAC"},!0,["sign"]);return new Uint8Array(await crypto.subtle.exportKey("raw",n))}let F=async(e,t)=>{let r=`SHA-${e.slice(-3)}`;return new Uint8Array(await crypto.subtle.digest(r,t))};function q(e){return d(f(e.length),e)}async function B(e,t,r){let i=t>>3,n=Math.ceil(i/32),o=new Uint8Array(32*n);for(let t=1;t<=n;t++){let i=new Uint8Array(4+e.length+r.length);i.set(f(t),0),i.set(e,4),i.set(r,4+e.length);let n=await F("sha256",i);o.set(n,(t-1)*32)}return o.slice(0,i)}async function J(e,t,r,i,n=new Uint8Array(0),o=new Uint8Array(0)){var a;T(e,"ECDH"),T(t,"ECDH","deriveBits");let s=d(q(l.encode(r)),q(n),q(o),f(i),new Uint8Array(0));return B(new Uint8Array(await crypto.subtle.deriveBits({name:e.algorithm.name,public:e},t,"X25519"===(a=e).algorithm.name?256:Math.ceil(parseInt(a.algorithm.namedCurve.slice(-3),10)/8)<<3)),i,s)}function z(e){switch(e.algorithm.namedCurve){case"P-256":case"P-384":case"P-521":return!0;default:return"X25519"===e.algorithm.name}}async function G(e,t,r,i){if(!(e instanceof Uint8Array)||e.length<8)throw new x("PBES2 Salt Input must be 8 or more octets");let n=d(l.encode(t),new Uint8Array([0]),e),o=parseInt(t.slice(13,16),10),a={hash:`SHA-${t.slice(8,11)}`,iterations:r,name:"PBKDF2",salt:n},s=await (i instanceof Uint8Array?crypto.subtle.importKey("raw",i,"PBKDF2",!1,["deriveBits"]):(T(i,t,"deriveBits"),i));return new Uint8Array(await crypto.subtle.deriveBits(a,s,o))}async function X(e,t,r,i,n){let o=await G(n,e,i,t);return H(e.slice(-6),o,r)}let V=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if("number"!=typeof r||r<2048)throw TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}},Y=e=>{switch(e){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return"RSA-OAEP";default:throw new v(`alg ${e} is not supported either by JOSE or your javascript runtime`)}};async function Z(e,t,r){return T(t,e,"decrypt"),V(e,t),new Uint8Array(await crypto.subtle.decrypt(Y(e),t,r))}let Q=e=>{if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t};function ee(e){return Q(e)&&"string"==typeof e.kty}let et=async e=>{if(!e.alg)throw TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:t,keyUsages:r}=function(e){let t,r;switch(e.kty){case"AKP":switch(e.alg){case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":t={name:e.alg},r=e.priv?["sign"]:["verify"];break;default:throw new v('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new v('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new v('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;
8case"OKP":switch(e.alg){case"Ed25519":case"EdDSA":t={name:"Ed25519"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new v('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new v('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}(e),i={...e};return"AKP"!==i.kty&&delete i.alg,delete i.use,crypto.subtle.importKey("jwk",i,t,e.ext??(!e.d&&!e.priv),e.key_ops??r)},er=async(e,r,i,n=!1)=>{let o=(t||=new WeakMap).get(e);if(o?.[i])return o[i];let a=await et({...r,alg:i});return n&&Object.freeze(e),o?o[i]=a:t.set(e,{[i]:a}),a},ei=async(e,r)=>{if(e instanceof Uint8Array||K(e))return e;if(W(e)){if("secret"===e.type)return e.export();if("toCryptoKey"in e&&"function"==typeof e.toCryptoKey)try{return((e,r)=>{let i,n=(t||=new WeakMap).get(e);if(n?.[r])return n[r];let o="public"===e.type,a=!!o;if("x25519"===e.asymmetricKeyType){switch(r){case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":break;default:throw TypeError("given KeyObject instance cannot be used for this algorithm")}i=e.toCryptoKey(e.asymmetricKeyType,a,o?[]:["deriveBits"])}if("ed25519"===e.asymmetricKeyType){if("EdDSA"!==r&&"Ed25519"!==r)throw TypeError("given KeyObject instance cannot be used for this algorithm");i=e.toCryptoKey(e.asymmetricKeyType,a,[o?"verify":"sign"])}switch(e.asymmetricKeyType){case"ml-dsa-44":case"ml-dsa-65":case"ml-dsa-87":if(r!==e.asymmetricKeyType.toUpperCase())throw TypeError("given KeyObject instance cannot be used for this algorithm");i=e.toCryptoKey(e.asymmetricKeyType,a,[o?"verify":"sign"])}if("rsa"===e.asymmetricKeyType){let t;switch(r){case"RSA-OAEP":t="SHA-1";break;case"RS256":case"PS256":case"RSA-OAEP-256":t="SHA-256";break;case"RS384":case"PS384":case"RSA-OAEP-384":t="SHA-384";break;case"RS512":case"PS512":case"RSA-OAEP-512":t="SHA-512";break;default:throw TypeError("given KeyObject instance cannot be used for this algorithm")}if(r.startsWith("RSA-OAEP"))return e.toCryptoKey({name:"RSA-OAEP",hash:t},a,o?["encrypt"]:["decrypt"]);i=e.toCryptoKey({name:r.startsWith("PS")?"RSA-PSS":"RSASSA-PKCS1-v1_5",hash:t},a,[o?"verify":"sign"])}if("ec"===e.asymmetricKeyType){let t=new Map([["prime256v1","P-256"],["secp384r1","P-384"],["secp521r1","P-521"]]).get(e.asymmetricKeyDetails?.namedCurve);if(!t)throw TypeError("given KeyObject instance cannot be used for this algorithm");"ES256"===r&&"P-256"===t&&(i=e.toCryptoKey({name:"ECDSA",namedCurve:t},a,[o?"verify":"sign"])),"ES384"===r&&"P-384"===t&&(i=e.toCryptoKey({name:"ECDSA",namedCurve:t},a,[o?"verify":"sign"])),"ES512"===r&&"P-521"===t&&(i=e.toCryptoKey({name:"ECDSA",namedCurve:t},a,[o?"verify":"sign"])),r.startsWith("ECDH-ES")&&(i=e.toCryptoKey({name:"ECDH",namedCurve:t},a,o?[]:["deriveBits"]))}if(!i)throw TypeError("given KeyObject instance cannot be used for this algorithm");return n?n[r]=i:t.set(e,{[r]:i}),i})(e,r)}catch(e){if(e instanceof TypeError)throw e}let i=e.export({format:"jwk"});return er(e,i,r)}if(ee(e))return e.k?m(e.k):er(e,e,r,!0);throw Error("unreachable")};function en(e){switch(e){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new v(`Unsupported JWE Algorithm: ${e}`)}}let eo=e=>crypto.getRandomValues(new Uint8Array(en(e)>>3));async function ea(e){if(W(e))if("secret"!==e.type)return e.export({format:"jwk"});else e=e.export();if(e instanceof Uint8Array)return{kty:"oct",k:y(e)};if(!K(e))throw TypeError(N(e,"CryptoKey","KeyObject","Uint8Array"));if(!e.extractable)throw TypeError("non-extractable CryptoKey cannot be exported as a JWK");let{ext:t,key_ops:r,alg:i,use:n,...o}=await crypto.subtle.exportKey("jwk",e);return"AKP"===o.kty&&(o.alg=i),o}async function es(e){return ea(e)}async function ec(e,t){if(!(e instanceof Uint8Array))throw TypeError("First argument must be a buffer");if(!(t instanceof Uint8Array))throw TypeError("Second argument must be a buffer");let r={name:"HMAC",hash:"SHA-256"},i=await crypto.subtle.generateKey(r,!1,["sign"]),n=new Uint8Array(await crypto.subtle.sign(r,i,e)),o=new Uint8Array(await crypto.subtle.sign(r,i,t)),a=0,s=-1;for(;++s<32;)a|=n[s]^o[s];return 0===a}async function el(e,t,r,i,n,o){let a,s;if(!(t instanceof Uint8Array))throw TypeError(N(t,"Uint8Array"));let c=parseInt(e.slice(1,4),10),l=await crypto.subtle.importKey("raw",t.subarray(c>>3),"AES-CBC",!1,["decrypt"]),u=await crypto.subtle.importKey("raw",t.subarray(0,c>>3),{hash:`SHA-${c<<1}`,name:"HMAC"},!1,["sign"]),p=d(o,i,r,h(o.length<<3)),f=new Uint8Array((await crypto.subtle.sign("HMAC",u,p)).slice(0,c>>3));try{a=await ec(n,f)}catch{}if(!a)throw new E;try{s=new Uint8Array(await crypto.subtle.decrypt({iv:i,name:"AES-CBC"},l,r))}catch{}if(!s)throw new E;return s}async function eu(e,t,r,i,n,o){let a;t instanceof Uint8Array?a=await crypto.subtle.importKey("raw",t,"AES-GCM",!1,["decrypt"]):(T(t,e,"decrypt"),a=t);try{return new Uint8Array(await crypto.subtle.decrypt({additionalData:o,iv:i,name:"AES-GCM",tagLength:128},a,d(r,n)))}catch{throw new E}}let ed=async(e,t,r,i,n,o)=>
8{if(!K(t)&&!(t instanceof Uint8Array))throw TypeError(N(t,"CryptoKey","KeyObject","Uint8Array","JSON Web Key"));if(!i)throw new x("JWE Initialization Vector missing");if(!n)throw new x("JWE Authentication Tag missing");switch(P(e,i),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return t instanceof Uint8Array&&R(t,parseInt(e.slice(-3),10)),el(e,t,r,i,n,o);case"A128GCM":case"A192GCM":case"A256GCM":return t instanceof Uint8Array&&R(t,parseInt(e.slice(1,4),10)),eu(e,t,r,i,n,o);default:throw new v("Unsupported JWE Content Encryption Algorithm")}};async function ep(e,t,r,i,n){return ed(e.slice(0,7),t,r,i,n,new Uint8Array(0))}let eh=(...e)=>{let t,r=e.filter(Boolean);if(0===r.length||1===r.length)return!0;for(let e of r){let r=Object.keys(e);if(!t||0===t.size){t=new Set(r);continue}for(let e of r){if(t.has(e))return!1;t.add(e)}}return!0},ef=(e,t,r,i,n)=>{let o;if(void 0!==n.crit&&i?.crit===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!i||void 0===i.crit)return new Set;if(!Array.isArray(i.crit)||0===i.crit.length||i.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let a of(o=void 0!==r?new Map([...Object.entries(r),...t.entries()]):t,i.crit)){if(!o.has(a))throw new v(`Extension Header Parameter "${a}" is not recognized`);if(void 0===n[a])throw new e(`Extension Header Parameter "${a}" is missing`);if(o.get(a)&&void 0===i[a])throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(i.crit)},em=e=>e?.[Symbol.toStringTag],ey=(e,t,r)=>{if(void 0!==t.use){let e;switch(r){case"sign":case"verify":e="sig";break;case"encrypt":case"decrypt":e="enc"}if(t.use!==e)throw TypeError(`Invalid key for this operation, its "use" must be "${e}" when present`)}if(void 0!==t.alg&&t.alg!==e)throw TypeError(`Invalid key for this operation, its "alg" must be "${e}" when present`);if(Array.isArray(t.key_ops)){let i;switch(!0){case"sign"===r||"verify"===r:case"dir"===e:case e.includes("CBC-HS"):i=r;break;case e.startsWith("PBES2"):i="deriveBits";break;case/^A\d{3}(?:GCM)?(?:KW)?$/.test(e):i=!e.includes("GCM")&&e.endsWith("KW")?"encrypt"===r?"wrapKey":"unwrapKey":r;break;case"encrypt"===r&&e.startsWith("RSA"):i="wrapKey";break;case"decrypt"===r:i=e.startsWith("RSA")?"unwrapKey":"deriveBits"}if(i&&t.key_ops?.includes?.(i)===!1)throw TypeError(`Invalid key for this operation, its "key_ops" must include "${i}" when present`)}return!0},eb=(e,t,r)=>{e.startsWith("HS")||"dir"===e||e.startsWith("PBES2")||/^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e)||/^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e)?((e,t,r)=>{if(!(t instanceof Uint8Array)){if(ee(t)){if("oct"===t.kty&&"string"==typeof t.k&&ey(e,t,r))return;throw TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!M(t))throw TypeError(D(e,t,"CryptoKey","KeyObject","JSON Web Key","Uint8Array"));if("secret"!==t.type)throw TypeError(`${em(t)} instances for symmetric algorithms must be of type "secret"`)}})(e,t,r):((e,t,r)=>{if(ee(t))switch(r){case"decrypt":case"sign":if("oct"!==t.kty&&("AKP"===t.kty&&"string"==typeof t.priv||"string"==typeof t.d)&&ey(e,t,r))return;throw TypeError("JSON Web Key for this operation be a private JWK");case"encrypt":case"verify":if("oct"!==t.kty&&void 0===t.d&&void 0===t.priv&&ey(e,t,r))return;throw TypeError("JSON Web Key for this operation be a public JWK")}if(!M(t))throw TypeError(D(e,t,"CryptoKey","KeyObject","JSON Web Key"));if("secret"===t.type)throw TypeError(`${em(t)} instances for asymmetric algorithms must not be of type "secret"`);if("public"===t.type)switch(r){case"sign":throw TypeError(`${em(t)} instances for asymmetric algorithm signing must be of type "private"`);case"decrypt":throw TypeError(`${em(t)} instances for asymmetric algorithm decryption must be of type "private"`)}if("private"===t.type)switch(r){case"verify":throw TypeError(`${em(t)} instances for asymmetric algorithm verifying must be of type "public"`);case"encrypt":throw TypeError(`${em(t)} instances for asymmetric algorithm encryption must be of type "public"`)}})(e,t,r)},eg=e=>Math.floor(e.getTime()/1e3),ew=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,e_=e=>{let t,r=ew.exec(e);if(!r||r[4]&&r[1])throw TypeError("Invalid time period format");let i=parseFloat(r[2]);switch(r[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":t=Math.round(i);break;case"minute":case"minutes":case"min":case"mins":case"m":t=Math.round(60*i);break;case"hour":case"hours":case"hr":case"hrs":case"h":t=Math.round(3600*i);break;case"day":case"days":case"d":t=Math.round(86400*i);break;case"week":case"weeks":case"w":t=Math.round(604800*i);break;default:t=Math.round(0x1e187e0*i)}return"-"===r[1]||"ago"===r[4]?-t:t},ev=e=>e.includes("/")?e.toLowerCase():`application/${e.toLowerCase()}`;var eE=e.i(878750),eE=eE;let ex=(e,t)=>{if("string"!=typeof e||!e)throw new k(`${t} missing or invalid`)};async function eS(e,t){let r,i;if(ee(e))r=e;else if(M(e))r=await es(e);else throw TypeError(N(e,"CryptoKey","KeyObject","JSON Web Key"));if("sha256"!==(t??="sha256")&&"sha384"!==t&&"sha512"!==t)throw TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"');switch(r.kty){case"AKP":ex(r.alg,'"alg" (Algorithm) Parameter'),ex(r.pub,'"pub" (Public key) Parameter'),i={alg:r.alg,kty:r.kty,pub:r.pub};break;case"EC":ex(r.crv,'"crv" (Curve) Parameter'),ex(r.x,'"x" (X Coordinate) Parameter'),ex(r.y,'"y" (Y C
8oordinate) Parameter'),i={crv:r.crv,kty:r.kty,x:r.x,y:r.y};break;case"OKP":ex(r.crv,'"crv" (Subtype of Key Pair) Parameter'),ex(r.x,'"x" (Public Key) Parameter'),i={crv:r.crv,kty:r.kty,x:r.x};break;case"RSA":ex(r.e,'"e" (Exponent) Parameter'),ex(r.n,'"n" (Modulus) Parameter'),i={e:r.e,kty:r.kty,n:r.n};break;case"oct":ex(r.k,'"k" (Key Value) Parameter'),i={k:r.k,kty:r.kty};break;default:throw new v('"kty" (Key Type) Parameter missing or unsupported')}let n=l.encode(JSON.stringify(i));return y(await F(t,n))}async function ek(e,t,r){let i;if(!Q(e))throw TypeError("JWK must be an object");switch(t??=e.alg,i??=r?.extractable??e.ext,e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw TypeError('missing "k" (Key Value) Parameter value');return m(e.k);case"RSA":if("oth"in e&&void 0!==e.oth)throw new v('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');return et({...e,alg:t,ext:i});case"AKP":if("string"!=typeof e.alg||!e.alg)throw TypeError('missing "alg" (Algorithm) Parameter value');if(void 0!==t&&t!==e.alg)throw TypeError("JWK alg and alg option value mismatch");return et({...e,ext:i});case"EC":case"OKP":return et({...e,alg:t,ext:i});default:throw new v('Unsupported "kty" (Key Type) Parameter value')}}let eA=async(e,t,r,i,n)=>{switch(e){case"dir":if(void 0!==r)throw new x("Encountered unexpected JWE Encrypted Key");return t;case"ECDH-ES":if(void 0!==r)throw new x("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let n,o;
8if(!Q(i.epk))throw new x('JOSE Header "epk" (Ephemeral Public Key) missing or invalid');if(U(t),!z(t))throw new v("ECDH with the provided key is not allowed or not supported by your javascript runtime");let a=await ek(i.epk,e);if(U(a),void 0!==i.apu){if("string"!=typeof i.apu)throw new x('JOSE Header "apu" (Agreement PartyUInfo) invalid');try{n=m(i.apu)}catch{throw new x("Failed to base64url decode the apu")}}if(void 0!==i.apv){if("string"!=typeof i.apv)throw new x('JOSE Header "apv" (Agreement PartyVInfo) invalid');try{o=m(i.apv)}catch{throw new x("Failed to base64url decode the apv")}}let s=await J(a,t,"ECDH-ES"===e?i.enc:e,"ECDH-ES"===e?en(i.enc):parseInt(e.slice(-5,-2),10),n,o);if("ECDH-ES"===e)return s;if(void 0===r)throw new x("JWE Encrypted Key missing");return H(e.slice(-6),s,r)}case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":if(void 0===r)throw new x("JWE Encrypted Key missing");return U(t),Z(e,t,r);case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{let o;if(void 0===r)throw new x("JWE Encrypted Key missing");if("number"!=typeof i.p2c)throw new x('JOSE Header "p2c" (PBES2 Count) missing or invalid');let a=n?.maxPBES2Count||1e4;if(i.p2c>a)throw new x('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');if("string"!=typeof i.p2s)throw new x('JOSE Header "p2s" (PBES2 Salt) missing or invalid');try{o=m(i.p2s)}catch{throw new x("Failed to base64url decode the p2s")}return X(e,t,r,i.p2c,o)}case"A128KW":case"A192KW":case"A256KW":if(void 0===r)throw new x("JWE Encrypted Key missing");return H(e,t,r);case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{let n,o;
8if(void 0===r)throw new x("JWE Encrypted Key missing");if("string"!=typeof i.iv)throw new x('JOSE Header "iv" (Initialization Vector) missing or invalid');if("string"!=typeof i.tag)throw new x('JOSE Header "tag" (Authentication Tag) missing or invalid');try{n=m(i.iv)}catch{throw new x("Failed to base64url decode the iv")}try{o=m(i.tag)}catch{throw new x("Failed to base64url decode the tag")}return ep(e,t,r,n,o)}default:throw new v('Invalid or unsupported "alg" (JWE Algorithm) header value')}},eC=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};async function eP(e,t,r){let i,n,o,a,s,c,p;if(!Q(e))throw new x("Flattened JWE must be an object");if(void 0===e.protected&&void 0===e.header&&void 0===e.unprotected)throw new x("JOSE Header missing");if(void 0!==e.iv&&"string"!=typeof e.iv)throw new x("JWE Initialization Vector incorrect type");if("string"!=typeof e.ciphertext)throw new x("JWE Ciphertext missing or incorrect type");if(void 0!==e.tag&&"string"!=typeof e.tag)throw new x("JWE Authentication Tag incorrect type");if(void 0!==e.protected&&"string"!=typeof e.protected)throw new x("JWE Protected Header incorrect type");if(void 0!==e.encrypted_key&&"string"!=typeof e.encrypted_key)throw new x("JWE Encrypted Key incorrect type");if(void 0!==e.aad&&"string"!=typeof e.aad)throw new x("JWE AAD incorrect type");if(void 0!==e.header&&!Q(e.header))throw new x("JWE Shared Unprotected Header incorrect type");if(void 0!==e.unprotected&&!Q(e.unprotected))throw new x("JWE Per-Recipient Unprotected Header incorrect type");if(e.protected)try{let t=m(e.protected);i=JSON.parse(u.decode(t))}catch{throw new x("JWE Protected Header is invalid")}if(!eh(i,e.header,e.unprotected))throw new x("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint");let h={...i,...e.header,...e.unprotected};if(ef(x,new Map,r?.crit,i,h),void 0!==h.zip)throw new v('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');let{alg:f,enc:y}=h;if("string"!=typeof f||!f)throw new x("missing JWE Algorithm (alg) in JWE Header");if("string"!=typeof y||!y)throw new x("missing JWE Encryption Algorithm (enc) in JWE Header");let b=r&&eC("keyManagementAlgorithms",r.keyManagementAlgorithms),g=r&&eC("contentEncryptionAlgorithms",r.contentEncryptionAlgorithms);if(b&&!b.has(f)||!b&&f.startsWith("PBES2"))throw new _('"alg" (Algorithm) Header Parameter value not allowed');if(g&&!g.has(y))throw new _('"enc" (Encryption Algorithm) Header Parameter value not allowed');if(void 0!==e.encrypted_key)try{n=m(e.encrypted_key)}catch{throw new x("Failed to base64url decode the encrypted_key")}let w=!1;"function"==typeof t&&(t=await t(i,e),w=!0),eb("dir"===f?y:f,t,"decrypt");let E=await ei(t,f);try{o=await eA(f,E,n,h,r)}catch(e){if(e instanceof TypeError||e instanceof x||e instanceof v)throw e;o=eo(y)}if(void 0!==e.iv)try{a=m(e.iv)}catch{throw new x("Failed to base64url decode the iv")}if(void 0!==e.tag)try{s=m(e.tag)}catch{throw new x("Failed to base64url decode the tag")}let S=l.encode(e.protected??"");c=void 0!==e.aad?d(S,l.encode("."),l.encode(e.aad)):S;try{p=m(e.ciphertext)}catch{throw new x("Failed to base64url decode the ciphertext")}let k={plaintext:await ed(y,o,p,a,s,c)};if(void 0!==e.protected&&(k.protectedHeader=i),void 0!==e.aad)try{k.additionalAuthenticatedData=m(e.aad)}catch{throw new x("Failed to base64url decode the aad")}return(void 0!==e.unprotected&&(k.sharedUnprotectedHeader=e.unprotected),void 0!==e.header&&(k.unprotectedHeader=e.header),w)?{...k,key:E}:k}async function eR(e,t,r){if(e instanceof Uint8Array&&(e=u.decode(e)),"string"!=typeof e)throw new x("Compact JWE must be a string or Uint8Array");let{0:i,1:n,2:o,3:a,4:s,length:c}=e.split(".");if(5!==c)throw new x("Invalid Compact JWE");let l=await eP({ciphertext:a,iv:o||void 0,protected:i,tag:s||void 0,encrypted_key:n||void 0},t,r),d={plaintext:l.plaintext,protectedHeader:l.protectedHeader};return"function"==typeof t?{...d,key:l.key}:d}async function eO(e,t,r){let i=await eR(e,t,r),n=function(e,t,r={}){var i,n;let o,a;try{o=JSON.parse(u.decode(t))}catch{}if(!Q(o))throw new S("JWT Claims Set must be a top-level JSON object");let{typ:s}=r;if(s&&("string"!=typeof e.typ||ev(e.typ)!==ev(s)))throw new g('unexpected "typ" JWT header value',o,"typ","check_failed");let{requiredClaims:c=[],issuer:l,subject:d,audience:p,maxTokenAge:h}=r,f=[...c];for(let e of(void 0!==h&&f.push("iat"),void 0!==p&&f.push("aud"),void 0!==d&&f.push("sub"),void 0!==l&&f.push("iss"),new Set(f.reverse())))if(!(e in o))throw new g(`missing required "${e}" claim`,o,e,"missing");if(l&&!(Array.isArray(l)?l:[l]).includes(o.iss))throw new g('unexpected "iss" claim value',o,"iss","check_failed");if(d&&o.sub!==d)throw new g('unexpected "sub" claim value',o,"sub","check_failed");if(p&&(i=o.aud,n="string"==typeof p?[p]:p,"string"==typeof i?!n.includes(i):!(Array.isArray(i)&&n.some(Set.prototype.has.bind(new Set(i))))))throw new g('unexpected "aud" claim value',o,"aud","check_failed");switch(typeof r.clockTolerance){case"string":a=e_(r.clockTolerance);break;case"number":a=r.clockTolerance;break;case"undefined":a=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:m}=r,y=eg(m||new Date);if((void 0!==o.iat||h)&&"number"!=typeof o.iat)throw new g('"iat" claim must be a number',o,"iat","invali
8d");if(void 0!==o.nbf){if("number"!=typeof o.nbf)throw new g('"nbf" claim must be a number',o,"nbf","invalid");if(o.nbf>y+a)throw new g('"nbf" claim timestamp check failed',o,"nbf","check_failed")}if(void 0!==o.exp){if("number"!=typeof o.exp)throw new g('"exp" claim must be a number',o,"exp","invalid");if(o.exp<=y-a)throw new w('"exp" claim timestamp check failed',o,"exp","check_failed")}if(h){let e=y-o.iat;if(e-a>("number"==typeof h?h:e_(h)))throw new w('"iat" claim timestamp check failed (too far in the past)',o,"iat","check_failed");if(e<0-a)throw new g('"iat" claim timestamp check failed (it should be in the past)',o,"iat","check_failed")}return o}(i.protectedHeader,i.plaintext,r),{protectedHeader:o}=i;if(void 0!==o.iss&&o.iss!==n.iss)throw new g('replicated "iss" claim header parameter mismatch',n,"iss","mismatch");if(void 0!==o.sub&&o.sub!==n.sub)throw new g('replicated "sub" claim header parameter mismatch',n,"sub","mismatch");if(void 0!==o.aud&&JSON.stringify(o.aud)!==JSON.stringify(n.aud))throw new g('replicated "aud" claim header parameter mismatch',n,"aud","mismatch");let a={payload:n,protectedHeader:o};return"function"==typeof t?{...a,key:i.key}:a}let ej=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,eT=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,eI=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,eN=/^[\u0020-\u003A\u003D-\u007E]*$/,eD=Object.prototype.toString,eU=((n=function(){}).prototype=Object.create(null),n);function eK(e,t,r){do{let r=e.charCodeAt(t);if(32!==r&&9!==r)return t}while(++t<r)return r}function eW(e,t,r){for(;t>r;){let r=e.charCodeAt(--t);if(32!==r&&9!==r)return t+1}return r}function eM(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}e.s(["parse",0,function(e,t){let r=new eU,i=e.length;if(i<2)return r;let n=t?.decode||eM,o=0;do{let t=e.indexOf("=",o);if(-1===t)break;let a=e.indexOf(";",o),s=-1===a?i:a;if(t>s){o=e.lastIndexOf(";",t-1)+1;continue}let c=eK(e,o,t),l=eW(e,t,c),u=e.slice(c,l);if(void 0===r[u]){let i=eK(e,t+1,s),o=eW(e,s,i),a=n(e.slice(i,o));r[u]=a}o=s+1}while(o<i)return r},"serialize",0,function(e,t,r){let i=r?.encode||encodeURIComponent;if(!ej.test(e))throw TypeError(`argument name is invalid: ${e}`);let n=i(t);if(!eT.test(n))throw TypeError(`argument val is invalid: ${t}`);let o=e+"="+n;if(!r)return o;if(void 0!==r.maxAge){if(!Number.isInteger(r.maxAge))throw TypeError(`option maxAge is invalid: ${r.maxAge}`);o+="; Max-Age="+r.maxAge}if(r.domain){if(!eI.test(r.domain))throw TypeError(`option domain is invalid: ${r.domain}`);o+="; Domain="+r.domain}if(r.path){if(!eN.test(r.path))throw TypeError(`option path is invalid: ${r.path}`);o+="; Path="+r.path}if(r.expires){var a;if(a=r.expires,"[object Date]"!==eD.call(a)||!Number.isFinite(r.expires.valueOf()))throw TypeError(`option expires is invali
8d: ${r.expires}`);o+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.partitioned&&(o+="; Partitioned"),r.priority)switch("string"==typeof r.priority?r.priority.toLowerCase():void 0){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;default:throw TypeError(`option priority is invalid: ${r.priority}`)}if(r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:case"strict":o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"none":o+="; SameSite=None";break;default:throw TypeError(`option sameSite is invalid: ${r.sameSite}`)}return o}],764271);var e$=e.i(764271);let{parse:eL}=e$,eH="A256CBC-HS512";async function eF(e){let{token:t,secret:r,salt:i}=e,n=Array.isArray(r)?r:[r];if(!t)return null;let{payload:o}=await eO(t,async({kid:e,enc:t})=>{for(let r of n){let n=await eq(t,r,i);if(void 0===e||e===await eS({kty:"oct",k:eE.encode(n)},`sha${n.byteLength<<3}`))return n}throw Error("no matching decryption secret")},{clockTolerance:15,keyManagementAlgorithms:["dir"],contentEncryptionAlgorithms:[eH,"A256GCM"]});return o}async function eq(e,t,r){let i;switch(e){case"A256CBC-HS512":i=64;break;case"A256GCM":i=32;break;default:throw Error("Unsupported JWT Content Encryption Algorithm")}return await c("sha256",t,r,`Auth.js Generated Encryption Key (${r})`,i)}let{parse:eB,serialize:eJ}=e$;Symbol("skip-csrf-check"),Symbol("return-type-raw"),Symbol("custom-fetch"),Symbol("conform-internal");var ez,eG,eX,eV,eY,eZ,eQ,e0,e1,e2,e8,e3={},e4=[],e6=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,e5=Array.isArray;function e9(e,t){for(var r in t)e[r]=t[r];return e}function e7(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function te(e,t,r,i,n){var o={type:e,props:t,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==n?++eV:n,__i:-1,__u:0};return null==n&&null!=eX.vnode&&eX.vnode(o),o}function tt(e){return e.children}function tr(e,t){this.props=e,this.context=t}function ti(e,t){if(null==t)return e.__?ti(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?ti(e):null}function tn(e){(!e.__d&&(e.__d=!0)&&eY.push(e)&&!to.__r++||eZ!==eX.debounceRendering)&&((eZ=eX.debounceRendering)||eQ)(to)}function to(){var e,t,r,i,n,o,a,s;for(eY.sort(e0);e=eY.shift();)e.__d&&(t=eY.length,i=void 0,o=(n=(r=e).__v).__e,a=[],s=[],r.__P&&((i=e9({},n)).__v=n.__v+1,eX.vnode&&eX.vnode(i),tu(r.__P,i,n,r.__n,r.__P.namespaceURI,32&n.__u?[o]:null,a,null==o?ti(n):o,!!(32&n.__u),s),i.__v=n.__v,i.__.__k[i.__i]=i,function(e,t,r){t.__d=void 0;for(var i=0;i<r.length;i++)td(r[i],r[++i],r[++i]);eX.__c&&eX.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){eX.__e(e,t.__v)}})}(a,i,s),i.__e!=o&&function e(t){var r,i;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,r=0;r<t.__k.length;r++)if(null!=(i=t.__k[r])&&null!=i.__e){t.__e=t.__c.base=i.__e;break}return e(t)}}(i)),eY.length>t&&eY.sort(e0));to.__r=0}function ta(e,t,r,i,n,o,a,s,c,l,u){var d,p,h,f,m,y=i&&i.__k||e4,b=t.length;for(r.__d=c,function(e,t,r){var i,n,o,a,s,c=t.length,l=r.length,u=l,d=0;for(e.__k=[],i=0;i<c;i++)null!=(n=t[i])&&"boolean"!=typeof n&&"function"!=typeof n?(a=i+d,(n=e.__k[i]="string"==typeof n||"number"==typeof n||"bigint"==typeof n||n.constructor==String?te(null,n,null,null,null):e5(n)?te(tt,{children:n},null,null,null):void 0===n.constructor&&n.__b>0?te(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n).__=e,n.__b=e.__b+1,o=null,-1!==(s=n.__i=function(e,t,r,i){var n=e.key,o=e.type,a=r-1,s=r+1,c=t[r];if(null===c||c&&n==c.key&&o===c.type&&0==(131072&c.__u))return r;if(i>+(null!=c&&0==(131072&c.__u)))for(;a>=0||s<t.length;){if(a>=0){if((c=t[a])&&0==(131072&c.__u)&&n==c.key&&o===c.type)return a;a--}if(s<t.length){if((c=t[s])&&0==(131072&c.__u)&&n==c.key&&o===c.type)return s;s++}}return -1}(n,r,a,u))&&(u--,(o=r[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&d--,"function"!=typeof n.type&&(n.__u|=65536)):s!==a&&(s==a-1?d--:s==a+1?d++:(s>a?d--:d++,n.__u|=65536))):n=e.__k[i]=null;if(u)for(i=0;i<l;i++)null!=(o=r[i])&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=ti(o)),function e(t,r,i){var n,o;if(eX.unmount&&eX.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||td(n,null,r)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){eX.__e(e,r)}n.base=n.__P=null}if(n=t.__k)for(o=0;o<n.length;o++)n[o]&&e(n[o],r,i||"function"!=typeof t.type);i||e7(t.__e),t.__c=t.__=t.__e=t.__d=void 0}(o,o))}(r,t,y),c=r.__d,d=0;d<b;d++)null!=(h=r.__k[d])&&(p=-1===h.__i?e3:y[h.__i]||e3,h.__i=d,tu(e,h,p,n,o,a,s,c,l,u),f=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&td(p.ref,null,h),u.push(h.ref,h.__c||f,h)),null==m&&null!=f&&(m=f),65536&h.__u||p.__k===h.__k?c=function e(t,r,i){var n,o;if("function"==typeof t.type){for(n=t.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=t,r=e(n[o],r,i));return r}t.__e!=r&&(r&&t.type&&!i.contains(r)&&(r=ti(t)),i.insertBefore(t.__e,r||null),r=t.__e);do r=r&&r.nextSibling;
vendor: 5,108 bytes, line 8
8while(null!=r&&8===r.nodeType)return r}(h,c,e):"function"==typeof h.type&&void 0!==h.__d?c=h.__d:f&&(c=f.nextSibling),h.__d=void 0,h.__u&=-196609);r.__d=c,r.__e=m}function ts(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||e6.test(t)?r:r+"px"}function tc(e,t,r,i,n){var o;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)r&&t in r||ts(e.style,t,"");if(r)for(t in r)i&&r[t]===i[t]||ts(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?i?r.u=i.u:(r.u=e1,e.addEventListener(t,o?e8:e2,o)):e.removeEventListener(t,o?e8:e2,o);else{if("http://www.w3.org/2000/svg"==n)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function tl(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=e1++;else if(t.t<r.u)return;return r(eX.event?eX.event(t):t)}}}function tu(e,t,r,i,n,o,a,s,c,l){var u,d,p,h,f,m,y,b,g,w,_,v,E,x,S,k,A=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(c=!!(32&r.__u),o=[s=t.__e=r.__e]),(u=eX.__b)&&u(t);e:if("function"==typeof A)try{if(b=t.props,g="prototype"in A&&A.prototype.render,w=(u=A.contextType)&&i[u.__c],_=u?w?w.props.value:u.__:i,r.__c?y=(d=t.__c=r.__c).__=d.__E:(g?t.__c=d=new A(b,_):(t.__c=d=new tr(b,_),d.constructor=A,d.render=tp),w&&w.sub(d),d.props=b,d.state||(d.state={}),d.context=_,d.__n=i,p=d.__d=!0,d.__h=[],d._sb=[]),g&&null==d.__s&&(d.__s=d.state),g&&null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=e9({},d.__s)),e9(d.__s,A.getDerivedStateFromProps(b,d.__s))),h=d.props,f=d.state,d.__v=t,p)g&&null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),g&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(g&&null==A.getDerivedStateFromProps&&b!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(b,_),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(b,d.__s,_)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=b,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(e){e&&(e.__=t)}),v=0;v<d._sb.length;v++)d.__h.push(d._sb[v]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(b,d.__s,_),g&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(h,f,m)})}if(d.context=_,d.props=b,d.__P=e,d.__e=!1,E=eX.__r,x=0,g){for(d.state=d.__s,d.__d=!1,E&&E(t),u=d.render(d.props,d.state,d.context),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[]}else do d.__d=!1,E&&E(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++x<25)d.state=d.__s,null!=d.getChildContext&&(i=e9(e9({},i),d.getChildContext())),g&&!p&&null!=d.getSnapshotBeforeUpdate&&(m=d.getSnapshotBeforeUpdate(h,f)),ta(e,e5(k=null!=u&&u.type===tt&&null==u.key?u.props.children:u)?k:[k],t,r,i,n,o,a,s,c,l),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),y&&(d.__E=d.__=null)}catch(e){if(t.__v=null,c||null!=o){for(t.__u|=c?160:128;s&&8===s.nodeType&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else t.__e=r.__e,t.__k=r.__k;eX.__e(e,t,r)}else null==o&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,i,n,o,a,s,c){var l,u,d,p,h,f,m,y=r.props,b=t.props,g=t.type;if("svg"===g?n="http://www.w3.org/2000/svg":"math"===g?n="http://www.w3.org/1998/Math/MathML":n||(n="http://www.w3.org/1999/xhtml"),null!=o){for(l=0;l<o.length;l++)if((h=o[l])&&"setAttribute"in h==!!g&&(g?h.localName===g:3===h.nodeType)){e=h,o[l]=null;break}}if(null==e){if(null===g)return document.createTextNode(b);e=document.createElementNS(n,g,b.is&&b),s&&(eX.__m&&eX.__m(t,o),s=!1),o=null}if(null===g)y===b||s&&e.data===b||(e.data=b);else{if(o=o&&eG.call(e.childNodes),y=r.props||e3,!s&&null!=o)for(y={},l=0;l<e.attributes.length;l++)y[(h=e.attributes[l]).name]=h.value;for(l in y)if(h=y[l],"children"==l);else if("dangerouslySetInnerHTML"==l)d=h;else if(!(l in b)){if("value"==l&&"defaultValue"in b||"checked"==l&&"defaultChecked"in b)continue;tc(e,l,null,h,n)}for(l in b)h=b[l],"children"==l?p=h:"dangerouslySetInnerHTML"==l?u=h:"value"==l?f=h:"checked"==l?m=h:s&&"function"!=typeof h||y[l]===h||tc(e,l,h,y[l],n);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),ta(e,e5(p)?p:[p],t,r,i,"foreignObject"===g?"http://www.w3.org/1999/xhtml":n,o,a,o?o[0]:r.__k&&ti(r,0),s,c),null!=o)for(l=o.length;l--;)e7(o[l]);s||(l="value","progress"===g&&null==f?e.removeAttribute("value"):void 0===f||f===e[l]&&("progress"!==g||f)&&("option"!==g||f===y[l])||tc(e,l,f,y[l],n),l="checked",void 0!==m&&m!==e[l]&&tc(e,l,m,y[l],n))}return e}(r.__e,t,r,i,n,o,a,c,l);(u=eX.diffed)&&u(t)}
8function td(e,t,r){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==t||(e.__u=e(t))}else e.current=t}catch(e){eX.__e(e,r)}}function tp(e,t,r){return this.constructor(e,r)}function th(e,t,r){if(!e.s){if(r instanceof tf){if(!r.s)return void(r.o=th.bind(null,e,t));1&t&&(t=r.s),r=r.v}if(r&&r.then)return void r.then(th.bind(null,e,t),th.bind(null,e,2));e.s=t,e.v=r;let i=e.o;i&&i(e)}}eG=e4.slice,eX={__e:function(e,t,r,i){for(var n,o,a;t=t.__;)if((n=t.__c)&&!n.__)try{if((o=n.constructor)&&null!=o.getDerivedStateFromError&&(n.setState(o.getDerivedStateFromError(e)),a=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e,i||{}),a=n.__d),a)return n.__E=n}catch(t){e=t}throw e}},eV=0,tr.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=e9({},this.state),"function"==typeof e&&(e=e(e9({},r),this.props)),e&&e9(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),tn(this))},tr.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),tn(this))},tr.prototype.render=tt,eY=[],eQ="function"==typeof Promise?Promise.prototype.then.bind(Prom
8ise.resolve()):setTimeout,e0=function(e,t){return e.__v.__b-t.__v.__b},to.__r=0,e1=0,e2=tl(!1),e8=tl(!0);var tf=function(){function e(){}return e.prototype.then=function(t,r){var i=new e,n=this.s;if(n){var o=1&n?t:r;if(o){try{th(i,1,o(this.v))}catch(e){th(i,2,e)}return i}return this}return this.o=function(e){try{var n=e.v;1&e.s?th(i,1,t?t(n):n):r?th(i,1,r(n)):th(i,2,n)}catch(e){th(i,2,e)}},i},e}();"u"<typeof navigator||navigator.userAgent?.startsWith?.("Mozilla/5.0 ");let tm="ERR_INVALID_ARG_VALUE";function ty(e,t,r){let i=TypeError(e,{cause:r});return Object.assign(i,{code:t}),i}Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),new TextEncoder,new TextDecoder;r=Uint8Array.prototype.toBase64?e=>(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e.toBase64({alphabet:"base64url",omitPadding:!0})):e=>{e instanceof ArrayBuffer&&(e=new Uint8Array(e));let t=[];for(let r=0;r<e.byteLength;r+=32768)t.push(String.fromCharCode.apply(null,e.subarray(r,r+32768)));return btoa(t.join("")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},i=Uint8Array.fromBase64?e=>{try{return Uint8Array.fromBase64(e,{alphabet:"base64url"})}catch(e){throw ty("The input to be decoded is not correctly encoded.",tm,e)}}:e=>{try{let t=atob(e.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"")),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r}catch(e){throw ty("The input to be decoded is not correctly encoded.",tm,e)}};URL.parse;let tb="[a-zA-Z0-9!#$%&\\'\\*\\+\\-\\.\\^_`\\|~]+";async function tg(e,t,r){try{let{logger:i,cookies:n,jwt:a}=r;if(i.debug(`PARSE_${e.toUpperCase()}`,{cookie:t}),!t)throw new o.InvalidCheck(`${e} cookie was missing`);let s=await eF({...a,token:t,salt:n[e].name});if(s?.value)return s.value;throw Error("Invalid cookie")}catch(t){throw new o.InvalidCheck(`${e} value could not be parsed`,{cause:t})}}function tw(e,t){return async function(r,i,n){let{provider:o,logger:a}=n;if(!o?.checks?.includes(e))return;let s=r?.[n.cookies[t].name];a.debug(`USE_${t.toUpperCase()}`,{value:s});let c=await tg(t,s,n);return!function(e,t,r){let{logger:i,cookies:n}=t,o=n[e];i.debug(`CLEAR_${e.toUpperCase()}`,{cookie:o}),r.push({name:o.name,value:"",options:{...n[e].options,maxAge:0}})}(t,n,i),c}}RegExp("^[,\\s]*("+tb+")\\s(.*)"),RegExp("^[,\\s]*("+tb+')\\s*=\\s*"((?:[^"\\\\]|\\\\.)*)"[,\\s]*(.*)'),RegExp("^[,\\s]*"+("("+tb+")\\s*=\\s*(")+tb+")[,\\s]*(.*)"),RegExp("^([a-zA-Z0-9\\-\\._\\~\\+\\/]+[=]{0,2})(?:$|[,\\s])(.*)"),Symbol(),new WeakMap,new WeakMap,new WeakSet,Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),tw("pkce","pkceCodeVerifier"),tw("state","state"),tw("nonce","nonce"),e.i(672762),e.i(946593),e.i(798398),e.i(31245),e.i(241667);var t_=((ez={}).NewEmailConflict="new_email_conflict",ez.UnverifiedEmail="unverified_email",ez.IncorrectEmailOrPassword="incorrect_email_or_password",ez.TotpCodeRequired="totp_code_required",ez.IncorrectTotpCode="incorrect_totp_code",ez.MissingRecoveryCodes="missing_recovery_codes",ez.IncorrectRecoveryCode="incorrect_recovery_code",ez.RequestExpired="request_expired",ez.RateLimitExceeded="rate_limit_exceeded",ez.IllegalOAuthProvider="illegal_oauth_provider",ez.InternalServerError="internal_server_error",ez.UnknownError="unknown_error",ez);o.CredentialsSignin,o.CredentialsSignin,o.CredentialsSignin,o.CredentialsSignin,o.CredentialsSignin,o.CredentialsSignin,o.CredentialsSignin,o.CredentialsSignin,o.CredentialsSignin,e.s(["AuthErrorCode",()=>t_],621141);let tv={[t_.NewEmailConflict]:"Email already exists.",[t_.UnverifiedEmail]:"Your email is not verified yet. We have just sent a verification code to your inbox.",[t_.IncorrectEmailOrPassword]:"Email or password is not correct.",[t_.TotpCodeRequired]:"TOTP code is required.",[t_.IncorrectTotpCode]:"The TOTP code is not correct.",[t_.MissingRecoveryCodes]:"Missing recovery codes.",[t_.IncorrectRecoveryCode]:"The recovery code is not correct.",[t_.RequestExpired]:"Request has expired.",[t_.RateLimitExceeded]:"Rate limit exceeded.",[t_.IllegalOAuthProvider]:"Illegal OAuth provider.",[t_.InternalServerError]:"Something went wrong. Please try again later.",[t_.UnknownError]:"Unknown error."};e.s(["authErrorLabels",0,tv],447196)},838190,e=>{"use strict";var t=e.i(723872),r=e.i(371103),i=e.i(25570),n=e.i(241667),o=e.i(399646),a=e.i(106204),s=e.i(845754),c=e.i(364979),l=e.i(499947),u=e.i(474411),d=e.i(621141),p=e.i(781947),h=e.i(167881),f=e.i(970065),m=e.i(874946),y=e.i(23750),b=e.i(299737),g=e.i(705512),w=e.i(73165),_=e.i(399640),v=e.i(647163),E=e.i(594508),x=e.i(466479);let S=(0,x.createServerReference)("7f1cd11e12932a89dac50949cfa2ef1ea18c7741ca",x.callServer,void 0,x.findSourceMapURL,"signInWithCredentials");var k=e.i(867969),A=e.i(447196),C=e.i(832356);
8let P=C.z.object({email:C.z.string({invalid_type_error:"Email must be a string."}).trim().max(255,"Maximum 255 characters allowed."),password:C.z.string({required_error:"Password is required.",invalid_type_error:"Password must be a string."}).max(72,"Maximum 72 characters allowed."),totpCode:C.z.string().trim().max(10).optional(),recoveryCode:C.z.string().trim().max(32).optional(),callbackUrl:C.z.string().optional()});e.s(["SignInCard",0,function({className:e,...x}){let C=(0,n.useSearchParams)(),R=C.get("email"),O=C.get("callbackUrl"),[j,T]=r.useState(!1),[I,N]=r.useState(),[D,U]=r.useState(),[K,W]=r.useState("credentials"),[M,$]=r.useState("totp"),L=(0,k.useZodForm)({schema:P,mode:"onSubmit",defaultValues:{email:R||"",password:"",totpCode:"",recoveryCode:""}}),H=!j&&!L.formState.isSubmitting,F=L.formState.isSubmitting,[q,B]=r.useState(0);r.useEffect(()=>{0===q||F||"twoFactor"!==K||L.setFocus("totp"===M?"totpCode":"recoveryCode")},[q,F,K,M,L]);let J=async e=>{if(!H)return;T(!0),N(void 0);let t=await S({...e,callbackUrl:O||void 0});if(t?.validationErrors?._errors){let r=t.validationErrors._errors[0];r===d.AuthErrorCode.TotpCodeRequired?(W("twoFactor"),$("totp"),L.setValue("totpCode",""),L.setValue("recoveryCode",""),N(void 0)):r===d.AuthErrorCode.IncorrectTotpCode||r===d.AuthErrorCode.IncorrectRecoveryCode?(W("twoFactor"),L.setValue("totpCode",""),L.setValue("recoveryCode",""),N(A.authErrorLabels[r]),B(e=>e+1)):(U(r===d.AuthErrorCode.UnverifiedEmail?e.email:void 0),N(A.authErrorLabels[r in A.authErrorLabels?r:d.AuthErrorCode.UnknownError])),T(!1)}else t?.serverError&&(U(void 0),N(t.serverError),T(!1))},z=async()=>{if(!H)return;T(!0);let e=await (0,E.continueWithGoogle)({callbackUrl:O||void 0});(e?.serverError||e?.validationErrors)&&N(e.serverError||"Couldn't continue with Google"),T(!1)};return(0,t.jsxs)(f.Card,{className:(0,v.cn)("w-full max-w-lg mx-auto px-4 py-2 border-transparent dark:border-border",e),...x,children:[(0,t.jsx)(f.CardHeader,{panel:!1,children:"credentials"===K?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f.CardTitle,{className:"text-base lg:text-lg",children:"Sign in to your account"}),(0,t.jsx)(f.CardDescription,{children:"Welcome back! Please sign in to continue."})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(f.CardTitle,{className:"text-base lg:text-lg flex items-center gap-2",children:[(0,t.jsx)(u.ShieldCheckIcon,{className:"size-5"}),"Two-factor authentication"]}),(0,t.jsx)(f.CardDescription,{children:"totp"===M?"Enter the 6-digit code from your authenticator app.":"Enter one of your recovery codes."})]})}),(0,t.jsxs)(f.CardContent,{className:"flex flex-col gap-4",children:[(0,t.jsx)(m.FormProvider,{...L,children:(0,t.jsxs)("form",{className:"flex flex-col gap-4",onSubmit:L.handleSubmit(J),children:["credentials"===K?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.FormField,{control:L.control,name:"email",render:({field:e})=>(0,t.jsxs)(m.FormItem,{className:"flex flex-col",children:[(0,t.jsx)(m.FormLabel,{children:"Email"}),(0,t.jsx)(m.FormControl,{children:(0,t.jsx)(_.InputWithAdornments,{...e,autoFocus:!0,t
8ype:"email",maxLength:255,autoCapitalize:"off",autoComplete:"username",startAdornment:(0,t.jsx)(l.MailIcon,{className:"size-4 shrink-0"}),disabled:L.formState.isSubmitting})}),(0,t.jsx)(m.FormMessage,{})]})}),(0,t.jsx)(m.FormField,{control:L.control,name:"password",render:({field:e})=>(0,t.jsxs)(m.FormItem,{className:"flex flex-col",children:[(0,t.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,t.jsx)(m.FormLabel,{children:"Password"}),(0,t.jsx)(i.default,{href:"/auth/forgot-password",className:"ml-auto inline-block text-sm underline",children:"Forgot password?"})]}),(0,t.jsx)(m.FormControl,{children:(0,t.jsx)(w.InputPassword,{...e,maxLength:72,autoCapitalize:"off",autoComplete:"current-password",startAdornment:(0,t.jsx)(c.LockIcon,{className:"size-4 shrink-0"}),disabled:L.formState.isSubmitting})}),(0,t.jsx)(m.FormMessage,{})]})})]}):"totp"===M?(0,t.jsx)(m.FormField,{control:L.control,name:"totpCode",render:({field:e})=>(0,t.jsxs)(m.FormItem,{className:"flex w-full flex-col items-center space-y-0",children:[(0,t.jsx)(m.FormControl,{children:(0,t.jsx)(b.InputOTP,{...e,autoFocus:!0,inputMode:"numeric",maxLength:6,pattern:g.REGEXP_ONLY_DIGITS,disabled:L.formState.isSubmitting,onComplete:L.handleSubmit(J),children:(0,t.jsxs)(b.InputOTPGroup,{children:[(0,t.jsx)(b.InputOTPSlot,{index:0}),(0,t.jsx)(b.InputOTPSlot,{index:1}),(0,t.jsx)(b.InputOTPSlot,{index:2}),(0,t.jsx)(b.InputOTPSlot,{index:3}),(0,t.jsx)(b.InputOTPSlot,{index:4}),(0,t.jsx)(b.InputOTPSlot,{index:5})]})})}),(0,t.jsx)(m.FormMessage,{})]})}):(0,t.jsx)(m.FormField,{control:L.control,name:"recoveryCode",render:({field:e})=>(0,t.jsxs)(m.FormItem,{className:"flex flex-col",children:[(0,t.jsx)(m.FormLabel,{children:"Recovery code"}),(0,t.jsx)(m.FormControl,{children:(0,t.jsx)(y.Input,{...e,autoFocus:!0,autoComplete:"one-time-code",placeholder:"xxxxx-xxxxx",disabled:L.formState.isSubmitting})}),(0,t.jsx)(m.FormMessage,{})]})}),I&&(0,t.jsx)(p.Alert,{variant:"destructive",children:(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,t.jsx)(o.AlertCircleIcon,{className:"size-[18px] shrink-0"}),(0,t.jsxs)(p.AlertDescription,{children:[I,D&&(0,t.jsxs)(i.default,{href:`/auth/verify-email?email=${encodeURIComponent(D)}`,className:(0,v.cn)((0,h.buttonVariants)({variant:"link"}),"ml-0.5 h-fit gap-0.5 px-0.5 py-0 text-foreground underline"),children:["Verify email",(0,t.jsx)(s.ArrowRightIcon,{className:"size-3 shrink-0"})]})]})]})}),(0,t.jsx)(h.Button,{type:"submit",variant:"default",className:"w-full relative",disabled:!H,loading:L.formState.isSubmitting||j,onClick:L.handleSubmit(J),children:"credentials"===K?"Sign in":"Verify"}),"twoFactor"===K&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 text-sm",children:[(0,t.jsx)("button",{type:"button",className:"text-foreground underline self-center",onClick:()=>{$(e=>"totp"===e?"recovery":"totp"),L.setValue("totpCode",""),L.setValue("recoveryCode",""),N(void 0)},children:"totp"===M?"Use a recovery code instead":"Use your authenticator app instead"}),(0,t.jsxs)("button",{type:"button",className:"text-muted-foreground hover:text-foreground inline-flex items-center justify-center gap-1",onClick:()=>{W("credentials"),N(void 0),L.setValue("totpCode",""),L.setValue("recoveryCode","")},children:[(0,t.jsx)(a.ArrowLeftIcon,{className:"size-3"}),"Back to sign-in"]})]})]})}),"credentials"===K&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("span",{className:"w-full border-t"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,t.jsx)("span",{className:"bg-card px-2 text-muted-foreground",children:"Or continue with"})})]}),(0,t.jsxs)(h.Button,{type:"button",variant:"outline",className:"flex w-full flex-row items-center gap-2",disabled:!H,onClick:z,children:[(0,t.jsx)("img",{src:"/assets/logos/google-logo.svg",alt:"Google",width:20,height:20,className:"shrink-0"}),"Google"]})]})]}),"credentials"===K&&(0,t.jsxs)(f.CardFooter,{className:"flex justify-center gap-1 text-sm text-muted-foreground",children:[(0,t.jsx)("span",{children:"Don't have an account?"}),(0,t.jsx)(i.default,{href:"/auth/sign-up",className:"text-foreground underline",children:"Sign up"})]})]})}],838190)},2675,e=>{"use strict";var t=e.i(723872),r=e.i(371103),i=e.i(241667),n=e.i(399646),o=e.i(106204),a=e.i(474411),s=e.i(621141),c=e.i(781947),l=e.i(167881),u=e.i(970065),d=e.i(874946),p=e.i(23750),h=e.i(299737),f=e.i(705512),m=e.i(647163),y=e.i(466479);let b=(0,y.createServerReference)("7fce24dae523e8a7f0298fc2a33e0faeafbf0201b9",y.callServer,void 0,y.findSourceMapURL,"completeTwoFactorChallenge");var g=e.i(160107),w=e.i(867969),_=e.i(447196),v=e.i(480153);e.s(["TwoFactorChallengeCard",0,function({className:e,...y}){let E=(0,i.useSearchParams)().get("callbackUrl"),[x,S]=r.useState(!1),[k,A]=r.useState(),[C,P]=r.useState("totp"),R=(0,w.useZodForm)({schema:v.completeTwoFactorChallengeSchema,mode:"onSubmit",defaultValues:{totpCode:"",recoveryCode:""}}),O=!x&&!R.formState.isSubmitting,j=R.formState.isSubmitting,[T,I]=r.useState(0);r.useEffect(()=>{0===T||j||R.setFocus("totp"===C?"totpCode":"recoveryCode")},[T,j,C,R]);let N=async e=>{if(!O)return;S(!0),A(void 0);let t=await b("totp"===C?{totpCode:e.totpCode}:{recoveryCode:e.recoveryCode});if(t?.data?.success){let e=E&&E.startsWith("/")?E:"/onboarding";window.location.assign(e);return}if(R.setValue("totpCode",""),R.setValue("recoveryCode",""),I(e=>e+1),t?.validationErrors?._errors){let e=t.validationErrors._errors[0];A(_.authErrorLabels[e in _.authErrorLabels?e:s.AuthErrorCode.UnknownError])}else t?.serverError?A(t.serverError):A(_.authErrorLabels[s.AuthErrorCode.UnknownError]);S(!1)},D=async()=>{x||(S(!0),await (0,g.signOut)({redirect:!0}))};return(0,t.jsxs)(u.Card,{className:(0,m.cn)("w-full max-w-lg mx-auto px-4 py-2 border-transparent dark:border-border",e),...y,children:[(0,t.jsxs)(u.CardHeader,{panel:!1,children:[(0,t.jsxs)(u.CardTitle,{className:"text-base lg:text-lg flex items-center gap-2",children:[(0,t.jsx)(a.ShieldCheckIcon,{className:"size-5"}),"Two-factor authentication"]}),(0,t.jsx)(u.CardDescription,{children:"totp"===C?"Enter the 6-digit code from your authenticator app to finish signing in.":"Enter one of your recovery codes to finish signing in."})]}),(0,t.jsx)(u.CardContent,{className:"flex flex-col gap-4",children:(0,t.jsx)(d.FormProvider,{...R,children:(0,t.jsxs)("form",{className:"flex flex-col gap-4",onSubmit:R.handleSubmit(N),children:["totp"===C?(0,t.jsx)(d.FormField,{control:R.control,name:"totpCode",render:({field:e})=>(0,t.jsxs)(d.FormItem,{className:"flex w-full flex-col items-center space-y-0",children:[(0,t.jsx)(d.FormControl,{children:(0,t.jsx)(h.InputOTP,{...e,autoF
8ocus:!0,inputMode:"numeric",maxLength:6,pattern:f.REGEXP_ONLY_DIGITS,disabled:R.formState.isSubmitting,onComplete:R.handleSubmit(N),children:(0,t.jsxs)(h.InputOTPGroup,{children:[(0,t.jsx)(h.InputOTPSlot,{index:0}),(0,t.jsx)(h.InputOTPSlot,{index:1}),(0,t.jsx)(h.InputOTPSlot,{index:2}),(0,t.jsx)(h.InputOTPSlot,{index:3}),(0,t.jsx)(h.InputOTPSlot,{index:4}),(0,t.jsx)(h.InputOTPSlot,{index:5})]})})}),(0,t.jsx)(d.FormMessage,{})]})}):(0,t.jsx)(d.FormField,{control:R.control,name:"recoveryCode",render:({field:e})=>(0,t.jsxs)(d.FormItem,{className:"flex flex-col",children:[(0,t.jsx)(d.FormLabel,{children:"Recovery code"}),(0,t.jsx)(d.FormControl,{children:(0,t.jsx)(p.Input,{...e,autoFocus:!0,autoComplete:"one-time-code",placeholder:"xxxxx-xxxxx",disabled:R.formState.isSubmitting})}),(0,t.jsx)(d.FormMessage,{})]})}),k&&(0,t.jsx)(c.Alert,{variant:"destructive",children:(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,t.jsx)(n.AlertCircleIcon,{className:"size-[18px] shrink-0"}),(0,t.jsx)(c.AlertDescription,{children:k})]})}),(0,t.jsx)(l.Button,{type:"submit",variant:"default",className:"w-full relative",disabled:!O,loading:R.formState.isSubmitting||x,onClick:R.handleSubmit(N),children:"Verify"}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 text-sm",children:[(0,t.jsx)("button",{type:"button",className:"text-foreground underline self-center",onClick:()=>{P(e=>"totp"===e?"recovery":"totp"),R.setValue("totpCode",""),R.setValue("recoveryCode",""),A(void 0)},children:"totp"===C?"Use a recovery code instead":"Use your authenticator app instead"}),(0,t.jsxs)("button",{type:"button",className:"text-muted-foreground hover:text-foreground inline-flex items-center justify-center gap-1",onClick:D,children:[(0,t.jsx)(o.ArrowLeftIcon,{className:"size-3"}),"Cancel and sign out"]})]})]})})})]})}],2675)}]);

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.