(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59785,e=>{"use strict";var t,r;(r=t||(t={})).NoEndpointId="NoEndpointId",r.PlatformNotSupported="PlatformNotSupported",r.Unknown="Unknown",r.NetworkError="NetworkError",e.s(["AmplifyErrorCode",()=>t])},13157,e=>{"use strict";var t,r,o,n,i,a,s,d,u,c,l,f,p,m,g,h,y,w,E,A,S,v,I,R,b,x;(g=t||(t={})).WebUnknown="0",g.React="1",g.NextJs="2",g.Angular="3",g.VueJs="4",g.Nuxt="5",g.Svelte="6",g.ServerSideUnknown="100",g.ReactSSR="101",g.NextJsSSR="102",g.AngularSSR="103",g.VueJsSSR="104",g.NuxtSSR="105",g.SvelteSSR="106",g.ReactNative="201",g.Expo="202",(h=r||(r={})).AI="ai",h.API="api",h.Auth="auth",h.Analytics="analytics",h.DataStore="datastore",h.Geo="geo",h.InAppMessaging="inappmessaging",h.Interactions="interactions",h.Predictions="predictions",h.PubSub="pubsub",h.PushNotification="pushnotification",h.Storage="storage",(y=o||(o={})).CreateConversation="1",y.GetConversation="2",y.ListConversations="3",y.DeleteConversation="4",y.SendMessage="5",y.ListMessages="6",y.OnMessage="7",y.Generation="8",y.UpdateConversation="9",(w=n||(n={})).Record="1",w.IdentifyUser="2",(E=i||(i={})).GraphQl="1",E.Get="2",E.Post="3",E.Put="4",E.Patch="5",E.Del="6",E.Head="7",(A=a||(a={})).SignUp="1",A.ConfirmSignUp="2",A.ResendSignUpCode="3",A.SignIn="4",A.FetchMFAPreference="6",A.UpdateMFAPreference="7",A.SetUpTOTP="10",A.VerifyTOTPSetup="11",A.ConfirmSignIn="12",A.DeleteUserAttributes="15",A.DeleteUser="16",A.UpdateUserAttributes="17",A.FetchUserAttributes="18",A.ConfirmUserAttribute="22",A.SignOut="26",A.UpdatePassword="27",A.ResetPassword="28",A.ConfirmResetPassword="29",A.FederatedSignIn="30",A.RememberDevice="32",A.ForgetDevice="33",A.FetchDevices="34",A.SendUserAttributeVerificationCode="35",A.SignInWithRedirect="36",A.StartWebAuthnRegistration="37",A.CompleteWebAuthnRegistration="38",A.ListWebAuthnCredentials="39",A.DeleteWebAuthnCredential="40",(S=s||(s={})).Subscribe="1",S.GraphQl="2",(v=d||(d={})).SearchByText="0",v.SearchByCoordinates="1",v.SearchForSuggestions="2",v.SearchByPlaceId="3",v.SaveGeofences="4",v.GetGeofence="5",v.ListGeofences="6",v.DeleteGeofences="7",(I=u||(u={})).SyncMessages="1",I.IdentifyUser="2",I.NotifyMessageInteraction="3",(c||(c={})).None="0",(R=l||(l={})).Convert="1",R.Identify="2",R.Interpret="3",(f||(f={})).Subscribe="1",(b=p||(p={})).InitializePushNotifications="1",b.IdentifyUser="2",(x=m||(m={})).UploadData="1",x.DownloadData="2",x.List="3",x.Copy="4",x.Remove="5",x.GetProperties="6",x.GetUrl="7",x.GetDataAccess="8",x.ListCallerAccessGrants="9",e.s(["AuthAction",()=>a,"Category",()=>r,"Framework",()=>t])},83901,e=>{"use strict";let t;var r=e.i(13157);let o="6.16.2";var n=e.i(47167);let i=(e,t)=>!!Object.keys(e).find(e=>e.startsWith(t)),a=[{platform:r.Framework.Expo,detectionMethod:function(){return void 0!==e.g.expo}},{platform:r.Framework.ReactNative,detectionMethod:function(){return"u">typeof navigator&&void 0!==navigator.product&&"ReactNative"===navigator.product}},{platform:r.Framework.NextJs,detectionMethod:function(){return"u">typeof window&&window.next&&"object"==typeof window.next}},{platform:r.Framework.Nuxt,detectionMethod:function(){return"u">typeof window&&(void 0!==window.__NUXT__||void 0!==window.$nuxt)}},{platform:r.Framework.Angular,detectionMethod:function(){let e=!!("u">typeof document&&document.querySelector("[ng-version]")),t=!!("u">typeof window&&void 0!==window.ng);return e||t}},{platform:r.Framework.React,detectionMethod:function(){let e=e=>e.startsWith("_react")||e.startsWith("__react");return"u">typeof document&&Array.from(document.querySelectorAll("[id]")).some(t=>Object.keys(t).find(e))}},{platform:r.Framework.VueJs,detectionMethod:function(){return"u">typeof window&&i(window,"__VUE")}},{platform:r.Framework.Svelte,detectionMethod:function(){return"u">typeof window&&i(window,"__SVELTE")}},{platform:r.Framework.WebUnknown,detectionMethod:function(){return"u">typeof window}},{platform:r.Framework.NextJsSSR,detectionMethod:function(){return i(e.g,"__next")||i(e.g,"__NEXT")}},{platform:r.Framework.NuxtSSR,detectionMethod:function(){return void 0!==e.g.__NUXT_PATHS__}},{platform:r.Framework.ReactSSR,detectionMethod:function(){return void 0!==n.default&&void 0!==n.default.env&&!!Object.keys(n.default.env).find(e=>e.includes("react"))}},{platform:r.Framework.VueJsSSR,detectionMethod:function(){return i(e.g,"__VUE")}},{platform:r.Framework.AngularSSR,detectionMethod:function(){return void 0!==n.default&&"object"==typeof n.default.env&&n.default.env.npm_lifecycle_script?.startsWith("ng ")||!1}},{platform:r.Framework.SvelteSSR,detectionMethod:function(){return void 0!==n.default&&void 0!==n.default.env&&!!Object.keys(n.default.env).find(e=>e.includes("svelte"))}}],s=[],d=!1,u=()=>{if(!t){if(t=a.find(e=>e.detectionMethod())?.platform||r.Framework.ServerSideUnknown,d)for(;s.length;)s.pop()?.();else s.forEach(e=>{e()});c(r.Framework.ServerSideUnknown,10),c(r.Framework.WebUnknown,10)}return t};function c(e,r){t!==e||d||setTimeout(()=>{t=void 0,d=!0,setTimeout(u,1e3)},r)}let l={},f="aws-amplify";new class{constructor(){this.userAgent=`${f}/${(e=>e.replace(/\+.*/,""))(o)}`}get framework(){return u()}get isReactNative(){return this.framework===r.Framework.ReactNative||this.framework===r.Framework.Expo}observeFrameworkChanges(e){d||s.push(e)}};let p=e=>(({category:e,action:t}={})=>{let r=[[f,o.replace(/\+.*/,"")]];if(e&&r.push([e,t]),r.push(["framework",u()]),e&&t){let o=l[e]?.[t]?.additionalDetails;o&&o.forEach(e=>{r.push(e)})}return r})(e).map(([e,t])=>e&&t?`${e}/${t}`:e).join(" ");e.s(["getAmplifyUserAgent",()=>p],83901)},64978,60218,e=>{"use strict";let t=e=>{let{headers:t,statusCode:o}=e;return{...r(e)?e.$metadata:{},httpStatusCode:o,requestId:t["x-amzn-requestid"]??t["x-amzn-request-id"]??t["x-amz-request-id"],extendedRequestId:t["x-amz-id-2"],cfId:t["x-amz-cf-id"]}},r=e=>"object"==typeof e?.$metadata;e.s(["parseMetadata",()=>t],60218);let o=async e=>{if(!e||e.statusCode<300)return;let r=await n(e),o=(e=>{let[t]=e.toString().split(/[,:]+/);return t.includes("#")?t.split("#")[1]:t})(e.headers["x-amzn-errortype"]??r.code??r.__type??"UnknownError");return Object.assign(Error(r.message??r.Message??"Unknown error"),{name:o,$metadata:t(e)})},n=async e=>{if(!e.body)throw Error("Missing response payload");return Object.assign(await e.body.json(),{$metadata:t(e)})};e.s(["parseJsonBody",()=>n,"parseJsonError",()=>o],64978)},7348,e=>{"use strict";let t=(e,t,r,o)=>async(n,i)=>{let a={...o,...n},s=await a.endpointResolver(a,i),d=await t(i,s);return r(await e(d,{...a}))};e.s(["composeServiceApi",()=>t])},74876,e=>{"use strict";function t(e=3e5){return t=>{let r=2**t*100+100*Math.random();return!(r>e)&&r}}e.s(["jitteredBackoff",()=>t],74876)},22551,e=>{"use strict";e.s(["AMZ_SDK_INVOCATION_ID_HEADER",()=>"amz-sdk-invocation-id","AMZ_SDK_REQUEST_HEADER",()=>"amz-sdk-request","DEFAULT_MAX_DELAY_MS",()=>3e5,"DEFAULT_RETRY_ATTEMPTS",()=>3])},23487,e=>{"use strict";var t=e.i(74876),r=e.i(22551);let o=e=>{let o=(0,t.jitteredBackoff)(r.DEFAULT_MAX_DELAY_MS)(e);return!1===o?r.DEFAULT_MAX_DELAY_MS:o};e.s(["jitteredBackoff",()=>o])},25413,e=>{"use strict";var t=e.i(59785);let r=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],o=e=>async(t,o)=>{let n=o??await e(t)??void 0,i=n?.code||n?.name,u=t?.statusCode;return{retryable:s(o)||a(u,i)||!!i&&r.includes(i)||d(u,i)}},n=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],i=["TimeoutError","RequestTimeout","RequestTimeoutException"],a=(e,t)=>429===e||!!t&&n.includes(t),s=e=>[t.AmplifyErrorCode.NetworkError,"ERR_NETWORK"].includes(e?.name),d=(e,t)=>!!e&&[500,502,503,504].includes(e)||!!t&&i.includes(t);e.s(["getRetryDecider",()=>o],25413)},30362,9459,56615,52669,e=>{"use strict";let t;var r=e.i(22551);let o=({maxAttempts:e=r.DEFAULT_RETRY_ATTEMPTS,retryDecider:t,computeDelay:o,abortSignal:a})=>{if(e<1)throw Error("maxAttempts must be greater than 0");return(r,s)=>async function(d){let u,c,l=s.attemptsCount??0,f=()=>{if(c)return i(c,l),c;throw i(u,l),u};for(;!a?.aborted&&ll?s.attemptsCount??0:l+1,s.attemptsCount=l;let{isCredentialsExpiredError:i,retryable:p}=await t(c,u,s);if(!p)return f();if(s.isCredentialsExpired=!!i,!a?.aborted&&l{let r,o;if(t?.aborted)return Promise.resolve();let n=new Promise(t=>{o=t,r=setTimeout(t,e)});return t?.addEventListener("abort",function e(n){clearTimeout(r),t?.removeEventListener("abort",e),o()}),n},i=(e,t)=>{"[object Object]"===Object.prototype.toString.call(e)&&(e.$metadata={...e.$metadata??{},attempts:t})};e.s(["retryMiddlewareFactory",()=>o],30362);let a="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),s=new Uint8Array(16),d=[];for(let e=0;e<256;++e)d.push((e+256).toString(16).slice(1));let u=function(e,r,o){if(a&&!r&&!e)return a();let n=(e=e||{}).random??e.rng?.()??function(){if(!t){if("u"= 16");if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,r){if((o=o||0)<0||o+16>r.length)throw RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`);for(let e=0;e<16;++e)r[o+e]=n[e];return r}return function(e,t=0){return(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase()}(n)};e.i(62008),e.i(51191);let c=()=>e=>async function(t){return t.headers[r.AMZ_SDK_INVOCATION_ID_HEADER]||(t.headers[r.AMZ_SDK_INVOCATION_ID_HEADER]=u()),e(t)};e.s(["amzSdkInvocationIdHeaderMiddlewareFactory",()=>c],9459);var l=r;let f=({maxAttempts:e=l.DEFAULT_RETRY_ATTEMPTS})=>(t,r)=>async function(o){let n=r.attemptsCount??0;return o.headers[l.AMZ_SDK_REQUEST_HEADER]=`attempt=${n+1}; max=${e}`,t(o)};e.s(["amzSdkRequestHeaderMiddlewareFactory",()=>f],56615);let p=({userAgentHeader:e="x-amz-user-agent",userAgentValue:t=""})=>r=>async function(o){if(0===t.trim().length)return await r(o);{let n=e.toLowerCase();return o.headers[n]=o.headers[n]?`${o.headers[n]} ${t}`:t,await r(o)}};e.s(["userAgentMiddlewareFactory",()=>p],52669)},92973,e=>{"use strict";let t=(e,t)=>(r,o)=>{let n={},i=t=>e(t,o);for(let e=t.length-1;e>=0;e--)i=(0,t[e])(o)(i,n);return i(r)};e.s(["composeTransferHandler",()=>t])},39291,e=>{"use strict";var t=e.i(30362),r=e.i(9459),o=e.i(56615),n=e.i(52669),i=e.i(92973),a=e.i(69993),s=e.i(59785);let d=e=>{let t;return()=>(t||(t=e()),t)},u=async({url:e,method:t,headers:r,body:o},{abortSignal:n,cache:i,withCrossDomainCredentials:u})=>{let c;try{c=await fetch(e,{method:t,headers:r,body:["HEAD","GET"].includes(t.toUpperCase())?void 0:o,signal:n,cache:i,credentials:u?"include":"same-origin"})}catch(e){if(e instanceof TypeError)throw new a.AmplifyError({name:s.AmplifyErrorCode.NetworkError,message:"A network error has occurred.",underlyingError:e});throw e}let l={};c.headers?.forEach((e,t)=>{l[t.toLowerCase()]=e});let f={statusCode:c.status,headers:l,body:null},p=Object.assign(c.body??{},{text:d(()=>c.text()),blob:d(()=>c.blob()),json:d(()=>c.json())});return{...f,body:p}},c=(0,i.composeTransferHandler)(u,[n.userAgentMiddlewareFactory,r.amzSdkInvocationIdHeaderMiddlewareFactory,t.retryMiddlewareFactory,o.amzSdkRequestHeaderMiddlewareFactory]);e.s(["unauthenticatedHandler",()=>c],39291)},78475,78428,74883,62410,e=>{"use strict";var t,r,o=e.i(69993);let n=()=>{if("object"==typeof window&&"object"==typeof window.crypto)return window.crypto;if("object"==typeof crypto)return crypto;throw new o.AmplifyError({name:"MissingPolyfill",message:"Cannot resolve the `crypto` function from the environment."})},i=()=>{if("u">typeof window&&"function"==typeof window.btoa)return window.btoa;if("function"==typeof btoa)return btoa;throw new o.AmplifyError({name:"Base64EncoderError",message:"Cannot resolve the `btoa` function from the environment."})},a=()=>{if("u">typeof window&&"function"==typeof window.atob)return window.atob;if("function"==typeof atob)return atob;throw new o.AmplifyError({name:"Base64EncoderError",message:"Cannot resolve the `atob` function from the environment."})};e.s(["getAtob",()=>a,"getBtoa",()=>i,"getCrypto",()=>n],78428);let s={convert(e,t){let r=e;return t?.urlSafe&&(r=r.replace(/-/g,"+").replace(/_/g,"/")),a()(r)}};e.s(["base64Decoder",()=>s],74883);var d=o;let u=(e,t=d.AmplifyError)=>(r,o,n)=>{let{message:i,recoverySuggestion:a}=e[o];if(!r)throw new t({name:o,message:n?`${i} ${n}`:i,recoverySuggestion:a})};e.s(["createAssertionFunction",()=>u],62410),(t=r||(r={})).AuthTokenConfigException="AuthTokenConfigException",t.AuthUserPoolAndIdentityPoolException="AuthUserPoolAndIdentityPoolException",t.AuthUserPoolException="AuthUserPoolException",t.InvalidIdentityPoolIdException="InvalidIdentityPoolIdException",t.OAuthNotConfigureException="OAuthNotConfigureException";let c=u({[r.AuthTokenConfigException]:{message:"Auth Token Provider not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app."},[r.AuthUserPoolAndIdentityPoolException]:{message:"Auth UserPool or IdentityPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId."},[r.AuthUserPoolException]:{message:"Auth UserPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId."},[r.InvalidIdentityPoolIdException]:{message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."},[r.OAuthNotConfigureException]:{message:"oauth param not configured.",recoverySuggestion:"Make sure to call Amplify.configure with oauth parameter in your app."}});function l(e){c(!!e&&!!e.userPoolId&&!!e.userPoolClientId,r.AuthUserPoolException)}function f(e){c(!!e?.loginWith?.oauth?.domain&&!!e?.loginWith?.oauth?.redirectSignOut&&!!e?.loginWith?.oauth?.redirectSignIn&&!!e?.loginWith?.oauth?.responseType,r.OAuthNotConfigureException)}function p(e){c(!!e?.identityPoolId,r.InvalidIdentityPoolIdException)}function m(e){let t=e.split(".");if(3!==t.length)throw Error("Invalid token");try{let r=t[1].replace(/-/g,"+").replace(/_/g,"/"),o=decodeURIComponent(s.convert(r).split("").map(e=>`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`).join("")),n=JSON.parse(o);return{toString:()=>e,payload:n}}catch(e){throw Error("Invalid token payload")}}e.s(["assertIdentityPoolIdConfig",()=>p,"assertOAuthConfig",()=>f,"assertTokenProviderConfig",()=>l,"decodeJWT",()=>m],78475)},44440,e=>{"use strict";var t=e.i(69993);class r extends t.AmplifyError{constructor(e){super(e),this.constructor=r,Object.setPrototypeOf(this,r.prototype)}}e.s(["AuthError",()=>r])},88236,e=>{"use strict";var t=e.i(59785),r=e.i(44440);function o(e){if(!e||"Error"===e.name||e instanceof TypeError)throw new r.AuthError({name:t.AmplifyErrorCode.Unknown,message:"An unknown error has occurred.",underlyingError:e})}e.s(["assertServiceError",()=>o])},70095,e=>{"use strict";var t=e.i(44440);function r(e){let r=e?.split("_")[0];if(!e||0>e.indexOf("_")||!r||"string"!=typeof r)throw new t.AuthError({name:"InvalidUserPoolId",message:"Invalid user pool id provided."});return r}function o(e){if(!e||!e.includes(":"))throw new t.AuthError({name:"InvalidIdentityPoolIdException",message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."});return e.split(":")[0]}e.s(["getRegionFromIdentityPoolId",()=>o,"getRegionFromUserPoolId",()=>r])},19944,e=>{"use strict";let t={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},r={partitions:[t,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},o=e=>{let{partitions:o}=r;for(let{regions:t,outputs:r,regionRegex:n}of o){let o=new RegExp(n);if(t.includes(e)||o.test(e))return r.dnsSuffix}return t.outputs.dnsSuffix};e.s(["getDnsSuffix",()=>o],19944)},76518,e=>{"use strict";let t=URL;URLSearchParams,e.s(["AmplifyUrl",()=>t])},98373,e=>{"use strict";e.s(["COGNITO_IDP_SERVICE_NAME",()=>"cognito-idp"])},26399,e=>{"use strict";var t=e.i(76518),r=e.i(19944),o=e.i(98373);let n=({endpointOverride:e})=>n=>e?{url:new t.AmplifyUrl(e)}:(({region:e})=>({url:new t.AmplifyUrl(`https://${o.COGNITO_IDP_SERVICE_NAME}.${e}.${(0,r.getDnsSuffix)(e)}`)}))(n);e.s(["createCognitoUserPoolEndpointResolver",()=>n],26399)},38025,e=>{"use strict";let t=e=>(t,n)=>o(n,r(e),JSON.stringify(t)),r=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${e}`}),o=({url:e},t,r)=>({headers:t,url:e,body:r,method:"POST"});e.s(["createUserPoolSerializer",()=>t])},39615,e=>{"use strict";var t=e.i(64978),r=e.i(88236),o=e.i(44440);let n=()=>async e=>{if(e.statusCode>=300){let n=await (0,t.parseJsonError)(e);throw(0,r.assertServiceError)(n),new o.AuthError({name:n.name,message:n.message,metadata:n.$metadata})}return(0,t.parseJsonBody)(e)};e.s(["createUserPoolDeserializer",()=>n])},21089,e=>{"use strict";var t=e.i(92973),r=e.i(39291);let o=(0,t.composeTransferHandler)(r.unauthenticatedHandler,[()=>(e,t)=>async function(t){return t.headers["cache-control"]="no-store",e(t)}]);e.s(["cognitoUserPoolTransferHandler",()=>o])},75585,e=>{"use strict";var t=e.i(25413),r=e.i(64978),o=e.i(23487),n=e.i(83901);let i={service:e.i(98373).COGNITO_IDP_SERVICE_NAME,retryDecider:(0,t.getRetryDecider)(r.parseJsonError),computeDelay:o.jitteredBackoff,get userAgentValue(){return(0,n.getAmplifyUserAgent)()},cache:"no-store"};e.s(["DEFAULT_SERVICE_CLIENT_API_CONFIG",()=>i])}]);