@aws-amplify/ui-vue 2.4.19 → 2.4.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -13
- package/dist/index.js +94 -90
- package/dist/src/components/confirm-sign-in.vue.d.ts.map +1 -1
- package/package.json +2 -3
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=require("vue"),le=require("aws-amplify");const Ue=o.defineComponent({__name:"base-field-set",setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"fieldSetI",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("fieldset",o.mergeProps(n.$attrs,{"data-amplify-fieldset":""}),[o.renderSlot(n.$slots,"default")],16)])}}),Ns=["type","data-fullwidth","data-size","data-fontWeight","data-variation","data-loading","data-disabled","disabled"],we=o.defineComponent({__name:"amplify-button",props:{type:null,fullWidth:{type:[Boolean,String]},size:null,variation:null,fontWeight:null,loading:{type:[Boolean,String]},disabled:{type:[Boolean,String]}},setup(e){const t=e,{type:n,fullWidth:r,size:a,variation:i,fontWeight:s}=o.toRefs(t);return(u,c)=>o.renderSlot(u.$slots,"buttont",o.normalizeProps(o.guardReactiveProps(u.$attrs)),()=>[o.createElementVNode("button",o.mergeProps({class:["amplify-button",{[`amplify-button--${o.unref(i)}`]:o.unref(i),[`amplify-button--${o.unref(a)}`]:o.unref(a),"amplify-button--fullwidth":o.unref(r),"amplify-button--loading":e.loading,"amplify-button--disabled":e.disabled}],type:o.unref(n),style:{fontWeight:o.unref(s)},"data-fullwidth":o.unref(r),"data-size":o.unref(a),"data-fontWeight":o.unref(s),"data-variation":o.unref(i),"data-loading":e.loading,"data-disabled":e.disabled,disabled:e.disabled},u.$attrs,{"data-amplify-button":""}),[o.renderSlot(u.$slots,"default")],16,Ns)])}});var be=function(e){var t;return(t=e.context.actorRef)===null||t===void 0?void 0:t.getSnapshot()},Ja=function(e){var t;return(t=be(e))===null||t===void 0?void 0:t.context},tn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ks=typeof tn=="object"&&tn&&tn.Object===Object&&tn,Za=ks,xs=Za,Os=typeof self=="object"&&self&&self.Object===Object&&self,Us=xs||Os||Function("return this")(),Re=Us,Rs=Re,Bs=Rs.Symbol,Ft=Bs,Go=Ft,Qa=Object.prototype,Vs=Qa.hasOwnProperty,Ds=Qa.toString,$t=Go?Go.toStringTag:void 0;function Ms(e){var t=Vs.call(e,$t),n=e[$t];try{e[$t]=void 0;var r=!0}catch{}var a=Ds.call(e);return r&&(t?e[$t]=n:delete e[$t]),a}var Fs=Ms,Ls=Object.prototype,js=Ls.toString;function zs(e){return js.call(e)}var Gs=zs,Ho=Ft,Hs=Fs,Ks=Gs,qs="[object Null]",Ws="[object Undefined]",Ko=Ho?Ho.toStringTag:void 0;function Ys(e){return e==null?e===void 0?Ws:qs:Ko&&Ko in Object(e)?Hs(e):Ks(e)}var mt=Ys;function Js(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Be=Js,Zs=mt,Qs=Be,Xs="[object AsyncFunction]",eu="[object Function]",tu="[object GeneratorFunction]",nu="[object Proxy]";function ru(e){if(!Qs(e))return!1;var t=Zs(e);return t==eu||t==tu||t==Xs||t==nu}var Lr=ru,ou=9007199254740991;function au(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ou}var jr=au,iu=Lr,su=jr;function uu(e){return e!=null&&su(e.length)&&!iu(e)}var Lt=uu,cu=Array.isArray,ke=cu;function lu(e){return e!=null&&typeof e=="object"}var Ke=lu,du=mt,fu=Ke,pu="[object Symbol]";function hu(e){return typeof e=="symbol"||fu(e)&&du(e)==pu}var zr=hu;function mu(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var Xa=mu;function gu(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var vu=gu,yu=mt,Su=Ke,wu="[object Arguments]";function _u(e){return Su(e)&&yu(e)==wu}var bu=_u,qo=bu,Cu=Ke,ei=Object.prototype,Au=ei.hasOwnProperty,Eu=ei.propertyIsEnumerable,Iu=qo(function(){return arguments}())?qo:function(e){return Cu(e)&&Au.call(e,"callee")&&!Eu.call(e,"callee")},On=Iu,Xe={exports:{}};function Tu(){return!1}var $u=Tu;(function(e,t){var n=Re,r=$u,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===a,u=s?n.Buffer:void 0,c=u?u.isBuffer:void 0,l=c||r;e.exports=l})(Xe,Xe.exports);var Pu=9007199254740991,Nu=/^(?:0|[1-9]\d*)$/;function ku(e,t){var n=typeof e;return t=t==null?Pu:t,!!t&&(n=="number"||n!="symbol"&&Nu.test(e))&&e>-1&&e%1==0&&e<t}var Un=ku,xu=mt,Ou=jr,Uu=Ke,Ru="[object Arguments]",Bu="[object Array]",Vu="[object Boolean]",Du="[object Date]",Mu="[object Error]",Fu="[object Function]",Lu="[object Map]",ju="[object Number]",zu="[object Object]",Gu="[object RegExp]",Hu="[object Set]",Ku="[object String]",qu="[object WeakMap]",Wu="[object ArrayBuffer]",Yu="[object DataView]",Ju="[object Float32Array]",Zu="[object Float64Array]",Qu="[object Int8Array]",Xu="[object Int16Array]",ec="[object Int32Array]",tc="[object Uint8Array]",nc="[object Uint8ClampedArray]",rc="[object Uint16Array]",oc="[object Uint32Array]",ue={};ue[Ju]=ue[Zu]=ue[Qu]=ue[Xu]=ue[ec]=ue[tc]=ue[nc]=ue[rc]=ue[oc]=!0;ue[Ru]=ue[Bu]=ue[Wu]=ue[Vu]=ue[Yu]=ue[Du]=ue[Mu]=ue[Fu]=ue[Lu]=ue[ju]=ue[zu]=ue[Gu]=ue[Hu]=ue[Ku]=ue[qu]=!1;function ac(e){return Uu(e)&&Ou(e.length)&&!!ue[xu(e)]}var ic=ac;function sc(e){return function(t){return e(t)}}var Gr=sc,Rt={exports:{}};(function(e,t){var n=Za,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,s=i&&n.process,u=function(){try{var c=a&&a.require&&a.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u})(Rt,Rt.exports);var uc=ic,cc=Gr,Wo=Rt.exports,Yo=Wo&&Wo.isTypedArray,lc=Yo?cc(Yo):uc,Rn=lc,dc=vu,fc=On,pc=ke,hc=Xe.exports,mc=Un,gc=Rn,vc=Object.prototype,yc=vc.hasOwnProperty;function Sc(e,t){var n=pc(e),r=!n&&fc(e),a=!n&&!r&&hc(e),i=!n&&!r&&!a&&gc(e),s=n||r||a||i,u=s?dc(e.length,String):[],c=u.length;for(var l in e)(t||yc.call(e,l))&&!(s&&(l=="length"||a&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||mc(l,c)))&&u.push(l);return u}var ti=Sc,wc=Object.prototype;function _c(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||wc;return e===n}var Bn=_c;function bc(e,t){return function(n){return e(t(n))}}var ni=bc,Cc=ni,Ac=Cc(Object.keys,Object),Ec=Ac,Ic=Bn,Tc=Ec,$c=Object.prototype,Pc=$c.hasOwnProperty;function Nc(e){if(!Ic(e))return Tc(e);var t=[];for(var n in Object(e))Pc.call(e,n)&&n!="constructor"&&t.push(n);return t}var ri=Nc,kc=ti,xc=ri,Oc=Lt;function Uc(e){return Oc(e)?kc(e):xc(e)}var Vn=Uc,ze,gr;(function(e){e.SMS_MFA="SMS_MFA",e.SOFTWARE_TOKEN_MFA="SOFTWARE_TOKEN_MFA",e.NEW_PASSWORD_REQUIRED="NEW_PASSWORD_REQUIRED",e.RESET_REQUIRED="RESET_REQUIRED",e.MFA_SETUP="MFA_SETUP"})(ze||(ze={})),function(e){e.Apple="SignInWithApple",e.Amazon="LoginWithAmazon",e.Facebook="Facebook",e.Google="Google"}(gr||(gr={}));var U=function(){return U=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},U.apply(this,arguments)};function oi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function Y(e,t,n,r){function a(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function u(d){try{l(r.next(d))}catch(h){s(h)}}function c(d){try{l(r.throw(d))}catch(h){s(h)}}function l(d){d.done?i(d.value):a(d.value).then(u,c)}l((r=r.apply(e,t||[])).next())})}function J(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(l){return function(d){return c([l,d])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(i=l[0]&2?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(d){l=[6,d],a=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Oe(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Rc=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],Bc=["username","email","phone_number"],Vc=Oe(Oe(Oe([],Bc,!0),Rc,!0),["confirmation_code","password","confirm_password"],!1),vr=function(e){var t,n=(t=e==null?void 0:e.context.config)===null||t===void 0?void 0:t.loginMechanisms;return(n!=null?n:["username"])[0]},Dc=function(e){var t=function(n){return function(r){return e({type:n,data:r})}};return{resendCode:t("RESEND"),signOut:t("SIGN_OUT"),submitForm:t("SUBMIT"),updateForm:t("CHANGE"),updateBlur:t("BLUR"),toFederatedSignIn:t("FEDERATED_SIGN_IN"),toResetPassword:t("RESET_PASSWORD"),toSignIn:t("SIGN_IN"),toSignUp:t("SIGN_UP"),skipVerification:t("SKIP")}},Mc=function(e){var t,n,r=(t=e.context)===null||t===void 0?void 0:t.user,a=be(e),i=Ja(e),s=i==null?void 0:i.remoteError,u=U({},i==null?void 0:i.validationError),c=i==null?void 0:i.codeDeliveryDetails,l=Object.keys(u).length>0,d=e.hasTag("pending")||((n=be(e))===null||n===void 0?void 0:n.hasTag("pending")),h=function(){switch(!0){case e.matches("idle"):return"idle";case e.matches("setup"):return"setup";case e.matches("signOut"):return"signOut";case e.matches("authenticated"):return"authenticated";case(a==null?void 0:a.matches("autoSignIn")):return"autoSignIn";case(a==null?void 0:a.matches("confirmSignUp")):return"confirmSignUp";case(a==null?void 0:a.matches("confirmSignIn")):return"confirmSignIn";case(a==null?void 0:a.matches("setupTOTP")):return"setupTOTP";case(a==null?void 0:a.matches("signIn")):return"signIn";case(a==null?void 0:a.matches("signUp")):return"signUp";case(a==null?void 0:a.matches("forceNewPassword")):return"forceNewPassword";case(a==null?void 0:a.matches("resetPassword")):return"resetPassword";case(a==null?void 0:a.matches("confirmResetPassword")):return"confirmResetPassword";case(a==null?void 0:a.matches("verifyUser")):return"verifyUser";case(a==null?void 0:a.matches("confirmVerifyUser")):return"confirmVerifyUser";default:return console.debug("Cannot infer `route` from Authenticator state:",e.value),null}}(),f=function(p){switch(p){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}}(h);return{error:s,hasValidationErrors:l,isPending:d,route:h,authStatus:f,user:r,validationErrors:u,codeDeliveryDetails:c}},ai=function(e){var t=e.send,n=e.state,r=Dc(t),a=Mc(n);return U(U({},r),a)},Fc=["+1","+7","+20","+27","+30","+31","+32","+33","+34","+36","+39","+40","+41","+43","+44","+45","+46","+47","+48","+49","+51","+52","+53","+54","+55","+56","+57","+58","+60","+61","+62","+63","+64","+65","+66","+81","+82","+84","+86","+90","+91","+92","+93","+94","+95","+98","+212","+213","+216","+218","+220","+221","+222","+223","+224","+225","+226","+227","+228","+229","+230","+231","+232","+233","+234","+235","+236","+237","+238","+239","+240","+241","+242","+243","+244","+245","+246","+248","+249","+250","+251","+252","+253","+254","+255","+256","+257","+258","+260","+261","+262","+263","+264","+265","+266","+267","+268","+269","+290","+291","+297","+298","+299","+345","+350","+351","+352","+353","+354","+355","+356","+357","+358","+359","+370","+371","+372","+373","+374","+375","+376","+377","+378","+379","+380","+381","+382","+385","+386","+387","+389","+420","+421","+423","+500","+501","+502","+503","+504","+505","+506","+507","+508","+509","+537","+590","+591","+593","+594","+595","+596","+597","+598","+599","+670","+672","+673","+674","+675","+676","+677","+678","+679","+680","+681","+682","+683","+685","+686","+687","+688","+689","+690","+691","+692","+850","+852","+853","+855","+856","+872","+880","+886","+960","+961","+962","+963","+964","+965","+966","+967","+968","+970","+971","+972","+973","+974","+975","+976","+977","+992","+993","+994","+995","+996","+998"],Lc={"Account recovery requires verified contact information":"Zur\xFCcksetzen des Account ben\xF6tigt einen verifizierten Account","Back to Sign In":"Zur\xFCck zur Anmeldung","Change Password":"Passwort \xE4ndern",Changing:"\xC4ndern von",Code:"Code","Confirm Password":"Passwort best\xE4tigen","Confirm Sign Up":"Registrierung best\xE4tigen","Confirm SMS Code":"SMS-Code best\xE4tigen","Confirm TOTP Code":"TOTP-Code best\xE4tigen",Confirm:"Best\xE4tigen","Confirmation Code":"Best\xE4tigungs-Code",Confirming:"Wird best\xE4tigt","Create a new account":"Einen neuen Account erstellen","Create Account":"Account erstellen","Creating Account":"Account wird erstellt","Dismiss alert":"Warnung verwerfen",Email:"Email","Enter your code":"Geben Sie Ihren Code ein","Enter your email":"Geben Sie Ihre Email ein","Enter your phone number":"Geben Sie Ihre Telefonnummer ein","Enter your username":"Geben Sie Ihren Benutzernamen ein","Forgot your password?":"Passwort vergessen? ","Hide password":"Passwort verbergen",Loading:"Wird geladen","New password":"Neues Passwort",Password:"Passwort","Phone Number":"Telefonnummer","Resend Code":"Code erneut senden","Reset your Password":"Zur\xFCcksetzen des Passwort","Reset your password":"Zur\xFCcksetzen des passwort","Send code":"Code senden","Send Code":"Code senden",Sending:"Wird gesendet","Setup TOTP":"TOTP einrichten","Show password":"Passwort anzeigen","Sign in to your account":"Melden Sie sich mit Ihrem Account an","Sign In with Amazon":"Mit Amazon anmelden","Sign In with Apple":"Mit Apple anmelden","Sign In with Facebook":"Mit Facebook anmelden","Sign In with Google":"Mit Google anmelden","Sign in":"Anmelden","Sign In":"Anmelden","Signing in":"Wird angemeldet",Skip:"\xDCberspringen",Submit:"Abschicken",Submitting:"Wird gesendet",Username:"Benutzername","Verify Contact":"Kontakt verifizieren",Verify:"Verifizieren","An account with the given email already exists.":"Ein Account mit dieser Email existiert bereits.","Confirm a Code":"Code best\xE4tigen","Confirm Sign In":"Anmeldung best\xE4tigen","Create account":"Hier registrieren","Enter your password":"Geben Sie Ihr Passwort ein","Forgot Password":"Passwort vergessen","Have an account? ":"Schon registriert? ","Incorrect username or password":"Falscher Benutzername oder falsches Passwort","Invalid password format":"Ung\xFCltiges Passwort-Format","Invalid phone number format":"Ung\xFCltiges Telefonummern-Format. Benutze eine Nummer im Format: +12345678900","It may take a minute to arrive.":"Es k\xF6nnte eine Minute dauern, bis der Code eintrifft.","Lost your code? ":"Code verloren? ","New Password":"Neues Passwort","No account? ":"Kein Account? ",or:"oder","Password attempts exceeded":"Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht","Reset password":"Passwort zur\xFCcksetzen","Sign Out":"Abmelden","Sign Up":"Registrieren","User already exists":"Dieser Benutzer existiert bereits","User does not exist":"Dieser Benutzer existiert nicht","Username cannot be empty":"Benutzername darf nicht leer sein","We Emailed You":"Email wurde versendet","Your code is on the way. To log in, enter the code we emailed to":"Ihr Best\xE4tigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir verschickt haben an","Your code is on the way. To log in, enter the code we texted to":"Ihr Best\xE4tigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir verschickt haben an"},jc={"Account recovery requires verified contact information":"Account recovery requires verified contact information","Back to Sign In":"Back to Sign In","Change Password":"Change Password",Changing:"Changing",Code:"Code","Confirm Password":"Confirm Password","Confirm Sign Up":"Confirm Sign Up","Confirm SMS Code":"Confirm SMS Code","Confirm TOTP Code":"Confirm TOTP Code",Confirm:"Confirm","Confirmation Code":"Confirmation Code",Confirming:"Confirming","Create a new account":"Create a new account","Create Account":"Create Account","Creating Account":"Creating Account","Dismiss alert":"Dismiss alert",Email:"Email","Enter your code":"Enter your code","Enter your email":"Enter your email","Enter your phone number":"Enter your phone number","Enter your username":"Enter your username","Forgot your password?":"Forgot your password?","Hide password":"Hide password",Loading:"Loading","New password":"New password",Password:"Password","Phone Number":"Phone Number","Resend Code":"Resend Code","Reset your password":"Reset your password","Reset your Password":"Reset your Password","Send code":"Send code","Send Code":"Send Code",Sending:"Sending","Setup TOTP":"Setup TOTP","Show password":"Show password","Sign in to your account":"Sign in to your account","Sign In with Amazon":"Sign In with Amazon","Sign In with Apple":"Sign In with Apple","Sign In with Facebook":"Sign In with Facebook","Sign In with Google":"Sign In with Google","Sign in":"Sign in","Sign In":"Sign In","Signing in":"Signing in",Skip:"Skip",Submit:"Submit",Submitting:"Submitting",Username:"Username","Verify Contact":"Verify Contact",Verify:"Verify"},zc={"Account recovery requires verified contact information":"La recuperaci\xF3n de la cuenta requiere informaci\xF3n de contacto verificada","Back to Sign In":"Volver a inicio de sesi\xF3n","Change Password":"Cambiar contrase\xF1a",Changing:"Cambiando",Code:"C\xF3digo","Confirm Password":"Confirmar contrase\xF1a","Confirm Sign Up":"Confirmar registro","Confirm SMS Code":"Confirmar el c\xF3digo de SMS","Confirm TOTP Code":"Confirmar c\xF3digo TOTP",Confirm:"Confirmar","Confirmation Code":"C\xF3digo de confirmaci\xF3n",Confirming:"Confirmando","Create a new account":"Crear una cuenta nueva","Create Account":"Crear cuenta","Creating Account":"Creando cuenta","Dismiss alert":"Descartar alerta",Email:"Email","Enter your code":"Ingrese el c\xF3digo","Enter your email":"Escriba su Email","Enter your phone number":"Ingrese el n\xFAmero de tel\xE9fono","Enter your username":"Ingrese el nombre de usuario","Forgot your password?":"\xBFOlvid\xF3 su contrase\xF1a?","Hide password":"Ocultar contrase\xF1a",Loading:"Cargando","New password":"Nueva contrase\xF1a",Password:"Contrase\xF1a","Phone Number":"N\xFAmero de tel\xE9fono","Resend Code":"Reenviar c\xF3digo","Reset your password":"Restablecer su contrase\xF1a","Reset your Password":"Restablecer su Contrase\xF1a","Send code":"Enviar c\xF3digo","Send Code":"Enviar c\xF3digo",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar contrase\xF1a","Sign in to your account":"Iniciar sesi\xF3n en tu cuenta","Sign In with Amazon":"Iniciar Sesi\xF3n con Amazon","Sign In with Apple":"Iniciar Sesi\xF3n con Apple","Sign In with Facebook":"Iniciar Sesi\xF3n con Facebook","Sign In with Google":"Iniciar Sesi\xF3n con Google","Sign in":"Iniciar sesi\xF3n","Sign In":"Iniciar Sesi\xF3n","Signing in":"Iniciando sesi\xF3n",Skip:"Omitir",Submit:"Enviar",Submitting:"Enviando",Username:"Nombre de usuario","Verify Contact":"Verificar contacto",Verify:"Verificar","An account with the given email already exists.":"Ya existe una cuenta con el correo ingresado.","Confirm a Code":"Confirmar un c\xF3digo","Confirm Sign In":"Confirmar inicio de sesi\xF3n","Forgot Password":"Olvid\xE9 mi contrase\xF1a","Incorrect username or password.":"Nombre de usuario o contrase\xF1a incorrecta","Invalid password format":"Formato de contrase\xF1a inv\xE1lido","Invalid phone number format":"Formato de n\xFAmero de tel\xE9fono inv\xE1lido","Loading...":"Cargando...","New Password":"Nueva contrase\xF1a",or:"o","Resend a Code":"Reenviar un c\xF3digo","Sign Out":"Cerrar sesi\xF3n","Sign Up with Amazon":"Crear cuenta con Amazon","Sign Up with Apple":"Crear cuenta con Apple","Sign Up with Facebook":"Crear cuenta con Facebook","Sign Up with Google":"Crear cuenta con Google","Sign Up":"Crear cuenta","User already exists":"El usuario ya existe","User does not exist":"El usuario no existe","Username cannot be empty":"El nombre de usuario no puede estar vac\xEDo","Your passwords must match":"Las contrase\xF1as deben coincidir"},Gc={"Account recovery requires verified contact information":"La r\xE9cup\xE9ration du compte n\xE9cessite des informations de contact v\xE9rifi\xE9es","Back to Sign In":"Retour \xE0 la connexion","Change Password":"Modifier le mot de passe",Changing:"Modification en cours",Code:"Code","Confirm Password":"Confirmez le mot de passe","Confirm Sign Up":"Confirmer l'inscription","Confirm SMS Code":"Confirmer le code SMS","Confirm TOTP Code":"Confirmer le code TOTP",Confirm:"Confirmer","Confirmation Code":"Code de confirmation",Confirming:"Confirmation","Create a new account":"Cr\xE9er un nouveau compte","Create Account":"Cr\xE9er un compte","Creating Account":"Cr\xE9ation d'un compte","Dismiss alert":"Supprimer l'alerte",Email:"Email","Enter your code":"Saisissez cotre code de confirmation","Enter your email":"Saisissez votre adresse email","Enter your phone number":"Saisissez votre num\xE9ro de t\xE9l\xE9phone","Enter your username":"Saisissez votre nom d'utilisateur","Forgot your password?":"Mot de passe oubli\xE9 ? ","Hide password":"Masquer le mot de passe",Loading:"Chargement en cours","New password":"Nouveau mot de passe",Password:"Mot de passe","Phone Number":"Num\xE9ro de t\xE9l\xE9phone","Resend Code":"Renvoyer le code","Reset your Password":"R\xE9initialiser votre mot de passe","Reset your password":"R\xE9initialisez votre mot de passe","Send code":"Envoyer le code","Send Code":"M'envoyer un code",Sending:"Envoi en cours","Setup TOTP":"Configuration de TOTP","Show password":"Afficher le mot de passe","Sign in to your account":"Connexion \xE0 votre compte","Sign In with Amazon":"Se connecter avec Amazon","Sign In with Apple":"Se connecter avec Apple","Sign In with Facebook":"Se connecter avec Facebook","Sign In with Google":"Se connecter avec Google","Sign in":"Se connecter","Sign In":"Se connecter","Signing in":"Connexion en cours",Skip:"Passer",Submit:"Soumettre",Submitting:"Envoi en cours",Username:"Nom d'utilisateur","Verify Contact":"V\xE9rifier le contact",Verify:"V\xE9rifier","An account with the given email already exists.":"Un utilisateur avec cette adresse email existe d\xE9j\xE0.",Change:"Modifier","Confirm a Code":"Confirmer un code","Confirm Sign In":"Confirmer la connexion","Create account":"Cr\xE9er un compte","Enter your password":"Saisissez votre mot de passe","Forgot Password":"Mot de passe oubli\xE9","Have an account? ":"D\xE9j\xE0 un compte ? ",Hello:"Bonjour","Incorrect username or password":"Identifiant ou mot de passe incorrect","Invalid password format":"Format de mot de passe invalide","Invalid phone number format":"Format de num\xE9ro de t\xE9l\xE9phone invalide. Veuillez utiliser un format +12345678900","Loading...":"Chargement...","Lost your code? ":"Vous avez perdu votre code ? ","Network error":"Erreur r\xE9seau","New Password":"Nouveau mot de passe","No account? ":"Pas de compte ? ",or:"ou","Resend a Code":"Renvoyer un code","Reset password":"R\xE9initialisez votre mot de passe",Send:"Envoyer","Sign In with AWS":"Se connecter avec AWS","Sign Out":"D\xE9connexion","Sign Up":"S'inscrire",SMS:"SMS","User already exists":"L'utilisateur existe d\xE9j\xE0","User does not exist":"L'utilisateur n'existe pas","Username cannot be empty":"Le nom d'utilisateur doit \xEAtre renseign\xE9","Username/client id combination not found.":"L'utilisateur n'existe pas"},Hc={"Account recovery requires verified contact information":"Il ripristino dell'account richiede informazioni di contatto verificate","Back to Sign In":"Torna alla schermata di accesso","Change Password":"Cambia la password",Changing:"Modifica in corso",Code:"Codice","Confirm Password":"Conferma la password","Confirm Sign Up":"Conferma registrazione","Confirm SMS Code":"Conferma codice SMS","Confirm TOTP Code":"Conferma codice TOTP",Confirm:"Conferma","Confirmation Code":"Codice di verifica",Confirming:"Conferma in corso","Create a new account":"Crea un nuovo account","Create Account":"Crea Account","Creating Account":"Creazione account in corso","Dismiss alert":"Licenziare l'allerta",Email:"Email","Enter your code":"Inserisci il tuo codice","Enter your email":"Inserisci la tua e-mail","Enter your phone number":'Inserisci il tuo numero di telefono"',"Enter your username":"Inserisci il tuo nome utente","Forgot your password?":"Password dimenticata?","Hide password":"Nascondi password",Loading:"Caricamento in corso","New password":"Nuova password",Password:"Password","Phone Number":"Numero di telefono","Resend Code":"Rispedisci codice","Reset your Password":"Reimposta la tua Password","Reset your password":"Reimposta la tua password","Send code":"Invia codice","Send Code":"Invia codice",Sending:"Invio in corso","Setup TOTP":"Configura TOTP","Show password":"Mostra password","Sign in to your account":"Accedi al tuo account","Sign In with Amazon":"Accedi con Amazon","Sign In with Apple":"Accedi con Apple","Sign In with Facebook":"Accedi con Facebook","Sign In with Google":"Accedi con Google","Sign in":"Accesso","Sign In":"Accesso","Signing in":"Accesso in corso",Skip:"Salta",Submit:"Invia",Submitting:"Invio in corso",Username:"Nome utente","Verify Contact":"Verifica contatto",Verify:"Verifica","An account with the given email already exists.":"Questa email \xE8 gi\xE0 utilizzata da un'altro account.","Confirm a Code":"Conferma un codice","Confirm Sign In":"Conferma l'accesso","Create account":"Crea account","Enter your password":"Inserisci la tua password","Forgot Password":"Password dimenticata","Have an account? ":"Gi\xE0 registrato?","Incorrect username or password":"Nome utente o password errati","Invalid password format":"Formato della password non valido","Invalid phone number format":"Formato del numero di telefono non valido","Lost your code?":"Codice smarrito?","New Password":"Nuova password","No account? ":"Non hai un account?",or:"o","Password attempts exceeded":"Il numero massimo di tentativi di accesso falliti \xE8 stato raggiunto","Reset password":"Reimposta password","Sign Out":"Esci","Sign Up":"Registrati","User already exists":"Utente gi\xE0 esistente","User does not exist":"Utente inesistente","Username cannot be empty":"Il nome utente non pu\xF2 essere vuoto"},Kc={"Account recovery requires verified contact information":"\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u5FA9\u65E7\u306B\u306F\u78BA\u8A8D\u6E08\u307F\u306E\u9023\u7D61\u5148\u304C\u5FC5\u8981\u3067\u3059","Back to Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3\u306B\u623B\u308B","Change Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5909\u3048\u308B ",Changing:"\u5909\u66F4\u4E2D",Code:"\u30B3\u30FC\u30C9","Confirm Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u78BA\u8A8D","Confirm Sign Up":"\u767B\u9332\u3059\u308B","Confirm SMS Code":"SMS \u30B3\u30FC\u30C9\u3092\u78BA\u8A8D","Confirm TOTP Code":"TOTP \u30B3\u30FC\u30C9\u3092\u78BA\u8A8D",Confirm:"\u78BA\u5B9A","Confirmation Code":"\u78BA\u8A8D\u30B3\u30FC\u30C9",Confirming:"\u78BA\u8A8D\u4E2D","Create a new account":"\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B","Create Account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B","Creating Account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u4F5C\u6210\u4E2D","Dismiss alert":"\u30A2\u30E9\u30FC\u30C8\u3092\u9589\u3058\u308B",Email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9","Enter your code":"\u30B3\u30FC\u30C9\u3092\u5165\u529B","Enter your email":"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3092\u5165\u529B","Enter your phone number":"\u96FB\u8A71\u756A\u53F7\u3092\u5165\u529B","Enter your username":"\u30E6\u30FC\u30B6\u30FC\u540D\u3092\u5165\u529B ","Forgot your password?":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u307E\u3057\u305F\u304B\uFF1F ","Hide password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u975E\u8868\u793A",Loading:"\u30ED\u30FC\u30C9\u4E2D","New password":"\u65B0\u3057\u3044\u30D1\u30B9\u30EF\u30FC\u30C9",Password:"\u30D1\u30B9\u30EF\u30FC\u30C9 ","Phone Number":"\u96FB\u8A71\u756A\u53F7","Resend Code":"\u30B3\u30FC\u30C9\u3092\u518D\u9001\u4FE1","Reset your Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8","Reset your password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8\u3059\u308B","Send code":"\u30B3\u30FC\u30C9\u3092\u9001\u4FE1","Send Code":"\u30B3\u30FC\u30C9\u3092\u9001\u4FE1",Sending:"\u9001\u4FE1\u4E2D","Setup TOTP":"TOTP \u3092\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7","Show password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u8868\u793A","Sign in to your account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u306B\u30B5\u30A4\u30F3\u30A4\u30F3 ","Sign In with Amazon":"Amazon\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In with Apple":"Apple \u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In with Facebook":"Facebook\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In with Google":"Google\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3 ","Sign in":"\u30B5\u30A4\u30F3\u30A4\u30F3","Signing in":"\u30B5\u30A4\u30F3\u30A4\u30F3\u4E2D",Skip:"\u30B9\u30AD\u30C3\u30D7",Submit:"\u9001\u4FE1",Submitting:"\u9001\u4FE1\u4E2D",Username:"\u30E6\u30FC\u30B6\u30FC\u540D ","Verify Contact":"\u9023\u7D61\u5148\u3092\u78BA\u8A8D",Verify:"\u78BA\u8A8D","An account with the given email already exists.":"\u5165\u529B\u3055\u308C\u305F\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u65E2\u306B\u5B58\u5728\u3057\u307E\u3059","Confirm a Code":"\u30B3\u30FC\u30C9\u3092\u78BA\u8A8D","Confirm Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B","Create account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B ","Enter your password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u529B ","Forgot Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u305F ","Have an account? ":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u6301\u3063\u3066\u3044\u307E\u3059\u304B\uFF1F","Incorrect username or password":"\u30E6\u30FC\u30B6\u30FC\u540D\u304B\u30D1\u30B9\u30EF\u30FC\u30C9\u304C\u7570\u306A\u308A\u307E\u3059 ","Invalid password format":"\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u5F62\u5F0F\u304C\u7121\u52B9\u3067\u3059 ","Invalid phone number format":`\u4E0D\u6B63\u306A\u96FB\u8A71\u756A\u53F7\u306E\u5F62\u5F0F\u3067\u3059\u3002
|
|
2
|
-
+12345678900 \u306E\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044`,"It may take a minute to arrive.":"\u30B3\u30FC\u30C9\u3092\u53D7\u4FE1\u3059\u308B\u307E\u3067\u6570\u5206\u304B\u304B\u308B\u5834\u5408\u304C\u3042\u308A\u307E\u3059\u3002","Lost your code? ":"\u30B3\u30FC\u30C9\u3092\u5931\u304F\u3057\u307E\u3057\u305F\u304B\uFF1F","New Password":"\u65B0\u3057\u3044\u30D1\u30B9\u30EF\u30FC\u30C9","No account? ":"\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u7121\u3044\u3068\u304D ",or:"\u53C8\u306F","Password attempts exceeded":"\u30B5\u30A4\u30F3\u30A4\u30F3\u306E\u8A66\u884C\u56DE\u6570\u304C\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F","Reset password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8 ","Sign Out":"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8 ","Sign Up":"\u767B\u9332 ","User already exists":"\u65E2\u306B\u30E6\u30FC\u30B6\u30FC\u304C\u5B58\u5728\u3057\u3066\u3044\u307E\u3059 ","User does not exist":"\u30E6\u30FC\u30B6\u30FC\u304C\u5B58\u5728\u3057\u307E\u305B\u3093 ","Username cannot be empty":"\u30E6\u30FC\u30B6\u30FC\u540D\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059","We Emailed You":"\u30B3\u30FC\u30C9\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F","Your code is on the way. To log in, enter the code we emailed to":"\u30ED\u30B0\u30A4\u30F3\u3059\u308B\u306B\u306F\u3001\u30E1\u30FC\u30EB\u306B\u8A18\u8F09\u3055\u308C\u305F\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u9001\u4FE1\u5148:","Your code is on the way. To log in, enter the code we texted to":"\u30ED\u30B0\u30A4\u30F3\u3059\u308B\u306B\u306F\u3001\u30C6\u30AD\u30B9\u30C8\u30E1\u30C3\u30BB\u30FC\u30B8\u306B\u8A18\u8F09\u3055\u308C\u305F\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u9001\u4FE1\u5148:"},qc={"Account recovery requires verified contact information":"\uACC4\uC815 \uBCF5\uAD6C\uB97C \uC704\uD574 \uC5F0\uB77D\uCC98 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4","Back to Sign In":"\uB85C\uADF8\uC778\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30","Change Password":"\uBE44\uBC00\uBC88\uD638 \uBCC0\uACBD\uD558\uAE30",Changing:"\uBCC0\uACBD\uC911",Code:"\uCF54\uB4DC","Confirm Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uD655\uC778","Confirm Sign Up":"\uD68C\uC6D0\uAC00\uC785 \uD655\uC778","Confirm SMS Code":"\uD734\uB300\uD3F0 \uBCF8\uC778 \uD655\uC778","Confirm TOTP Code":"TOTP \uC778\uC99D\uBC88\uD638 \uD655\uC778",Confirm:"\uD655\uC778","Confirmation Code":"\uC778\uC99D\uBC88\uD638",Confirming:"\uD655\uC778\uC911","Create a new account":"\uD68C\uC6D0\uAC00\uC785","Create Account":"\uD68C\uC6D0\uAC00\uC785","Creating Account":"\uD68C\uC6D0\uAC00\uC785\uC911","Dismiss alert":"\uC54C\uB9BC \uBB34\uC2DC",Email:"\uC774\uBA54\uC77C","Enter your code":"\uC778\uC99D\uBC88\uD638\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Enter your email":"\uC774\uBA54\uC77C \uC785\uB825","Enter your phone number":"\uC804\uD654\uBC88\uD638 \uC785\uB825","Enter your username":"\uC544\uC774\uB514\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Hide password":"\uBE44\uBC00\uBC88\uD638 \uC228\uAE30\uAE30",Loading:"\uB85C\uB529\uC911","New password":"\uC0C8 \uBE44\uBC00\uBC88\uD638",Password:"\uBE44\uBC00\uBC88\uD638","Phone Number":"\uC804\uD654\uBC88\uD638","Resend Code":"\uC778\uC99D\uBC88\uD638 \uC7AC\uC804\uC1A1","Reset your password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Reset your Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Send code":"\uC778\uC99D\uCF54\uB4DC \uBCF4\uB0B4\uAE30","Send Code":"\uCF54\uB4DC \uC804\uC1A1",Sending:"\uC804\uC1A1\uC911","Setup TOTP":"TOTP \uC124\uC815\uD558\uAE30","Show password":"\uBE44\uBC00\uBC88\uD638 \uBCF4\uC774\uAE30","Sign in to your account":"\uB85C\uADF8\uC778","Sign In with Amazon":"Amazon \uB85C\uADF8\uC778","Sign In with Apple":"Apple \uB85C\uADF8\uC778","Sign In with Facebook":"Facebook \uB85C\uADF8\uC778","Sign In with Google":"Google \uB85C\uADF8\uC778","Sign in":"\uB85C\uADF8\uC778","Sign In":"\uB85C\uADF8\uC778","Signing in":"\uB85C\uADF8\uC778\uC911",Skip:"\uB2E4\uC74C\uC5D0 \uD558\uAE30",Submit:"\uD655\uC778",Submitting:"\uD655\uC778\uC911",Username:"\uC544\uC774\uB514","Verify Contact":"\uC5F0\uB77D\uCC98 \uD655\uC778",Verify:"\uC778\uC99D",Birthdate:"\uC0DD\uB144\uC6D4\uC77C","Family Name":"\uC131","Forgot your password?":"\uBE44\uBC00\uBC88\uD638\uB97C \uC78A\uC73C\uC168\uB098\uC694?","Given Name":"\uC774\uB984",Name:"\uC131\uD568",Nickname:"\uB2C9\uB124\uC784","Preferred Username":"\uB2C9\uB124\uC784",Profile:"\uD504\uB85C\uD544","Reset Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815",Website:"\uC6F9\uC0AC\uC774\uD2B8"},Wc={"Account recovery requires verified contact information":"Accountherstel vereist geverifieerde contactgegevens","Back to Sign In":"Terug naar inloggen","Change Password":"Wachtwoord wijzigen",Changing:"Wordt aangepast",Code:"Code","Confirm Password":"Bevestig Wachtwoord","Confirm Sign Up":"Bevestig inschrijving","Confirm SMS Code":"Bevestig SMS Code","Confirm TOTP Code":"Bevestig TOTP Code",Confirm:"Bevestig","Confirmation Code":"Bevestigingscode",Confirming:"Bevestigen","Create a new account":"Nieuw account aanmaken","Create Account":"Account aanmaken","Creating Account":"Account wordt aangemaakt","Dismiss alert":"Waarschuwing sluiten",Email:"E-mail","Enter your code":"Vul je code in","Enter your email":"Vul je e-mail in","Enter your phone number":"Vul je telefoonnummer in","Enter your username":"Vul je gebruikersnaam in","Forgot your password?":"Wachtwoord vergeten? ","Hide password":"Verberg wachtwoord",Loading:"Laden","New password":"Nieuw wachtwoord",Password:"Wachtwoord","Phone Number":"Telefoonnummer","Resend Code":"Verstuur code nogmaals","Reset your password":"Reset je wachtwoord","Reset your Password":"Wachtwoord resetten","Send code":"Verstuur code","Send Code":"Verstuur Code",Sending:"Versturen","Setup TOTP":"TOTP Instellingen","Show password":"Toon wachtwoord","Sign in to your account":"Inloggen op je account","Sign In with Amazon":"Inloggen met Amazon","Sign In with Apple":"Inloggen met Apple","Sign In with Facebook":"Inloggen met Facebook","Sign In with Google":"Inloggen met Google","Sign in":"Inloggen","Sign In":"Inloggen","Signing in":"Inloggen",Skip:"Overslaan",Submit:"Versturen",Submitting:"Wordt verstuurd",Username:"Gebruikersnaam","Verify Contact":"Verifieer Contact",Verify:"Verifieer"},Yc={"Account recovery requires verified contact information":"Odzyskanie konta wymaga zweryfikowanych danych kontaktowych","Back to Sign In":"Powr\xF3t do logowania","Change Password":"Zmie\u0144 has\u0142o",Changing:"Zmienianie",Code:"Kod","Confirm Password":"Potwierd\u017A Has\u0142o","Confirm Sign Up":"Potwierd\u017A rejestracj\u0119","Confirm SMS Code":"Potwierd\u017A kod SMS","Confirm TOTP Code":"Potwierd\u017A has\u0142o jednorazowe",Confirm:"Potwierd\u017A","Confirmation Code":"Kod potwierdzenia",Confirming:"Potwierdzanie","Create a new account":"Utw\xF3rz nowe konto","Create Account":"Utw\xF3rz konto","Creating Account":"Tworzenie konta","Dismiss alert":"Odrzu\u0107 alert",Email:"E-mail","Enter your code":"Wprowad\u017A sw\xF3j kod","Enter your email":"Wpisz sw\xF3j adres e-mail","Enter your phone number":"Wpisz sw\xF3j numer telefonu","Enter your username":"Wprowad\u017A swoj\u0105 nazw\u0119 u\u017Cytkownika","Forgot your password?":"Zapomnia\u0142e\u015B has\u0142a? ","Hide password":"Ukryj has\u0142o",Loading:"\u0141adowanie","New password":"Nowe has\u0142o",Password:"Has\u0142o","Phone Number":"Numer telefonu","Resend Code":"Wy\u015Blij kod ponownie","Reset your password":"Zresetuj swoje has\u0142o","Reset your Password":"Zresetuj swoje has\u0142o","Send code":"Wy\u015Blij kod","Send Code":"Zresetuj has\u0142o",Sending:"Wysy\u0142anie","Setup TOTP":"Konfiguruj TOTP","Show password":"Poka\u017C has\u0142o","Sign in to your account":"Zaloguj si\u0119 na swoje konto","Sign In with Amazon":"Zaloguj z Amazon","Sign In with Apple":"Zaloguj z Apple","Sign In with Facebook":"Zaloguj z Facebook","Sign In with Google":"Zaloguj z Google","Sign In":"Logowanie","Sign in":"Zaloguj","Signing in":"Logowanie",Skip:"Pomi\u0144",Submit:"Wy\u015Blij",Submitting:"Wysy\u0142anie",Username:"Nazwa u\u017Cytkownika","Verify Contact":"Weryfikacja danych kontaktowych",Verify:"Zweryfikuj",Birthdate:"Data urodzenia","Family Name":"Nazwisko","Given Name":"Pierwsze imi\u0119","Middle Name":"Drugie imi\u0119",Name:"Imi\u0119 i nazwisko",Nickname:"Pseudonim","Preferred Username":"Preferowana nazwa u\u017Cytkownika",Profile:"Profil",Website:"Strona internetowa"},Jc={"Account recovery requires verified contact information":"A recupera\xE7\xE3o da conta requer informa\xE7\xF5es de contato verificadas","Back to Sign In":"Voltar para Entrar","Change Password":"Mudar senha",Changing:"Mudando",Code:"C\xF3digo","Confirm Password":"Confirme a Senha","Confirm Sign Up":"Confirmar inscri\xE7\xE3o","Confirm SMS Code":"Confirme o c\xF3digo SMS","Confirm TOTP Code":"Confirme o c\xF3digo TOTP",Confirm:"confirme","Confirmation Code":"C\xF3digo de confirma\xE7\xE3o",Confirming:"Confirmando","Create a new account":"Criar uma nova conta","Create Account":"Criar Conta","Creating Account":"Criando conta","Dismiss alert":"Descartar alerta",Email:"O email","Enter your code":"Insira seu c\xF3digo","Enter your email":"Digite seu e-mail","Enter your phone number":"Digite seu n\xFAmero de telefone","Enter your username":"entre com seu nome de usu\xE1rio","Forgot your password?":"Esqueceu sua senha? ","Hide password":"Esconder a senha",Loading:"Carregando","New password":"Nova Senha",Password:"Senha","Phone Number":"N\xFAmero de telefone","Resend Code":"Reenviar c\xF3digo","Reset your password":"Redefina sua senha","Reset your Password":"Redefina sua senha","Send code":"Enviar c\xF3digo","Send Code":"Enviar c\xF3digo",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar senha","Sign in to your account":"Fa\xE7a login em sua conta","Sign In with Amazon":"Entrar com a Amazon","Sign In with Apple":"Entrar com a Apple","Sign In with Facebook":"Entrar com o Facebook","Sign In with Google":"Fa\xE7a login no Google","Sign in":"Entrar","Sign In":"Entrar","Signing in":"Entrando",Skip:"Pular",Submit:"Enviar",Submitting:"Enviando",Username:"Nome do usu\xE1rio","Verify Contact":"Verificar contato",Verify:"Verificar"},Zc={"Account recovery requires verified contact information":"\u8D26\u6237\u6062\u590D\u9700\u8981\u9A8C\u8BC1\u8FC7\u7684\u8054\u7CFB\u65B9\u5F0F","Back to Sign In":"\u56DE\u5230\u767B\u5F55","Change Password":"\u66F4\u6539\u5BC6\u7801",Changing:"\u6B63\u5728\u4FEE\u6539",Code:"\u786E\u8BA4\u7801","Confirm Password":"\u786E\u8BA4\u5BC6\u7801","Confirm Sign Up":"\u786E\u8BA4\u6CE8\u518C","Confirm SMS Code":"\u786E\u8BA4\u77ED\u4FE1\u9A8C\u8BC1\u7801","Confirm TOTP Code":"\u786E\u8BA4 TOTP \u4EE3\u7801",Confirm:"\u786E\u8BA4","Confirmation Code":"\u786E\u8BA4\u7801",Confirming:"\u6B63\u5728\u786E\u8BA4","Create a new account":"\u521B\u5EFA\u65B0\u8D26\u6237","Create Account":"\u521B\u5EFA\u8D26\u6237","Creating Account":"\u6B63\u5728\u521B\u5EFA\u8D26\u6237","Dismiss alert":"\u5173\u95ED\u8B66\u62A5",Email:"\u90AE\u7BB1","Enter your code":"\u8F93\u5165\u9A8C\u8BC1\u7801","Enter your email":"\u8F93\u5165\u7535\u5B50\u90AE\u4EF6","Enter your phone number":"\u8F93\u5165\u7535\u8BDD\u53F7\u7801","Enter your username":"\u8F93\u5165\u7528\u6237\u540D","Forgot your password?":"\u5FD8\u8BB0\u5BC6\u7801\u4E86\uFF1F","Hide password":"\u9690\u85CF\u5BC6\u7801",Loading:"\u6B63\u5728\u52A0\u8F7D","New password":"\u65B0\u5BC6\u7801",Password:"\u5BC6\u7801","Phone Number":"\u7535\u8BDD","Resend Code":"\u91CD\u53D1\u9A8C\u8BC1\u7801","Reset your password":"\u91CD\u7F6E\u5BC6\u7801","Reset your Password":"\u91CD\u7F6E\u5BC6\u7801","Send Code":"\u53D1\u9001\u786E\u8BA4\u7801","Send code":"\u53D1\u9001\u9A8C\u8BC1\u7801",Sending:"\u6B63\u5728\u53D1\u9001","Setup TOTP":"\u8BBE\u7F6E TOTP","Show password":"\u663E\u793A\u5BC6\u7801","Sign in to your account":"\u767B\u5F55\u8D26\u6237","Sign In with Amazon":"\u901A\u8FC7 Amazon \u767B\u5F55","Sign In with Apple":"\u901A\u8FC7 Apple \u767B\u5F55","Sign In with Facebook":"\u901A\u8FC7 Facebook \u767B\u5F55","Sign In with Google":"\u901A\u8FC7 Google \u767B\u5F55","Sign in":"\u767B\u5F55","Sign In":"\u767B\u5F55","Signing in":"\u6B63\u5728\u767B\u5F55",Skip:"\u8DF3\u8FC7",Submit:"\u63D0\u4EA4",Submitting:"\u6B63\u5728\u63D0\u4EA4",Username:"\u7528\u6237\u540D","Verify Contact":"\u9A8C\u8BC1\u8054\u7CFB\u65B9\u5F0F",Verify:"\u9A8C\u8BC1","Confirm a Code":"\u786E\u8BA4\u7801","Confirm Sign In":"\u786E\u8BA4\u767B\u5F55","Forgot Password":"\u5FD8\u8BB0\u5BC6\u7801","Incorrect username or password":"\u7528\u6237\u540D\u6216\u5BC6\u7801\u9519\u8BEF","Invalid password format":"\u5BC6\u7801\u683C\u5F0F\u9519\u8BEF","Invalid phone number format":"\u7535\u8BDD\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u4F7F\u7528\u683C\u5F0F +12345678900","New Password":"\u65B0\u5BC6\u7801",or:"\u6216\u8005","Resend a Code":"\u91CD\u53D1\u786E\u8BA4\u7801","Sign Out":"\u9000\u51FA","Sign Up":"\u6CE8\u518C","User already exists":"\u7528\u6237\u5DF2\u7ECF\u5B58\u5728","User does not exist":"\u7528\u6237\u4E0D\u5B58\u5728"},Qc={"Account recovery requires verified contact information":"F\xF6r att \xE5terst\xE4lla kontot beh\xF6ver du ett verifierat konto","Back to Sign In":"Tillbaka till inloggningen","Change Password":"Byt l\xF6senord",Changing:"\xC4ndra",Code:"Kod","Confirm Password":"Bekr\xE4fta l\xF6senord","Confirm Sign Up":"Bekr\xE4fta registrering","Confirm SMS Code":"Bekr\xE4fta SMS-kod","Confirm TOTP Code":"Bekr\xE4fta TOTP-kod",Confirm:"Bekr\xE4fta","Confirmation Code":"Verifikationskod",Confirming:"Bekr\xE4ftar","Create a new account":"Skapa ett nytt konto","Create Account":"Skapa konto","Creating Account":"Skapar konto","Dismiss alert":"Avvisa varning",Email:"E-post","Enter your code":"Skriv din kod","Enter your email":"Fyll i din e-post","Enter your phone number":"Ange ditt telefonnummer","Enter your username":"Ange ditt anv\xE4ndarnamn","Forgot your password?":"Gl\xF6mt ditt l\xF6senord? ","Hide password":"D\xF6lj l\xF6senord",Loading:"Laddar","New password":"Nytt l\xF6senord",Password:"L\xF6senord","Phone Number":"Telefonnummer","Resend Code":"Skicka koden igen","Reset your password":"\xC5terst\xE4ll ditt l\xF6senord","Reset your Password":"\xC5terst\xE4ll ditt l\xF6senord","Send code":"Skicka kod","Send Code":"Skicka kod",Sending:"Skickar","Setup TOTP":"Konfigurera TOTP","Show password":"Visa l\xF6senord","Sign in to your account":"Logga in till ditt konto","Sign In with Amazon":"Logga in med Amazon","Sign In with Apple":"Logga in med Apple","Sign In with Facebook":"Logga in med Facebook","Sign In with Google":"Logga in med Google","Sign in":"Logga in","Sign In":"Logga in","Signing in":"Loggar in",Skip:"Hoppa \xF6ver",Submit:"Skicka",Submitting:"Skickar in",Username:"Anv\xE4ndarnamn","Verify Contact":"Verifiera kontakt",Verify:"Verifiera","An account with the given email already exists.":"Det finns redan ett konto med denna e-postadress","Confirm a Code":"Bekr\xE4fta koden","Confirm Sign In":"Bekr\xE4fta inloggning","Create account":"Skapa konto","Enter your password":"Ange ditt l\xF6senord","Forgot Password":"Gl\xF6mt l\xF6senordet","Have an account? ":"Redan registrerad? ","Incorrect username or password":"Felaktigt anv\xE4ndarnamn eller l\xF6senord","Invalid password format":"Ogiltigt l\xF6senordsformat","Invalid phone number format":"Ogiltigt format f\xF6r telefonnummer","Lost your code? ":"F\xF6rlorat koden? ","New Password":"Nytt l\xF6senord","No account? ":"Inget konto? ",or:"eller","Password attempts exceeded":"Maximalt antal felaktiga inloggningsf\xF6rs\xF6k har uppn\xE5tts","Reset password":"\xC5terst\xE4ll l\xF6senord","Sign Out":"Logga ut","Sign Up":"Registrering","User already exists":"Anv\xE4ndaren finns redan","User does not exist":"Anv\xE4ndaren finns inte","Username cannot be empty":"Anv\xE4ndarnamnet kan inte vara tomt","We Emailed You":"Vi har skickat e-post till dig"},Xc={"Account recovery requires verified contact information":"Pemulihan akun memerlukan informasi kontak terverifikasi","Back to Sign In":"Kembali ke Masuk","Change Password":"Ubah kata sandi",Changing:"Mengubah",Code:"Kode","Confirm Password":"Konfirmasi kata sandi","Confirm Sign Up":"Konfirmasi Pendaftaran","Confirm SMS Code":"Konfirmasi Kode SMS","Confirm TOTP Code":"Konfirmasi Kode TOTP",Confirm:"Konfirmasi","Confirmation Code":"Kode Konfirmasi",Confirming:"Mengkonfirmasi","Create a new account":"Buat akun baru","Create Account":"Buat Akun","Creating Account":"Membuat Akun","Dismiss alert":"Hentikan pemberitahuan",Email:"Email","Enter your code":"Masukkan kode anda","Enter your email":"Masukkan email anda","Enter your phone number":"Masukkan nomor telepon anda","Enter your username":"Masukkan nama akun anda","Forgot your password?":"Lupa kata sandi? ","Hide password":"Sembunyikan kata sandi",Loading:"Memuat","New password":"Kata sandi baru",Password:"Kata sandi","Phone Number":"Nomor telepon","Resend Code":"Kirim ulang kodenya","Reset your Password":"Reset Kata Sandi","Reset your password":"Ubah kata sandi anda","Send code":"Kirim kode","Send Code":"Kirim Kode",Sending:"Mengirim","Setup TOTP":"Siapkan TOTP","Show password":"Tampilkan kata sandi","Sign in to your account":"Masuk akun anda","Sign In with Amazon":"Masuk dengan Amazon","Sign In with Apple":"Masuk dengan Apple","Sign In with Facebook":"Masuk dengan Facebook","Sign In with Google":"Masuk dengan Google","Sign in":"Masuk","Sign In":"Masuk","Signing in":"Memasuki",Skip:"Lewati",Submit:"Ajukan",Submitting:"Mengajukan",Username:"Nama akun","Verify Contact":"Verifikasi Kontak",Verify:"Verifikasi","An account with the given email already exists.":"Akun dengan email tersebut sudah terdaftar.","Attempt limit exceeded, please try after some time.":"Batas percobaan terlampaui, mohon coba lagi setelah beberapa waktu.","Cannot reset password for the user as there is no registered/verified email or phone_number":"Tidak dapat mengatur ulang kata sandi karena tidak ada email terdaftar / terverifikasi atau nomor telepon",Change:"Ubah","Confirm a Code":"Konfirmasi kode","Create account":"Buat akun","Enter your password":"Masukkan kata sandi anda","Forgot Password":"Lupa kata sandi","Have an account? ":"Sudah punya akun? ",Hello:"Halo","Incorrect username or password.":"Nama akun atau kata sandi salah.","Invalid phone number format":"Nomor telepon tidak sesuai dengan format.","Invalid verification code provided, please try again.":"Kode verifikasi tidak sesuai, mohon coba lagi.","It may take a minute to arrive.":"Mungkin perlu beberapa waktu untuk tiba.","Lost your code? ":"Kode anda hilang?",Name:"Nama","Network error":"Galat jaringan","No account? ":"Tidak ada akun?",or:"atau","Password did not conform with policy: Password not long enough":"Kata sandi tidak sesuai dengan aturan: Kata sandi kurang panjang","Resend a Code":"Renvoyer un code","Reset password":"Ubah kata sandi anda",Send:"Kirim","Sign In with AWS":"Masuk dengan AWS","Sign Up with Amazon":"Daftar dengan Amazon","Sign Up with AWS":"Daftar dengan AWS","Sign Up with Facebook":"Daftar dengan Facebook","Sign Up with Google":"Daftar dengan Google",SMS:"SMS","User already exists":"Akun sudah terdaftar","User does not exist.":"Akun tidak terdaftar.","User is disabled.":"Akun dinonaktifkan.","Username cannot be empty":"Nama akun tidak boleh kosong","Username/client id combination not found.":"Nama akun atau id tidak ditemukan.","We Emailed You":"Kami mengirimkanmu email","Your code is on the way. To log in, enter the code we emailed to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami emailkan ke","Your code is on the way. To log in, enter the code we texted to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami tuliskan ke","Your passwords must match":"Kata sandi harus sama"},el={"Account recovery requires verified contact information":"Hesap kurtarma, do\u011Frulanm\u0131\u015F ileti\u015Fim bilgilerini gerektirir","Back to Sign In":"Oturum A\xE7maya Geri D\xF6n","Change Password":"\u015Eifreyi De\u011Fi\u015Ftir",Changing:"De\u011Fi\u015Ftiriliyor",Code:"Kod","Confirm Password":"\u015Eifreyi Do\u011Frula","Confirm Sign Up":"Kay\u0131t \u0130\u015Flemini Do\u011Frula","Confirm SMS Code":"SMS Kodunu Do\u011Frula","Confirm TOTP Code":"Tek Kullan\u0131ml\u0131k \u015Eifreyi Do\u011Frula",Confirm:"Do\u011Frula","Confirmation Code":"Do\u011Frulama Kodu",Confirming:"Do\u011Frulan\u0131yor","Create a new account":"Yeni bir hesap olu\u015Ftur","Create Account":"Hesap Olu\u015Ftur","Creating Account":"Hesap Olu\u015Fturuluyor","Dismiss alert":"Uyar\u0131y\u0131 reddet",Email:"E-posta","Enter your code":"Kodu girin","Enter your email":"E-posta adresinizi girin","Enter your phone number":"Telefon numaran\u0131z\u0131 girin","Enter your username":"Kullan\u0131c\u0131 ad\u0131n\u0131z\u0131 girin","Forgot your password?":"\u015Eifrenizi mi unuttunuz?","Hide password":"\u015Eifreyi gizle",Loading:"Y\xFCkleniyor","New password":"Yeni \u015Fifre",Password:"\u015Eifre","Phone Number":"Telefon Numaras\u0131","Resend Code":"Kodu Yeniden G\xF6nder","Reset your password":"\u015Eifrenizi s\u0131f\u0131rlay\u0131n","Reset your Password":"\u015Eifrenizi S\u0131f\u0131rlay\u0131n","Send code":"Kod g\xF6nder","Send Code":"Kod G\xF6nder",Sending:"G\xF6nderiliyor","Setup TOTP":"Tek kullan\u0131ml\u0131k \u015Fifre kurulumu yap","Show password":"\u015Eifreyi g\xF6ster","Sign in to your account":"Hesab\u0131n\u0131zda oturum a\xE7\u0131n","Sign In with Amazon":"Amazon ile Oturum A\xE7","Sign In with Apple":"Apple ile Oturum A\xE7","Sign In with Facebook":"Facebook ile Oturum A\xE7","Sign In with Google":"Google ile Oturum A\xE7","Sign in":"Oturum a\xE7","Sign In":"Oturum A\xE7","Signing in":"Oturum a\xE7\u0131l\u0131yor",Skip:"Atla",Submit:"G\xF6nder",Submitting:"G\xF6nderiliyor",Username:"Kullan\u0131c\u0131 ad\u0131","Verify Contact":"Ki\u015Fiyi Do\u011Frula",Verify:"Do\u011Frula","An account with the given email already exists.":"Bu e-postaya ait zaten bir hesap var.","Confirm Sign In":"Oturum A\xE7may\u0131 Do\u011Frula","Have an account? ":"Hesab\u0131n\u0131z var m\u0131? ","Incorrect username or password":"Yanl\u0131\u015F kullan\u0131c\u0131 ad\u0131 ya da \u015Fifre","Invalid password format":"Ge\xE7ersiz parola format\u0131","Invalid phone number format":"Ge\xE7ersiz telefon numaras\u0131 format\u0131","Lost your code? ":"Kodu mu kaybettiniz? ","No account? ":"Hesab\u0131n\u0131z yok mu? ",or:"veya","Password attempts exceeded":"Maksimum oturum a\xE7ma giri\u015Fimi a\u015F\u0131ld\u0131","Sign Out":"\xC7\u0131k\u0131\u015F yap","Sign Up":"Kay\u0131t Ol","User already exists":"Bu kullan\u0131c\u0131 zaten var","User does not exist":"B\xF6yle bir kullan\u0131c\u0131 mevcut de\u011Fil","Username cannot be empty":"Kullan\u0131c\u0131 ad\u0131 bo\u015F olamaz"},tl={"Account recovery requires verified contact information":"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0443\u0447\u0435\u0442\u043D\u043E\u0439 \u0437\u0430\u043F\u0438\u0441\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u043A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438","Back to Sign In":"\u041D\u0430\u0437\u0430\u0434, \u0447\u0442\u043E\u0431\u044B \u0432\u043E\u0439\u0442\u0438","Change Password":"\u0438\u0437\u043C\u0435\u043D\u044F\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C",Changing:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435",Code:"\u041A\u043E\u0434","Confirm Password":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 \u043F\u0430\u0440\u043E\u043B\u044F","Confirm Sign Up":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F","Confirm SMS Code":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 CMC-\u041A\u043E\u0434","Confirm TOTP Code":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 TOTP-\u041A\u043E\u0434",Confirm:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0442\u044C","Confirmation Code":"\u043A\u043E\u0434 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F",Confirming:"\u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435","Create a new account":"\u0421\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0443\u0447\u0435\u0442\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C","Create Account":"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0443\u0447\u0435\u0442\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C","Creating Account":"\u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u0443\u0447\u0435\u0442\u043D\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C","Dismiss alert":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",Email:"\u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430","Enter your code":"\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u041A\u043E\u0434","Enter your email":"\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430","Enter your phone number":"\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430","Enter your username":"\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u0438\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F","Forgot your password?":"\u0417\u0430\u0431\u044B\u043B\u0438 \u0432\u0430\u0448 \u043F\u0430\u0440\u043E\u043B\u044C?","Hide password":"\u0421\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C",Loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430","New password":"\u041D\u043E\u0432\u044B\u0439 \u043F\u0430\u0440\u043E\u043B\u044C",Password:"\u041F\u0430\u0440\u043E\u043B\u044C","Phone Number":"\u041D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430","Resend Code":"\u041E\u0442\u043F\u0440\u0430\u0432\u044C \u0435\u0449\u0435 \u0440\u0430\u0437 \u041A\u043E\u0434","Reset your password":"\u0441\u0431\u0440\u043E\u0441 \u0432\u0430\u0448 \u043F\u0430\u0440\u043E\u043B\u044C","Reset your Password":"\u0441\u0431\u0440\u043E\u0441 \u0432\u0430\u0448 \u041F\u0430\u0440\u043E\u043B\u044C","Send code":"\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u041A\u043E\u0434","Send Code":"\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u041A\u043E\u0434",Sending:"\u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0430","Setup TOTP":"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044C TOTP","Show password":"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C","Sign in to your account":"\u0437\u043D\u0430\u043A \u0432 \u0441\u0432\u043E\u0439 \u0430\u043A\u043A\u0430\u0443\u043D\u0442","Sign In with Amazon":"\u0437\u043D\u0430\u043A \u0432 \u0441 Amazon","Sign In with Apple":"\u0437\u043D\u0430\u043A \u0432 \u0441 Apple","Sign In with Facebook":"\u0437\u043D\u0430\u043A \u0432 \u0441 Facebook","Sign In with Google":"\u0437\u043D\u0430\u043A \u0432 \u0441 Google","Sign in":"\u0437\u043D\u0430\u043A \u0432","Sign In":"\u0437\u043D\u0430\u043A \u0432","Signing in":"\u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0432",Skip:"\u041F\u0440\u043E\u043F\u0443\u0441\u043A\u0430\u0442\u044C",Submit:"\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u044F\u0442\u044C \u043D\u0430 \u0440\u0430\u0441\u0441\u043C\u043E\u0442\u0440\u0435\u043D\u0438\u0435",Submitting:"\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0432",Username:"\u0418\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F","Verify Contact":"\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043A\u043E\u043D\u0442\u0430\u043A\u0442",Verify:"\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C"},nl={BACK_SIGN_IN:"Back to Sign In",BIRTHDATE:"Birthdate",CHANGE_PASSWORD:"Change Password",CHANGING_PASSWORD:"Changing",CODE:"Code",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_RESET_PASSWORD_HEADING:"Reset your Password",CONFIRM_SIGNUP_HEADING:"Confirm Sign Up",CONFIRM_SMS:"Confirm SMS Code",CONFIRM_TOTP:"Confirm TOTP Code",CONFIRM:"Confirm",CONFIRMATION_CODE:"Confirmation Code",CONFIRMING:"Confirming",CREATE_ACCOUNT:"Create Account",CREATING_ACCOUNT:"Creating Account",EMAIL_ADDRESS:"Email",ENTER_CODE:"Enter your code",ENTER_USERNAME:"Enter your username",FAMILY_NAME:"Family Name",GIVEN_NAME:"Given Name",FORGOT_YOUR_PASSWORD:"Forgot your password?",FORGOT_YOUR_PASSWORD_LEGACY:"Forgot your password? ",HIDE_PASSWORD:"Hide password",LOADING:"Loading",LOGIN_NAME:"Username",MIDDLE_NAME:"Middle Name",NAME:"Name",NICKNAME:"Nickname",NEW_PASSWORD:"New password",PASSWORD:"Password",PHONE_NUMBER:"Phone Number",PREFERRED_USERNAME:"Preferred Username",PROFILE:"Profile",RESEND_CODE:"Resend Code",RESET_PASSWORD_HEADING:"Reset your password",RESET_PASSWORD:"Reset Password",SEND_CODE:"Send code",SENDING:"Sending",SETUP_TOTP:"Setup TOTP",SHOW_PASSWORD:"Show password",SIGN_IN_BUTTON:"Sign in",SIGN_IN_TAB:"Sign In",SIGN_IN_WITH_AMAZON:"Sign In with Amazon",SIGN_IN_WITH_APPLE:"Sign In with Apple",SIGN_IN_WITH_FACEBOOK:"Sign In with Facebook",SIGN_IN_WITH_GOOGLE:"Sign In with Google",SIGN_IN:"Sign in to your account",SIGN_UP_BUTTON:"Create a new account",SIGNING_IN_BUTTON:"Signing in",SKIP:"Skip",SUBMIT:"Submit",SUBMITTING:"Submitting",VERIFY_CONTACT:"Verify Contact",VERIFY_HEADING:"Account recovery requires verified contact information",VERIFY:"Verify",WEBSITE:"Website"},rl=U({},Lc),ol=U({},jc),al=U({},zc),il=U({},Gc),sl=U({},Hc),ul=U({},Kc),cl=U({},qc),ll=U({},Wc),dl=U({},Yc),fl=U({},Jc),pl=U({},Zc),hl=U({},Qc),ml=U({},Xc),gl=U({},el),vl=U({},tl),yl=U({},nl);U({},yl);function R(e){return le.I18n.get(e)}function Sl(e){return le.I18n.get(e)!==e}var wl={de:rl,en:ol,es:al,fr:il,id:ml,it:sl,ja:ul,kr:cl,nl:ll,pl:dl,pt:fl,zh:pl,sv:hl,tr:gl,ru:vl},Hr={birthdate:{label:"Birthdate",labelHidden:!0,placeholder:"Birthdate",type:"date",autocomplete:"bday",isRequired:!0},confirmation_code:{label:"Confirmation Code",labelHidden:!0,placeholder:"Code",type:"number",autocomplete:"one-time-code",isRequired:!0},confirm_password:{label:"Confirm Password",labelHidden:!0,placeholder:"Confirm Password",type:"password",autocomplete:"new-password",isRequired:!0},email:{label:"Email",labelHidden:!0,placeholder:"Email",type:"email",autocomplete:"username",isRequired:!0},family_name:{label:"Family Name",labelHidden:!0,placeholder:"Family Name",type:"text",autocomplete:"family-name",isRequired:!0},given_name:{label:"Given Name",labelHidden:!0,placeholder:"Given Name",type:"text",autocomplete:"given-name",isRequired:!0},middle_name:{label:"Middle Name",labelHidden:!0,placeholder:"Middle Name",type:"text",autocomplete:"additional-name",isRequired:!0},name:{label:"Name",labelHidden:!0,placeholder:"Name",type:"text",autocomplete:"name",isRequired:!0},nickname:{label:"Nickname",labelHidden:!0,placeholder:"Nickname",type:"text",autocomplete:"tel",isRequired:!0},password:{label:"Password",labelHidden:!0,placeholder:"Password",type:"password",autocomplete:"new-password",isRequired:!0},phone_number:{label:"Phone Number",labelHidden:!0,placeholder:"Phone",type:"tel",autocomplete:"tel",dialCode:"+1",dialCodeList:Fc,isRequired:!0},preferred_username:{label:"Preferred Username",labelHidden:!0,placeholder:"Preferred Username",type:"text",isRequired:!0},profile:{label:"Profile",labelHidden:!0,placeholder:"Profile",type:"url",autocomplete:"url",isRequired:!0},website:{label:"Website",labelHidden:!0,placeholder:"Website",type:"url",autocomplete:"url",isRequired:!0},username:{label:"Username",labelHidden:!0,placeholder:"Username",type:"text",autocomplete:"username",isRequired:!0}},_l=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "],Ve=function(e){var t=new FormData(e.target);return Object.fromEntries(t)},Jo=function(e){return Vc.includes(e)},bl=function(e){return e?(t=e,Array.isArray(t)?e:[e]):null;var t},Cl=function(e,t){var n=t.send,r=t.getSnapshot();switch(e.payload.event){case"tokenRefresh":r.matches("authenticated.idle")&&n("TOKEN_REFRESH");break;case"signOut":case"tokenRefresh_failure":r.matches("authenticated.idle")&&n("SIGN_OUT")}},Al=function(e,t){return t===void 0&&(t=Cl),le.Hub.listen("auth",function(n){t(n,e)},"authenticator-hub-handler")},El=function(e){return _l.some(function(t){return e.includes(t)})},qe=function(e,t){var n=Ja(e).country_code,r=Hr[t];return r.type==="tel"&&(r=U(U({},r),{dialCode:n})),r},ar=function(e){var t=vr(e);return U(U({},qe(e,t)),{autocomplete:"username"})},nn=function(e){return{confirmation_code:U(U({},qe(e,"confirmation_code")),{label:"Code *",placeholder:"Code"})}},Il={signIn:function(e){return{username:U({},ar(e)),password:U(U({},qe(e,"password")),{autocomplete:"current-password"})}},signUp:function(e){for(var t=e.context.config,n=t.loginMechanisms,r=t.signUpAttributes,a=vr(e),i={},s=0,u=Array.from(new Set(Oe(Oe(Oe([],n,!0),["password","confirm_password"],!1),r,!0)));s<u.length;s++){var c=u[s];if(Jo(c)){var l=c===a?ar(e):qe(e,c);i[c]=U({},l)}else console.debug("Authenticator does not have a default implementation for ".concat(c,". Customize SignUp FormFields to add your own."))}return i},confirmSignUp:function(e){return{confirmation_code:U(U({},qe(e,"confirmation_code")),{placeholder:"Enter your code"})}},confirmSignIn:nn,forceNewPassword:function(e){for(var t=be(e).context.requiredAttributes,n={},r=0,a=Array.from(new Set(Oe(["password","confirm_password"],t,!0)));r<a.length;r++){var i=a[r];Jo(i)?n[i]=U({},qe(e,i)):console.debug("Authenticator does not have a default implementation for ".concat(i,". Customize ForceNewPassword FormFields to add your own."))}return n},resetPassword:function(e){var t=vr(e),n=Hr[t].label;return{username:U(U({},ar(e)),{label:"Enter your ".concat(n.toLowerCase()),placeholder:"Enter your ".concat(n.toLowerCase())})}},confirmResetPassword:function(e){return U(U({},nn(e)),{password:U(U({},qe(e,"password")),{label:"New Password",placeholder:"New Password"}),confirm_password:U(U({},qe(e,"confirm_password")),{label:"Confirm Password",placeholder:"Confirm Password"})})},confirmVerifyUser:nn,setupTOTP:nn};function Tl(){this.__data__=[],this.size=0}var $l=Tl;function Pl(e,t){return e===t||e!==e&&t!==t}var jt=Pl,Nl=jt;function kl(e,t){for(var n=e.length;n--;)if(Nl(e[n][0],t))return n;return-1}var Dn=kl,xl=Dn,Ol=Array.prototype,Ul=Ol.splice;function Rl(e){var t=this.__data__,n=xl(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ul.call(t,n,1),--this.size,!0}var Bl=Rl,Vl=Dn;function Dl(e){var t=this.__data__,n=Vl(t,e);return n<0?void 0:t[n][1]}var Ml=Dl,Fl=Dn;function Ll(e){return Fl(this.__data__,e)>-1}var jl=Ll,zl=Dn;function Gl(e,t){var n=this.__data__,r=zl(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Hl=Gl,Kl=$l,ql=Bl,Wl=Ml,Yl=jl,Jl=Hl;function gt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gt.prototype.clear=Kl;gt.prototype.delete=ql;gt.prototype.get=Wl;gt.prototype.has=Yl;gt.prototype.set=Jl;var Mn=gt,Zl=Mn;function Ql(){this.__data__=new Zl,this.size=0}var Xl=Ql;function ed(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var td=ed;function nd(e){return this.__data__.get(e)}var rd=nd;function od(e){return this.__data__.has(e)}var ad=od,id=Re,sd=id["__core-js_shared__"],ud=sd,ir=ud,Zo=function(){var e=/[^.]+$/.exec(ir&&ir.keys&&ir.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function cd(e){return!!Zo&&Zo in e}var ld=cd,dd=Function.prototype,fd=dd.toString;function pd(e){if(e!=null){try{return fd.call(e)}catch{}try{return e+""}catch{}}return""}var ii=pd,hd=Lr,md=ld,gd=Be,vd=ii,yd=/[\\^$.*+?()[\]{}|]/g,Sd=/^\[object .+?Constructor\]$/,wd=Function.prototype,_d=Object.prototype,bd=wd.toString,Cd=_d.hasOwnProperty,Ad=RegExp("^"+bd.call(Cd).replace(yd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ed(e){if(!gd(e)||md(e))return!1;var t=hd(e)?Ad:Sd;return t.test(vd(e))}var Id=Ed;function Td(e,t){return e==null?void 0:e[t]}var $d=Td,Pd=Id,Nd=$d;function kd(e,t){var n=Nd(e,t);return Pd(n)?n:void 0}var et=kd,xd=et,Od=Re,Ud=xd(Od,"Map"),Kr=Ud,Rd=et,Bd=Rd(Object,"create"),Fn=Bd,Qo=Fn;function Vd(){this.__data__=Qo?Qo(null):{},this.size=0}var Dd=Vd;function Md(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Fd=Md,Ld=Fn,jd="__lodash_hash_undefined__",zd=Object.prototype,Gd=zd.hasOwnProperty;function Hd(e){var t=this.__data__;if(Ld){var n=t[e];return n===jd?void 0:n}return Gd.call(t,e)?t[e]:void 0}var Kd=Hd,qd=Fn,Wd=Object.prototype,Yd=Wd.hasOwnProperty;function Jd(e){var t=this.__data__;return qd?t[e]!==void 0:Yd.call(t,e)}var Zd=Jd,Qd=Fn,Xd="__lodash_hash_undefined__";function ef(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qd&&t===void 0?Xd:t,this}var tf=ef,nf=Dd,rf=Fd,of=Kd,af=Zd,sf=tf;function vt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vt.prototype.clear=nf;vt.prototype.delete=rf;vt.prototype.get=of;vt.prototype.has=af;vt.prototype.set=sf;var uf=vt,Xo=uf,cf=Mn,lf=Kr;function df(){this.size=0,this.__data__={hash:new Xo,map:new(lf||cf),string:new Xo}}var ff=df;function pf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var hf=pf,mf=hf;function gf(e,t){var n=e.__data__;return mf(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Ln=gf,vf=Ln;function yf(e){var t=vf(this,e).delete(e);return this.size-=t?1:0,t}var Sf=yf,wf=Ln;function _f(e){return wf(this,e).get(e)}var bf=_f,Cf=Ln;function Af(e){return Cf(this,e).has(e)}var Ef=Af,If=Ln;function Tf(e,t){var n=If(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var $f=Tf,Pf=ff,Nf=Sf,kf=bf,xf=Ef,Of=$f;function yt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yt.prototype.clear=Pf;yt.prototype.delete=Nf;yt.prototype.get=kf;yt.prototype.has=xf;yt.prototype.set=Of;var qr=yt,Uf=Mn,Rf=Kr,Bf=qr,Vf=200;function Df(e,t){var n=this.__data__;if(n instanceof Uf){var r=n.__data__;if(!Rf||r.length<Vf-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Bf(r)}return n.set(e,t),this.size=n.size,this}var Mf=Df,Ff=Mn,Lf=Xl,jf=td,zf=rd,Gf=ad,Hf=Mf;function St(e){var t=this.__data__=new Ff(e);this.size=t.size}St.prototype.clear=Lf;St.prototype.delete=jf;St.prototype.get=zf;St.prototype.has=Gf;St.prototype.set=Hf;var jn=St;function Kf(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var qf=Kf,Wf=et,Yf=function(){try{var e=Wf(Object,"defineProperty");return e({},"",{}),e}catch{}}(),si=Yf,ea=si;function Jf(e,t,n){t=="__proto__"&&ea?ea(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Wr=Jf,Zf=Wr,Qf=jt,Xf=Object.prototype,ep=Xf.hasOwnProperty;function tp(e,t,n){var r=e[t];(!(ep.call(e,t)&&Qf(r,n))||n===void 0&&!(t in e))&&Zf(e,t,n)}var Yr=tp,np=Yr,rp=Wr;function op(e,t,n,r){var a=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var u=t[i],c=r?r(n[u],e[u],u,n,e):void 0;c===void 0&&(c=e[u]),a?rp(n,u,c):np(n,u,c)}return n}var zt=op,ap=zt,ip=Vn;function sp(e,t){return e&&ap(t,ip(t),e)}var up=sp;function cp(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var lp=cp,dp=Be,fp=Bn,pp=lp,hp=Object.prototype,mp=hp.hasOwnProperty;function gp(e){if(!dp(e))return pp(e);var t=fp(e),n=[];for(var r in e)r=="constructor"&&(t||!mp.call(e,r))||n.push(r);return n}var vp=gp,yp=ti,Sp=vp,wp=Lt;function _p(e){return wp(e)?yp(e,!0):Sp(e)}var Gt=_p,bp=zt,Cp=Gt;function Ap(e,t){return e&&bp(t,Cp(t),e)}var Ep=Ap,bn={exports:{}};(function(e,t){var n=Re,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,s=i?n.Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(l,d){if(d)return l.slice();var h=l.length,f=u?u(h):new l.constructor(h);return l.copy(f),f}e.exports=c})(bn,bn.exports);function Ip(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var ui=Ip;function Tp(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[a++]=s)}return i}var $p=Tp;function Pp(){return[]}var ci=Pp,Np=$p,kp=ci,xp=Object.prototype,Op=xp.propertyIsEnumerable,ta=Object.getOwnPropertySymbols,Up=ta?function(e){return e==null?[]:(e=Object(e),Np(ta(e),function(t){return Op.call(e,t)}))}:kp,Jr=Up,Rp=zt,Bp=Jr;function Vp(e,t){return Rp(e,Bp(e),t)}var Dp=Vp;function Mp(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var li=Mp,Fp=ni,Lp=Fp(Object.getPrototypeOf,Object),Zr=Lp,jp=li,zp=Zr,Gp=Jr,Hp=ci,Kp=Object.getOwnPropertySymbols,qp=Kp?function(e){for(var t=[];e;)jp(t,Gp(e)),e=zp(e);return t}:Hp,di=qp,Wp=zt,Yp=di;function Jp(e,t){return Wp(e,Yp(e),t)}var Zp=Jp,Qp=li,Xp=ke;function eh(e,t,n){var r=t(e);return Xp(e)?r:Qp(r,n(e))}var fi=eh,th=fi,nh=Jr,rh=Vn;function oh(e){return th(e,rh,nh)}var pi=oh,ah=fi,ih=di,sh=Gt;function uh(e){return ah(e,sh,ih)}var hi=uh,ch=et,lh=Re,dh=ch(lh,"DataView"),fh=dh,ph=et,hh=Re,mh=ph(hh,"Promise"),gh=mh,vh=et,yh=Re,Sh=vh(yh,"Set"),wh=Sh,_h=et,bh=Re,Ch=_h(bh,"WeakMap"),Ah=Ch,yr=fh,Sr=Kr,wr=gh,_r=wh,br=Ah,mi=mt,wt=ii,na="[object Map]",Eh="[object Object]",ra="[object Promise]",oa="[object Set]",aa="[object WeakMap]",ia="[object DataView]",Ih=wt(yr),Th=wt(Sr),$h=wt(wr),Ph=wt(_r),Nh=wt(br),Qe=mi;(yr&&Qe(new yr(new ArrayBuffer(1)))!=ia||Sr&&Qe(new Sr)!=na||wr&&Qe(wr.resolve())!=ra||_r&&Qe(new _r)!=oa||br&&Qe(new br)!=aa)&&(Qe=function(e){var t=mi(e),n=t==Eh?e.constructor:void 0,r=n?wt(n):"";if(r)switch(r){case Ih:return ia;case Th:return na;case $h:return ra;case Ph:return oa;case Nh:return aa}return t});var Ht=Qe,kh=Object.prototype,xh=kh.hasOwnProperty;function Oh(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&xh.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Uh=Oh,Rh=Re,Bh=Rh.Uint8Array,gi=Bh,sa=gi;function Vh(e){var t=new e.constructor(e.byteLength);return new sa(t).set(new sa(e)),t}var Qr=Vh,Dh=Qr;function Mh(e,t){var n=t?Dh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Fh=Mh,Lh=/\w*$/;function jh(e){var t=new e.constructor(e.source,Lh.exec(e));return t.lastIndex=e.lastIndex,t}var zh=jh,ua=Ft,ca=ua?ua.prototype:void 0,la=ca?ca.valueOf:void 0;function Gh(e){return la?Object(la.call(e)):{}}var Hh=Gh,Kh=Qr;function qh(e,t){var n=t?Kh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var vi=qh,Wh=Qr,Yh=Fh,Jh=zh,Zh=Hh,Qh=vi,Xh="[object Boolean]",em="[object Date]",tm="[object Map]",nm="[object Number]",rm="[object RegExp]",om="[object Set]",am="[object String]",im="[object Symbol]",sm="[object ArrayBuffer]",um="[object DataView]",cm="[object Float32Array]",lm="[object Float64Array]",dm="[object Int8Array]",fm="[object Int16Array]",pm="[object Int32Array]",hm="[object Uint8Array]",mm="[object Uint8ClampedArray]",gm="[object Uint16Array]",vm="[object Uint32Array]";function ym(e,t,n){var r=e.constructor;switch(t){case sm:return Wh(e);case Xh:case em:return new r(+e);case um:return Yh(e,n);case cm:case lm:case dm:case fm:case pm:case hm:case mm:case gm:case vm:return Qh(e,n);case tm:return new r;case nm:case am:return new r(e);case rm:return Jh(e);case om:return new r;case im:return Zh(e)}}var Sm=ym,wm=Be,da=Object.create,_m=function(){function e(){}return function(t){if(!wm(t))return{};if(da)return da(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),bm=_m,Cm=bm,Am=Zr,Em=Bn;function Im(e){return typeof e.constructor=="function"&&!Em(e)?Cm(Am(e)):{}}var yi=Im,Tm=Ht,$m=Ke,Pm="[object Map]";function Nm(e){return $m(e)&&Tm(e)==Pm}var km=Nm,xm=km,Om=Gr,fa=Rt.exports,pa=fa&&fa.isMap,Um=pa?Om(pa):xm,Rm=Um,Bm=Ht,Vm=Ke,Dm="[object Set]";function Mm(e){return Vm(e)&&Bm(e)==Dm}var Fm=Mm,Lm=Fm,jm=Gr,ha=Rt.exports,ma=ha&&ha.isSet,zm=ma?jm(ma):Lm,Gm=zm,Hm=jn,Km=qf,qm=Yr,Wm=up,Ym=Ep,Jm=bn.exports,Zm=ui,Qm=Dp,Xm=Zp,eg=pi,tg=hi,ng=Ht,rg=Uh,og=Sm,ag=yi,ig=ke,sg=Xe.exports,ug=Rm,cg=Be,lg=Gm,dg=Vn,fg=Gt,pg=1,hg=2,mg=4,Si="[object Arguments]",gg="[object Array]",vg="[object Boolean]",yg="[object Date]",Sg="[object Error]",wi="[object Function]",wg="[object GeneratorFunction]",_g="[object Map]",bg="[object Number]",_i="[object Object]",Cg="[object RegExp]",Ag="[object Set]",Eg="[object String]",Ig="[object Symbol]",Tg="[object WeakMap]",$g="[object ArrayBuffer]",Pg="[object DataView]",Ng="[object Float32Array]",kg="[object Float64Array]",xg="[object Int8Array]",Og="[object Int16Array]",Ug="[object Int32Array]",Rg="[object Uint8Array]",Bg="[object Uint8ClampedArray]",Vg="[object Uint16Array]",Dg="[object Uint32Array]",oe={};oe[Si]=oe[gg]=oe[$g]=oe[Pg]=oe[vg]=oe[yg]=oe[Ng]=oe[kg]=oe[xg]=oe[Og]=oe[Ug]=oe[_g]=oe[bg]=oe[_i]=oe[Cg]=oe[Ag]=oe[Eg]=oe[Ig]=oe[Rg]=oe[Bg]=oe[Vg]=oe[Dg]=!0;oe[Sg]=oe[wi]=oe[Tg]=!1;function gn(e,t,n,r,a,i){var s,u=t&pg,c=t&hg,l=t&mg;if(n&&(s=a?n(e,r,a,i):n(e)),s!==void 0)return s;if(!cg(e))return e;var d=ig(e);if(d){if(s=rg(e),!u)return Zm(e,s)}else{var h=ng(e),f=h==wi||h==wg;if(sg(e))return Jm(e,u);if(h==_i||h==Si||f&&!a){if(s=c||f?{}:ag(e),!u)return c?Xm(e,Ym(s,e)):Qm(e,Wm(s,e))}else{if(!oe[h])return a?e:{};s=og(e,h,u)}}i||(i=new Hm);var p=i.get(e);if(p)return p;i.set(e,s),lg(e)?e.forEach(function(v){s.add(gn(v,t,n,v,e,i))}):ug(e)&&e.forEach(function(v,S){s.set(S,gn(v,t,n,S,e,i))});var g=l?c?tg:eg:c?fg:dg,m=d?void 0:g(e);return Km(m||e,function(v,S){m&&(S=v,v=e[S]),qm(s,S,gn(v,t,n,S,e,i))}),s}var Mg=gn,Fg=Mg,Lg=1,jg=4;function zg(e){return Fg(e,Lg|jg)}var Gg=zg,Hg=function(e){for(var t=U({},e),n=0,r=Object.entries(e);n<r.length;n++){var a=r[n],i=a[0],s=a[1],u=s.label,c=s.placeholder;t[i]=U(U({},s),{label:u?R(u):void 0,placeholder:c?R(c):void 0})}return t},Kg=function(e){return Object.entries(e).sort(function(t,n){return(t[1].order||Number.MAX_VALUE)-(n[1].order||Number.MAX_VALUE)}).filter(function(t){return t[1]!==void 0})},qg=function(e,t){t===void 0&&(t={});var n=Gg(e);return Object.keys(t).forEach(function(r){n[r]=U(U({},n[r]),t[r])}),n},Wg=function(e,t){var n=(0,Il[e])(t);return Hg(n)},Yg=function(e,t){var n,r,a=Wg(e,t),i=((r=(n=be(t).context)===null||n===void 0?void 0:n.formFields)===null||r===void 0?void 0:r[e])||{},s=qg(a,i);return delete s.QR,s},Jg=function(e,t){var n=Yg(e,t);return Kg(n)};/*! *****************************************************************************
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=require("vue"),le=require("aws-amplify");const Ue=o.defineComponent({__name:"base-field-set",setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"fieldSetI",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("fieldset",o.mergeProps(n.$attrs,{"data-amplify-fieldset":""}),[o.renderSlot(n.$slots,"default")],16)])}}),xs=["type","data-fullwidth","data-size","data-fontWeight","data-variation","data-loading","data-disabled","disabled"],Se=o.defineComponent({__name:"amplify-button",props:{type:null,fullWidth:{type:[Boolean,String]},size:null,variation:null,fontWeight:null,loading:{type:[Boolean,String]},disabled:{type:[Boolean,String]}},setup(e){const t=e,{type:n,fullWidth:r,size:i,variation:a,fontWeight:s}=o.toRefs(t);return(u,c)=>o.renderSlot(u.$slots,"buttont",o.normalizeProps(o.guardReactiveProps(u.$attrs)),()=>[o.createElementVNode("button",o.mergeProps({class:["amplify-button",{[`amplify-button--${o.unref(a)}`]:o.unref(a),[`amplify-button--${o.unref(i)}`]:o.unref(i),"amplify-button--fullwidth":o.unref(r),"amplify-button--loading":e.loading,"amplify-button--disabled":e.disabled}],type:o.unref(n),style:{fontWeight:o.unref(s)},"data-fullwidth":o.unref(r),"data-size":o.unref(i),"data-fontWeight":o.unref(s),"data-variation":o.unref(a),"data-loading":e.loading,"data-disabled":e.disabled,disabled:e.disabled},u.$attrs,{"data-amplify-button":""}),[o.renderSlot(u.$slots,"default")],16,xs)])}});var Ie=function(e){var t;return(t=e.context.actorRef)===null||t===void 0?void 0:t.getSnapshot()},Xi=function(e){var t;return(t=Ie(e))===null||t===void 0?void 0:t.context},en=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Os=typeof en=="object"&&en&&en.Object===Object&&en,Qi=Os,Us=Qi,Rs=typeof self=="object"&&self&&self.Object===Object&&self,Bs=Us||Rs||Function("return this")(),Re=Bs,Vs=Re,Ds=Vs.Symbol,Mt=Ds,Go=Mt,ea=Object.prototype,Ms=ea.hasOwnProperty,Fs=ea.toString,Tt=Go?Go.toStringTag:void 0;function Ls(e){var t=Ms.call(e,Tt),n=e[Tt];try{e[Tt]=void 0;var r=!0}catch{}var i=Fs.call(e);return r&&(t?e[Tt]=n:delete e[Tt]),i}var js=Ls,zs=Object.prototype,Gs=zs.toString;function Hs(e){return Gs.call(e)}var Ks=Hs,Ho=Mt,qs=js,Ws=Ks,Ys="[object Null]",Js="[object Undefined]",Ko=Ho?Ho.toStringTag:void 0;function Zs(e){return e==null?e===void 0?Js:Ys:Ko&&Ko in Object(e)?qs(e):Ws(e)}var ht=Zs;function Xs(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Be=Xs,Qs=ht,eu=Be,tu="[object AsyncFunction]",nu="[object Function]",ru="[object GeneratorFunction]",ou="[object Proxy]";function iu(e){if(!eu(e))return!1;var t=Qs(e);return t==nu||t==ru||t==tu||t==ou}var Lr=iu,au=9007199254740991;function su(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=au}var jr=su,uu=Lr,cu=jr;function lu(e){return e!=null&&cu(e.length)&&!uu(e)}var Ft=lu,du=Array.isArray,ke=du;function fu(e){return e!=null&&typeof e=="object"}var Ge=fu,pu=ht,hu=Ge,mu="[object Symbol]";function gu(e){return typeof e=="symbol"||hu(e)&&pu(e)==mu}var zr=gu;function vu(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var ta=vu;function yu(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var wu=yu,Su=ht,_u=Ge,bu="[object Arguments]";function Cu(e){return _u(e)&&Su(e)==bu}var Au=Cu,qo=Au,Eu=Ge,na=Object.prototype,Iu=na.hasOwnProperty,Tu=na.propertyIsEnumerable,$u=qo(function(){return arguments}())?qo:function(e){return Eu(e)&&Iu.call(e,"callee")&&!Tu.call(e,"callee")},xn=$u,Xe={exports:{}};function Pu(){return!1}var Nu=Pu;(function(e,t){var n=Re,r=Nu,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===i,u=s?n.Buffer:void 0,c=u?u.isBuffer:void 0,l=c||r;e.exports=l})(Xe,Xe.exports);var ku=9007199254740991,xu=/^(?:0|[1-9]\d*)$/;function Ou(e,t){var n=typeof e;return t=t==null?ku:t,!!t&&(n=="number"||n!="symbol"&&xu.test(e))&&e>-1&&e%1==0&&e<t}var On=Ou,Uu=ht,Ru=jr,Bu=Ge,Vu="[object Arguments]",Du="[object Array]",Mu="[object Boolean]",Fu="[object Date]",Lu="[object Error]",ju="[object Function]",zu="[object Map]",Gu="[object Number]",Hu="[object Object]",Ku="[object RegExp]",qu="[object Set]",Wu="[object String]",Yu="[object WeakMap]",Ju="[object ArrayBuffer]",Zu="[object DataView]",Xu="[object Float32Array]",Qu="[object Float64Array]",ec="[object Int8Array]",tc="[object Int16Array]",nc="[object Int32Array]",rc="[object Uint8Array]",oc="[object Uint8ClampedArray]",ic="[object Uint16Array]",ac="[object Uint32Array]",ue={};ue[Xu]=ue[Qu]=ue[ec]=ue[tc]=ue[nc]=ue[rc]=ue[oc]=ue[ic]=ue[ac]=!0;ue[Vu]=ue[Du]=ue[Ju]=ue[Mu]=ue[Zu]=ue[Fu]=ue[Lu]=ue[ju]=ue[zu]=ue[Gu]=ue[Hu]=ue[Ku]=ue[qu]=ue[Wu]=ue[Yu]=!1;function sc(e){return Bu(e)&&Ru(e.length)&&!!ue[Uu(e)]}var uc=sc;function cc(e){return function(t){return e(t)}}var Gr=cc,Ut={exports:{}};(function(e,t){var n=Qi,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,s=a&&n.process,u=function(){try{var c=i&&i.require&&i.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u})(Ut,Ut.exports);var lc=uc,dc=Gr,Wo=Ut.exports,Yo=Wo&&Wo.isTypedArray,fc=Yo?dc(Yo):lc,Un=fc,pc=wu,hc=xn,mc=ke,gc=Xe.exports,vc=On,yc=Un,wc=Object.prototype,Sc=wc.hasOwnProperty;function _c(e,t){var n=mc(e),r=!n&&hc(e),i=!n&&!r&&gc(e),a=!n&&!r&&!i&&yc(e),s=n||r||i||a,u=s?pc(e.length,String):[],c=u.length;for(var l in e)(t||Sc.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||vc(l,c)))&&u.push(l);return u}var ra=_c,bc=Object.prototype;function Cc(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||bc;return e===n}var Rn=Cc;function Ac(e,t){return function(n){return e(t(n))}}var oa=Ac,Ec=oa,Ic=Ec(Object.keys,Object),Tc=Ic,$c=Rn,Pc=Tc,Nc=Object.prototype,kc=Nc.hasOwnProperty;function xc(e){if(!$c(e))return Pc(e);var t=[];for(var n in Object(e))kc.call(e,n)&&n!="constructor"&&t.push(n);return t}var ia=xc,Oc=ra,Uc=ia,Rc=Ft;function Bc(e){return Rc(e)?Oc(e):Uc(e)}var Bn=Bc,gr;(function(e){e.Apple="SignInWithApple",e.Amazon="LoginWithAmazon",e.Facebook="Facebook",e.Google="Google"})(gr||(gr={}));var U=function(){return U=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},U.apply(this,arguments)};function aa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Y(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function u(d){try{l(r.next(d))}catch(p){s(p)}}function c(d){try{l(r.throw(d))}catch(p){s(p)}}function l(d){d.done?a(d.value):i(d.value).then(u,c)}l((r=r.apply(e,t||[])).next())})}function J(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(l){return function(d){return c([l,d])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,i=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){n.label=l[1];break}if(l[0]===6&&n.label<a[1]){n.label=a[1],a=l;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(l);break}a[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(d){l=[6,d],i=0}finally{r=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Oe(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Vc=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],Dc=["username","email","phone_number"],Mc=Oe(Oe(Oe([],Dc,!0),Vc,!0),["confirmation_code","password","confirm_password"],!1),vr=function(e){var t,n=(t=e==null?void 0:e.context.config)===null||t===void 0?void 0:t.loginMechanisms;return(n!=null?n:["username"])[0]},Fc=function(e){var t=function(n){return function(r){return e({type:n,data:r})}};return{resendCode:t("RESEND"),signOut:t("SIGN_OUT"),submitForm:t("SUBMIT"),updateForm:t("CHANGE"),updateBlur:t("BLUR"),toFederatedSignIn:t("FEDERATED_SIGN_IN"),toResetPassword:t("RESET_PASSWORD"),toSignIn:t("SIGN_IN"),toSignUp:t("SIGN_UP"),skipVerification:t("SKIP")}},Lc=function(e){var t,n,r,i=Ie(e),a=(t=Xi(e))!==null&&t!==void 0?t:{},s=a.codeDeliveryDetails,u=a.remoteError,c=a.validationError,l=(n=a==null?void 0:a.user)!==null&&n!==void 0?n:(r=e.context)===null||r===void 0?void 0:r.user,d=c&&Object.keys(c).length>0,p=e.hasTag("pending")||(i==null?void 0:i.hasTag("pending")),f=function(){switch(!0){case e.matches("idle"):return"idle";case e.matches("setup"):return"setup";case e.matches("signOut"):return"signOut";case e.matches("authenticated"):return"authenticated";case(i==null?void 0:i.matches("autoSignIn")):return"autoSignIn";case(i==null?void 0:i.matches("confirmSignUp")):return"confirmSignUp";case(i==null?void 0:i.matches("confirmSignIn")):return"confirmSignIn";case(i==null?void 0:i.matches("setupTOTP")):return"setupTOTP";case(i==null?void 0:i.matches("signIn")):return"signIn";case(i==null?void 0:i.matches("signUp")):return"signUp";case(i==null?void 0:i.matches("forceNewPassword")):return"forceNewPassword";case(i==null?void 0:i.matches("resetPassword")):return"resetPassword";case(i==null?void 0:i.matches("confirmResetPassword")):return"confirmResetPassword";case(i==null?void 0:i.matches("verifyUser")):return"verifyUser";case(i==null?void 0:i.matches("confirmVerifyUser")):return"confirmVerifyUser";default:return console.debug("Cannot infer `route` from Authenticator state:",e.value),null}}(),h=function(g){switch(g){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}}(f);return{authStatus:h,codeDeliveryDetails:s,error:u,hasValidationErrors:d,isPending:p,route:f,user:l,validationErrors:c}},sa=function(e){var t=e.send,n=e.state,r=Fc(t),i=Lc(n);return U(U({},r),i)},jc=["+1","+7","+20","+27","+30","+31","+32","+33","+34","+36","+39","+40","+41","+43","+44","+45","+46","+47","+48","+49","+51","+52","+53","+54","+55","+56","+57","+58","+60","+61","+62","+63","+64","+65","+66","+81","+82","+84","+86","+90","+91","+92","+93","+94","+95","+98","+212","+213","+216","+218","+220","+221","+222","+223","+224","+225","+226","+227","+228","+229","+230","+231","+232","+233","+234","+235","+236","+237","+238","+239","+240","+241","+242","+243","+244","+245","+246","+248","+249","+250","+251","+252","+253","+254","+255","+256","+257","+258","+260","+261","+262","+263","+264","+265","+266","+267","+268","+269","+290","+291","+297","+298","+299","+345","+350","+351","+352","+353","+354","+355","+356","+357","+358","+359","+370","+371","+372","+373","+374","+375","+376","+377","+378","+379","+380","+381","+382","+385","+386","+387","+389","+420","+421","+423","+500","+501","+502","+503","+504","+505","+506","+507","+508","+509","+537","+590","+591","+593","+594","+595","+596","+597","+598","+599","+670","+672","+673","+674","+675","+676","+677","+678","+679","+680","+681","+682","+683","+685","+686","+687","+688","+689","+690","+691","+692","+850","+852","+853","+855","+856","+872","+880","+886","+960","+961","+962","+963","+964","+965","+966","+967","+968","+970","+971","+972","+973","+974","+975","+976","+977","+992","+993","+994","+995","+996","+998"],zc={"Account recovery requires verified contact information":"Zur\xFCcksetzen des Account ben\xF6tigt einen verifizierten Account","Back to Sign In":"Zur\xFCck zur Anmeldung","Change Password":"Passwort \xE4ndern",Changing:"\xC4ndern von",Code:"Code","Confirm Password":"Passwort best\xE4tigen","Confirm Sign Up":"Registrierung best\xE4tigen","Confirm SMS Code":"SMS-Code best\xE4tigen","Confirm TOTP Code":"TOTP-Code best\xE4tigen",Confirm:"Best\xE4tigen","Confirmation Code":"Best\xE4tigungs-Code",Confirming:"Wird best\xE4tigt","Create a new account":"Einen neuen Account erstellen","Create Account":"Account erstellen","Creating Account":"Account wird erstellt","Dismiss alert":"Warnung verwerfen",Email:"Email","Enter your code":"Geben Sie Ihren Code ein","Enter your email":"Geben Sie Ihre Email ein","Enter your phone number":"Geben Sie Ihre Telefonnummer ein","Enter your username":"Geben Sie Ihren Benutzernamen ein","Forgot your password?":"Passwort vergessen? ","Hide password":"Passwort verbergen",Loading:"Wird geladen","New password":"Neues Passwort",Password:"Passwort","Phone Number":"Telefonnummer","Resend Code":"Code erneut senden","Reset your Password":"Zur\xFCcksetzen des Passwort","Reset your password":"Zur\xFCcksetzen des passwort","Send code":"Code senden","Send Code":"Code senden",Sending:"Wird gesendet","Setup TOTP":"TOTP einrichten","Show password":"Passwort anzeigen","Sign in to your account":"Melden Sie sich mit Ihrem Account an","Sign In with Amazon":"Mit Amazon anmelden","Sign In with Apple":"Mit Apple anmelden","Sign In with Facebook":"Mit Facebook anmelden","Sign In with Google":"Mit Google anmelden","Sign in":"Anmelden","Sign In":"Anmelden","Signing in":"Wird angemeldet",Skip:"\xDCberspringen",Submit:"Abschicken",Submitting:"Wird gesendet",Username:"Benutzername","Verify Contact":"Kontakt verifizieren",Verify:"Verifizieren","An account with the given email already exists.":"Ein Account mit dieser Email existiert bereits.","Confirm a Code":"Code best\xE4tigen","Confirm Sign In":"Anmeldung best\xE4tigen","Create account":"Hier registrieren","Enter your password":"Geben Sie Ihr Passwort ein","Forgot Password":"Passwort vergessen","Have an account? ":"Schon registriert? ","Incorrect username or password":"Falscher Benutzername oder falsches Passwort","Invalid password format":"Ung\xFCltiges Passwort-Format","Invalid phone number format":"Ung\xFCltiges Telefonummern-Format. Benutze eine Nummer im Format: +12345678900","It may take a minute to arrive.":"Es k\xF6nnte eine Minute dauern, bis der Code eintrifft.","Lost your code? ":"Code verloren? ","New Password":"Neues Passwort","No account? ":"Kein Account? ",or:"oder","Password attempts exceeded":"Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht","Reset password":"Passwort zur\xFCcksetzen","Sign Out":"Abmelden","Sign Up":"Registrieren","User already exists":"Dieser Benutzer existiert bereits","User does not exist":"Dieser Benutzer existiert nicht","Username cannot be empty":"Benutzername darf nicht leer sein","We Emailed You":"Email wurde versendet","Your code is on the way. To log in, enter the code we emailed to":"Ihr Best\xE4tigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir verschickt haben an","Your code is on the way. To log in, enter the code we texted to":"Ihr Best\xE4tigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir verschickt haben an"},Gc={"Account recovery requires verified contact information":"Account recovery requires verified contact information","Back to Sign In":"Back to Sign In","Change Password":"Change Password",Changing:"Changing",Code:"Code","Confirm Password":"Confirm Password","Confirm Sign Up":"Confirm Sign Up","Confirm SMS Code":"Confirm SMS Code","Confirm TOTP Code":"Confirm TOTP Code",Confirm:"Confirm","Confirmation Code":"Confirmation Code",Confirming:"Confirming","Create a new account":"Create a new account","Create Account":"Create Account","Creating Account":"Creating Account","Dismiss alert":"Dismiss alert",Email:"Email","Enter your code":"Enter your code","Enter your email":"Enter your email","Enter your phone number":"Enter your phone number","Enter your username":"Enter your username","Forgot your password?":"Forgot your password?","Hide password":"Hide password",Loading:"Loading","New password":"New password",Password:"Password","Phone Number":"Phone Number","Resend Code":"Resend Code","Reset your password":"Reset your password","Reset your Password":"Reset your Password","Send code":"Send code","Send Code":"Send Code",Sending:"Sending","Setup TOTP":"Setup TOTP","Show password":"Show password","Sign in to your account":"Sign in to your account","Sign In with Amazon":"Sign In with Amazon","Sign In with Apple":"Sign In with Apple","Sign In with Facebook":"Sign In with Facebook","Sign In with Google":"Sign In with Google","Sign in":"Sign in","Sign In":"Sign In","Signing in":"Signing in",Skip:"Skip",Submit:"Submit",Submitting:"Submitting",Username:"Username","Verify Contact":"Verify Contact",Verify:"Verify"},Hc={"Account recovery requires verified contact information":"La recuperaci\xF3n de la cuenta requiere informaci\xF3n de contacto verificada","Back to Sign In":"Volver a inicio de sesi\xF3n","Change Password":"Cambiar contrase\xF1a",Changing:"Cambiando",Code:"C\xF3digo","Confirm Password":"Confirmar contrase\xF1a","Confirm Sign Up":"Confirmar registro","Confirm SMS Code":"Confirmar el c\xF3digo de SMS","Confirm TOTP Code":"Confirmar c\xF3digo TOTP",Confirm:"Confirmar","Confirmation Code":"C\xF3digo de confirmaci\xF3n",Confirming:"Confirmando","Create a new account":"Crear una cuenta nueva","Create Account":"Crear cuenta","Creating Account":"Creando cuenta","Dismiss alert":"Descartar alerta",Email:"Email","Enter your code":"Ingrese el c\xF3digo","Enter your email":"Escriba su Email","Enter your phone number":"Ingrese el n\xFAmero de tel\xE9fono","Enter your username":"Ingrese el nombre de usuario","Forgot your password?":"\xBFOlvid\xF3 su contrase\xF1a?","Hide password":"Ocultar contrase\xF1a",Loading:"Cargando","New password":"Nueva contrase\xF1a",Password:"Contrase\xF1a","Phone Number":"N\xFAmero de tel\xE9fono","Resend Code":"Reenviar c\xF3digo","Reset your password":"Restablecer su contrase\xF1a","Reset your Password":"Restablecer su Contrase\xF1a","Send code":"Enviar c\xF3digo","Send Code":"Enviar c\xF3digo",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar contrase\xF1a","Sign in to your account":"Iniciar sesi\xF3n en tu cuenta","Sign In with Amazon":"Iniciar Sesi\xF3n con Amazon","Sign In with Apple":"Iniciar Sesi\xF3n con Apple","Sign In with Facebook":"Iniciar Sesi\xF3n con Facebook","Sign In with Google":"Iniciar Sesi\xF3n con Google","Sign in":"Iniciar sesi\xF3n","Sign In":"Iniciar Sesi\xF3n","Signing in":"Iniciando sesi\xF3n",Skip:"Omitir",Submit:"Enviar",Submitting:"Enviando",Username:"Nombre de usuario","Verify Contact":"Verificar contacto",Verify:"Verificar","An account with the given email already exists.":"Ya existe una cuenta con el correo ingresado.","Confirm a Code":"Confirmar un c\xF3digo","Confirm Sign In":"Confirmar inicio de sesi\xF3n","Forgot Password":"Olvid\xE9 mi contrase\xF1a","Incorrect username or password.":"Nombre de usuario o contrase\xF1a incorrecta","Invalid password format":"Formato de contrase\xF1a inv\xE1lido","Invalid phone number format":"Formato de n\xFAmero de tel\xE9fono inv\xE1lido","Loading...":"Cargando...","New Password":"Nueva contrase\xF1a",or:"o","Resend a Code":"Reenviar un c\xF3digo","Sign Out":"Cerrar sesi\xF3n","Sign Up with Amazon":"Crear cuenta con Amazon","Sign Up with Apple":"Crear cuenta con Apple","Sign Up with Facebook":"Crear cuenta con Facebook","Sign Up with Google":"Crear cuenta con Google","Sign Up":"Crear cuenta","User already exists":"El usuario ya existe","User does not exist":"El usuario no existe","Username cannot be empty":"El nombre de usuario no puede estar vac\xEDo","Your passwords must match":"Las contrase\xF1as deben coincidir"},Kc={"Account recovery requires verified contact information":"La r\xE9cup\xE9ration du compte n\xE9cessite des informations de contact v\xE9rifi\xE9es","Back to Sign In":"Retour \xE0 la connexion","Change Password":"Modifier le mot de passe",Changing:"Modification en cours",Code:"Code","Confirm Password":"Confirmez le mot de passe","Confirm Sign Up":"Confirmer l'inscription","Confirm SMS Code":"Confirmer le code SMS","Confirm TOTP Code":"Confirmer le code TOTP",Confirm:"Confirmer","Confirmation Code":"Code de confirmation",Confirming:"Confirmation","Create a new account":"Cr\xE9er un nouveau compte","Create Account":"Cr\xE9er un compte","Creating Account":"Cr\xE9ation d'un compte","Dismiss alert":"Supprimer l'alerte",Email:"Email","Enter your code":"Saisissez cotre code de confirmation","Enter your email":"Saisissez votre adresse email","Enter your phone number":"Saisissez votre num\xE9ro de t\xE9l\xE9phone","Enter your username":"Saisissez votre nom d'utilisateur","Forgot your password?":"Mot de passe oubli\xE9 ? ","Hide password":"Masquer le mot de passe",Loading:"Chargement en cours","New password":"Nouveau mot de passe",Password:"Mot de passe","Phone Number":"Num\xE9ro de t\xE9l\xE9phone","Resend Code":"Renvoyer le code","Reset your Password":"R\xE9initialiser votre mot de passe","Reset your password":"R\xE9initialisez votre mot de passe","Send code":"Envoyer le code","Send Code":"M'envoyer un code",Sending:"Envoi en cours","Setup TOTP":"Configuration de TOTP","Show password":"Afficher le mot de passe","Sign in to your account":"Connexion \xE0 votre compte","Sign In with Amazon":"Se connecter avec Amazon","Sign In with Apple":"Se connecter avec Apple","Sign In with Facebook":"Se connecter avec Facebook","Sign In with Google":"Se connecter avec Google","Sign in":"Se connecter","Sign In":"Se connecter","Signing in":"Connexion en cours",Skip:"Passer",Submit:"Soumettre",Submitting:"Envoi en cours",Username:"Nom d'utilisateur","Verify Contact":"V\xE9rifier le contact",Verify:"V\xE9rifier","An account with the given email already exists.":"Un utilisateur avec cette adresse email existe d\xE9j\xE0.",Change:"Modifier","Confirm a Code":"Confirmer un code","Confirm Sign In":"Confirmer la connexion","Create account":"Cr\xE9er un compte","Enter your password":"Saisissez votre mot de passe","Forgot Password":"Mot de passe oubli\xE9","Have an account? ":"D\xE9j\xE0 un compte ? ",Hello:"Bonjour","Incorrect username or password":"Identifiant ou mot de passe incorrect","Invalid password format":"Format de mot de passe invalide","Invalid phone number format":"Format de num\xE9ro de t\xE9l\xE9phone invalide. Veuillez utiliser un format +12345678900","Loading...":"Chargement...","Lost your code? ":"Vous avez perdu votre code ? ","Network error":"Erreur r\xE9seau","New Password":"Nouveau mot de passe","No account? ":"Pas de compte ? ",or:"ou","Resend a Code":"Renvoyer un code","Reset password":"R\xE9initialisez votre mot de passe",Send:"Envoyer","Sign In with AWS":"Se connecter avec AWS","Sign Out":"D\xE9connexion","Sign Up":"S'inscrire",SMS:"SMS","User already exists":"L'utilisateur existe d\xE9j\xE0","User does not exist":"L'utilisateur n'existe pas","Username cannot be empty":"Le nom d'utilisateur doit \xEAtre renseign\xE9","Username/client id combination not found.":"L'utilisateur n'existe pas"},qc={"Account recovery requires verified contact information":"Il ripristino dell'account richiede informazioni di contatto verificate","Back to Sign In":"Torna alla schermata di accesso","Change Password":"Cambia la password",Changing:"Modifica in corso",Code:"Codice","Confirm Password":"Conferma la password","Confirm Sign Up":"Conferma registrazione","Confirm SMS Code":"Conferma codice SMS","Confirm TOTP Code":"Conferma codice TOTP",Confirm:"Conferma","Confirmation Code":"Codice di verifica",Confirming:"Conferma in corso","Create a new account":"Crea un nuovo account","Create Account":"Crea Account","Creating Account":"Creazione account in corso","Dismiss alert":"Licenziare l'allerta",Email:"Email","Enter your code":"Inserisci il tuo codice","Enter your email":"Inserisci la tua e-mail","Enter your phone number":'Inserisci il tuo numero di telefono"',"Enter your username":"Inserisci il tuo nome utente","Forgot your password?":"Password dimenticata?","Hide password":"Nascondi password",Loading:"Caricamento in corso","New password":"Nuova password",Password:"Password","Phone Number":"Numero di telefono","Resend Code":"Rispedisci codice","Reset your Password":"Reimposta la tua Password","Reset your password":"Reimposta la tua password","Send code":"Invia codice","Send Code":"Invia codice",Sending:"Invio in corso","Setup TOTP":"Configura TOTP","Show password":"Mostra password","Sign in to your account":"Accedi al tuo account","Sign In with Amazon":"Accedi con Amazon","Sign In with Apple":"Accedi con Apple","Sign In with Facebook":"Accedi con Facebook","Sign In with Google":"Accedi con Google","Sign in":"Accesso","Sign In":"Accesso","Signing in":"Accesso in corso",Skip:"Salta",Submit:"Invia",Submitting:"Invio in corso",Username:"Nome utente","Verify Contact":"Verifica contatto",Verify:"Verifica","An account with the given email already exists.":"Questa email \xE8 gi\xE0 utilizzata da un'altro account.","Confirm a Code":"Conferma un codice","Confirm Sign In":"Conferma l'accesso","Create account":"Crea account","Enter your password":"Inserisci la tua password","Forgot Password":"Password dimenticata","Have an account? ":"Gi\xE0 registrato?","Incorrect username or password":"Nome utente o password errati","Invalid password format":"Formato della password non valido","Invalid phone number format":"Formato del numero di telefono non valido","Lost your code?":"Codice smarrito?","New Password":"Nuova password","No account? ":"Non hai un account?",or:"o","Password attempts exceeded":"Il numero massimo di tentativi di accesso falliti \xE8 stato raggiunto","Reset password":"Reimposta password","Sign Out":"Esci","Sign Up":"Registrati","User already exists":"Utente gi\xE0 esistente","User does not exist":"Utente inesistente","Username cannot be empty":"Il nome utente non pu\xF2 essere vuoto"},Wc={"Account recovery requires verified contact information":"\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u5FA9\u65E7\u306B\u306F\u78BA\u8A8D\u6E08\u307F\u306E\u9023\u7D61\u5148\u304C\u5FC5\u8981\u3067\u3059","Back to Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3\u306B\u623B\u308B","Change Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5909\u3048\u308B ",Changing:"\u5909\u66F4\u4E2D",Code:"\u30B3\u30FC\u30C9","Confirm Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u78BA\u8A8D","Confirm Sign Up":"\u767B\u9332\u3059\u308B","Confirm SMS Code":"SMS \u30B3\u30FC\u30C9\u3092\u78BA\u8A8D","Confirm TOTP Code":"TOTP \u30B3\u30FC\u30C9\u3092\u78BA\u8A8D",Confirm:"\u78BA\u5B9A","Confirmation Code":"\u78BA\u8A8D\u30B3\u30FC\u30C9",Confirming:"\u78BA\u8A8D\u4E2D","Create a new account":"\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B","Create Account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B","Creating Account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u4F5C\u6210\u4E2D","Dismiss alert":"\u30A2\u30E9\u30FC\u30C8\u3092\u9589\u3058\u308B",Email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9","Enter your code":"\u30B3\u30FC\u30C9\u3092\u5165\u529B","Enter your email":"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3092\u5165\u529B","Enter your phone number":"\u96FB\u8A71\u756A\u53F7\u3092\u5165\u529B","Enter your username":"\u30E6\u30FC\u30B6\u30FC\u540D\u3092\u5165\u529B ","Forgot your password?":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u307E\u3057\u305F\u304B\uFF1F ","Hide password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u975E\u8868\u793A",Loading:"\u30ED\u30FC\u30C9\u4E2D","New password":"\u65B0\u3057\u3044\u30D1\u30B9\u30EF\u30FC\u30C9",Password:"\u30D1\u30B9\u30EF\u30FC\u30C9 ","Phone Number":"\u96FB\u8A71\u756A\u53F7","Resend Code":"\u30B3\u30FC\u30C9\u3092\u518D\u9001\u4FE1","Reset your Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8","Reset your password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8\u3059\u308B","Send code":"\u30B3\u30FC\u30C9\u3092\u9001\u4FE1","Send Code":"\u30B3\u30FC\u30C9\u3092\u9001\u4FE1",Sending:"\u9001\u4FE1\u4E2D","Setup TOTP":"TOTP \u3092\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7","Show password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u8868\u793A","Sign in to your account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u306B\u30B5\u30A4\u30F3\u30A4\u30F3 ","Sign In with Amazon":"Amazon\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In with Apple":"Apple \u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In with Facebook":"Facebook\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In with Google":"Google\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3 ","Sign in":"\u30B5\u30A4\u30F3\u30A4\u30F3","Signing in":"\u30B5\u30A4\u30F3\u30A4\u30F3\u4E2D",Skip:"\u30B9\u30AD\u30C3\u30D7",Submit:"\u9001\u4FE1",Submitting:"\u9001\u4FE1\u4E2D",Username:"\u30E6\u30FC\u30B6\u30FC\u540D ","Verify Contact":"\u9023\u7D61\u5148\u3092\u78BA\u8A8D",Verify:"\u78BA\u8A8D","An account with the given email already exists.":"\u5165\u529B\u3055\u308C\u305F\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u65E2\u306B\u5B58\u5728\u3057\u307E\u3059","Confirm a Code":"\u30B3\u30FC\u30C9\u3092\u78BA\u8A8D","Confirm Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B","Create account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B ","Enter your password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u529B ","Forgot Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u305F ","Have an account? ":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u6301\u3063\u3066\u3044\u307E\u3059\u304B\uFF1F","Incorrect username or password":"\u30E6\u30FC\u30B6\u30FC\u540D\u304B\u30D1\u30B9\u30EF\u30FC\u30C9\u304C\u7570\u306A\u308A\u307E\u3059 ","Invalid password format":"\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u5F62\u5F0F\u304C\u7121\u52B9\u3067\u3059 ","Invalid phone number format":`\u4E0D\u6B63\u306A\u96FB\u8A71\u756A\u53F7\u306E\u5F62\u5F0F\u3067\u3059\u3002
|
|
2
|
+
+12345678900 \u306E\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044`,"It may take a minute to arrive.":"\u30B3\u30FC\u30C9\u3092\u53D7\u4FE1\u3059\u308B\u307E\u3067\u6570\u5206\u304B\u304B\u308B\u5834\u5408\u304C\u3042\u308A\u307E\u3059\u3002","Lost your code? ":"\u30B3\u30FC\u30C9\u3092\u5931\u304F\u3057\u307E\u3057\u305F\u304B\uFF1F","New Password":"\u65B0\u3057\u3044\u30D1\u30B9\u30EF\u30FC\u30C9","No account? ":"\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u7121\u3044\u3068\u304D ",or:"\u53C8\u306F","Password attempts exceeded":"\u30B5\u30A4\u30F3\u30A4\u30F3\u306E\u8A66\u884C\u56DE\u6570\u304C\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F","Reset password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8 ","Sign Out":"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8 ","Sign Up":"\u767B\u9332 ","User already exists":"\u65E2\u306B\u30E6\u30FC\u30B6\u30FC\u304C\u5B58\u5728\u3057\u3066\u3044\u307E\u3059 ","User does not exist":"\u30E6\u30FC\u30B6\u30FC\u304C\u5B58\u5728\u3057\u307E\u305B\u3093 ","Username cannot be empty":"\u30E6\u30FC\u30B6\u30FC\u540D\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059","We Emailed You":"\u30B3\u30FC\u30C9\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F","Your code is on the way. To log in, enter the code we emailed to":"\u30ED\u30B0\u30A4\u30F3\u3059\u308B\u306B\u306F\u3001\u30E1\u30FC\u30EB\u306B\u8A18\u8F09\u3055\u308C\u305F\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u9001\u4FE1\u5148:","Your code is on the way. To log in, enter the code we texted to":"\u30ED\u30B0\u30A4\u30F3\u3059\u308B\u306B\u306F\u3001\u30C6\u30AD\u30B9\u30C8\u30E1\u30C3\u30BB\u30FC\u30B8\u306B\u8A18\u8F09\u3055\u308C\u305F\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u9001\u4FE1\u5148:"},Yc={"Account recovery requires verified contact information":"\uACC4\uC815 \uBCF5\uAD6C\uB97C \uC704\uD574 \uC5F0\uB77D\uCC98 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4","Back to Sign In":"\uB85C\uADF8\uC778\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30","Change Password":"\uBE44\uBC00\uBC88\uD638 \uBCC0\uACBD\uD558\uAE30",Changing:"\uBCC0\uACBD\uC911",Code:"\uCF54\uB4DC","Confirm Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uD655\uC778","Confirm Sign Up":"\uD68C\uC6D0\uAC00\uC785 \uD655\uC778","Confirm SMS Code":"\uD734\uB300\uD3F0 \uBCF8\uC778 \uD655\uC778","Confirm TOTP Code":"TOTP \uC778\uC99D\uBC88\uD638 \uD655\uC778",Confirm:"\uD655\uC778","Confirmation Code":"\uC778\uC99D\uBC88\uD638",Confirming:"\uD655\uC778\uC911","Create a new account":"\uD68C\uC6D0\uAC00\uC785","Create Account":"\uD68C\uC6D0\uAC00\uC785","Creating Account":"\uD68C\uC6D0\uAC00\uC785\uC911","Dismiss alert":"\uC54C\uB9BC \uBB34\uC2DC",Email:"\uC774\uBA54\uC77C","Enter your code":"\uC778\uC99D\uBC88\uD638\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Enter your email":"\uC774\uBA54\uC77C \uC785\uB825","Enter your phone number":"\uC804\uD654\uBC88\uD638 \uC785\uB825","Enter your username":"\uC544\uC774\uB514\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Hide password":"\uBE44\uBC00\uBC88\uD638 \uC228\uAE30\uAE30",Loading:"\uB85C\uB529\uC911","New password":"\uC0C8 \uBE44\uBC00\uBC88\uD638",Password:"\uBE44\uBC00\uBC88\uD638","Phone Number":"\uC804\uD654\uBC88\uD638","Resend Code":"\uC778\uC99D\uBC88\uD638 \uC7AC\uC804\uC1A1","Reset your password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Reset your Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Send code":"\uC778\uC99D\uCF54\uB4DC \uBCF4\uB0B4\uAE30","Send Code":"\uCF54\uB4DC \uC804\uC1A1",Sending:"\uC804\uC1A1\uC911","Setup TOTP":"TOTP \uC124\uC815\uD558\uAE30","Show password":"\uBE44\uBC00\uBC88\uD638 \uBCF4\uC774\uAE30","Sign in to your account":"\uB85C\uADF8\uC778","Sign In with Amazon":"Amazon \uB85C\uADF8\uC778","Sign In with Apple":"Apple \uB85C\uADF8\uC778","Sign In with Facebook":"Facebook \uB85C\uADF8\uC778","Sign In with Google":"Google \uB85C\uADF8\uC778","Sign in":"\uB85C\uADF8\uC778","Sign In":"\uB85C\uADF8\uC778","Signing in":"\uB85C\uADF8\uC778\uC911",Skip:"\uB2E4\uC74C\uC5D0 \uD558\uAE30",Submit:"\uD655\uC778",Submitting:"\uD655\uC778\uC911",Username:"\uC544\uC774\uB514","Verify Contact":"\uC5F0\uB77D\uCC98 \uD655\uC778",Verify:"\uC778\uC99D",Birthdate:"\uC0DD\uB144\uC6D4\uC77C","Family Name":"\uC131","Forgot your password?":"\uBE44\uBC00\uBC88\uD638\uB97C \uC78A\uC73C\uC168\uB098\uC694?","Given Name":"\uC774\uB984",Name:"\uC131\uD568",Nickname:"\uB2C9\uB124\uC784","Preferred Username":"\uB2C9\uB124\uC784",Profile:"\uD504\uB85C\uD544","Reset Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815",Website:"\uC6F9\uC0AC\uC774\uD2B8"},Jc={"Account recovery requires verified contact information":"Accountherstel vereist geverifieerde contactgegevens","Back to Sign In":"Terug naar inloggen","Change Password":"Wachtwoord wijzigen",Changing:"Wordt aangepast",Code:"Code","Confirm Password":"Bevestig Wachtwoord","Confirm Sign Up":"Bevestig inschrijving","Confirm SMS Code":"Bevestig SMS Code","Confirm TOTP Code":"Bevestig TOTP Code",Confirm:"Bevestig","Confirmation Code":"Bevestigingscode",Confirming:"Bevestigen","Create a new account":"Nieuw account aanmaken","Create Account":"Account aanmaken","Creating Account":"Account wordt aangemaakt","Dismiss alert":"Waarschuwing sluiten",Email:"E-mail","Enter your code":"Vul je code in","Enter your email":"Vul je e-mail in","Enter your phone number":"Vul je telefoonnummer in","Enter your username":"Vul je gebruikersnaam in","Forgot your password?":"Wachtwoord vergeten? ","Hide password":"Verberg wachtwoord",Loading:"Laden","New password":"Nieuw wachtwoord",Password:"Wachtwoord","Phone Number":"Telefoonnummer","Resend Code":"Verstuur code nogmaals","Reset your password":"Reset je wachtwoord","Reset your Password":"Wachtwoord resetten","Send code":"Verstuur code","Send Code":"Verstuur Code",Sending:"Versturen","Setup TOTP":"TOTP Instellingen","Show password":"Toon wachtwoord","Sign in to your account":"Inloggen op je account","Sign In with Amazon":"Inloggen met Amazon","Sign In with Apple":"Inloggen met Apple","Sign In with Facebook":"Inloggen met Facebook","Sign In with Google":"Inloggen met Google","Sign in":"Inloggen","Sign In":"Inloggen","Signing in":"Inloggen",Skip:"Overslaan",Submit:"Versturen",Submitting:"Wordt verstuurd",Username:"Gebruikersnaam","Verify Contact":"Verifieer Contact",Verify:"Verifieer"},Zc={"Account recovery requires verified contact information":"Odzyskanie konta wymaga zweryfikowanych danych kontaktowych","Back to Sign In":"Powr\xF3t do logowania","Change Password":"Zmie\u0144 has\u0142o",Changing:"Zmienianie",Code:"Kod","Confirm Password":"Potwierd\u017A Has\u0142o","Confirm Sign Up":"Potwierd\u017A rejestracj\u0119","Confirm SMS Code":"Potwierd\u017A kod SMS","Confirm TOTP Code":"Potwierd\u017A has\u0142o jednorazowe",Confirm:"Potwierd\u017A","Confirmation Code":"Kod potwierdzenia",Confirming:"Potwierdzanie","Create a new account":"Utw\xF3rz nowe konto","Create Account":"Utw\xF3rz konto","Creating Account":"Tworzenie konta","Dismiss alert":"Odrzu\u0107 alert",Email:"E-mail","Enter your code":"Wprowad\u017A sw\xF3j kod","Enter your email":"Wpisz sw\xF3j adres e-mail","Enter your phone number":"Wpisz sw\xF3j numer telefonu","Enter your username":"Wprowad\u017A swoj\u0105 nazw\u0119 u\u017Cytkownika","Forgot your password?":"Zapomnia\u0142e\u015B has\u0142a? ","Hide password":"Ukryj has\u0142o",Loading:"\u0141adowanie","New password":"Nowe has\u0142o",Password:"Has\u0142o","Phone Number":"Numer telefonu","Resend Code":"Wy\u015Blij kod ponownie","Reset your password":"Zresetuj swoje has\u0142o","Reset your Password":"Zresetuj swoje has\u0142o","Send code":"Wy\u015Blij kod","Send Code":"Zresetuj has\u0142o",Sending:"Wysy\u0142anie","Setup TOTP":"Konfiguruj TOTP","Show password":"Poka\u017C has\u0142o","Sign in to your account":"Zaloguj si\u0119 na swoje konto","Sign In with Amazon":"Zaloguj z Amazon","Sign In with Apple":"Zaloguj z Apple","Sign In with Facebook":"Zaloguj z Facebook","Sign In with Google":"Zaloguj z Google","Sign In":"Logowanie","Sign in":"Zaloguj","Signing in":"Logowanie",Skip:"Pomi\u0144",Submit:"Wy\u015Blij",Submitting:"Wysy\u0142anie",Username:"Nazwa u\u017Cytkownika","Verify Contact":"Weryfikacja danych kontaktowych",Verify:"Zweryfikuj",Birthdate:"Data urodzenia","Family Name":"Nazwisko","Given Name":"Pierwsze imi\u0119","Middle Name":"Drugie imi\u0119",Name:"Imi\u0119 i nazwisko",Nickname:"Pseudonim","Preferred Username":"Preferowana nazwa u\u017Cytkownika",Profile:"Profil",Website:"Strona internetowa"},Xc={"Account recovery requires verified contact information":"A recupera\xE7\xE3o da conta requer informa\xE7\xF5es de contato verificadas","Back to Sign In":"Voltar para Entrar","Change Password":"Mudar senha",Changing:"Mudando",Code:"C\xF3digo","Confirm Password":"Confirme a Senha","Confirm Sign Up":"Confirmar inscri\xE7\xE3o","Confirm SMS Code":"Confirme o c\xF3digo SMS","Confirm TOTP Code":"Confirme o c\xF3digo TOTP",Confirm:"confirme","Confirmation Code":"C\xF3digo de confirma\xE7\xE3o",Confirming:"Confirmando","Create a new account":"Criar uma nova conta","Create Account":"Criar Conta","Creating Account":"Criando conta","Dismiss alert":"Descartar alerta",Email:"O email","Enter your code":"Insira seu c\xF3digo","Enter your email":"Digite seu e-mail","Enter your phone number":"Digite seu n\xFAmero de telefone","Enter your username":"entre com seu nome de usu\xE1rio","Forgot your password?":"Esqueceu sua senha? ","Hide password":"Esconder a senha",Loading:"Carregando","New password":"Nova Senha",Password:"Senha","Phone Number":"N\xFAmero de telefone","Resend Code":"Reenviar c\xF3digo","Reset your password":"Redefina sua senha","Reset your Password":"Redefina sua senha","Send code":"Enviar c\xF3digo","Send Code":"Enviar c\xF3digo",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar senha","Sign in to your account":"Fa\xE7a login em sua conta","Sign In with Amazon":"Entrar com a Amazon","Sign In with Apple":"Entrar com a Apple","Sign In with Facebook":"Entrar com o Facebook","Sign In with Google":"Fa\xE7a login no Google","Sign in":"Entrar","Sign In":"Entrar","Signing in":"Entrando",Skip:"Pular",Submit:"Enviar",Submitting:"Enviando",Username:"Nome do usu\xE1rio","Verify Contact":"Verificar contato",Verify:"Verificar"},Qc={"Account recovery requires verified contact information":"\u8D26\u6237\u6062\u590D\u9700\u8981\u9A8C\u8BC1\u8FC7\u7684\u8054\u7CFB\u65B9\u5F0F","Back to Sign In":"\u56DE\u5230\u767B\u5F55","Change Password":"\u66F4\u6539\u5BC6\u7801",Changing:"\u6B63\u5728\u4FEE\u6539",Code:"\u786E\u8BA4\u7801","Confirm Password":"\u786E\u8BA4\u5BC6\u7801","Confirm Sign Up":"\u786E\u8BA4\u6CE8\u518C","Confirm SMS Code":"\u786E\u8BA4\u77ED\u4FE1\u9A8C\u8BC1\u7801","Confirm TOTP Code":"\u786E\u8BA4 TOTP \u4EE3\u7801",Confirm:"\u786E\u8BA4","Confirmation Code":"\u786E\u8BA4\u7801",Confirming:"\u6B63\u5728\u786E\u8BA4","Create a new account":"\u521B\u5EFA\u65B0\u8D26\u6237","Create Account":"\u521B\u5EFA\u8D26\u6237","Creating Account":"\u6B63\u5728\u521B\u5EFA\u8D26\u6237","Dismiss alert":"\u5173\u95ED\u8B66\u62A5",Email:"\u90AE\u7BB1","Enter your code":"\u8F93\u5165\u9A8C\u8BC1\u7801","Enter your email":"\u8F93\u5165\u7535\u5B50\u90AE\u4EF6","Enter your phone number":"\u8F93\u5165\u7535\u8BDD\u53F7\u7801","Enter your username":"\u8F93\u5165\u7528\u6237\u540D","Forgot your password?":"\u5FD8\u8BB0\u5BC6\u7801\u4E86\uFF1F","Hide password":"\u9690\u85CF\u5BC6\u7801",Loading:"\u6B63\u5728\u52A0\u8F7D","New password":"\u65B0\u5BC6\u7801",Password:"\u5BC6\u7801","Phone Number":"\u7535\u8BDD","Resend Code":"\u91CD\u53D1\u9A8C\u8BC1\u7801","Reset your password":"\u91CD\u7F6E\u5BC6\u7801","Reset your Password":"\u91CD\u7F6E\u5BC6\u7801","Send Code":"\u53D1\u9001\u786E\u8BA4\u7801","Send code":"\u53D1\u9001\u9A8C\u8BC1\u7801",Sending:"\u6B63\u5728\u53D1\u9001","Setup TOTP":"\u8BBE\u7F6E TOTP","Show password":"\u663E\u793A\u5BC6\u7801","Sign in to your account":"\u767B\u5F55\u8D26\u6237","Sign In with Amazon":"\u901A\u8FC7 Amazon \u767B\u5F55","Sign In with Apple":"\u901A\u8FC7 Apple \u767B\u5F55","Sign In with Facebook":"\u901A\u8FC7 Facebook \u767B\u5F55","Sign In with Google":"\u901A\u8FC7 Google \u767B\u5F55","Sign in":"\u767B\u5F55","Sign In":"\u767B\u5F55","Signing in":"\u6B63\u5728\u767B\u5F55",Skip:"\u8DF3\u8FC7",Submit:"\u63D0\u4EA4",Submitting:"\u6B63\u5728\u63D0\u4EA4",Username:"\u7528\u6237\u540D","Verify Contact":"\u9A8C\u8BC1\u8054\u7CFB\u65B9\u5F0F",Verify:"\u9A8C\u8BC1","Confirm a Code":"\u786E\u8BA4\u7801","Confirm Sign In":"\u786E\u8BA4\u767B\u5F55","Forgot Password":"\u5FD8\u8BB0\u5BC6\u7801","Incorrect username or password":"\u7528\u6237\u540D\u6216\u5BC6\u7801\u9519\u8BEF","Invalid password format":"\u5BC6\u7801\u683C\u5F0F\u9519\u8BEF","Invalid phone number format":"\u7535\u8BDD\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u4F7F\u7528\u683C\u5F0F +12345678900","New Password":"\u65B0\u5BC6\u7801",or:"\u6216\u8005","Resend a Code":"\u91CD\u53D1\u786E\u8BA4\u7801","Sign Out":"\u9000\u51FA","Sign Up":"\u6CE8\u518C","User already exists":"\u7528\u6237\u5DF2\u7ECF\u5B58\u5728","User does not exist":"\u7528\u6237\u4E0D\u5B58\u5728"},el={"Account recovery requires verified contact information":"F\xF6r att \xE5terst\xE4lla kontot beh\xF6ver du ett verifierat konto","Back to Sign In":"Tillbaka till inloggningen","Change Password":"Byt l\xF6senord",Changing:"\xC4ndra",Code:"Kod","Confirm Password":"Bekr\xE4fta l\xF6senord","Confirm Sign Up":"Bekr\xE4fta registrering","Confirm SMS Code":"Bekr\xE4fta SMS-kod","Confirm TOTP Code":"Bekr\xE4fta TOTP-kod",Confirm:"Bekr\xE4fta","Confirmation Code":"Verifikationskod",Confirming:"Bekr\xE4ftar","Create a new account":"Skapa ett nytt konto","Create Account":"Skapa konto","Creating Account":"Skapar konto","Dismiss alert":"Avvisa varning",Email:"E-post","Enter your code":"Skriv din kod","Enter your email":"Fyll i din e-post","Enter your phone number":"Ange ditt telefonnummer","Enter your username":"Ange ditt anv\xE4ndarnamn","Forgot your password?":"Gl\xF6mt ditt l\xF6senord? ","Hide password":"D\xF6lj l\xF6senord",Loading:"Laddar","New password":"Nytt l\xF6senord",Password:"L\xF6senord","Phone Number":"Telefonnummer","Resend Code":"Skicka koden igen","Reset your password":"\xC5terst\xE4ll ditt l\xF6senord","Reset your Password":"\xC5terst\xE4ll ditt l\xF6senord","Send code":"Skicka kod","Send Code":"Skicka kod",Sending:"Skickar","Setup TOTP":"Konfigurera TOTP","Show password":"Visa l\xF6senord","Sign in to your account":"Logga in till ditt konto","Sign In with Amazon":"Logga in med Amazon","Sign In with Apple":"Logga in med Apple","Sign In with Facebook":"Logga in med Facebook","Sign In with Google":"Logga in med Google","Sign in":"Logga in","Sign In":"Logga in","Signing in":"Loggar in",Skip:"Hoppa \xF6ver",Submit:"Skicka",Submitting:"Skickar in",Username:"Anv\xE4ndarnamn","Verify Contact":"Verifiera kontakt",Verify:"Verifiera","An account with the given email already exists.":"Det finns redan ett konto med denna e-postadress","Confirm a Code":"Bekr\xE4fta koden","Confirm Sign In":"Bekr\xE4fta inloggning","Create account":"Skapa konto","Enter your password":"Ange ditt l\xF6senord","Forgot Password":"Gl\xF6mt l\xF6senordet","Have an account? ":"Redan registrerad? ","Incorrect username or password":"Felaktigt anv\xE4ndarnamn eller l\xF6senord","Invalid password format":"Ogiltigt l\xF6senordsformat","Invalid phone number format":"Ogiltigt format f\xF6r telefonnummer","Lost your code? ":"F\xF6rlorat koden? ","New Password":"Nytt l\xF6senord","No account? ":"Inget konto? ",or:"eller","Password attempts exceeded":"Maximalt antal felaktiga inloggningsf\xF6rs\xF6k har uppn\xE5tts","Reset password":"\xC5terst\xE4ll l\xF6senord","Sign Out":"Logga ut","Sign Up":"Registrering","User already exists":"Anv\xE4ndaren finns redan","User does not exist":"Anv\xE4ndaren finns inte","Username cannot be empty":"Anv\xE4ndarnamnet kan inte vara tomt","We Emailed You":"Vi har skickat e-post till dig"},tl={"Account recovery requires verified contact information":"Pemulihan akun memerlukan informasi kontak terverifikasi","Back to Sign In":"Kembali ke Masuk","Change Password":"Ubah kata sandi",Changing:"Mengubah",Code:"Kode","Confirm Password":"Konfirmasi kata sandi","Confirm Sign Up":"Konfirmasi Pendaftaran","Confirm SMS Code":"Konfirmasi Kode SMS","Confirm TOTP Code":"Konfirmasi Kode TOTP",Confirm:"Konfirmasi","Confirmation Code":"Kode Konfirmasi",Confirming:"Mengkonfirmasi","Create a new account":"Buat akun baru","Create Account":"Buat Akun","Creating Account":"Membuat Akun","Dismiss alert":"Hentikan pemberitahuan",Email:"Email","Enter your code":"Masukkan kode anda","Enter your email":"Masukkan email anda","Enter your phone number":"Masukkan nomor telepon anda","Enter your username":"Masukkan nama akun anda","Forgot your password?":"Lupa kata sandi? ","Hide password":"Sembunyikan kata sandi",Loading:"Memuat","New password":"Kata sandi baru",Password:"Kata sandi","Phone Number":"Nomor telepon","Resend Code":"Kirim ulang kodenya","Reset your Password":"Reset Kata Sandi","Reset your password":"Ubah kata sandi anda","Send code":"Kirim kode","Send Code":"Kirim Kode",Sending:"Mengirim","Setup TOTP":"Siapkan TOTP","Show password":"Tampilkan kata sandi","Sign in to your account":"Masuk akun anda","Sign In with Amazon":"Masuk dengan Amazon","Sign In with Apple":"Masuk dengan Apple","Sign In with Facebook":"Masuk dengan Facebook","Sign In with Google":"Masuk dengan Google","Sign in":"Masuk","Sign In":"Masuk","Signing in":"Memasuki",Skip:"Lewati",Submit:"Ajukan",Submitting:"Mengajukan",Username:"Nama akun","Verify Contact":"Verifikasi Kontak",Verify:"Verifikasi","An account with the given email already exists.":"Akun dengan email tersebut sudah terdaftar.","Attempt limit exceeded, please try after some time.":"Batas percobaan terlampaui, mohon coba lagi setelah beberapa waktu.","Cannot reset password for the user as there is no registered/verified email or phone_number":"Tidak dapat mengatur ulang kata sandi karena tidak ada email terdaftar / terverifikasi atau nomor telepon",Change:"Ubah","Confirm a Code":"Konfirmasi kode","Create account":"Buat akun","Enter your password":"Masukkan kata sandi anda","Forgot Password":"Lupa kata sandi","Have an account? ":"Sudah punya akun? ",Hello:"Halo","Incorrect username or password.":"Nama akun atau kata sandi salah.","Invalid phone number format":"Nomor telepon tidak sesuai dengan format.","Invalid verification code provided, please try again.":"Kode verifikasi tidak sesuai, mohon coba lagi.","It may take a minute to arrive.":"Mungkin perlu beberapa waktu untuk tiba.","Lost your code? ":"Kode anda hilang?",Name:"Nama","Network error":"Galat jaringan","No account? ":"Tidak ada akun?",or:"atau","Password did not conform with policy: Password not long enough":"Kata sandi tidak sesuai dengan aturan: Kata sandi kurang panjang","Resend a Code":"Renvoyer un code","Reset password":"Ubah kata sandi anda",Send:"Kirim","Sign In with AWS":"Masuk dengan AWS","Sign Up with Amazon":"Daftar dengan Amazon","Sign Up with AWS":"Daftar dengan AWS","Sign Up with Facebook":"Daftar dengan Facebook","Sign Up with Google":"Daftar dengan Google",SMS:"SMS","User already exists":"Akun sudah terdaftar","User does not exist.":"Akun tidak terdaftar.","User is disabled.":"Akun dinonaktifkan.","Username cannot be empty":"Nama akun tidak boleh kosong","Username/client id combination not found.":"Nama akun atau id tidak ditemukan.","We Emailed You":"Kami mengirimkanmu email","Your code is on the way. To log in, enter the code we emailed to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami emailkan ke","Your code is on the way. To log in, enter the code we texted to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami tuliskan ke","Your passwords must match":"Kata sandi harus sama"},nl={"Account recovery requires verified contact information":"Hesap kurtarma, do\u011Frulanm\u0131\u015F ileti\u015Fim bilgilerini gerektirir","Back to Sign In":"Oturum A\xE7maya Geri D\xF6n","Change Password":"\u015Eifreyi De\u011Fi\u015Ftir",Changing:"De\u011Fi\u015Ftiriliyor",Code:"Kod","Confirm Password":"\u015Eifreyi Do\u011Frula","Confirm Sign Up":"Kay\u0131t \u0130\u015Flemini Do\u011Frula","Confirm SMS Code":"SMS Kodunu Do\u011Frula","Confirm TOTP Code":"Tek Kullan\u0131ml\u0131k \u015Eifreyi Do\u011Frula",Confirm:"Do\u011Frula","Confirmation Code":"Do\u011Frulama Kodu",Confirming:"Do\u011Frulan\u0131yor","Create a new account":"Yeni bir hesap olu\u015Ftur","Create Account":"Hesap Olu\u015Ftur","Creating Account":"Hesap Olu\u015Fturuluyor","Dismiss alert":"Uyar\u0131y\u0131 reddet",Email:"E-posta","Enter your code":"Kodu girin","Enter your email":"E-posta adresinizi girin","Enter your phone number":"Telefon numaran\u0131z\u0131 girin","Enter your username":"Kullan\u0131c\u0131 ad\u0131n\u0131z\u0131 girin","Forgot your password?":"\u015Eifrenizi mi unuttunuz?","Hide password":"\u015Eifreyi gizle",Loading:"Y\xFCkleniyor","New password":"Yeni \u015Fifre",Password:"\u015Eifre","Phone Number":"Telefon Numaras\u0131","Resend Code":"Kodu Yeniden G\xF6nder","Reset your password":"\u015Eifrenizi s\u0131f\u0131rlay\u0131n","Reset your Password":"\u015Eifrenizi S\u0131f\u0131rlay\u0131n","Send code":"Kod g\xF6nder","Send Code":"Kod G\xF6nder",Sending:"G\xF6nderiliyor","Setup TOTP":"Tek kullan\u0131ml\u0131k \u015Fifre kurulumu yap","Show password":"\u015Eifreyi g\xF6ster","Sign in to your account":"Hesab\u0131n\u0131zda oturum a\xE7\u0131n","Sign In with Amazon":"Amazon ile Oturum A\xE7","Sign In with Apple":"Apple ile Oturum A\xE7","Sign In with Facebook":"Facebook ile Oturum A\xE7","Sign In with Google":"Google ile Oturum A\xE7","Sign in":"Oturum a\xE7","Sign In":"Oturum A\xE7","Signing in":"Oturum a\xE7\u0131l\u0131yor",Skip:"Atla",Submit:"G\xF6nder",Submitting:"G\xF6nderiliyor",Username:"Kullan\u0131c\u0131 ad\u0131","Verify Contact":"Ki\u015Fiyi Do\u011Frula",Verify:"Do\u011Frula","An account with the given email already exists.":"Bu e-postaya ait zaten bir hesap var.","Confirm Sign In":"Oturum A\xE7may\u0131 Do\u011Frula","Have an account? ":"Hesab\u0131n\u0131z var m\u0131? ","Incorrect username or password":"Yanl\u0131\u015F kullan\u0131c\u0131 ad\u0131 ya da \u015Fifre","Invalid password format":"Ge\xE7ersiz parola format\u0131","Invalid phone number format":"Ge\xE7ersiz telefon numaras\u0131 format\u0131","Lost your code? ":"Kodu mu kaybettiniz? ","No account? ":"Hesab\u0131n\u0131z yok mu? ",or:"veya","Password attempts exceeded":"Maksimum oturum a\xE7ma giri\u015Fimi a\u015F\u0131ld\u0131","Sign Out":"\xC7\u0131k\u0131\u015F yap","Sign Up":"Kay\u0131t Ol","User already exists":"Bu kullan\u0131c\u0131 zaten var","User does not exist":"B\xF6yle bir kullan\u0131c\u0131 mevcut de\u011Fil","Username cannot be empty":"Kullan\u0131c\u0131 ad\u0131 bo\u015F olamaz"},rl={"Account recovery requires verified contact information":"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0443\u0447\u0435\u0442\u043D\u043E\u0439 \u0437\u0430\u043F\u0438\u0441\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u043A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438","Back to Sign In":"\u041D\u0430\u0437\u0430\u0434, \u0447\u0442\u043E\u0431\u044B \u0432\u043E\u0439\u0442\u0438","Change Password":"\u0438\u0437\u043C\u0435\u043D\u044F\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C",Changing:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435",Code:"\u041A\u043E\u0434","Confirm Password":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 \u043F\u0430\u0440\u043E\u043B\u044F","Confirm Sign Up":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F","Confirm SMS Code":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 CMC-\u041A\u043E\u0434","Confirm TOTP Code":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 TOTP-\u041A\u043E\u0434",Confirm:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0442\u044C","Confirmation Code":"\u043A\u043E\u0434 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F",Confirming:"\u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435","Create a new account":"\u0421\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0443\u0447\u0435\u0442\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C","Create Account":"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0443\u0447\u0435\u0442\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C","Creating Account":"\u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u0443\u0447\u0435\u0442\u043D\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C","Dismiss alert":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",Email:"\u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430","Enter your code":"\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u041A\u043E\u0434","Enter your email":"\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430","Enter your phone number":"\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430","Enter your username":"\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u0438\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F","Forgot your password?":"\u0417\u0430\u0431\u044B\u043B\u0438 \u0432\u0430\u0448 \u043F\u0430\u0440\u043E\u043B\u044C?","Hide password":"\u0421\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C",Loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430","New password":"\u041D\u043E\u0432\u044B\u0439 \u043F\u0430\u0440\u043E\u043B\u044C",Password:"\u041F\u0430\u0440\u043E\u043B\u044C","Phone Number":"\u041D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430","Resend Code":"\u041E\u0442\u043F\u0440\u0430\u0432\u044C \u0435\u0449\u0435 \u0440\u0430\u0437 \u041A\u043E\u0434","Reset your password":"\u0441\u0431\u0440\u043E\u0441 \u0432\u0430\u0448 \u043F\u0430\u0440\u043E\u043B\u044C","Reset your Password":"\u0441\u0431\u0440\u043E\u0441 \u0432\u0430\u0448 \u041F\u0430\u0440\u043E\u043B\u044C","Send code":"\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u041A\u043E\u0434","Send Code":"\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u041A\u043E\u0434",Sending:"\u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0430","Setup TOTP":"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044C TOTP","Show password":"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C","Sign in to your account":"\u0437\u043D\u0430\u043A \u0432 \u0441\u0432\u043E\u0439 \u0430\u043A\u043A\u0430\u0443\u043D\u0442","Sign In with Amazon":"\u0437\u043D\u0430\u043A \u0432 \u0441 Amazon","Sign In with Apple":"\u0437\u043D\u0430\u043A \u0432 \u0441 Apple","Sign In with Facebook":"\u0437\u043D\u0430\u043A \u0432 \u0441 Facebook","Sign In with Google":"\u0437\u043D\u0430\u043A \u0432 \u0441 Google","Sign in":"\u0437\u043D\u0430\u043A \u0432","Sign In":"\u0437\u043D\u0430\u043A \u0432","Signing in":"\u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0432",Skip:"\u041F\u0440\u043E\u043F\u0443\u0441\u043A\u0430\u0442\u044C",Submit:"\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u044F\u0442\u044C \u043D\u0430 \u0440\u0430\u0441\u0441\u043C\u043E\u0442\u0440\u0435\u043D\u0438\u0435",Submitting:"\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0432",Username:"\u0418\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F","Verify Contact":"\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043A\u043E\u043D\u0442\u0430\u043A\u0442",Verify:"\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C"},ol={BACK_SIGN_IN:"Back to Sign In",BIRTHDATE:"Birthdate",CHANGE_PASSWORD:"Change Password",CHANGING_PASSWORD:"Changing",CODE:"Code",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_RESET_PASSWORD_HEADING:"Reset your Password",CONFIRM_SIGNUP_HEADING:"Confirm Sign Up",CONFIRM_SMS:"Confirm SMS Code",CONFIRM_TOTP:"Confirm TOTP Code",CONFIRM:"Confirm",CONFIRMATION_CODE:"Confirmation Code",CONFIRMING:"Confirming",CREATE_ACCOUNT:"Create Account",CREATING_ACCOUNT:"Creating Account",EMAIL_ADDRESS:"Email",ENTER_CODE:"Enter your code",ENTER_USERNAME:"Enter your username",FAMILY_NAME:"Family Name",GIVEN_NAME:"Given Name",FORGOT_YOUR_PASSWORD:"Forgot your password?",FORGOT_YOUR_PASSWORD_LEGACY:"Forgot your password? ",HIDE_PASSWORD:"Hide password",LOADING:"Loading",LOGIN_NAME:"Username",MIDDLE_NAME:"Middle Name",NAME:"Name",NICKNAME:"Nickname",NEW_PASSWORD:"New password",PASSWORD:"Password",PHONE_NUMBER:"Phone Number",PREFERRED_USERNAME:"Preferred Username",PROFILE:"Profile",RESEND_CODE:"Resend Code",RESET_PASSWORD_HEADING:"Reset your password",RESET_PASSWORD:"Reset Password",SEND_CODE:"Send code",SENDING:"Sending",SETUP_TOTP:"Setup TOTP",SHOW_PASSWORD:"Show password",SIGN_IN_BUTTON:"Sign in",SIGN_IN_TAB:"Sign In",SIGN_IN_WITH_AMAZON:"Sign In with Amazon",SIGN_IN_WITH_APPLE:"Sign In with Apple",SIGN_IN_WITH_FACEBOOK:"Sign In with Facebook",SIGN_IN_WITH_GOOGLE:"Sign In with Google",SIGN_IN:"Sign in to your account",SIGN_UP_BUTTON:"Create a new account",SIGNING_IN_BUTTON:"Signing in",SKIP:"Skip",SUBMIT:"Submit",SUBMITTING:"Submitting",VERIFY_CONTACT:"Verify Contact",VERIFY_HEADING:"Account recovery requires verified contact information",VERIFY:"Verify",WEBSITE:"Website"},il=U({},zc),al=U({},Gc),sl=U({},Hc),ul=U({},Kc),cl=U({},qc),ll=U({},Wc),dl=U({},Yc),fl=U({},Jc),pl=U({},Zc),hl=U({},Xc),ml=U({},Qc),gl=U({},el),vl=U({},tl),yl=U({},nl),wl=U({},rl),Sl=U({},ol);U({},Sl);function R(e){return le.I18n.get(e)}function _l(e){return le.I18n.get(e)!==e}var bl={de:il,en:al,es:sl,fr:ul,id:vl,it:cl,ja:ll,kr:dl,nl:fl,pl,pt:hl,zh:ml,sv:gl,tr:yl,ru:wl},Hr={birthdate:{label:"Birthdate",labelHidden:!0,placeholder:"Birthdate",type:"date",autocomplete:"bday",isRequired:!0},confirmation_code:{label:"Confirmation Code",labelHidden:!0,placeholder:"Code",type:"number",autocomplete:"one-time-code",isRequired:!0},confirm_password:{label:"Confirm Password",labelHidden:!0,placeholder:"Confirm Password",type:"password",autocomplete:"new-password",isRequired:!0},email:{label:"Email",labelHidden:!0,placeholder:"Email",type:"email",autocomplete:"username",isRequired:!0},family_name:{label:"Family Name",labelHidden:!0,placeholder:"Family Name",type:"text",autocomplete:"family-name",isRequired:!0},given_name:{label:"Given Name",labelHidden:!0,placeholder:"Given Name",type:"text",autocomplete:"given-name",isRequired:!0},middle_name:{label:"Middle Name",labelHidden:!0,placeholder:"Middle Name",type:"text",autocomplete:"additional-name",isRequired:!0},name:{label:"Name",labelHidden:!0,placeholder:"Name",type:"text",autocomplete:"name",isRequired:!0},nickname:{label:"Nickname",labelHidden:!0,placeholder:"Nickname",type:"text",autocomplete:"tel",isRequired:!0},password:{label:"Password",labelHidden:!0,placeholder:"Password",type:"password",autocomplete:"new-password",isRequired:!0},phone_number:{label:"Phone Number",labelHidden:!0,placeholder:"Phone",type:"tel",autocomplete:"tel",dialCode:"+1",dialCodeList:jc,isRequired:!0},preferred_username:{label:"Preferred Username",labelHidden:!0,placeholder:"Preferred Username",type:"text",isRequired:!0},profile:{label:"Profile",labelHidden:!0,placeholder:"Profile",type:"url",autocomplete:"url",isRequired:!0},website:{label:"Website",labelHidden:!0,placeholder:"Website",type:"url",autocomplete:"url",isRequired:!0},username:{label:"Username",labelHidden:!0,placeholder:"Username",type:"text",autocomplete:"username",isRequired:!0}},Cl=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "],Ve=function(e){var t=new FormData(e.target);return Object.fromEntries(t)},Jo=function(e){return Mc.includes(e)},Al=function(e){return e?(t=e,Array.isArray(t)?e:[e]):null;var t},El=function(e,t){var n=t.send,r=t.getSnapshot();switch(e.payload.event){case"tokenRefresh":r.matches("authenticated.idle")&&n("TOKEN_REFRESH");break;case"signOut":case"tokenRefresh_failure":r.matches("authenticated.idle")&&n("SIGN_OUT")}},Il=function(e,t){return t===void 0&&(t=El),le.Hub.listen("auth",function(n){t(n,e)},"authenticator-hub-handler")},Tl=function(e){return Cl.some(function(t){return e.includes(t)})},He=function(e,t){var n=Xi(e).country_code,r=Hr[t];return r.type==="tel"&&(r=U(U({},r),{dialCode:n})),r},or=function(e){var t=vr(e);return U(U({},He(e,t)),{autocomplete:"username"})},tn=function(e){return{confirmation_code:U(U({},He(e,"confirmation_code")),{label:"Code *",placeholder:"Code"})}},$l={signIn:function(e){return{username:U({},or(e)),password:U(U({},He(e,"password")),{autocomplete:"current-password"})}},signUp:function(e){for(var t=e.context.config,n=t.loginMechanisms,r=t.signUpAttributes,i=vr(e),a={},s=0,u=Array.from(new Set(Oe(Oe(Oe([],n,!0),["password","confirm_password"],!1),r,!0)));s<u.length;s++){var c=u[s];if(Jo(c)){var l=c===i?or(e):He(e,c);a[c]=U({},l)}else console.debug("Authenticator does not have a default implementation for ".concat(c,". Customize SignUp FormFields to add your own."))}return a},confirmSignUp:function(e){return{confirmation_code:U(U({},He(e,"confirmation_code")),{placeholder:"Enter your code"})}},confirmSignIn:tn,forceNewPassword:function(e){for(var t=Ie(e).context.requiredAttributes,n={},r=0,i=Array.from(new Set(Oe(["password","confirm_password"],t,!0)));r<i.length;r++){var a=i[r];Jo(a)?n[a]=U({},He(e,a)):console.debug("Authenticator does not have a default implementation for ".concat(a,". Customize ForceNewPassword FormFields to add your own."))}return n},resetPassword:function(e){var t=vr(e),n=Hr[t].label;return{username:U(U({},or(e)),{label:"Enter your ".concat(n.toLowerCase()),placeholder:"Enter your ".concat(n.toLowerCase())})}},confirmResetPassword:function(e){return U(U({},tn(e)),{password:U(U({},He(e,"password")),{label:"New Password",placeholder:"New Password"}),confirm_password:U(U({},He(e,"confirm_password")),{label:"Confirm Password",placeholder:"Confirm Password"})})},confirmVerifyUser:tn,setupTOTP:tn};function Pl(){this.__data__=[],this.size=0}var Nl=Pl;function kl(e,t){return e===t||e!==e&&t!==t}var Lt=kl,xl=Lt;function Ol(e,t){for(var n=e.length;n--;)if(xl(e[n][0],t))return n;return-1}var Vn=Ol,Ul=Vn,Rl=Array.prototype,Bl=Rl.splice;function Vl(e){var t=this.__data__,n=Ul(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Bl.call(t,n,1),--this.size,!0}var Dl=Vl,Ml=Vn;function Fl(e){var t=this.__data__,n=Ml(t,e);return n<0?void 0:t[n][1]}var Ll=Fl,jl=Vn;function zl(e){return jl(this.__data__,e)>-1}var Gl=zl,Hl=Vn;function Kl(e,t){var n=this.__data__,r=Hl(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var ql=Kl,Wl=Nl,Yl=Dl,Jl=Ll,Zl=Gl,Xl=ql;function mt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mt.prototype.clear=Wl;mt.prototype.delete=Yl;mt.prototype.get=Jl;mt.prototype.has=Zl;mt.prototype.set=Xl;var Dn=mt,Ql=Dn;function ed(){this.__data__=new Ql,this.size=0}var td=ed;function nd(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var rd=nd;function od(e){return this.__data__.get(e)}var id=od;function ad(e){return this.__data__.has(e)}var sd=ad,ud=Re,cd=ud["__core-js_shared__"],ld=cd,ir=ld,Zo=function(){var e=/[^.]+$/.exec(ir&&ir.keys&&ir.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function dd(e){return!!Zo&&Zo in e}var fd=dd,pd=Function.prototype,hd=pd.toString;function md(e){if(e!=null){try{return hd.call(e)}catch{}try{return e+""}catch{}}return""}var ua=md,gd=Lr,vd=fd,yd=Be,wd=ua,Sd=/[\\^$.*+?()[\]{}|]/g,_d=/^\[object .+?Constructor\]$/,bd=Function.prototype,Cd=Object.prototype,Ad=bd.toString,Ed=Cd.hasOwnProperty,Id=RegExp("^"+Ad.call(Ed).replace(Sd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Td(e){if(!yd(e)||vd(e))return!1;var t=gd(e)?Id:_d;return t.test(wd(e))}var $d=Td;function Pd(e,t){return e==null?void 0:e[t]}var Nd=Pd,kd=$d,xd=Nd;function Od(e,t){var n=xd(e,t);return kd(n)?n:void 0}var Qe=Od,Ud=Qe,Rd=Re,Bd=Ud(Rd,"Map"),Kr=Bd,Vd=Qe,Dd=Vd(Object,"create"),Mn=Dd,Xo=Mn;function Md(){this.__data__=Xo?Xo(null):{},this.size=0}var Fd=Md;function Ld(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jd=Ld,zd=Mn,Gd="__lodash_hash_undefined__",Hd=Object.prototype,Kd=Hd.hasOwnProperty;function qd(e){var t=this.__data__;if(zd){var n=t[e];return n===Gd?void 0:n}return Kd.call(t,e)?t[e]:void 0}var Wd=qd,Yd=Mn,Jd=Object.prototype,Zd=Jd.hasOwnProperty;function Xd(e){var t=this.__data__;return Yd?t[e]!==void 0:Zd.call(t,e)}var Qd=Xd,ef=Mn,tf="__lodash_hash_undefined__";function nf(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ef&&t===void 0?tf:t,this}var rf=nf,of=Fd,af=jd,sf=Wd,uf=Qd,cf=rf;function gt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gt.prototype.clear=of;gt.prototype.delete=af;gt.prototype.get=sf;gt.prototype.has=uf;gt.prototype.set=cf;var lf=gt,Qo=lf,df=Dn,ff=Kr;function pf(){this.size=0,this.__data__={hash:new Qo,map:new(ff||df),string:new Qo}}var hf=pf;function mf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var gf=mf,vf=gf;function yf(e,t){var n=e.__data__;return vf(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Fn=yf,wf=Fn;function Sf(e){var t=wf(this,e).delete(e);return this.size-=t?1:0,t}var _f=Sf,bf=Fn;function Cf(e){return bf(this,e).get(e)}var Af=Cf,Ef=Fn;function If(e){return Ef(this,e).has(e)}var Tf=If,$f=Fn;function Pf(e,t){var n=$f(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Nf=Pf,kf=hf,xf=_f,Of=Af,Uf=Tf,Rf=Nf;function vt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vt.prototype.clear=kf;vt.prototype.delete=xf;vt.prototype.get=Of;vt.prototype.has=Uf;vt.prototype.set=Rf;var qr=vt,Bf=Dn,Vf=Kr,Df=qr,Mf=200;function Ff(e,t){var n=this.__data__;if(n instanceof Bf){var r=n.__data__;if(!Vf||r.length<Mf-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Df(r)}return n.set(e,t),this.size=n.size,this}var Lf=Ff,jf=Dn,zf=td,Gf=rd,Hf=id,Kf=sd,qf=Lf;function yt(e){var t=this.__data__=new jf(e);this.size=t.size}yt.prototype.clear=zf;yt.prototype.delete=Gf;yt.prototype.get=Hf;yt.prototype.has=Kf;yt.prototype.set=qf;var Ln=yt;function Wf(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Yf=Wf,Jf=Qe,Zf=function(){try{var e=Jf(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ca=Zf,ei=ca;function Xf(e,t,n){t=="__proto__"&&ei?ei(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Wr=Xf,Qf=Wr,ep=Lt,tp=Object.prototype,np=tp.hasOwnProperty;function rp(e,t,n){var r=e[t];(!(np.call(e,t)&&ep(r,n))||n===void 0&&!(t in e))&&Qf(e,t,n)}var Yr=rp,op=Yr,ip=Wr;function ap(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):void 0;c===void 0&&(c=e[u]),i?ip(n,u,c):op(n,u,c)}return n}var jt=ap,sp=jt,up=Bn;function cp(e,t){return e&&sp(t,up(t),e)}var lp=cp;function dp(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var fp=dp,pp=Be,hp=Rn,mp=fp,gp=Object.prototype,vp=gp.hasOwnProperty;function yp(e){if(!pp(e))return mp(e);var t=hp(e),n=[];for(var r in e)r=="constructor"&&(t||!vp.call(e,r))||n.push(r);return n}var wp=yp,Sp=ra,_p=wp,bp=Ft;function Cp(e){return bp(e)?Sp(e,!0):_p(e)}var zt=Cp,Ap=jt,Ep=zt;function Ip(e,t){return e&&Ap(t,Ep(t),e)}var Tp=Ip,_n={exports:{}};(function(e,t){var n=Re,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,s=a?n.Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(l,d){if(d)return l.slice();var p=l.length,f=u?u(p):new l.constructor(p);return l.copy(f),f}e.exports=c})(_n,_n.exports);function $p(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var la=$p;function Pp(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}var Np=Pp;function kp(){return[]}var da=kp,xp=Np,Op=da,Up=Object.prototype,Rp=Up.propertyIsEnumerable,ti=Object.getOwnPropertySymbols,Bp=ti?function(e){return e==null?[]:(e=Object(e),xp(ti(e),function(t){return Rp.call(e,t)}))}:Op,Jr=Bp,Vp=jt,Dp=Jr;function Mp(e,t){return Vp(e,Dp(e),t)}var Fp=Mp;function Lp(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var fa=Lp,jp=oa,zp=jp(Object.getPrototypeOf,Object),Zr=zp,Gp=fa,Hp=Zr,Kp=Jr,qp=da,Wp=Object.getOwnPropertySymbols,Yp=Wp?function(e){for(var t=[];e;)Gp(t,Kp(e)),e=Hp(e);return t}:qp,pa=Yp,Jp=jt,Zp=pa;function Xp(e,t){return Jp(e,Zp(e),t)}var Qp=Xp,eh=fa,th=ke;function nh(e,t,n){var r=t(e);return th(e)?r:eh(r,n(e))}var ha=nh,rh=ha,oh=Jr,ih=Bn;function ah(e){return rh(e,ih,oh)}var ma=ah,sh=ha,uh=pa,ch=zt;function lh(e){return sh(e,ch,uh)}var ga=lh,dh=Qe,fh=Re,ph=dh(fh,"DataView"),hh=ph,mh=Qe,gh=Re,vh=mh(gh,"Promise"),yh=vh,wh=Qe,Sh=Re,_h=wh(Sh,"Set"),bh=_h,Ch=Qe,Ah=Re,Eh=Ch(Ah,"WeakMap"),Ih=Eh,yr=hh,wr=Kr,Sr=yh,_r=bh,br=Ih,va=ht,wt=ua,ni="[object Map]",Th="[object Object]",ri="[object Promise]",oi="[object Set]",ii="[object WeakMap]",ai="[object DataView]",$h=wt(yr),Ph=wt(wr),Nh=wt(Sr),kh=wt(_r),xh=wt(br),Je=va;(yr&&Je(new yr(new ArrayBuffer(1)))!=ai||wr&&Je(new wr)!=ni||Sr&&Je(Sr.resolve())!=ri||_r&&Je(new _r)!=oi||br&&Je(new br)!=ii)&&(Je=function(e){var t=va(e),n=t==Th?e.constructor:void 0,r=n?wt(n):"";if(r)switch(r){case $h:return ai;case Ph:return ni;case Nh:return ri;case kh:return oi;case xh:return ii}return t});var Gt=Je,Oh=Object.prototype,Uh=Oh.hasOwnProperty;function Rh(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Uh.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Bh=Rh,Vh=Re,Dh=Vh.Uint8Array,ya=Dh,si=ya;function Mh(e){var t=new e.constructor(e.byteLength);return new si(t).set(new si(e)),t}var Xr=Mh,Fh=Xr;function Lh(e,t){var n=t?Fh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var jh=Lh,zh=/\w*$/;function Gh(e){var t=new e.constructor(e.source,zh.exec(e));return t.lastIndex=e.lastIndex,t}var Hh=Gh,ui=Mt,ci=ui?ui.prototype:void 0,li=ci?ci.valueOf:void 0;function Kh(e){return li?Object(li.call(e)):{}}var qh=Kh,Wh=Xr;function Yh(e,t){var n=t?Wh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var wa=Yh,Jh=Xr,Zh=jh,Xh=Hh,Qh=qh,em=wa,tm="[object Boolean]",nm="[object Date]",rm="[object Map]",om="[object Number]",im="[object RegExp]",am="[object Set]",sm="[object String]",um="[object Symbol]",cm="[object ArrayBuffer]",lm="[object DataView]",dm="[object Float32Array]",fm="[object Float64Array]",pm="[object Int8Array]",hm="[object Int16Array]",mm="[object Int32Array]",gm="[object Uint8Array]",vm="[object Uint8ClampedArray]",ym="[object Uint16Array]",wm="[object Uint32Array]";function Sm(e,t,n){var r=e.constructor;switch(t){case cm:return Jh(e);case tm:case nm:return new r(+e);case lm:return Zh(e,n);case dm:case fm:case pm:case hm:case mm:case gm:case vm:case ym:case wm:return em(e,n);case rm:return new r;case om:case sm:return new r(e);case im:return Xh(e);case am:return new r;case um:return Qh(e)}}var _m=Sm,bm=Be,di=Object.create,Cm=function(){function e(){}return function(t){if(!bm(t))return{};if(di)return di(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Am=Cm,Em=Am,Im=Zr,Tm=Rn;function $m(e){return typeof e.constructor=="function"&&!Tm(e)?Em(Im(e)):{}}var Sa=$m,Pm=Gt,Nm=Ge,km="[object Map]";function xm(e){return Nm(e)&&Pm(e)==km}var Om=xm,Um=Om,Rm=Gr,fi=Ut.exports,pi=fi&&fi.isMap,Bm=pi?Rm(pi):Um,Vm=Bm,Dm=Gt,Mm=Ge,Fm="[object Set]";function Lm(e){return Mm(e)&&Dm(e)==Fm}var jm=Lm,zm=jm,Gm=Gr,hi=Ut.exports,mi=hi&&hi.isSet,Hm=mi?Gm(mi):zm,Km=Hm,qm=Ln,Wm=Yf,Ym=Yr,Jm=lp,Zm=Tp,Xm=_n.exports,Qm=la,eg=Fp,tg=Qp,ng=ma,rg=ga,og=Gt,ig=Bh,ag=_m,sg=Sa,ug=ke,cg=Xe.exports,lg=Vm,dg=Be,fg=Km,pg=Bn,hg=zt,mg=1,gg=2,vg=4,_a="[object Arguments]",yg="[object Array]",wg="[object Boolean]",Sg="[object Date]",_g="[object Error]",ba="[object Function]",bg="[object GeneratorFunction]",Cg="[object Map]",Ag="[object Number]",Ca="[object Object]",Eg="[object RegExp]",Ig="[object Set]",Tg="[object String]",$g="[object Symbol]",Pg="[object WeakMap]",Ng="[object ArrayBuffer]",kg="[object DataView]",xg="[object Float32Array]",Og="[object Float64Array]",Ug="[object Int8Array]",Rg="[object Int16Array]",Bg="[object Int32Array]",Vg="[object Uint8Array]",Dg="[object Uint8ClampedArray]",Mg="[object Uint16Array]",Fg="[object Uint32Array]",oe={};oe[_a]=oe[yg]=oe[Ng]=oe[kg]=oe[wg]=oe[Sg]=oe[xg]=oe[Og]=oe[Ug]=oe[Rg]=oe[Bg]=oe[Cg]=oe[Ag]=oe[Ca]=oe[Eg]=oe[Ig]=oe[Tg]=oe[$g]=oe[Vg]=oe[Dg]=oe[Mg]=oe[Fg]=!0;oe[_g]=oe[ba]=oe[Pg]=!1;function mn(e,t,n,r,i,a){var s,u=t&mg,c=t&gg,l=t&vg;if(n&&(s=i?n(e,r,i,a):n(e)),s!==void 0)return s;if(!dg(e))return e;var d=ug(e);if(d){if(s=ig(e),!u)return Qm(e,s)}else{var p=og(e),f=p==ba||p==bg;if(cg(e))return Xm(e,u);if(p==Ca||p==_a||f&&!i){if(s=c||f?{}:sg(e),!u)return c?tg(e,Zm(s,e)):eg(e,Jm(s,e))}else{if(!oe[p])return i?e:{};s=ag(e,p,u)}}a||(a=new qm);var h=a.get(e);if(h)return h;a.set(e,s),fg(e)?e.forEach(function(v){s.add(mn(v,t,n,v,e,a))}):lg(e)&&e.forEach(function(v,w){s.set(w,mn(v,t,n,w,e,a))});var g=l?c?rg:ng:c?hg:pg,m=d?void 0:g(e);return Wm(m||e,function(v,w){m&&(w=v,v=e[w]),Ym(s,w,mn(v,t,n,w,e,a))}),s}var Lg=mn,jg=Lg,zg=1,Gg=4;function Hg(e){return jg(e,zg|Gg)}var Kg=Hg,qg=function(e){for(var t=U({},e),n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],a=i[0],s=i[1],u=s.label,c=s.placeholder;t[a]=U(U({},s),{label:u?R(u):void 0,placeholder:c?R(c):void 0})}return t},Wg=function(e){return Object.entries(e).sort(function(t,n){return(t[1].order||Number.MAX_VALUE)-(n[1].order||Number.MAX_VALUE)}).filter(function(t){return t[1]!==void 0})},Yg=function(e,t){t===void 0&&(t={});var n=Kg(e);return Object.keys(t).forEach(function(r){n[r]=U(U({},n[r]),t[r])}),n},Jg=function(e,t){var n=(0,$l[e])(t);return qg(n)},Zg=function(e,t){var n,r,i=Jg(e,t),a=((r=(n=Ie(t).context)===null||n===void 0?void 0:n.formFields)===null||r===void 0?void 0:r[e])||{},s=Yg(i,a);return delete s.QR,s},Xg=function(e,t){var n=Zg(e,t);return Wg(n)};/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
5
5
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -12,10 +12,10 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var T=function(){return T=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},T.apply(this,arguments)};function Xr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function K(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function z(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,i=[],s;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(u){s={error:u}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function se(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var te;(function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"})(te||(te={}));var He;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(He||(He={}));var Cr=te.Start,eo=te.Stop,ut=te.Raise,ct=te.Send,bi=te.Cancel,Zg=te.NullEvent,Ar=te.Assign;te.After;te.DoneState;var Ci=te.Log,Qg=te.Init,Er=te.Invoke;te.ErrorExecution;var ga=te.ErrorPlatform,Xg=te.ErrorCustom,to=te.Update,ev=te.Choose,tv=te.Pure,Ai=".",va={},Ir="xstate.guard",nv="",Ei=!0,rn;function no(e,t,n){n===void 0&&(n=Ai);var r=Ot(e,n),a=Ot(t,n);return W(a)?W(r)?a===r:!1:W(r)?r in a:Object.keys(r).every(function(i){return i in a?no(r[i],a[i]):!1})}function Ii(e){try{return W(e)||typeof e=="number"?"".concat(e):e.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function Tr(e,t){try{return _t(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function rv(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function Ot(e,t){if(rv(e))return e.value;if(_t(e))return Cn(e);if(typeof e!="string")return e;var n=Tr(e,t);return Cn(n)}function Cn(e){if(e.length===1)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function Pt(e,t){for(var n={},r=Object.keys(e),a=0;a<r.length;a++){var i=r[a];n[i]=t(e[i],i,e,a)}return n}function ya(e,t,n){var r,a,i={};try{for(var s=K(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value,l=e[c];!n(l)||(i[c]=t(l,c,e))}}catch(d){r={error:d}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}var ov=function(e){return function(t){var n,r,a=t;try{for(var i=K(e),s=i.next();!s.done;s=i.next()){var u=s.value;a=a[u]}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a}};function av(e,t){return function(n){var r,a,i=n;try{for(var s=K(e),u=s.next();!u.done;u=s.next()){var c=u.value;i=i[t][c]}}catch(l){r={error:l}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}}function vn(e){if(!e)return[[]];if(W(e))return[[e]];var t=ie(Object.keys(e).map(function(n){var r=e[n];return typeof r!="string"&&(!r||!Object.keys(r).length)?[[n]]:vn(e[n]).map(function(a){return[n].concat(a)})}));return t}function ie(e){var t;return(t=[]).concat.apply(t,se([],z(e),!1))}function Ti(e){return _t(e)?e:[e]}function Pe(e){return e===void 0?[]:Ti(e)}function An(e,t,n){var r,a;if(ee(e))return e(t,n.data);var i={};try{for(var s=K(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value,l=e[c];ee(l)?i[c]=l(t,n.data):i[c]=l}}catch(d){r={error:d}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}function iv(e){return/^(done|error)\./.test(e)}function Sa(e){return!!(e instanceof Promise||e!==null&&(ee(e)||typeof e=="object")&&ee(e.then))}function sv(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function $i(e,t){var n,r,a=z([[],[]],2),i=a[0],s=a[1];try{for(var u=K(e),c=u.next();!c.done;c=u.next()){var l=c.value;t(l)?i.push(l):s.push(l)}}catch(d){n={error:d}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return[i,s]}function Pi(e,t){return Pt(e.states,function(n,r){if(!!n){var a=(W(t)?void 0:t[r])||(n?n.current:void 0);if(!!a)return{current:a,states:Pi(n,a)}}})}function uv(e,t){return{current:t,states:Pi(e,t)}}function wa(e,t,n,r){var a=e&&n.reduce(function(i,s){var u,c,l=s.assignment,d={state:r,action:s,_event:t},h={};if(ee(l))h=l(i,t.data,d);else try{for(var f=K(Object.keys(l)),p=f.next();!p.done;p=f.next()){var g=p.value,m=l[g];h[g]=ee(m)?m(i,t.data,d):m}}catch(v){u={error:v}}finally{try{p&&!p.done&&(c=f.return)&&c.call(f)}finally{if(u)throw u.error}}return Object.assign({},i,h)},e);return a}var cv=function(){};function _t(e){return Array.isArray(e)}function ee(e){return typeof e=="function"}function W(e){return typeof e=="string"}function Ni(e,t){if(!!e)return W(e)?{type:Ir,name:e,predicate:t?t[e]:void 0}:ee(e)?{type:Ir,name:e.name,predicate:e}:e}function lv(e){try{return"subscribe"in e&&ee(e.subscribe)}catch{return!1}}var We=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();rn={},rn[We]=function(){return this},rn[Symbol.observable]=function(){return this};function lt(e){return!!e&&"__xstatenode"in e}function dv(e){return!!e&&typeof e.send=="function"}var fv=function(){var e=0;return function(){return e++,e.toString(16)}}();function ro(e,t){return W(e)||typeof e=="number"?T({type:e},t):e}function ve(e,t){if(!W(e)&&"$$type"in e&&e.$$type==="scxml")return e;var n=ro(e);return T({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function rt(e,t){var n=Ti(t).map(function(r){return typeof r=="undefined"||typeof r=="string"||lt(r)?{target:r,event:e}:T(T({},r),{event:e})});return n}function pv(e){if(!(e===void 0||e===nv))return Pe(e)}function ki(e,t,n,r,a){var i=e.options.guards,s={state:a,cond:t,_event:r};if(t.type===Ir)return((i==null?void 0:i[t.name])||t.predicate)(n,r.data,s);var u=i==null?void 0:i[t.type];if(!u)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return u(n,r.data,s)}function xi(e){return typeof e=="string"?{type:e}:e}function yn(e,t,n){var r=function(){},a=typeof e=="object",i=a?e:null;return{next:((a?e.next:e)||r).bind(i),error:((a?e.error:t)||r).bind(i),complete:((a?e.complete:n)||r).bind(i)}}function on(e,t){return"".concat(e,":invocation[").concat(t,"]")}var Bt=ve({type:Qg});function $r(e,t){return t&&t[e]||void 0}function Vt(e,t){var n;if(W(e)||typeof e=="number"){var r=$r(e,t);ee(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(ee(e))n={type:e.name||e.toString(),exec:e};else{var r=$r(e.type,t);if(ee(r))n=T(T({},e),{exec:r});else if(r){var a=r.type||e.type;n=T(T(T({},r),e),{type:a})}else n=e}return n}var st=function(e,t){if(!e)return[];var n=_t(e)?e:[e];return n.map(function(r){return Vt(r,t)})};function oo(e){var t=Vt(e);return T(T({id:W(e)?e:t.id},t),{type:t.type})}function hv(e){return W(e)?{type:ut,event:e}:zn(e,{to:He.Internal})}function mv(e){return{type:ut,_event:ve(e.event)}}function zn(e,t){return{to:t?t.to:void 0,type:ct,event:ee(e)?e:ro(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:ee(e)?e.name:Ii(e)}}function gv(e,t,n,r){var a={_event:n},i=ve(ee(e.event)?e.event(t,n.data,a):e.event),s;if(W(e.delay)){var u=r&&r[e.delay];s=ee(u)?u(t,n.data,a):u}else s=ee(e.delay)?e.delay(t,n.data,a):e.delay;var c=ee(e.to)?e.to(t,n.data,a):e.to;return T(T({},e),{to:c,_event:i,event:i.data,delay:s})}function vv(e,t){return zn(e,T(T({},t),{to:He.Parent}))}function yv(){return vv(to)}var Sv=function(e,t,n){return T(T({},e),{value:W(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},wv=function(e){return{type:bi,sendId:e}};function _v(e){var t=oo(e);return{type:te.Start,activity:t,exec:void 0}}function bv(e){var t=ee(e)?e:oo(e);return{type:te.Stop,activity:t,exec:void 0}}function Cv(e,t,n){var r=ee(e.activity)?e.activity(t,n.data):e.activity,a=typeof r=="string"?{id:r}:r,i={type:te.Stop,activity:a};return i}var Av=function(e){return{type:Ar,assignment:e}};function Ev(e,t){var n=t?"#".concat(t):"";return"".concat(te.After,"(").concat(e,")").concat(n)}function an(e,t){var n="".concat(te.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Sn(e,t){var n="".concat(te.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Nt(e,t){var n="".concat(te.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Iv(e,t){return zn(function(n,r){return r},T(T({},t),{to:e}))}function En(e,t,n,r,a,i,s){s===void 0&&(s=!1);var u=z(s?[[],a]:$i(a,function(p){return p.type===Ar}),2),c=u[0],l=u[1],d=c.length?wa(n,r,c,t):n,h=s?[n]:void 0,f=ie(l.map(function(p){var g;switch(p.type){case ut:return mv(p);case ct:var m=gv(p,d,r,e.options.delays);return m.to!==He.Internal&&(i==null||i(m,d,r)),m;case Ci:{var v=Sv(p,d,r);return i==null||i(v,d,r),v}case ev:{var S=p,w=(g=S.conds.find(function(F){var D=Ni(F.cond,e.options.guards);return!D||ki(e,D,d,r,i?void 0:t)}))===null||g===void 0?void 0:g.actions;if(!w)return[];var _=z(En(e,t,d,r,st(Pe(w),e.options.actions),i,s),2),b=_[0],C=_[1];return d=C,h==null||h.push(d),b}case tv:{var w=p.get(d,r.data);if(!w)return[];var E=z(En(e,t,d,r,st(Pe(w),e.options.actions),i,s),2),A=E[0],$=E[1];return d=$,h==null||h.push(d),A}case eo:{var v=Cv(p,d,r);return i==null||i(v,d,r),v}case Ar:{d=wa(d,r,[p],i?void 0:t),h==null||h.push(d);break}default:var I=Vt(p,e.options.actions),N=I.exec;if(i)i(I,d,r);else if(N&&h){var M=h.length-1;I=T(T({},I),{exec:function(F){for(var D=[],G=1;G<arguments.length;G++)D[G-1]=arguments[G];N.apply(void 0,se([h[M]],z(D),!1))}})}return I}}).filter(function(p){return!!p}));return[f,d]}var In=[],it=function(e,t){In.push(e);var n=t(e);return In.pop(),n},Tv=function(e){return e(In[In.length-1])};function Oi(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[We]=function(){return this},t}function $v(e,t,n,r){var a,i=xi(e.src),s=(a=t==null?void 0:t.options.services)===null||a===void 0?void 0:a[i.type],u=e.data?An(e.data,n,r):void 0,c=s?ao(s,e.id,u):Oi(e.id);return c.meta=e,c}function ao(e,t,n){var r=Oi(t);if(r.deferred=!0,lt(e)){var a=r.state=it(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return a}}return r}function Pv(e){try{return typeof e.send=="function"}catch{return!1}}function Nv(e){return Pv(e)&&"id"in e}function kv(e){var t;return T((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[We]=function(){return this},t),e)}var Tn=function(e){return e.type==="atomic"||e.type==="final"};function Ui(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function Dt(e){return Ui(e).filter(function(t){return t.type!=="history"})}function Ri(e){var t=[e];return Tn(e)?t:t.concat(ie(Dt(e).map(Ri)))}function kt(e,t){var n,r,a,i,s,u,c,l,d=new Set(e),h=Pr(d),f=new Set(t);try{for(var p=K(f),g=p.next();!g.done;g=p.next())for(var m=g.value,v=m.parent;v&&!f.has(v);)f.add(v),v=v.parent}catch(I){n={error:I}}finally{try{g&&!g.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var S=Pr(f);try{for(var w=K(f),_=w.next();!_.done;_=w.next()){var m=_.value;if(m.type==="compound"&&(!S.get(m)||!S.get(m).length))h.get(m)?h.get(m).forEach(function(N){return f.add(N)}):m.initialStateNodes.forEach(function(N){return f.add(N)});else if(m.type==="parallel")try{for(var b=(s=void 0,K(Dt(m))),C=b.next();!C.done;C=b.next()){var E=C.value;f.has(E)||(f.add(E),h.get(E)?h.get(E).forEach(function(N){return f.add(N)}):E.initialStateNodes.forEach(function(N){return f.add(N)}))}}catch(N){s={error:N}}finally{try{C&&!C.done&&(u=b.return)&&u.call(b)}finally{if(s)throw s.error}}}}catch(I){a={error:I}}finally{try{_&&!_.done&&(i=w.return)&&i.call(w)}finally{if(a)throw a.error}}try{for(var A=K(f),$=A.next();!$.done;$=A.next())for(var m=$.value,v=m.parent;v&&!f.has(v);)f.add(v),v=v.parent}catch(I){c={error:I}}finally{try{$&&!$.done&&(l=A.return)&&l.call(A)}finally{if(c)throw c.error}}return f}function Bi(e,t){var n=t.get(e);if(!n)return{};if(e.type==="compound"){var r=n[0];if(r){if(Tn(r))return r.key}else return{}}var a={};return n.forEach(function(i){a[i.key]=Bi(i,t)}),a}function Pr(e){var t,n,r=new Map;try{for(var a=K(e),i=a.next();!i.done;i=a.next()){var s=i.value;r.has(s)||r.set(s,[]),s.parent&&(r.has(s.parent)||r.set(s.parent,[]),r.get(s.parent).push(s))}}catch(u){t={error:u}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r}function xv(e,t){var n=kt([e],t);return Bi(e,Pr(n))}function xt(e,t){return Array.isArray(e)?e.some(function(n){return n===t}):e instanceof Set?e.has(t):!1}function Ov(e){return se([],z(new Set(ie(se([],z(e.map(function(t){return t.ownEvents})),!1)))),!1)}function wn(e,t){return t.type==="compound"?Dt(t).some(function(n){return n.type==="final"&&xt(e,n)}):t.type==="parallel"?Dt(t).every(function(n){return wn(e,n)}):!1}function Uv(e){return e===void 0&&(e=[]),e.reduce(function(t,n){return n.meta!==void 0&&(t[n.id]=n.meta),t},{})}function _a(e){return new Set(ie(e.map(function(t){return t.tags})))}function Vi(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(W(e)||W(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(a){return Vi(e[a],t[a])})}function Rv(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function Bv(e,t){var n=e.exec,r=T(T({},e),{exec:n!==void 0?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return r}var Ne=function(){function e(t){var n=this,r;this.actions=[],this.activities=va,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||va,this.meta=Uv(t.configuration),this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,this.tags=(r=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&r!==void 0?r:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return Ov(n.configuration)}})}return e.from=function(t,n){if(t instanceof e)return t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t;var r=Bt;return new e({value:t,context:n,_event:r,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=Bt;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(t,n){var r=this;if(t===void 0&&(t=this.value),n===void 0&&(n="."),W(t))return[t];var a=Object.keys(t);return a.concat.apply(a,se([],z(a.map(function(i){return r.toStrings(t[i],n).map(function(s){return i+n+s})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var n=t.tags;t.machine;var r=Xr(t,["configuration","transitions","tags","machine"]);return T(T({},r),{tags:Array.from(n)})},e.prototype.matches=function(t){return no(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var n;Ei&&cv(!!this.machine);var r=(n=this.machine)===null||n===void 0?void 0:n.getTransitionData(this,t);return!!(r!=null&&r.transitions.length)&&r.transitions.some(function(a){return a.target!==void 0||a.actions.length})},e}(),Vv={deferEvents:!1},ba=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=T(T({},Vv),t)}return e.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents){this.schedule(t);return}this.process(t)}this.flushEvents()},e.prototype.schedule=function(t){if(!this.initialized||this.processingEvent){this.queue.push(t);return}if(this.queue.length!==0)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},e.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(n){throw this.clear(),n}finally{this.processingEvent=!1}},e}(),sr=new Map,Dv=0,sn={bookId:function(){return"x:".concat(Dv++)},register:function(e,t){return sr.set(e,t),e},get:function(e){return sr.get(e)},free:function(e){sr.delete(e)}};function io(){if(typeof globalThis!="undefined")return globalThis;if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof global!="undefined")return global}function Mv(){var e=io();if(e&&"__xstate__"in e)return e.__xstate__}function Fv(e){if(!!io()){var t=Mv();t&&t.register(e)}}function Lv(e,t){t===void 0&&(t={});var n=e.initialState,r=new Set,a=[],i=!1,s=function(){if(!i){for(i=!0;a.length>0;){var l=a.shift();n=e.transition(n,l,c),r.forEach(function(d){return d.next(n)})}i=!1}},u=kv({id:t.id,send:function(l){a.push(l),s()},getSnapshot:function(){return n},subscribe:function(l,d,h){var f=yn(l,d,h);return r.add(f),f.next(n),{unsubscribe:function(){r.delete(f)}}}}),c={parent:t.parent,self:u,id:t.id||"anonymous",observers:r};return n=e.start?e.start(c):n,u}var Nr={sync:!1,autoForward:!1},ge;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(ge||(ge={}));var jv=function(){function e(t,n){var r=this;n===void 0&&(n=e.defaultOptions),this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=ge.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(d,h){if(_t(d))return r.batch(d),r.state;var f=ve(ro(d,h));if(r.status===ge.Stopped)return r.state;if(r.status!==ge.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(f.name,'" was sent to uninitialized service "').concat(r.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
|
|
16
|
-
Event: `).concat(JSON.stringify(f.data)));return r.scheduler.schedule(function(){r.forward(f);var p=r._nextState(f);r.update(p,f)}),r._state},this.sendTo=function(d,h){var f=r.parent&&(h===He.Parent||r.parent.id===h),p=f?r.parent:W(h)?r.children.get(h)||sn.get(h):dv(h)?h:void 0;if(!p){if(!f)throw new Error("Unable to send event to child '".concat(h,"' from service '").concat(r.id,"'."));return}"machine"in p?(r.status!==ge.Stopped||r.parent!==p||r.state.done)&&p.send(T(T({},d),{name:d.name===Xg?"".concat(Nt(r.id)):d.name,origin:r.sessionId})):p.send(d.data)},this._exec=function(d,h,f,p){p===void 0&&(p=r.machine.options.actions);var g=d.exec||$r(d.type,p),m=ee(g)?g:g?g.exec:d.exec;if(m)try{return m(h,f.data,r.machine.config.predictableActionArguments?{action:d,_event:f}:{action:d,state:r.state,_event:f})}catch(F){throw r.parent&&r.parent.send({type:"xstate.error",data:F}),F}switch(d.type){case ct:var v=d;if(typeof v.delay=="number"){r.defer(v);return}else v.to?r.sendTo(v._event,v.to):r.send(v._event);break;case bi:r.cancel(d.sendId);break;case Cr:{if(r.status!==ge.Running)return;var S=d.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[S.id||S.type])break;if(S.type===te.Invoke){var w=xi(S.src),_=r.machine.options.services?r.machine.options.services[w.type]:void 0,b=S.id,C=S.data,E="autoForward"in S?S.autoForward:!!S.forward;if(!_)return;var A=C?An(C,h,f):void 0;if(typeof _=="string")return;var $=ee(_)?_(h,f.data,{data:A,src:w,meta:S.meta}):_;if(!$)return;var I=void 0;lt($)&&($=A?$.withContext(A):$,I={autoForward:E}),r.spawn($,b,I)}else r.spawnActivity(S);break}case eo:{r.stopChild(d.activity.id);break}case Ci:var N=d.label,M=d.value;N?r.logger(N,M):r.logger(M);break}};var a=T(T({},e.defaultOptions),n),i=a.clock,s=a.logger,u=a.parent,c=a.id,l=c!==void 0?c:t.id;this.id=l,this.logger=s,this.clock=i,this.parent=u,this.options=a,this.scheduler=new ba({deferEvents:this.options.deferEvents}),this.sessionId=sn.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:it(this,function(){return t._initialState=t.machine.initialState,t._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(t,n){var r,a;try{for(var i=K(t.actions),s=i.next();!s.done;s=i.next()){var u=s.value;this.exec(u,t,n)}}catch(c){r={error:c}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}},e.prototype.update=function(t,n){var r,a,i,s,u,c,l,d,h=this;if(t._sessionid=this.sessionId,this._state=t,(!this.machine.config.predictableActionArguments||n===Bt)&&this.options.execute&&this.execute(this.state),this.children.forEach(function($){h.state.children[$.id]=$}),this.devTools&&this.devTools.send(n.data,t),t.event)try{for(var f=K(this.eventListeners),p=f.next();!p.done;p=f.next()){var g=p.value;g(t.event)}}catch($){r={error:$}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(r)throw r.error}}try{for(var m=K(this.listeners),v=m.next();!v.done;v=m.next()){var g=v.value;g(t,t.event)}}catch($){i={error:$}}finally{try{v&&!v.done&&(s=m.return)&&s.call(m)}finally{if(i)throw i.error}}try{for(var S=K(this.contextListeners),w=S.next();!w.done;w=S.next()){var _=w.value;_(this.state.context,this.state.history?this.state.history.context:void 0)}}catch($){u={error:$}}finally{try{w&&!w.done&&(c=S.return)&&c.call(S)}finally{if(u)throw u.error}}if(this.state.done){var b=t.configuration.find(function($){return $.type==="final"&&$.parent===h.machine}),C=b&&b.doneData?An(b.doneData,t.context,n):void 0;try{for(var E=K(this.doneListeners),A=E.next();!A.done;A=E.next()){var g=A.value;g(Sn(this.id,C))}}catch($){l={error:$}}finally{try{A&&!A.done&&(d=E.return)&&d.call(E)}finally{if(l)throw l.error}}this._stop()}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===ge.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,n,r){var a=this,i=yn(t,n,r);this.listeners.add(i.next),this.status!==ge.NotStarted&&i.next(this.state);var s=function(){a.doneListeners.delete(s),a.stopListeners.delete(s),i.complete()};return this.status===ge.Stopped?i.complete():(this.onDone(s),this.onStop(s)),{unsubscribe:function(){a.listeners.delete(i.next),a.doneListeners.delete(s),a.stopListeners.delete(s)}}},e.prototype.onEvent=function(t){return this.eventListeners.add(t),this},e.prototype.onSend=function(t){return this.sendListeners.add(t),this},e.prototype.onChange=function(t){return this.contextListeners.add(t),this},e.prototype.onStop=function(t){return this.stopListeners.add(t),this},e.prototype.onDone=function(t){return this.doneListeners.add(t),this},e.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},e.prototype.start=function(t){var n=this;if(this.status===ge.Running)return this;this.machine._init(),sn.register(this.sessionId,this),this.initialized=!0,this.status=ge.Running;var r=t===void 0?this.initialState:it(this,function(){return Rv(t)?n.machine.resolveState(t):n.machine.resolveState(Ne.from(t,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,Bt)}),this},e.prototype._stop=function(){var t,n,r,a,i,s,u,c,l,d;try{for(var h=K(this.listeners),f=h.next();!f.done;f=h.next()){var p=f.value;this.listeners.delete(p)}}catch(A){t={error:A}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}try{for(var g=K(this.stopListeners),m=g.next();!m.done;m=g.next()){var p=m.value;p(),this.stopListeners.delete(p)}}catch(A){r={error:A}}finally{try{m&&!m.done&&(a=g.return)&&a.call(g)}finally{if(r)throw r.error}}try{for(var v=K(this.contextListeners),S=v.next();!S.done;S=v.next()){var p=S.value;this.contextListeners.delete(p)}}catch(A){i={error:A}}finally{try{S&&!S.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}try{for(var w=K(this.doneListeners),_=w.next();!_.done;_=w.next()){var p=_.value;this.doneListeners.delete(p)}}catch(A){u={error:A}}finally{try{_&&!_.done&&(c=w.return)&&c.call(w)}finally{if(u)throw u.error}}if(!this.initialized)return this;this.initialized=!1,this.status=ge.Stopped,this._initialState=void 0;try{for(var b=K(Object.keys(this.delayedEventsMap)),C=b.next();!C.done;C=b.next()){var E=C.value;this.clock.clearTimeout(this.delayedEventsMap[E])}}catch(A){l={error:A}}finally{try{C&&!C.done&&(d=b.return)&&d.call(b)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new ba({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var t=this,n=this.scheduler;return this._stop(),n.schedule(function(){var r=ve({type:"xstate.stop"}),a=it(t,function(){var i=ie(se([],z(t.state.configuration),!1).sort(function(d,h){return h.order-d.order}).map(function(d){return st(d.onExit,t.machine.options.actions)})),s=z(En(t.machine,t.state,t.state.context,r,i,t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),u=s[0],c=s[1],l=new Ne({value:t.state.value,context:c,_event:r,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:u.filter(function(d){return d.type!==ut&&(d.type!==ct||!!d.to&&d.to!==He.Internal)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return l.changed=!0,l});t.update(a,r),t.children.forEach(function(i){ee(i.stop)&&i.stop()}),t.children.clear(),sn.free(t.sessionId)}),this},e.prototype.batch=function(t){var n=this;if(!(this.status===ge.NotStarted&&this.options.deferEvents)){if(this.status!==ge.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}this.scheduler.schedule(function(){var r,a,i=n.state,s=!1,u=[],c=function(f){var p=ve(f);n.forward(p),i=it(n,function(){return n.machine.transition(i,p)}),u.push.apply(u,se([],z(i.actions.map(function(g){return Bv(g,i)})),!1)),s=s||!!i.changed};try{for(var l=K(t),d=l.next();!d.done;d=l.next()){var h=d.value;c(h)}}catch(f){r={error:f}}finally{try{d&&!d.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}i.changed=s,i.actions=u,n.update(i,ve(t[t.length-1]))})},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype._nextState=function(t,n){var r=this;n===void 0&&(n=!!this.machine.config.predictableActionArguments&&this._exec);var a=ve(t);if(a.name.indexOf(ga)===0&&!this.state.nextEvents.some(function(s){return s.indexOf(ga)===0}))throw a.data.data;var i=it(this,function(){return r.machine.transition(r.state,a,void 0,n||void 0)});return i},e.prototype.nextState=function(t){return this._nextState(t,!1)},e.prototype.forward=function(t){var n,r;try{for(var a=K(this.forwardTo),i=a.next();!i.done;i=a.next()){var s=i.value,u=this.children.get(s);if(!u)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."));u.send(t)}}catch(c){n={error:c}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},e.prototype.defer=function(t){var n=this;this.delayedEventsMap[t.id]=this.clock.setTimeout(function(){t.to?n.sendTo(t._event,t.to):n.send(t._event)},t.delay)},e.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},e.prototype.exec=function(t,n,r){r===void 0&&(r=this.machine.options.actions),this._exec(t,n.context,n._event,r)},e.prototype.removeChild=function(t){var n;this.children.delete(t),this.forwardTo.delete(t),(n=this.state)===null||n===void 0||delete n.children[t]},e.prototype.stopChild=function(t){var n=this.children.get(t);!n||(this.removeChild(t),ee(n.stop)&&n.stop())},e.prototype.spawn=function(t,n,r){if(this.status!==ge.Running)return ao(t,n);if(Sa(t))return this.spawnPromise(Promise.resolve(t),n);if(ee(t))return this.spawnCallback(t,n);if(Nv(t))return this.spawnActor(t,n);if(lv(t))return this.spawnObservable(t,n);if(lt(t))return this.spawnMachine(t,T(T({},r),{id:n}));if(sv(t))return this.spawnBehavior(t,n);throw new Error('Unable to spawn entity "'.concat(n,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,n){var r=this;n===void 0&&(n={});var a=new e(t,T(T({},this.options),{parent:this,id:n.id||t.id})),i=T(T({},Nr),n);i.sync&&a.onTransition(function(u){r.send(to,{state:u,id:a.id})});var s=a;return this.children.set(a.id,s),i.autoForward&&this.forwardTo.add(a.id),a.onDone(function(u){r.removeChild(a.id),r.send(ve(u,{origin:a.id}))}).start(),s},e.prototype.spawnBehavior=function(t,n){var r=Lv(t,{id:n,parent:this});return this.children.set(n,r),r},e.prototype.spawnPromise=function(t,n){var r,a=this,i=!1,s;t.then(function(c){i||(s=c,a.removeChild(n),a.send(ve(Sn(n,c),{origin:n})))},function(c){if(!i){a.removeChild(n);var l=Nt(n,c);try{a.send(ve(l,{origin:n}))}catch{a.devTools&&a.devTools.send(l,a.state),a.machine.strict&&a.stop()}}});var u=(r={id:n,send:function(){},subscribe:function(c,l,d){var h=yn(c,l,d),f=!1;return t.then(function(p){f||(h.next(p),!f&&h.complete())},function(p){f||h.error(p)}),{unsubscribe:function(){return f=!0}}},stop:function(){i=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return s}},r[We]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnCallback=function(t,n){var r,a=this,i=!1,s=new Set,u=new Set,c,l=function(f){c=f,u.forEach(function(p){return p(f)}),!i&&a.send(ve(f,{origin:n}))},d;try{d=t(l,function(f){s.add(f)})}catch(f){this.send(Nt(n,f))}if(Sa(d))return this.spawnPromise(d,n);var h=(r={id:n,send:function(f){return s.forEach(function(p){return p(f)})},subscribe:function(f){var p=yn(f);return u.add(p.next),{unsubscribe:function(){u.delete(p.next)}}},stop:function(){i=!0,ee(d)&&d()},toJSON:function(){return{id:n}},getSnapshot:function(){return c}},r[We]=function(){return this},r);return this.children.set(n,h),h},e.prototype.spawnObservable=function(t,n){var r,a=this,i,s=t.subscribe(function(c){i=c,a.send(ve(c,{origin:n}))},function(c){a.removeChild(n),a.send(ve(Nt(n,c),{origin:n}))},function(){a.removeChild(n),a.send(ve(Sn(n),{origin:n}))}),u=(r={id:n,send:function(){},subscribe:function(c,l,d){return t.subscribe(c,l,d)},stop:function(){return s.unsubscribe()},getSnapshot:function(){return i},toJSON:function(){return{id:n}}},r[We]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnActor=function(t,n){return this.children.set(n,t),t},e.prototype.spawnActivity=function(t){var n=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(!!n){var r=n(this.state.context,t);this.spawnEffect(t.id,r)}},e.prototype.spawnEffect=function(t,n){var r;this.children.set(t,(r={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:n||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}},r[We]=function(){return this},r))},e.prototype.attachDev=function(){var t=io();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var n=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(T(T({name:this.id,autoPause:!0,stateSanitizer:function(r){return{value:r.value,context:r.context,actions:r.actions}}},n),{features:T({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}Fv(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[We]=function(){return this},e.prototype.getSnapshot=function(){return this.status===ge.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,n){return setTimeout(t,n)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},e.interpret=Di,e}(),zv=function(e){return W(e)?T(T({},Nr),{name:e}):T(T(T({},Nr),{name:fv()}),e)};function un(e,t){var n=zv(t);return Tv(function(r){return r?r.spawn(e,n.name,n):ao(e,n.name)})}function Di(e,t){var n=new jv(e,t);return n}function Gv(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function cn(e){return T(T({type:Er},e),{toJSON:function(){e.onDone,e.onError;var t=Xr(e,["onDone","onError"]);return T(T({},t),{type:Er,src:Gv(e.src)})}})}var ln="",kr="#",ur="*",ot={},at=function(e){return e[0]===kr},Hv=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},Kv=function(){function e(t,n,r,a){var i=this;r===void 0&&(r="context"in t?t.context:void 0);var s;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(Hv(),n),this.parent=a==null?void 0:a.parent,this.key=this.config.key||(a==null?void 0:a.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:Ai),this.id=this.config.id||se([this.machine.key],z(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(s=this.config.schema)!==null&&s!==void 0?s:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?Pt(this.config.states,function(l,d){var h,f=new e(l,{},void 0,{parent:i,key:d});return Object.assign(i.idMap,T((h={},h[f.id]=f,h),f.idMap)),f}):ot;var u=0;function c(l){var d,h;l.order=u++;try{for(var f=K(Ui(l)),p=f.next();!p.done;p=f.next()){var g=p.value;c(g)}}catch(m){d={error:m}}finally{try{p&&!p.done&&(h=f.return)&&h.call(f)}finally{if(d)throw d.error}}}c(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(l){var d=l.event;return d===ln}):ln in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Pe(this.config.entry||this.config.onEntry).map(function(l){return Vt(l)}),this.onExit=Pe(this.config.exit||this.config.onExit).map(function(l){return Vt(l)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Pe(this.config.invoke).map(function(l,d){var h,f;if(lt(l)){var p=on(i.id,d);return i.machine.options.services=T((h={},h[p]=l,h),i.machine.options.services),cn({src:p,id:p})}else if(W(l.src)){var p=l.id||on(i.id,d);return cn(T(T({},l),{id:p,src:l.src}))}else if(lt(l.src)||ee(l.src)){var p=l.id||on(i.id,d);return i.machine.options.services=T((f={},f[p]=l.src,f),i.machine.options.services),cn(T(T({id:p},l),{src:p}))}else{var g=l.src;return cn(T(T({id:on(i.id,d)},l),{src:g}))}}),this.activities=Pe(this.config.activities).concat(this.invoke).map(function(l){return oo(l)}),this.transition=this.transition.bind(this),this.tags=Pe(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Ri(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,n){var r=this.options,a=r.actions,i=r.activities,s=r.guards,u=r.services,c=r.delays;return new e(this.config,{actions:T(T({},a),t.actions),activities:T(T({},i),t.activities),guards:T(T({},s),t.guards),services:T(T({},u),t.services),delays:T(T({},c),t.delays)},n!=null?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return ee(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:Pt(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(n,r){return n[r.eventType]=n[r.eventType]||[],n[r.eventType].push(r),n},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var n=t===ln,r=this.transitions.filter(function(a){var i=a.eventType===t;return n?i:i||a.eventType===ur});return this.__cache.candidates[t]=r,r},e.prototype.getDelayedTransitions=function(){var t=this,n=this.config.after;if(!n)return[];var r=function(i,s){var u=ee(i)?"".concat(t.id,":delay[").concat(s,"]"):i,c=Ev(u,t.id);return t.onEntry.push(zn(c,{delay:i})),t.onExit.push(wv(c)),c},a=_t(n)?n.map(function(i,s){var u=r(i.delay,s);return T(T({},i),{event:u})}):ie(Object.keys(n).map(function(i,s){var u=n[i],c=W(u)?{target:u}:u,l=isNaN(+i)?i:+i,d=r(l,s);return Pe(c).map(function(h){return T(T({},h),{event:d,delay:l})})}));return a.map(function(i){var s=i.delay;return T(T({},t.formatTransition(i)),{delay:s})})},e.prototype.getStateNodes=function(t){var n,r=this;if(!t)return[];var a=t instanceof Ne?t.value:Ot(t,this.delimiter);if(W(a)){var i=this.getStateNode(a).initial;return i!==void 0?this.getStateNodes((n={},n[a]=i,n)):[this,this.states[a]]}var s=Object.keys(a),u=[this];return u.push.apply(u,se([],z(ie(s.map(function(c){return r.getStateNode(c).getStateNodes(a[c])}))),!1)),u},e.prototype.handles=function(t){var n=Ii(t);return this.events.includes(n)},e.prototype.resolveState=function(t){var n=t instanceof Ne?t:Ne.create(t),r=Array.from(kt([],this.getStateNodes(n.value)));return new Ne(T(T({},n),{value:this.resolve(n.value),configuration:r,done:wn(r,this),tags:_a(r),machine:this.machine}))},e.prototype.transitionLeafNode=function(t,n,r){var a=this.getStateNode(t),i=a.next(n,r);return!i||!i.transitions.length?this.next(n,r):i},e.prototype.transitionCompoundNode=function(t,n,r){var a=Object.keys(t),i=this.getStateNode(a[0]),s=i._transition(t[a[0]],n,r);return!s||!s.transitions.length?this.next(n,r):s},e.prototype.transitionParallelNode=function(t,n,r){var a,i,s={};try{for(var u=K(Object.keys(t)),c=u.next();!c.done;c=u.next()){var l=c.value,d=t[l];if(!!d){var h=this.getStateNode(l),f=h._transition(d,n,r);f&&(s[l]=f)}}}catch(w){a={error:w}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}var p=Object.keys(s).map(function(w){return s[w]}),g=ie(p.map(function(w){return w.transitions})),m=p.some(function(w){return w.transitions.length>0});if(!m)return this.next(n,r);var v=ie(p.map(function(w){return w.entrySet})),S=ie(Object.keys(s).map(function(w){return s[w].configuration}));return{transitions:g,entrySet:v,exitSet:ie(p.map(function(w){return w.exitSet})),configuration:S,source:n,actions:ie(Object.keys(s).map(function(w){return s[w].actions}))}},e.prototype._transition=function(t,n,r){return W(t)?this.transitionLeafNode(t,n,r):Object.keys(t).length===1?this.transitionCompoundNode(t,n,r):this.transitionParallelNode(t,n,r)},e.prototype.getTransitionData=function(t,n){return this._transition(t.value,t,ve(n))},e.prototype.next=function(t,n){var r,a,i=this,s=n.name,u=[],c=[],l;try{for(var d=K(this.getCandidates(s)),h=d.next();!h.done;h=d.next()){var f=h.value,p=f.cond,g=f.in,m=t.context,v=g?W(g)&&at(g)?t.matches(Ot(this.getStateNodeById(g).path,this.delimiter)):no(Ot(g,this.delimiter),ov(this.path.slice(0,-2))(t.value)):!0,S=!1;try{S=!p||ki(this.machine,p,m,n,t)}catch(C){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
|
|
17
|
-
`).concat(C.message))}if(S&&v){f.target!==void 0&&(c=f.target),u.push.apply(u,se([],z(f.actions),!1)),l=f;break}}}catch(C){r={error:C}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(r)throw r.error}}if(!!l){if(!c.length)return{transitions:[l],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var w=ie(c.map(function(C){return i.getRelativeStateNodes(C,t.historyValue)})),_=!!l.internal,b=[];return _||c.forEach(function(C){b.push.apply(b,se([],z(i.getExternalReentryNodes(C)),!1))}),{transitions:[l],entrySet:b,exitSet:_?[]:[this],configuration:w,source:t,actions:u}}},e.prototype.getExternalReentryNodes=function(t){for(var n=[],r=z(t.order>this.order?[t,this]:[this,t],2),a=r[0],i=r[1];a&&a!==i;)n.push(a),a=a.parent;return a!==i?[]:(n.push(i),n)},e.prototype.getActions=function(t,n,r,a,i,s){var u,c,l,d,h=kt([],s?this.getStateNodes(s.value):[this]);try{for(var f=K(t),p=f.next();!p.done;p=f.next()){var g=p.value;(!xt(h,g)||xt(r.entrySet,g.parent))&&r.entrySet.push(g)}}catch(I){u={error:I}}finally{try{p&&!p.done&&(c=f.return)&&c.call(f)}finally{if(u)throw u.error}}try{for(var m=K(h),v=m.next();!v.done;v=m.next()){var g=v.value;(!xt(t,g)||xt(r.exitSet,g.parent))&&r.exitSet.push(g)}}catch(I){l={error:I}}finally{try{v&&!v.done&&(d=m.return)&&d.call(m)}finally{if(l)throw l.error}}var S=ie(r.entrySet.map(function(I){var N=[];if(I.type!=="final")return N;var M=I.parent;if(!M.parent)return N;N.push(an(I.id,I.doneData),an(M.id,I.doneData?An(I.doneData,a,i):void 0));var F=M.parent;return F.type==="parallel"&&Dt(F).every(function(D){return wn(r.configuration,D)})&&N.push(an(F.id)),N}));r.exitSet.sort(function(I,N){return N.order-I.order}),r.entrySet.sort(function(I,N){return I.order-N.order});var w=new Set(r.entrySet),_=new Set(r.exitSet),b=z([ie(Array.from(w).map(function(I){return se(se([],z(I.activities.map(function(N){return _v(N)})),!1),z(I.onEntry),!1)})).concat(S.map(hv)),ie(Array.from(_).map(function(I){return se(se([],z(I.onExit),!1),z(I.activities.map(function(N){return bv(N)})),!1)}))],2),C=b[0],E=b[1],A=st(E.concat(r.actions).concat(C),this.machine.options.actions);if(n){var $=st(ie(se([],z(t),!1).sort(function(I,N){return N.order-I.order}).map(function(I){return I.onExit})),this.machine.options.actions).filter(function(I){return I.type!==ut&&(I.type!==ct||!!I.to&&I.to!==He.Internal)});return A.concat($)}return A},e.prototype.transition=function(t,n,r,a){t===void 0&&(t=this.initialState);var i=ve(n),s;if(t instanceof Ne)s=r===void 0?t:this.resolveState(Ne.from(t,r));else{var u=W(t)?this.resolve(Cn(this.getResolvedPath(t))):this.resolve(t),c=r!=null?r:this.machine.context;s=this.resolveState(Ne.from(u,c))}if(this.strict&&!this.events.includes(i.name)&&!iv(i.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(i.name,"'"));var l=this._transition(s.value,s,i)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:s,actions:[]},d=kt([],this.getStateNodes(s.value)),h=l.configuration.length?kt(d,l.configuration):d;return l.configuration=se([],z(h),!1),this.resolveTransition(l,s,s.context,a,i)},e.prototype.resolveRaisedTransition=function(t,n,r,a){var i,s=t.actions;return t=this.transition(t,n,void 0,a),t._event=r,t.event=r.data,(i=t.actions).unshift.apply(i,se([],z(s),!1)),t},e.prototype.resolveTransition=function(t,n,r,a,i){var s,u,c=this;i===void 0&&(i=Bt);var l=t.configuration,d=!n||t.transitions.length>0,h=d?t.configuration:n?n.configuration:[],f=wn(h,this),p=d?xv(this.machine,l):void 0,g=n?n.historyValue?n.historyValue:t.source?this.machine.historyValue(n.value):void 0:void 0,m=this.getActions(new Set(h),f,t,r,i,n),v=n?T({},n.activities):{};try{for(var S=K(m),w=S.next();!w.done;w=S.next()){var _=w.value;_.type===Cr?v[_.activity.id||_.activity.type]=_:_.type===eo&&(v[_.activity.id||_.activity.type]=!1)}}catch(pe){s={error:pe}}finally{try{w&&!w.done&&(u=S.return)&&u.call(S)}finally{if(s)throw s.error}}var b=z(En(this,n,r,i,m,a,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),C=b[0],E=b[1],A=z($i(C,function(pe){return pe.type===ut||pe.type===ct&&pe.to===He.Internal}),2),$=A[0],I=A[1],N=C.filter(function(pe){var xe;return pe.type===Cr&&((xe=pe.activity)===null||xe===void 0?void 0:xe.type)===Er}),M=N.reduce(function(pe,xe){return pe[xe.activity.id]=$v(xe.activity,c.machine,E,i),pe},n?T({},n.children):{}),F=new Ne({value:p||n.value,context:E,_event:i,_sessionid:n?n._sessionid:null,historyValue:p?g?uv(g,p):void 0:n?n.historyValue:void 0,history:!p||t.source?n:void 0,actions:p?I:[],activities:p?v:n?n.activities:{},events:[],configuration:h,transitions:t.transitions,children:M,done:f,tags:_a(h),machine:this}),D=r!==E;F.changed=i.name===to||D;var G=F.history;G&&delete G.history;var de=!f&&(this._transient||l.some(function(pe){return pe._transient}));if(!d&&(!de||i.name===ln))return F;var X=F;if(!f)for(de&&(X=this.resolveRaisedTransition(X,{type:Zg},i,a));$.length;){var At=$.shift();X=this.resolveRaisedTransition(X,At._event,i,a)}var Et=X.changed||(G?!!X.actions.length||D||typeof G.value!=typeof X.value||!Vi(X.value,G.value):void 0);return X.changed=Et,X.history=G,X},e.prototype.getStateNode=function(t){if(at(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var n=this.states[t];if(!n)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return n},e.prototype.getStateNodeById=function(t){var n=at(t)?t.slice(kr.length):t;if(n===this.id)return this;var r=this.machine.idMap[n];if(!r)throw new Error("Child state node '#".concat(n,"' does not exist on machine '").concat(this.id,"'"));return r},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&at(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var n=Tr(t,this.delimiter).slice(),r=this;n.length;){var a=n.shift();if(!a.length)break;r=r.getStateNode(a)}return r},e.prototype.resolve=function(t){var n,r=this;if(!t)return this.initialStateValue||ot;switch(this.type){case"parallel":return Pt(this.initialStateValue,function(i,s){return i?r.getStateNode(s).resolve(t[s]||i):ot});case"compound":if(W(t)){var a=this.getStateNode(t);return a.type==="parallel"||a.type==="compound"?(n={},n[t]=a.initialStateValue,n):t}return Object.keys(t).length?Pt(t,function(i,s){return i?r.getStateNode(s).resolve(i):ot}):this.initialStateValue||{};default:return t||ot}},e.prototype.getResolvedPath=function(t){if(at(t)){var n=this.machine.idMap[t.slice(kr.length)];if(!n)throw new Error("Unable to find state node '".concat(t,"'"));return n.path}return Tr(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var n;if(this.type==="parallel")n=ya(this.states,function(r){return r.initialStateValue||ot},function(r){return r.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));n=Tn(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else n={};return this.__cache.initialStateValue=n,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,n){this._init();var r=this.getStateNodes(t);return this.resolveTransition({configuration:r,entrySet:se([],z(r),!1),exitSet:[],transitions:[],source:void 0,actions:[]},void 0,n!=null?n:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var t;if(this.type==="history"){var n=this.config;W(n.target)?t=at(n.target)?Cn(this.machine.getStateNodeById(n.target).path.slice(this.path.length-1)):n.target:t=n.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,n,r){return r===void 0&&(r=!0),r?t.type==="history"?t.resolveHistory(n):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if(Tn(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var n=vn(this.initialStateValue);return ie(n.map(function(r){return t.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var n=z(t),r=n[0],a=n.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var i=this.getStateNode(r);if(i.type==="history")return i.resolveHistory();if(!this.states[r])throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(a)},e.prototype.historyValue=function(t){if(!!Object.keys(this.states).length)return{current:t||this.initialStateValue,states:ya(this.states,function(n,r){if(!t)return n.historyValue();var a=W(t)?void 0:t[r];return n.historyValue(a||n.initialStateValue)},function(n){return!n.history})}},e.prototype.resolveHistory=function(t){var n=this;if(this.type!=="history")return[this];var r=this.parent;if(!t){var a=this.target;return a?ie(vn(a).map(function(s){return r.getFromRelativePath(s)})):r.initialStateNodes}var i=av(r.path,"states")(t).current;return W(i)?[r.getStateNode(i)]:ie(vn(i).map(function(s){return n.history==="deep"?r.getFromRelativePath(s):[r.states[s[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,n=ie(Object.keys(this.states).map(function(r){return t.states[r].stateIds}));return[this.id].concat(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,n,r,a;if(this.__cache.events)return this.__cache.events;var i=this.states,s=new Set(this.ownEvents);if(i)try{for(var u=K(Object.keys(i)),c=u.next();!c.done;c=u.next()){var l=c.value,d=i[l];if(d.states)try{for(var h=(r=void 0,K(d.events)),f=h.next();!f.done;f=h.next()){var p=f.value;s.add("".concat(p))}}catch(g){r={error:g}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}}}catch(g){t={error:g}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(s)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter(function(n){return!(!n.target&&!n.actions.length&&n.internal)}).map(function(n){return n.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var n=this;if(t!==void 0)return t.map(function(r){if(!W(r))return r;var a=r[0]===n.delimiter;if(a&&!n.parent)return n.getStateNodeByPath(r.slice(1));var i=a?n.key+r:r;if(n.parent)try{var s=n.parent.getStateNodeByPath(i);return s}catch(u){throw new Error("Invalid transition definition for state node '".concat(n.id,`':
|
|
18
|
-
`).concat(u.message))}else return n.getStateNodeByPath(
|
|
15
|
+
***************************************************************************** */var T=function(){return T=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},T.apply(this,arguments)};function Qr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function K(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function z(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(u){s={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return a}function se(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var te;(function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"})(te||(te={}));var ze;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(ze||(ze={}));var Cr=te.Start,eo=te.Stop,st=te.Raise,ut=te.Send,Aa=te.Cancel,Qg=te.NullEvent,Ar=te.Assign;te.After;te.DoneState;var Ea=te.Log,ev=te.Init,Er=te.Invoke;te.ErrorExecution;var gi=te.ErrorPlatform,tv=te.ErrorCustom,to=te.Update,nv=te.Choose,rv=te.Pure,Ia=".",vi={},Ir="xstate.guard",ov="",Ta=!0,nn;function no(e,t,n){n===void 0&&(n=Ia);var r=xt(e,n),i=xt(t,n);return W(i)?W(r)?i===r:!1:W(r)?r in i:Object.keys(r).every(function(a){return a in i?no(r[a],i[a]):!1})}function $a(e){try{return W(e)||typeof e=="number"?"".concat(e):e.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function Tr(e,t){try{return St(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function iv(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function xt(e,t){if(iv(e))return e.value;if(St(e))return bn(e);if(typeof e!="string")return e;var n=Tr(e,t);return bn(n)}function bn(e){if(e.length===1)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function $t(e,t){for(var n={},r=Object.keys(e),i=0;i<r.length;i++){var a=r[i];n[a]=t(e[a],a,e,i)}return n}function yi(e,t,n){var r,i,a={};try{for(var s=K(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value,l=e[c];!n(l)||(a[c]=t(l,c,e))}}catch(d){r={error:d}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a}var av=function(e){return function(t){var n,r,i=t;try{for(var a=K(e),s=a.next();!s.done;s=a.next()){var u=s.value;i=i[u]}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}};function sv(e,t){return function(n){var r,i,a=n;try{for(var s=K(e),u=s.next();!u.done;u=s.next()){var c=u.value;a=a[t][c]}}catch(l){r={error:l}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a}}function gn(e){if(!e)return[[]];if(W(e))return[[e]];var t=ae(Object.keys(e).map(function(n){var r=e[n];return typeof r!="string"&&(!r||!Object.keys(r).length)?[[n]]:gn(e[n]).map(function(i){return[n].concat(i)})}));return t}function ae(e){var t;return(t=[]).concat.apply(t,se([],z(e),!1))}function Pa(e){return St(e)?e:[e]}function Pe(e){return e===void 0?[]:Pa(e)}function Cn(e,t,n){var r,i;if(ee(e))return e(t,n.data);var a={};try{for(var s=K(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value,l=e[c];ee(l)?a[c]=l(t,n.data):a[c]=l}}catch(d){r={error:d}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a}function uv(e){return/^(done|error)\./.test(e)}function wi(e){return!!(e instanceof Promise||e!==null&&(ee(e)||typeof e=="object")&&ee(e.then))}function cv(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function Na(e,t){var n,r,i=z([[],[]],2),a=i[0],s=i[1];try{for(var u=K(e),c=u.next();!c.done;c=u.next()){var l=c.value;t(l)?a.push(l):s.push(l)}}catch(d){n={error:d}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return[a,s]}function ka(e,t){return $t(e.states,function(n,r){if(!!n){var i=(W(t)?void 0:t[r])||(n?n.current:void 0);if(!!i)return{current:i,states:ka(n,i)}}})}function lv(e,t){return{current:t,states:ka(e,t)}}function Si(e,t,n,r){var i=e&&n.reduce(function(a,s){var u,c,l=s.assignment,d={state:r,action:s,_event:t},p={};if(ee(l))p=l(a,t.data,d);else try{for(var f=K(Object.keys(l)),h=f.next();!h.done;h=f.next()){var g=h.value,m=l[g];p[g]=ee(m)?m(a,t.data,d):m}}catch(v){u={error:v}}finally{try{h&&!h.done&&(c=f.return)&&c.call(f)}finally{if(u)throw u.error}}return Object.assign({},a,p)},e);return i}var dv=function(){};function St(e){return Array.isArray(e)}function ee(e){return typeof e=="function"}function W(e){return typeof e=="string"}function xa(e,t){if(!!e)return W(e)?{type:Ir,name:e,predicate:t?t[e]:void 0}:ee(e)?{type:Ir,name:e.name,predicate:e}:e}function fv(e){try{return"subscribe"in e&&ee(e.subscribe)}catch{return!1}}var Ke=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();nn={},nn[Ke]=function(){return this},nn[Symbol.observable]=function(){return this};function ct(e){return!!e&&"__xstatenode"in e}function pv(e){return!!e&&typeof e.send=="function"}var hv=function(){var e=0;return function(){return e++,e.toString(16)}}();function ro(e,t){return W(e)||typeof e=="number"?T({type:e},t):e}function ve(e,t){if(!W(e)&&"$$type"in e&&e.$$type==="scxml")return e;var n=ro(e);return T({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function nt(e,t){var n=Pa(t).map(function(r){return typeof r=="undefined"||typeof r=="string"||ct(r)?{target:r,event:e}:T(T({},r),{event:e})});return n}function mv(e){if(!(e===void 0||e===ov))return Pe(e)}function Oa(e,t,n,r,i){var a=e.options.guards,s={state:i,cond:t,_event:r};if(t.type===Ir)return((a==null?void 0:a[t.name])||t.predicate)(n,r.data,s);var u=a==null?void 0:a[t.type];if(!u)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return u(n,r.data,s)}function Ua(e){return typeof e=="string"?{type:e}:e}function vn(e,t,n){var r=function(){},i=typeof e=="object",a=i?e:null;return{next:((i?e.next:e)||r).bind(a),error:((i?e.error:t)||r).bind(a),complete:((i?e.complete:n)||r).bind(a)}}function rn(e,t){return"".concat(e,":invocation[").concat(t,"]")}var Rt=ve({type:ev});function $r(e,t){return t&&t[e]||void 0}function Bt(e,t){var n;if(W(e)||typeof e=="number"){var r=$r(e,t);ee(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(ee(e))n={type:e.name||e.toString(),exec:e};else{var r=$r(e.type,t);if(ee(r))n=T(T({},e),{exec:r});else if(r){var i=r.type||e.type;n=T(T(T({},r),e),{type:i})}else n=e}return n}var at=function(e,t){if(!e)return[];var n=St(e)?e:[e];return n.map(function(r){return Bt(r,t)})};function oo(e){var t=Bt(e);return T(T({id:W(e)?e:t.id},t),{type:t.type})}function gv(e){return W(e)?{type:st,event:e}:jn(e,{to:ze.Internal})}function vv(e){return{type:st,_event:ve(e.event)}}function jn(e,t){return{to:t?t.to:void 0,type:ut,event:ee(e)?e:ro(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:ee(e)?e.name:$a(e)}}function yv(e,t,n,r){var i={_event:n},a=ve(ee(e.event)?e.event(t,n.data,i):e.event),s;if(W(e.delay)){var u=r&&r[e.delay];s=ee(u)?u(t,n.data,i):u}else s=ee(e.delay)?e.delay(t,n.data,i):e.delay;var c=ee(e.to)?e.to(t,n.data,i):e.to;return T(T({},e),{to:c,_event:a,event:a.data,delay:s})}function wv(e,t){return jn(e,T(T({},t),{to:ze.Parent}))}function Sv(){return wv(to)}var _v=function(e,t,n){return T(T({},e),{value:W(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},bv=function(e){return{type:Aa,sendId:e}};function Cv(e){var t=oo(e);return{type:te.Start,activity:t,exec:void 0}}function Av(e){var t=ee(e)?e:oo(e);return{type:te.Stop,activity:t,exec:void 0}}function Ev(e,t,n){var r=ee(e.activity)?e.activity(t,n.data):e.activity,i=typeof r=="string"?{id:r}:r,a={type:te.Stop,activity:i};return a}var Iv=function(e){return{type:Ar,assignment:e}};function Tv(e,t){var n=t?"#".concat(t):"";return"".concat(te.After,"(").concat(e,")").concat(n)}function on(e,t){var n="".concat(te.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function yn(e,t){var n="".concat(te.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Pt(e,t){var n="".concat(te.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function $v(e,t){return jn(function(n,r){return r},T(T({},t),{to:e}))}function An(e,t,n,r,i,a,s){s===void 0&&(s=!1);var u=z(s?[[],i]:Na(i,function(h){return h.type===Ar}),2),c=u[0],l=u[1],d=c.length?Si(n,r,c,t):n,p=s?[n]:void 0,f=ae(l.map(function(h){var g;switch(h.type){case st:return vv(h);case ut:var m=yv(h,d,r,e.options.delays);return m.to!==ze.Internal&&(a==null||a(m,d,r)),m;case Ea:{var v=_v(h,d,r);return a==null||a(v,d,r),v}case nv:{var w=h,S=(g=w.conds.find(function(F){var D=xa(F.cond,e.options.guards);return!D||Oa(e,D,d,r,a?void 0:t)}))===null||g===void 0?void 0:g.actions;if(!S)return[];var _=z(An(e,t,d,r,at(Pe(S),e.options.actions),a,s),2),b=_[0],C=_[1];return d=C,p==null||p.push(d),b}case rv:{var S=h.get(d,r.data);if(!S)return[];var E=z(An(e,t,d,r,at(Pe(S),e.options.actions),a,s),2),A=E[0],$=E[1];return d=$,p==null||p.push(d),A}case eo:{var v=Ev(h,d,r);return a==null||a(v,d,r),v}case Ar:{d=Si(d,r,[h],a?void 0:t),p==null||p.push(d);break}default:var I=Bt(h,e.options.actions),N=I.exec;if(a)a(I,d,r);else if(N&&p){var M=p.length-1;I=T(T({},I),{exec:function(F){for(var D=[],G=1;G<arguments.length;G++)D[G-1]=arguments[G];N.apply(void 0,se([p[M]],z(D),!1))}})}return I}}).filter(function(h){return!!h}));return[f,d]}var En=[],it=function(e,t){En.push(e);var n=t(e);return En.pop(),n},Pv=function(e){return e(En[En.length-1])};function Ra(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[Ke]=function(){return this},t}function Nv(e,t,n,r){var i,a=Ua(e.src),s=(i=t==null?void 0:t.options.services)===null||i===void 0?void 0:i[a.type],u=e.data?Cn(e.data,n,r):void 0,c=s?io(s,e.id,u):Ra(e.id);return c.meta=e,c}function io(e,t,n){var r=Ra(t);if(r.deferred=!0,ct(e)){var i=r.state=it(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return i}}return r}function kv(e){try{return typeof e.send=="function"}catch{return!1}}function xv(e){return kv(e)&&"id"in e}function Ov(e){var t;return T((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[Ke]=function(){return this},t),e)}var In=function(e){return e.type==="atomic"||e.type==="final"};function Ba(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function Vt(e){return Ba(e).filter(function(t){return t.type!=="history"})}function Va(e){var t=[e];return In(e)?t:t.concat(ae(Vt(e).map(Va)))}function Nt(e,t){var n,r,i,a,s,u,c,l,d=new Set(e),p=Pr(d),f=new Set(t);try{for(var h=K(f),g=h.next();!g.done;g=h.next())for(var m=g.value,v=m.parent;v&&!f.has(v);)f.add(v),v=v.parent}catch(I){n={error:I}}finally{try{g&&!g.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}var w=Pr(f);try{for(var S=K(f),_=S.next();!_.done;_=S.next()){var m=_.value;if(m.type==="compound"&&(!w.get(m)||!w.get(m).length))p.get(m)?p.get(m).forEach(function(N){return f.add(N)}):m.initialStateNodes.forEach(function(N){return f.add(N)});else if(m.type==="parallel")try{for(var b=(s=void 0,K(Vt(m))),C=b.next();!C.done;C=b.next()){var E=C.value;f.has(E)||(f.add(E),p.get(E)?p.get(E).forEach(function(N){return f.add(N)}):E.initialStateNodes.forEach(function(N){return f.add(N)}))}}catch(N){s={error:N}}finally{try{C&&!C.done&&(u=b.return)&&u.call(b)}finally{if(s)throw s.error}}}}catch(I){i={error:I}}finally{try{_&&!_.done&&(a=S.return)&&a.call(S)}finally{if(i)throw i.error}}try{for(var A=K(f),$=A.next();!$.done;$=A.next())for(var m=$.value,v=m.parent;v&&!f.has(v);)f.add(v),v=v.parent}catch(I){c={error:I}}finally{try{$&&!$.done&&(l=A.return)&&l.call(A)}finally{if(c)throw c.error}}return f}function Da(e,t){var n=t.get(e);if(!n)return{};if(e.type==="compound"){var r=n[0];if(r){if(In(r))return r.key}else return{}}var i={};return n.forEach(function(a){i[a.key]=Da(a,t)}),i}function Pr(e){var t,n,r=new Map;try{for(var i=K(e),a=i.next();!a.done;a=i.next()){var s=a.value;r.has(s)||r.set(s,[]),s.parent&&(r.has(s.parent)||r.set(s.parent,[]),r.get(s.parent).push(s))}}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Uv(e,t){var n=Nt([e],t);return Da(e,Pr(n))}function kt(e,t){return Array.isArray(e)?e.some(function(n){return n===t}):e instanceof Set?e.has(t):!1}function Rv(e){return se([],z(new Set(ae(se([],z(e.map(function(t){return t.ownEvents})),!1)))),!1)}function wn(e,t){return t.type==="compound"?Vt(t).some(function(n){return n.type==="final"&&kt(e,n)}):t.type==="parallel"?Vt(t).every(function(n){return wn(e,n)}):!1}function Bv(e){return e===void 0&&(e=[]),e.reduce(function(t,n){return n.meta!==void 0&&(t[n.id]=n.meta),t},{})}function _i(e){return new Set(ae(e.map(function(t){return t.tags})))}function Ma(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(W(e)||W(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(i){return Ma(e[i],t[i])})}function Vv(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function Dv(e,t){var n=e.exec,r=T(T({},e),{exec:n!==void 0?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return r}var Ne=function(){function e(t){var n=this,r;this.actions=[],this.activities=vi,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||vi,this.meta=Bv(t.configuration),this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,this.tags=(r=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&r!==void 0?r:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return Rv(n.configuration)}})}return e.from=function(t,n){if(t instanceof e)return t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t;var r=Rt;return new e({value:t,context:n,_event:r,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=Rt;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(t,n){var r=this;if(t===void 0&&(t=this.value),n===void 0&&(n="."),W(t))return[t];var i=Object.keys(t);return i.concat.apply(i,se([],z(i.map(function(a){return r.toStrings(t[a],n).map(function(s){return a+n+s})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var n=t.tags;t.machine;var r=Qr(t,["configuration","transitions","tags","machine"]);return T(T({},r),{tags:Array.from(n)})},e.prototype.matches=function(t){return no(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var n;Ta&&dv(!!this.machine);var r=(n=this.machine)===null||n===void 0?void 0:n.getTransitionData(this,t);return!!(r!=null&&r.transitions.length)&&r.transitions.some(function(i){return i.target!==void 0||i.actions.length})},e}(),Mv={deferEvents:!1},bi=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=T(T({},Mv),t)}return e.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents){this.schedule(t);return}this.process(t)}this.flushEvents()},e.prototype.schedule=function(t){if(!this.initialized||this.processingEvent){this.queue.push(t);return}if(this.queue.length!==0)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},e.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(n){throw this.clear(),n}finally{this.processingEvent=!1}},e}(),ar=new Map,Fv=0,an={bookId:function(){return"x:".concat(Fv++)},register:function(e,t){return ar.set(e,t),e},get:function(e){return ar.get(e)},free:function(e){ar.delete(e)}};function ao(){if(typeof globalThis!="undefined")return globalThis;if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof global!="undefined")return global}function Lv(){var e=ao();if(e&&"__xstate__"in e)return e.__xstate__}function jv(e){if(!!ao()){var t=Lv();t&&t.register(e)}}function zv(e,t){t===void 0&&(t={});var n=e.initialState,r=new Set,i=[],a=!1,s=function(){if(!a){for(a=!0;i.length>0;){var l=i.shift();n=e.transition(n,l,c),r.forEach(function(d){return d.next(n)})}a=!1}},u=Ov({id:t.id,send:function(l){i.push(l),s()},getSnapshot:function(){return n},subscribe:function(l,d,p){var f=vn(l,d,p);return r.add(f),f.next(n),{unsubscribe:function(){r.delete(f)}}}}),c={parent:t.parent,self:u,id:t.id||"anonymous",observers:r};return n=e.start?e.start(c):n,u}var Nr={sync:!1,autoForward:!1},ge;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(ge||(ge={}));var Gv=function(){function e(t,n){var r=this;n===void 0&&(n=e.defaultOptions),this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=ge.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(d,p){if(St(d))return r.batch(d),r.state;var f=ve(ro(d,p));if(r.status===ge.Stopped)return r.state;if(r.status!==ge.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(f.name,'" was sent to uninitialized service "').concat(r.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
|
|
16
|
+
Event: `).concat(JSON.stringify(f.data)));return r.scheduler.schedule(function(){r.forward(f);var h=r._nextState(f);r.update(h,f)}),r._state},this.sendTo=function(d,p){var f=r.parent&&(p===ze.Parent||r.parent.id===p),h=f?r.parent:W(p)?r.children.get(p)||an.get(p):pv(p)?p:void 0;if(!h){if(!f)throw new Error("Unable to send event to child '".concat(p,"' from service '").concat(r.id,"'."));return}"machine"in h?(r.status!==ge.Stopped||r.parent!==h||r.state.done)&&h.send(T(T({},d),{name:d.name===tv?"".concat(Pt(r.id)):d.name,origin:r.sessionId})):h.send(d.data)},this._exec=function(d,p,f,h){h===void 0&&(h=r.machine.options.actions);var g=d.exec||$r(d.type,h),m=ee(g)?g:g?g.exec:d.exec;if(m)try{return m(p,f.data,r.machine.config.predictableActionArguments?{action:d,_event:f}:{action:d,state:r.state,_event:f})}catch(F){throw r.parent&&r.parent.send({type:"xstate.error",data:F}),F}switch(d.type){case ut:var v=d;if(typeof v.delay=="number"){r.defer(v);return}else v.to?r.sendTo(v._event,v.to):r.send(v._event);break;case Aa:r.cancel(d.sendId);break;case Cr:{if(r.status!==ge.Running)return;var w=d.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[w.id||w.type])break;if(w.type===te.Invoke){var S=Ua(w.src),_=r.machine.options.services?r.machine.options.services[S.type]:void 0,b=w.id,C=w.data,E="autoForward"in w?w.autoForward:!!w.forward;if(!_)return;var A=C?Cn(C,p,f):void 0;if(typeof _=="string")return;var $=ee(_)?_(p,f.data,{data:A,src:S,meta:w.meta}):_;if(!$)return;var I=void 0;ct($)&&($=A?$.withContext(A):$,I={autoForward:E}),r.spawn($,b,I)}else r.spawnActivity(w);break}case eo:{r.stopChild(d.activity.id);break}case Ea:var N=d.label,M=d.value;N?r.logger(N,M):r.logger(M);break}};var i=T(T({},e.defaultOptions),n),a=i.clock,s=i.logger,u=i.parent,c=i.id,l=c!==void 0?c:t.id;this.id=l,this.logger=s,this.clock=a,this.parent=u,this.options=i,this.scheduler=new bi({deferEvents:this.options.deferEvents}),this.sessionId=an.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:it(this,function(){return t._initialState=t.machine.initialState,t._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(t,n){var r,i;try{for(var a=K(t.actions),s=a.next();!s.done;s=a.next()){var u=s.value;this.exec(u,t,n)}}catch(c){r={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},e.prototype.update=function(t,n){var r,i,a,s,u,c,l,d,p=this;if(t._sessionid=this.sessionId,this._state=t,(!this.machine.config.predictableActionArguments||n===Rt)&&this.options.execute&&this.execute(this.state),this.children.forEach(function($){p.state.children[$.id]=$}),this.devTools&&this.devTools.send(n.data,t),t.event)try{for(var f=K(this.eventListeners),h=f.next();!h.done;h=f.next()){var g=h.value;g(t.event)}}catch($){r={error:$}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}try{for(var m=K(this.listeners),v=m.next();!v.done;v=m.next()){var g=v.value;g(t,t.event)}}catch($){a={error:$}}finally{try{v&&!v.done&&(s=m.return)&&s.call(m)}finally{if(a)throw a.error}}try{for(var w=K(this.contextListeners),S=w.next();!S.done;S=w.next()){var _=S.value;_(this.state.context,this.state.history?this.state.history.context:void 0)}}catch($){u={error:$}}finally{try{S&&!S.done&&(c=w.return)&&c.call(w)}finally{if(u)throw u.error}}if(this.state.done){var b=t.configuration.find(function($){return $.type==="final"&&$.parent===p.machine}),C=b&&b.doneData?Cn(b.doneData,t.context,n):void 0;try{for(var E=K(this.doneListeners),A=E.next();!A.done;A=E.next()){var g=A.value;g(yn(this.id,C))}}catch($){l={error:$}}finally{try{A&&!A.done&&(d=E.return)&&d.call(E)}finally{if(l)throw l.error}}this._stop()}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===ge.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,n,r){var i=this,a=vn(t,n,r);this.listeners.add(a.next),this.status!==ge.NotStarted&&a.next(this.state);var s=function(){i.doneListeners.delete(s),i.stopListeners.delete(s),a.complete()};return this.status===ge.Stopped?a.complete():(this.onDone(s),this.onStop(s)),{unsubscribe:function(){i.listeners.delete(a.next),i.doneListeners.delete(s),i.stopListeners.delete(s)}}},e.prototype.onEvent=function(t){return this.eventListeners.add(t),this},e.prototype.onSend=function(t){return this.sendListeners.add(t),this},e.prototype.onChange=function(t){return this.contextListeners.add(t),this},e.prototype.onStop=function(t){return this.stopListeners.add(t),this},e.prototype.onDone=function(t){return this.doneListeners.add(t),this},e.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},e.prototype.start=function(t){var n=this;if(this.status===ge.Running)return this;this.machine._init(),an.register(this.sessionId,this),this.initialized=!0,this.status=ge.Running;var r=t===void 0?this.initialState:it(this,function(){return Vv(t)?n.machine.resolveState(t):n.machine.resolveState(Ne.from(t,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,Rt)}),this},e.prototype._stop=function(){var t,n,r,i,a,s,u,c,l,d;try{for(var p=K(this.listeners),f=p.next();!f.done;f=p.next()){var h=f.value;this.listeners.delete(h)}}catch(A){t={error:A}}finally{try{f&&!f.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}try{for(var g=K(this.stopListeners),m=g.next();!m.done;m=g.next()){var h=m.value;h(),this.stopListeners.delete(h)}}catch(A){r={error:A}}finally{try{m&&!m.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}try{for(var v=K(this.contextListeners),w=v.next();!w.done;w=v.next()){var h=w.value;this.contextListeners.delete(h)}}catch(A){a={error:A}}finally{try{w&&!w.done&&(s=v.return)&&s.call(v)}finally{if(a)throw a.error}}try{for(var S=K(this.doneListeners),_=S.next();!_.done;_=S.next()){var h=_.value;this.doneListeners.delete(h)}}catch(A){u={error:A}}finally{try{_&&!_.done&&(c=S.return)&&c.call(S)}finally{if(u)throw u.error}}if(!this.initialized)return this;this.initialized=!1,this.status=ge.Stopped,this._initialState=void 0;try{for(var b=K(Object.keys(this.delayedEventsMap)),C=b.next();!C.done;C=b.next()){var E=C.value;this.clock.clearTimeout(this.delayedEventsMap[E])}}catch(A){l={error:A}}finally{try{C&&!C.done&&(d=b.return)&&d.call(b)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new bi({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var t=this,n=this.scheduler;return this._stop(),n.schedule(function(){var r=ve({type:"xstate.stop"}),i=it(t,function(){var a=ae(se([],z(t.state.configuration),!1).sort(function(d,p){return p.order-d.order}).map(function(d){return at(d.onExit,t.machine.options.actions)})),s=z(An(t.machine,t.state,t.state.context,r,a,t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),u=s[0],c=s[1],l=new Ne({value:t.state.value,context:c,_event:r,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:u.filter(function(d){return d.type!==st&&(d.type!==ut||!!d.to&&d.to!==ze.Internal)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return l.changed=!0,l});t.update(i,r),t.children.forEach(function(a){ee(a.stop)&&a.stop()}),t.children.clear(),an.free(t.sessionId)}),this},e.prototype.batch=function(t){var n=this;if(!(this.status===ge.NotStarted&&this.options.deferEvents)){if(this.status!==ge.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}this.scheduler.schedule(function(){var r,i,a=n.state,s=!1,u=[],c=function(f){var h=ve(f);n.forward(h),a=it(n,function(){return n.machine.transition(a,h)}),u.push.apply(u,se([],z(a.actions.map(function(g){return Dv(g,a)})),!1)),s=s||!!a.changed};try{for(var l=K(t),d=l.next();!d.done;d=l.next()){var p=d.value;c(p)}}catch(f){r={error:f}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}a.changed=s,a.actions=u,n.update(a,ve(t[t.length-1]))})},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype._nextState=function(t,n){var r=this;n===void 0&&(n=!!this.machine.config.predictableActionArguments&&this._exec);var i=ve(t);if(i.name.indexOf(gi)===0&&!this.state.nextEvents.some(function(s){return s.indexOf(gi)===0}))throw i.data.data;var a=it(this,function(){return r.machine.transition(r.state,i,void 0,n||void 0)});return a},e.prototype.nextState=function(t){return this._nextState(t,!1)},e.prototype.forward=function(t){var n,r;try{for(var i=K(this.forwardTo),a=i.next();!a.done;a=i.next()){var s=a.value,u=this.children.get(s);if(!u)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."));u.send(t)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.defer=function(t){var n=this;this.delayedEventsMap[t.id]=this.clock.setTimeout(function(){t.to?n.sendTo(t._event,t.to):n.send(t._event)},t.delay)},e.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},e.prototype.exec=function(t,n,r){r===void 0&&(r=this.machine.options.actions),this._exec(t,n.context,n._event,r)},e.prototype.removeChild=function(t){var n;this.children.delete(t),this.forwardTo.delete(t),(n=this.state)===null||n===void 0||delete n.children[t]},e.prototype.stopChild=function(t){var n=this.children.get(t);!n||(this.removeChild(t),ee(n.stop)&&n.stop())},e.prototype.spawn=function(t,n,r){if(this.status!==ge.Running)return io(t,n);if(wi(t))return this.spawnPromise(Promise.resolve(t),n);if(ee(t))return this.spawnCallback(t,n);if(xv(t))return this.spawnActor(t,n);if(fv(t))return this.spawnObservable(t,n);if(ct(t))return this.spawnMachine(t,T(T({},r),{id:n}));if(cv(t))return this.spawnBehavior(t,n);throw new Error('Unable to spawn entity "'.concat(n,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,n){var r=this;n===void 0&&(n={});var i=new e(t,T(T({},this.options),{parent:this,id:n.id||t.id})),a=T(T({},Nr),n);a.sync&&i.onTransition(function(u){r.send(to,{state:u,id:i.id})});var s=i;return this.children.set(i.id,s),a.autoForward&&this.forwardTo.add(i.id),i.onDone(function(u){r.removeChild(i.id),r.send(ve(u,{origin:i.id}))}).start(),s},e.prototype.spawnBehavior=function(t,n){var r=zv(t,{id:n,parent:this});return this.children.set(n,r),r},e.prototype.spawnPromise=function(t,n){var r,i=this,a=!1,s;t.then(function(c){a||(s=c,i.removeChild(n),i.send(ve(yn(n,c),{origin:n})))},function(c){if(!a){i.removeChild(n);var l=Pt(n,c);try{i.send(ve(l,{origin:n}))}catch{i.devTools&&i.devTools.send(l,i.state),i.machine.strict&&i.stop()}}});var u=(r={id:n,send:function(){},subscribe:function(c,l,d){var p=vn(c,l,d),f=!1;return t.then(function(h){f||(p.next(h),!f&&p.complete())},function(h){f||p.error(h)}),{unsubscribe:function(){return f=!0}}},stop:function(){a=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return s}},r[Ke]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnCallback=function(t,n){var r,i=this,a=!1,s=new Set,u=new Set,c,l=function(f){c=f,u.forEach(function(h){return h(f)}),!a&&i.send(ve(f,{origin:n}))},d;try{d=t(l,function(f){s.add(f)})}catch(f){this.send(Pt(n,f))}if(wi(d))return this.spawnPromise(d,n);var p=(r={id:n,send:function(f){return s.forEach(function(h){return h(f)})},subscribe:function(f){var h=vn(f);return u.add(h.next),{unsubscribe:function(){u.delete(h.next)}}},stop:function(){a=!0,ee(d)&&d()},toJSON:function(){return{id:n}},getSnapshot:function(){return c}},r[Ke]=function(){return this},r);return this.children.set(n,p),p},e.prototype.spawnObservable=function(t,n){var r,i=this,a,s=t.subscribe(function(c){a=c,i.send(ve(c,{origin:n}))},function(c){i.removeChild(n),i.send(ve(Pt(n,c),{origin:n}))},function(){i.removeChild(n),i.send(ve(yn(n),{origin:n}))}),u=(r={id:n,send:function(){},subscribe:function(c,l,d){return t.subscribe(c,l,d)},stop:function(){return s.unsubscribe()},getSnapshot:function(){return a},toJSON:function(){return{id:n}}},r[Ke]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnActor=function(t,n){return this.children.set(n,t),t},e.prototype.spawnActivity=function(t){var n=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(!!n){var r=n(this.state.context,t);this.spawnEffect(t.id,r)}},e.prototype.spawnEffect=function(t,n){var r;this.children.set(t,(r={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:n||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}},r[Ke]=function(){return this},r))},e.prototype.attachDev=function(){var t=ao();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var n=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(T(T({name:this.id,autoPause:!0,stateSanitizer:function(r){return{value:r.value,context:r.context,actions:r.actions}}},n),{features:T({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}jv(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Ke]=function(){return this},e.prototype.getSnapshot=function(){return this.status===ge.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,n){return setTimeout(t,n)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},e.interpret=Fa,e}(),Hv=function(e){return W(e)?T(T({},Nr),{name:e}):T(T(T({},Nr),{name:hv()}),e)};function sn(e,t){var n=Hv(t);return Pv(function(r){return r?r.spawn(e,n.name,n):io(e,n.name)})}function Fa(e,t){var n=new Gv(e,t);return n}function Kv(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function un(e){return T(T({type:Er},e),{toJSON:function(){e.onDone,e.onError;var t=Qr(e,["onDone","onError"]);return T(T({},t),{type:Er,src:Kv(e.src)})}})}var cn="",kr="#",sr="*",rt={},ot=function(e){return e[0]===kr},qv=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},Wv=function(){function e(t,n,r,i){var a=this;r===void 0&&(r="context"in t?t.context:void 0);var s;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(qv(),n),this.parent=i==null?void 0:i.parent,this.key=this.config.key||(i==null?void 0:i.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:Ia),this.id=this.config.id||se([this.machine.key],z(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(s=this.config.schema)!==null&&s!==void 0?s:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?$t(this.config.states,function(l,d){var p,f=new e(l,{},void 0,{parent:a,key:d});return Object.assign(a.idMap,T((p={},p[f.id]=f,p),f.idMap)),f}):rt;var u=0;function c(l){var d,p;l.order=u++;try{for(var f=K(Ba(l)),h=f.next();!h.done;h=f.next()){var g=h.value;c(g)}}catch(m){d={error:m}}finally{try{h&&!h.done&&(p=f.return)&&p.call(f)}finally{if(d)throw d.error}}}c(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(l){var d=l.event;return d===cn}):cn in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Pe(this.config.entry||this.config.onEntry).map(function(l){return Bt(l)}),this.onExit=Pe(this.config.exit||this.config.onExit).map(function(l){return Bt(l)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Pe(this.config.invoke).map(function(l,d){var p,f;if(ct(l)){var h=rn(a.id,d);return a.machine.options.services=T((p={},p[h]=l,p),a.machine.options.services),un({src:h,id:h})}else if(W(l.src)){var h=l.id||rn(a.id,d);return un(T(T({},l),{id:h,src:l.src}))}else if(ct(l.src)||ee(l.src)){var h=l.id||rn(a.id,d);return a.machine.options.services=T((f={},f[h]=l.src,f),a.machine.options.services),un(T(T({id:h},l),{src:h}))}else{var g=l.src;return un(T(T({id:rn(a.id,d)},l),{src:g}))}}),this.activities=Pe(this.config.activities).concat(this.invoke).map(function(l){return oo(l)}),this.transition=this.transition.bind(this),this.tags=Pe(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Va(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,n){var r=this.options,i=r.actions,a=r.activities,s=r.guards,u=r.services,c=r.delays;return new e(this.config,{actions:T(T({},i),t.actions),activities:T(T({},a),t.activities),guards:T(T({},s),t.guards),services:T(T({},u),t.services),delays:T(T({},c),t.delays)},n!=null?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return ee(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:$t(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(n,r){return n[r.eventType]=n[r.eventType]||[],n[r.eventType].push(r),n},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var n=t===cn,r=this.transitions.filter(function(i){var a=i.eventType===t;return n?a:a||i.eventType===sr});return this.__cache.candidates[t]=r,r},e.prototype.getDelayedTransitions=function(){var t=this,n=this.config.after;if(!n)return[];var r=function(a,s){var u=ee(a)?"".concat(t.id,":delay[").concat(s,"]"):a,c=Tv(u,t.id);return t.onEntry.push(jn(c,{delay:a})),t.onExit.push(bv(c)),c},i=St(n)?n.map(function(a,s){var u=r(a.delay,s);return T(T({},a),{event:u})}):ae(Object.keys(n).map(function(a,s){var u=n[a],c=W(u)?{target:u}:u,l=isNaN(+a)?a:+a,d=r(l,s);return Pe(c).map(function(p){return T(T({},p),{event:d,delay:l})})}));return i.map(function(a){var s=a.delay;return T(T({},t.formatTransition(a)),{delay:s})})},e.prototype.getStateNodes=function(t){var n,r=this;if(!t)return[];var i=t instanceof Ne?t.value:xt(t,this.delimiter);if(W(i)){var a=this.getStateNode(i).initial;return a!==void 0?this.getStateNodes((n={},n[i]=a,n)):[this,this.states[i]]}var s=Object.keys(i),u=[this];return u.push.apply(u,se([],z(ae(s.map(function(c){return r.getStateNode(c).getStateNodes(i[c])}))),!1)),u},e.prototype.handles=function(t){var n=$a(t);return this.events.includes(n)},e.prototype.resolveState=function(t){var n=t instanceof Ne?t:Ne.create(t),r=Array.from(Nt([],this.getStateNodes(n.value)));return new Ne(T(T({},n),{value:this.resolve(n.value),configuration:r,done:wn(r,this),tags:_i(r),machine:this.machine}))},e.prototype.transitionLeafNode=function(t,n,r){var i=this.getStateNode(t),a=i.next(n,r);return!a||!a.transitions.length?this.next(n,r):a},e.prototype.transitionCompoundNode=function(t,n,r){var i=Object.keys(t),a=this.getStateNode(i[0]),s=a._transition(t[i[0]],n,r);return!s||!s.transitions.length?this.next(n,r):s},e.prototype.transitionParallelNode=function(t,n,r){var i,a,s={};try{for(var u=K(Object.keys(t)),c=u.next();!c.done;c=u.next()){var l=c.value,d=t[l];if(!!d){var p=this.getStateNode(l),f=p._transition(d,n,r);f&&(s[l]=f)}}}catch(S){i={error:S}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}var h=Object.keys(s).map(function(S){return s[S]}),g=ae(h.map(function(S){return S.transitions})),m=h.some(function(S){return S.transitions.length>0});if(!m)return this.next(n,r);var v=ae(h.map(function(S){return S.entrySet})),w=ae(Object.keys(s).map(function(S){return s[S].configuration}));return{transitions:g,entrySet:v,exitSet:ae(h.map(function(S){return S.exitSet})),configuration:w,source:n,actions:ae(Object.keys(s).map(function(S){return s[S].actions}))}},e.prototype._transition=function(t,n,r){return W(t)?this.transitionLeafNode(t,n,r):Object.keys(t).length===1?this.transitionCompoundNode(t,n,r):this.transitionParallelNode(t,n,r)},e.prototype.getTransitionData=function(t,n){return this._transition(t.value,t,ve(n))},e.prototype.next=function(t,n){var r,i,a=this,s=n.name,u=[],c=[],l;try{for(var d=K(this.getCandidates(s)),p=d.next();!p.done;p=d.next()){var f=p.value,h=f.cond,g=f.in,m=t.context,v=g?W(g)&&ot(g)?t.matches(xt(this.getStateNodeById(g).path,this.delimiter)):no(xt(g,this.delimiter),av(this.path.slice(0,-2))(t.value)):!0,w=!1;try{w=!h||Oa(this.machine,h,m,n,t)}catch(C){throw new Error("Unable to evaluate guard '".concat(h.name||h.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
|
|
17
|
+
`).concat(C.message))}if(w&&v){f.target!==void 0&&(c=f.target),u.push.apply(u,se([],z(f.actions),!1)),l=f;break}}}catch(C){r={error:C}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}if(!!l){if(!c.length)return{transitions:[l],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var S=ae(c.map(function(C){return a.getRelativeStateNodes(C,t.historyValue)})),_=!!l.internal,b=[];return _||c.forEach(function(C){b.push.apply(b,se([],z(a.getExternalReentryNodes(C)),!1))}),{transitions:[l],entrySet:b,exitSet:_?[]:[this],configuration:S,source:t,actions:u}}},e.prototype.getExternalReentryNodes=function(t){for(var n=[],r=z(t.order>this.order?[t,this]:[this,t],2),i=r[0],a=r[1];i&&i!==a;)n.push(i),i=i.parent;return i!==a?[]:(n.push(a),n)},e.prototype.getActions=function(t,n,r,i,a,s){var u,c,l,d,p=Nt([],s?this.getStateNodes(s.value):[this]);try{for(var f=K(t),h=f.next();!h.done;h=f.next()){var g=h.value;(!kt(p,g)||kt(r.entrySet,g.parent))&&r.entrySet.push(g)}}catch(I){u={error:I}}finally{try{h&&!h.done&&(c=f.return)&&c.call(f)}finally{if(u)throw u.error}}try{for(var m=K(p),v=m.next();!v.done;v=m.next()){var g=v.value;(!kt(t,g)||kt(r.exitSet,g.parent))&&r.exitSet.push(g)}}catch(I){l={error:I}}finally{try{v&&!v.done&&(d=m.return)&&d.call(m)}finally{if(l)throw l.error}}var w=ae(r.entrySet.map(function(I){var N=[];if(I.type!=="final")return N;var M=I.parent;if(!M.parent)return N;N.push(on(I.id,I.doneData),on(M.id,I.doneData?Cn(I.doneData,i,a):void 0));var F=M.parent;return F.type==="parallel"&&Vt(F).every(function(D){return wn(r.configuration,D)})&&N.push(on(F.id)),N}));r.exitSet.sort(function(I,N){return N.order-I.order}),r.entrySet.sort(function(I,N){return I.order-N.order});var S=new Set(r.entrySet),_=new Set(r.exitSet),b=z([ae(Array.from(S).map(function(I){return se(se([],z(I.activities.map(function(N){return Cv(N)})),!1),z(I.onEntry),!1)})).concat(w.map(gv)),ae(Array.from(_).map(function(I){return se(se([],z(I.onExit),!1),z(I.activities.map(function(N){return Av(N)})),!1)}))],2),C=b[0],E=b[1],A=at(E.concat(r.actions).concat(C),this.machine.options.actions);if(n){var $=at(ae(se([],z(t),!1).sort(function(I,N){return N.order-I.order}).map(function(I){return I.onExit})),this.machine.options.actions).filter(function(I){return I.type!==st&&(I.type!==ut||!!I.to&&I.to!==ze.Internal)});return A.concat($)}return A},e.prototype.transition=function(t,n,r,i){t===void 0&&(t=this.initialState);var a=ve(n),s;if(t instanceof Ne)s=r===void 0?t:this.resolveState(Ne.from(t,r));else{var u=W(t)?this.resolve(bn(this.getResolvedPath(t))):this.resolve(t),c=r!=null?r:this.machine.context;s=this.resolveState(Ne.from(u,c))}if(this.strict&&!this.events.includes(a.name)&&!uv(a.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var l=this._transition(s.value,s,a)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:s,actions:[]},d=Nt([],this.getStateNodes(s.value)),p=l.configuration.length?Nt(d,l.configuration):d;return l.configuration=se([],z(p),!1),this.resolveTransition(l,s,s.context,i,a)},e.prototype.resolveRaisedTransition=function(t,n,r,i){var a,s=t.actions;return t=this.transition(t,n,void 0,i),t._event=r,t.event=r.data,(a=t.actions).unshift.apply(a,se([],z(s),!1)),t},e.prototype.resolveTransition=function(t,n,r,i,a){var s,u,c=this;a===void 0&&(a=Rt);var l=t.configuration,d=!n||t.transitions.length>0,p=d?t.configuration:n?n.configuration:[],f=wn(p,this),h=d?Uv(this.machine,l):void 0,g=n?n.historyValue?n.historyValue:t.source?this.machine.historyValue(n.value):void 0:void 0,m=this.getActions(new Set(p),f,t,r,a,n),v=n?T({},n.activities):{};try{for(var w=K(m),S=w.next();!S.done;S=w.next()){var _=S.value;_.type===Cr?v[_.activity.id||_.activity.type]=_:_.type===eo&&(v[_.activity.id||_.activity.type]=!1)}}catch(pe){s={error:pe}}finally{try{S&&!S.done&&(u=w.return)&&u.call(w)}finally{if(s)throw s.error}}var b=z(An(this,n,r,a,m,i,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),C=b[0],E=b[1],A=z(Na(C,function(pe){return pe.type===st||pe.type===ut&&pe.to===ze.Internal}),2),$=A[0],I=A[1],N=C.filter(function(pe){var xe;return pe.type===Cr&&((xe=pe.activity)===null||xe===void 0?void 0:xe.type)===Er}),M=N.reduce(function(pe,xe){return pe[xe.activity.id]=Nv(xe.activity,c.machine,E,a),pe},n?T({},n.children):{}),F=new Ne({value:h||n.value,context:E,_event:a,_sessionid:n?n._sessionid:null,historyValue:h?g?lv(g,h):void 0:n?n.historyValue:void 0,history:!h||t.source?n:void 0,actions:h?I:[],activities:h?v:n?n.activities:{},events:[],configuration:p,transitions:t.transitions,children:M,done:f,tags:_i(p),machine:this}),D=r!==E;F.changed=a.name===to||D;var G=F.history;G&&delete G.history;var de=!f&&(this._transient||l.some(function(pe){return pe._transient}));if(!d&&(!de||a.name===cn))return F;var Q=F;if(!f)for(de&&(Q=this.resolveRaisedTransition(Q,{type:Qg},a,i));$.length;){var Ct=$.shift();Q=this.resolveRaisedTransition(Q,Ct._event,a,i)}var At=Q.changed||(G?!!Q.actions.length||D||typeof G.value!=typeof Q.value||!Ma(Q.value,G.value):void 0);return Q.changed=At,Q.history=G,Q},e.prototype.getStateNode=function(t){if(ot(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var n=this.states[t];if(!n)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return n},e.prototype.getStateNodeById=function(t){var n=ot(t)?t.slice(kr.length):t;if(n===this.id)return this;var r=this.machine.idMap[n];if(!r)throw new Error("Child state node '#".concat(n,"' does not exist on machine '").concat(this.id,"'"));return r},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&ot(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var n=Tr(t,this.delimiter).slice(),r=this;n.length;){var i=n.shift();if(!i.length)break;r=r.getStateNode(i)}return r},e.prototype.resolve=function(t){var n,r=this;if(!t)return this.initialStateValue||rt;switch(this.type){case"parallel":return $t(this.initialStateValue,function(a,s){return a?r.getStateNode(s).resolve(t[s]||a):rt});case"compound":if(W(t)){var i=this.getStateNode(t);return i.type==="parallel"||i.type==="compound"?(n={},n[t]=i.initialStateValue,n):t}return Object.keys(t).length?$t(t,function(a,s){return a?r.getStateNode(s).resolve(a):rt}):this.initialStateValue||{};default:return t||rt}},e.prototype.getResolvedPath=function(t){if(ot(t)){var n=this.machine.idMap[t.slice(kr.length)];if(!n)throw new Error("Unable to find state node '".concat(t,"'"));return n.path}return Tr(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var n;if(this.type==="parallel")n=yi(this.states,function(r){return r.initialStateValue||rt},function(r){return r.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));n=In(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else n={};return this.__cache.initialStateValue=n,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,n){this._init();var r=this.getStateNodes(t);return this.resolveTransition({configuration:r,entrySet:se([],z(r),!1),exitSet:[],transitions:[],source:void 0,actions:[]},void 0,n!=null?n:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var t;if(this.type==="history"){var n=this.config;W(n.target)?t=ot(n.target)?bn(this.machine.getStateNodeById(n.target).path.slice(this.path.length-1)):n.target:t=n.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,n,r){return r===void 0&&(r=!0),r?t.type==="history"?t.resolveHistory(n):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if(In(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var n=gn(this.initialStateValue);return ae(n.map(function(r){return t.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var n=z(t),r=n[0],i=n.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var a=this.getStateNode(r);if(a.type==="history")return a.resolveHistory();if(!this.states[r])throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(i)},e.prototype.historyValue=function(t){if(!!Object.keys(this.states).length)return{current:t||this.initialStateValue,states:yi(this.states,function(n,r){if(!t)return n.historyValue();var i=W(t)?void 0:t[r];return n.historyValue(i||n.initialStateValue)},function(n){return!n.history})}},e.prototype.resolveHistory=function(t){var n=this;if(this.type!=="history")return[this];var r=this.parent;if(!t){var i=this.target;return i?ae(gn(i).map(function(s){return r.getFromRelativePath(s)})):r.initialStateNodes}var a=sv(r.path,"states")(t).current;return W(a)?[r.getStateNode(a)]:ae(gn(a).map(function(s){return n.history==="deep"?r.getFromRelativePath(s):[r.states[s[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,n=ae(Object.keys(this.states).map(function(r){return t.states[r].stateIds}));return[this.id].concat(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,n,r,i;if(this.__cache.events)return this.__cache.events;var a=this.states,s=new Set(this.ownEvents);if(a)try{for(var u=K(Object.keys(a)),c=u.next();!c.done;c=u.next()){var l=c.value,d=a[l];if(d.states)try{for(var p=(r=void 0,K(d.events)),f=p.next();!f.done;f=p.next()){var h=f.value;s.add("".concat(h))}}catch(g){r={error:g}}finally{try{f&&!f.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}}}catch(g){t={error:g}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(s)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter(function(n){return!(!n.target&&!n.actions.length&&n.internal)}).map(function(n){return n.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var n=this;if(t!==void 0)return t.map(function(r){if(!W(r))return r;var i=r[0]===n.delimiter;if(i&&!n.parent)return n.getStateNodeByPath(r.slice(1));var a=i?n.key+r:r;if(n.parent)try{var s=n.parent.getStateNodeByPath(a);return s}catch(u){throw new Error("Invalid transition definition for state node '".concat(n.id,`':
|
|
18
|
+
`).concat(u.message))}else return n.getStateNodeByPath(a)})},e.prototype.formatTransition=function(t){var n=this,r=mv(t.target),i="internal"in t?t.internal:r?r.some(function(c){return W(c)&&c[0]===n.delimiter}):!0,a=this.machine.options.guards,s=this.resolveTarget(r),u=T(T({},t),{actions:at(Pe(t.actions)),cond:xa(t.cond,a),target:s,source:this,internal:i,eventType:t.event,toJSON:function(){return T(T({},u),{target:u.target?u.target.map(function(c){return"#".concat(c.id)}):void 0,source:"#".concat(n.id)})}});return u},e.prototype.formatTransitions=function(){var t,n,r=this,i;if(!this.config.on)i=[];else if(Array.isArray(this.config.on))i=this.config.on;else{var a=this.config.on,s=sr,u=a[s],c=u===void 0?[]:u,l=Qr(a,[typeof s=="symbol"?s:s+""]);i=ae(Object.keys(l).map(function(S){var _=nt(S,l[S]);return _}).concat(nt(sr,c)))}var d=this.config.always?nt("",this.config.always):[],p=this.config.onDone?nt(String(on(this.id)),this.config.onDone):[],f=ae(this.invoke.map(function(S){var _=[];return S.onDone&&_.push.apply(_,se([],z(nt(String(yn(S.id)),S.onDone)),!1)),S.onError&&_.push.apply(_,se([],z(nt(String(Pt(S.id)),S.onError)),!1)),_})),h=this.after,g=ae(se(se(se(se([],z(p),!1),z(f),!1),z(i),!1),z(d),!1).map(function(S){return Pe(S).map(function(_){return r.formatTransition(_)})}));try{for(var m=K(h),v=m.next();!v.done;v=m.next()){var w=v.value;g.push(w)}}catch(S){t={error:S}}finally{try{v&&!v.done&&(n=m.return)&&n.call(m)}finally{if(t)throw t.error}}return g},e}(),Ci=!1;function Ht(e,t){return!Ta&&!e.predictableActionArguments&&!Ci&&(Ci=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new Wv(e,t)}var Ee=Iv,so=Sv,Yv=$v,q={},uo={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});/*! *****************************************************************************
|
|
19
19
|
Copyright (c) Microsoft Corporation.
|
|
20
20
|
|
|
21
21
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -28,11 +28,11 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
28
28
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
29
29
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
30
30
|
PERFORMANCE OF THIS SOFTWARE.
|
|
31
|
-
***************************************************************************** */e.__assign=function(){return e.__assign=Object.assign||function(s){for(var u,c=1,l=arguments.length;c<l;c++){u=arguments[c];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(s[d]=u[d])}return s},e.__assign.apply(this,arguments)};function t(i,s){var u={};for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&s.indexOf(c)<0&&(u[c]=i[c]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,c=Object.getOwnPropertySymbols(i);l<c.length;l++)s.indexOf(c[l])<0&&Object.prototype.propertyIsEnumerable.call(i,c[l])&&(u[c[l]]=i[c[l]]);return u}function n(i){var s=typeof Symbol=="function"&&Symbol.iterator,u=s&&i[s],c=0;if(u)return u.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(i,s){var u=typeof Symbol=="function"&&i[Symbol.iterator];if(!u)return i;var c=u.call(i),l,d=[],h;try{for(;(s===void 0||s-- >0)&&!(l=c.next()).done;)d.push(l.value)}catch(f){h={error:f}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(h)throw h.error}}return d}function a(i,s,u){if(u||arguments.length===2)for(var c=0,l=s.length,d;c<l;c++)(d||!(c in s))&&(d||(d=Array.prototype.slice.call(s,0,c)),d[c]=s[c]);return i.concat(d||Array.prototype.slice.call(s))}e.__read=r,e.__rest=t,e.__spreadArray=a,e.__values=n})(uo);var co={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ActionTypes=void 0,function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"}(e.ActionTypes||(e.ActionTypes={})),e.SpecialTargets=void 0,function(t){t.Parent="#_parent",t.Internal="#_internal"}(e.SpecialTargets||(e.SpecialTargets={}))})(co);var fe={};Object.defineProperty(fe,"__esModule",{value:!0});var me=co,Wv=me.ActionTypes.Start,Yv=me.ActionTypes.Stop,Jv=me.ActionTypes.Raise,Zv=me.ActionTypes.Send,Qv=me.ActionTypes.Cancel,Xv=me.ActionTypes.NullEvent,ey=me.ActionTypes.Assign,ty=me.ActionTypes.After,ny=me.ActionTypes.DoneState,ry=me.ActionTypes.Log,oy=me.ActionTypes.Init,ay=me.ActionTypes.Invoke,iy=me.ActionTypes.ErrorExecution,sy=me.ActionTypes.ErrorPlatform,uy=me.ActionTypes.ErrorCustom,cy=me.ActionTypes.Update,ly=me.ActionTypes.Choose,dy=me.ActionTypes.Pure;fe.after=ty;fe.assign=ey;fe.cancel=Qv;fe.choose=ly;fe.doneState=ny;fe.error=uy;fe.errorExecution=iy;fe.errorPlatform=sy;fe.init=oy;fe.invoke=ay;fe.log=ry;fe.nullEvent=Xv;fe.pure=dy;fe.raise=Jv;fe.send=Zv;fe.start=Wv;fe.stop=Yv;fe.update=cy;var Mi={},bt={};Object.defineProperty(bt,"__esModule",{value:!0});var fy=".",py={},hy="xstate.guard",my="";bt.DEFAULT_GUARD_TYPE=hy;bt.EMPTY_ACTIVITY_MAP=py;bt.STATE_DELIMITER=fy;bt.TARGETLESS_KEY=my;var Gn={};Object.defineProperty(Gn,"__esModule",{value:!0});var gy=!0;Gn.IS_PRODUCTION=gy;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=uo,n=bt,r=Gn,a;function i(y){return Object.keys(y)}function s(y,k,O){O===void 0&&(O=n.STATE_DELIMITER);var x=h(y,O),B=h(k,O);return X(B)?X(x)?B===x:!1:X(x)?x in B:Object.keys(x).every(function(V){return V in B?s(x[V],B[V]):!1})}function u(y){try{return X(y)||typeof y=="number"?"".concat(y):y.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function c(y){try{return X(y)||typeof y=="number"?"".concat(y):de(y)?y.name:y.type}catch{throw new Error("Actions must be strings or objects with a string action.type property.")}}function l(y,k){try{return G(y)?y:y.toString().split(k)}catch{throw new Error("'".concat(y,"' is not a valid state path."))}}function d(y){return typeof y=="object"&&"value"in y&&"context"in y&&"event"in y&&"_event"in y}function h(y,k){if(d(y))return y.value;if(G(y))return f(y);if(typeof y!="string")return y;var O=l(y,k);return f(O)}function f(y){if(y.length===1)return y[0];for(var k={},O=k,x=0;x<y.length-1;x++)x===y.length-2?O[y[x]]=y[x+1]:(O[y[x]]={},O=O[y[x]]);return k}function p(y,k){for(var O={},x=Object.keys(y),B=0;B<x.length;B++){var V=x[B];O[V]=k(y[V],V,y,B)}return O}function g(y,k,O){var x,B,V={};try{for(var j=t.__values(Object.keys(y)),L=j.next();!L.done;L=j.next()){var Q=L.value,ae=y[Q];!O(ae)||(V[Q]=k(ae,Q,y))}}catch(_e){x={error:_e}}finally{try{L&&!L.done&&(B=j.return)&&B.call(j)}finally{if(x)throw x.error}}return V}var m=function(y){return function(k){var O,x,B=k;try{for(var V=t.__values(y),j=V.next();!j.done;j=V.next()){var L=j.value;B=B[L]}}catch(Q){O={error:Q}}finally{try{j&&!j.done&&(x=V.return)&&x.call(V)}finally{if(O)throw O.error}}return B}};function v(y,k){return function(O){var x,B,V=O;try{for(var j=t.__values(y),L=j.next();!L.done;L=j.next()){var Q=L.value;V=V[k][Q]}}catch(ae){x={error:ae}}finally{try{L&&!L.done&&(B=j.return)&&B.call(j)}finally{if(x)throw x.error}}return V}}function S(y){if(!y)return[[]];if(X(y))return[[y]];var k=_(Object.keys(y).map(function(O){var x=y[O];return typeof x!="string"&&(!x||!Object.keys(x).length)?[[O]]:S(y[O]).map(function(B){return[O].concat(B)})}));return k}function w(y){var k,O,x={};if(y&&y.length===1&&y[0].length===1)return y[0][0];try{for(var B=t.__values(y),V=B.next();!V.done;V=B.next())for(var j=V.value,L=x,Q=0;Q<j.length;Q++){var ae=j[Q];if(Q===j.length-2){L[ae]=j[Q+1];break}L[ae]=L[ae]||{},L=L[ae]}}catch(_e){k={error:_e}}finally{try{V&&!V.done&&(O=B.return)&&O.call(B)}finally{if(k)throw k.error}}return x}function _(y){var k;return(k=[]).concat.apply(k,t.__spreadArray([],t.__read(y),!1))}function b(y){return G(y)?y:[y]}function C(y){return y===void 0?[]:b(y)}function E(y,k,O){var x,B;if(de(y))return y(k,O.data);var V={};try{for(var j=t.__values(Object.keys(y)),L=j.next();!L.done;L=j.next()){var Q=L.value,ae=y[Q];de(ae)?V[Q]=ae(k,O.data):V[Q]=ae}}catch(_e){x={error:_e}}finally{try{L&&!L.done&&(B=j.return)&&B.call(j)}finally{if(x)throw x.error}}return V}function A(y){return/^(done|error)\./.test(y)}function $(y){return!!(y instanceof Promise||y!==null&&(de(y)||typeof y=="object")&&de(y.then))}function I(y){return y!==null&&typeof y=="object"&&"transition"in y&&typeof y.transition=="function"}function N(y,k){var O,x,B=t.__read([[],[]],2),V=B[0],j=B[1];try{for(var L=t.__values(y),Q=L.next();!Q.done;Q=L.next()){var ae=Q.value;k(ae)?V.push(ae):j.push(ae)}}catch(_e){O={error:_e}}finally{try{Q&&!Q.done&&(x=L.return)&&x.call(L)}finally{if(O)throw O.error}}return[V,j]}function M(y,k){return p(y.states,function(O,x){if(!!O){var B=(X(k)?void 0:k[x])||(O?O.current:void 0);if(!!B)return{current:B,states:M(O,B)}}})}function F(y,k){return{current:k,states:M(y,k)}}function D(y,k,O,x){r.IS_PRODUCTION||e.warn(!!y,"Attempting to update undefined context");var B=y&&O.reduce(function(V,j){var L,Q,ae=j.assignment,_e={state:x,action:j,_event:k},tt={};if(de(ae))tt=ae(V,k.data,_e);else try{for(var ne=t.__values(Object.keys(ae)),re=ne.next();!re.done;re=ne.next()){var nt=re.value,Tt=ae[nt];tt[nt]=de(Tt)?Tt(V,k.data,_e):Tt}}catch(Ps){L={error:Ps}}finally{try{re&&!re.done&&(Q=ne.return)&&Q.call(ne)}finally{if(L)throw L.error}}return Object.assign({},V,tt)},y);return B}e.warn=function(){},r.IS_PRODUCTION||(e.warn=function(y,k){var O=y instanceof Error?y:void 0;if(!(!O&&y)&&console!==void 0){var x=["Warning: ".concat(k)];O&&x.push(O),console.warn.apply(console,x)}});function G(y){return Array.isArray(y)}function de(y){return typeof y=="function"}function X(y){return typeof y=="string"}function At(y,k){if(!!y)return X(y)?{type:n.DEFAULT_GUARD_TYPE,name:y,predicate:k?k[y]:void 0}:de(y)?{type:n.DEFAULT_GUARD_TYPE,name:y.name,predicate:y}:y}function Et(y){try{return"subscribe"in y&&de(y.subscribe)}catch{return!1}}var pe=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),xe=(a={},a[pe]=function(){return this},a[Symbol.observable]=function(){return this},a);function Jt(y){return!!y&&"__xstatenode"in y}function tr(y){return!!y&&typeof y.send=="function"}var nr=function(){var y=0;return function(){return y++,y.toString(16)}}();function Zt(y,k){return X(y)||typeof y=="number"?t.__assign({type:y},k):y}function rr(y,k){if(!X(y)&&"$$type"in y&&y.$$type==="scxml")return y;var O=Zt(y);return t.__assign({name:O.type,data:O,$$type:"scxml",type:"external"},k)}function Qt(y,k){var O=b(k).map(function(x){return typeof x=="undefined"||typeof x=="string"||Jt(x)?{target:x,event:y}:t.__assign(t.__assign({},x),{event:y})});return O}function Xt(y){if(!(y===void 0||y===n.TARGETLESS_KEY))return C(y)}function It(y,k,O){if(!r.IS_PRODUCTION){var x=y.stack?" Stacktrace was '".concat(y.stack,"'"):"";if(y===k)console.error("Missing onError handler for invocation '".concat(O,"', error was '").concat(y,"'.").concat(x));else{var B=k.stack?" Stacktrace was '".concat(k.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(O,"'. ")+"Original error: '".concat(y,"'. ").concat(x," Current error is '").concat(k,"'.").concat(B))}}}function or(y,k,O,x,B){var V=y.options.guards,j={state:B,cond:k,_event:x};if(k.type===n.DEFAULT_GUARD_TYPE)return((V==null?void 0:V[k.name])||k.predicate)(O,x.data,j);var L=V==null?void 0:V[k.type];if(!L)throw new Error("Guard '".concat(k.type,"' is not implemented on machine '").concat(y.id,"'."));return L(O,x.data,j)}function P(y){return typeof y=="string"?{type:y}:y}function Se(y,k,O){var x=function(){},B=typeof y=="object",V=B?y:null;return{next:((B?y.next:y)||x).bind(V),error:((B?y.error:k)||x).bind(V),complete:((B?y.complete:O)||x).bind(V)}}function en(y,k){return"".concat(y,":invocation[").concat(k,"]")}e.createInvokeId=en,e.evaluateGuard=or,e.flatten=_,e.getActionType=c,e.getEventType=u,e.interopSymbols=xe,e.isActor=tr,e.isArray=G,e.isBehavior=I,e.isBuiltInEvent=A,e.isFunction=de,e.isMachine=Jt,e.isObservable=Et,e.isPromiseLike=$,e.isStateLike=d,e.isString=X,e.keys=i,e.mapContext=E,e.mapFilterValues=g,e.mapValues=p,e.matchesState=s,e.nestedPath=v,e.normalizeTarget=Xt,e.partition=N,e.path=m,e.pathToStateValue=f,e.pathsToStateValue=w,e.reportUnhandledExceptionOnInvocation=It,e.symbolObservable=pe,e.toArray=C,e.toArrayStrict=b,e.toEventObject=Zt,e.toGuard=At,e.toInvokeSource=P,e.toObserver=Se,e.toSCXMLEvent=rr,e.toStatePath=l,e.toStatePaths=S,e.toStateValue=h,e.toTransitionConfigArray=Qt,e.uniqueId=nr,e.updateContext=D,e.updateHistoryStates=M,e.updateHistoryValue=F})(Mi);Object.defineProperty(q,"__esModule",{value:!0});var Z=uo,Ce=co,he=fe,H=Mi,Fi=Gn,vy=H.toSCXMLEvent({type:he.init});function xr(e,t){return t&&t[e]||void 0}function Hn(e,t){var n;if(H.isString(e)||typeof e=="number"){var r=xr(e,t);H.isFunction(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(H.isFunction(e))n={type:e.name||e.toString(),exec:e};else{var r=xr(e.type,t);if(H.isFunction(r))n=Z.__assign(Z.__assign({},e),{exec:r});else if(r){var a=r.type||e.type;n=Z.__assign(Z.__assign(Z.__assign({},r),e),{type:a})}else n=e}return n}var Or=function(e,t){if(!e)return[];var n=H.isArray(e)?e:[e];return n.map(function(r){return Hn(r,t)})};function lo(e){var t=Hn(e);return Z.__assign(Z.__assign({id:H.isString(e)?e:t.id},t),{type:t.type})}function yy(e){return H.isString(e)?{type:he.raise,event:e}:Ct(e,{to:Ce.SpecialTargets.Internal})}function Li(e){return{type:he.raise,_event:H.toSCXMLEvent(e.event)}}function Ct(e,t){return{to:t?t.to:void 0,type:he.send,event:H.isFunction(e)?e:H.toEventObject(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:H.isFunction(e)?e.name:H.getEventType(e)}}function ji(e,t,n,r){var a={_event:n},i=H.toSCXMLEvent(H.isFunction(e.event)?e.event(t,n.data,a):e.event),s;if(H.isString(e.delay)){var u=r&&r[e.delay];s=H.isFunction(u)?u(t,n.data,a):u}else s=H.isFunction(e.delay)?e.delay(t,n.data,a):e.delay;var c=H.isFunction(e.to)?e.to(t,n.data,a):e.to;return Z.__assign(Z.__assign({},e),{to:c,_event:i,event:i.data,delay:s})}function fo(e,t){return Ct(e,Z.__assign(Z.__assign({},t),{to:Ce.SpecialTargets.Parent}))}function Sy(e,t,n){return Ct(t,Z.__assign(Z.__assign({},n),{to:e}))}function wy(){return fo(he.update)}function _y(e,t){return Ct(e,Z.__assign(Z.__assign({},t),{to:function(n,r,a){var i=a._event;return i.origin}}))}var by=function(e,t){return{context:e,event:t}};function Cy(e,t){return e===void 0&&(e=by),{type:he.log,label:t,expr:e}}var zi=function(e,t,n){return Z.__assign(Z.__assign({},e),{value:H.isString(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Ay=function(e){return{type:he.cancel,sendId:e}};function Ey(e){var t=lo(e);return{type:Ce.ActionTypes.Start,activity:t,exec:void 0}}function Iy(e){var t=H.isFunction(e)?e:lo(e);return{type:Ce.ActionTypes.Stop,activity:t,exec:void 0}}function Gi(e,t,n){var r=H.isFunction(e.activity)?e.activity(t,n.data):e.activity,a=typeof r=="string"?{id:r}:r,i={type:Ce.ActionTypes.Stop,activity:a};return i}var Ty=function(e){return{type:he.assign,assignment:e}};function $y(e){return typeof e=="object"&&"type"in e}function Py(e,t){var n=t?"#".concat(t):"";return"".concat(Ce.ActionTypes.After,"(").concat(e,")").concat(n)}function Ny(e,t){var n="".concat(Ce.ActionTypes.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function ky(e,t){var n="".concat(Ce.ActionTypes.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function xy(e,t){var n="".concat(Ce.ActionTypes.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Oy(e){return{type:Ce.ActionTypes.Pure,get:e}}function Uy(e,t){if(!Fi.IS_PRODUCTION&&(!e||typeof e=="function")){var n=e;e=function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var i=typeof n=="function"?n.apply(void 0,Z.__spreadArray([],Z.__read(r),!1)):n;if(!i)throw new Error("Attempted to forward event to undefined actor. This risks an infinite loop in the sender.");return i}}return Ct(function(r,a){return a},Z.__assign(Z.__assign({},t),{to:e}))}function Ry(e,t){return fo(function(n,r,a){return{type:he.error,data:H.isFunction(e)?e(n,r,a):e}},Z.__assign(Z.__assign({},t),{to:Ce.SpecialTargets.Parent}))}function By(e){return{type:Ce.ActionTypes.Choose,conds:e}}function Ur(e,t,n,r,a,i,s){s===void 0&&(s=!1);var u=Z.__read(s?[[],a]:H.partition(a,function(p){return p.type===he.assign}),2),c=u[0],l=u[1],d=c.length?H.updateContext(n,r,c,t):n,h=s?[n]:void 0,f=H.flatten(l.map(function(p){var g;switch(p.type){case he.raise:return Li(p);case he.send:var m=ji(p,d,r,e.options.delays);return Fi.IS_PRODUCTION||H.warn(!H.isString(p.delay)||typeof m.delay=="number","No delay reference for delay expression '".concat(p.delay,"' was found on machine '").concat(e.id,"'")),m.to!==Ce.SpecialTargets.Internal&&(i==null||i(m,d,r)),m;case he.log:{var v=zi(p,d,r);return i==null||i(v,d,r),v}case he.choose:{var S=p,w=(g=S.conds.find(function(F){var D=H.toGuard(F.cond,e.options.guards);return!D||H.evaluateGuard(e,D,d,r,i?void 0:t)}))===null||g===void 0?void 0:g.actions;if(!w)return[];var _=Z.__read(Ur(e,t,d,r,Or(H.toArray(w),e.options.actions),i,s),2),b=_[0],C=_[1];return d=C,h==null||h.push(d),b}case he.pure:{var w=p.get(d,r.data);if(!w)return[];var E=Z.__read(Ur(e,t,d,r,Or(H.toArray(w),e.options.actions),i,s),2),A=E[0],$=E[1];return d=$,h==null||h.push(d),A}case he.stop:{var v=Gi(p,d,r);return i==null||i(v,d,r),v}case he.assign:{d=H.updateContext(d,r,[p],i?void 0:t),h==null||h.push(d);break}default:var I=Hn(p,e.options.actions),N=I.exec;if(i)i(I,d,r);else if(N&&h){var M=h.length-1;I=Z.__assign(Z.__assign({},I),{exec:function(F){for(var D=[],G=1;G<arguments.length;G++)D[G-1]=arguments[G];N.apply(void 0,Z.__spreadArray([h[M]],Z.__read(D),!1))}})}return I}}).filter(function(p){return!!p}));return[f,d]}q.actionTypes=he;q.after=Py;var ce=q.assign=Ty;q.cancel=Ay;var Vy=q.choose=By;q.done=Ny;q.doneInvoke=ky;q.error=xy;q.escalate=Ry;q.forwardTo=Uy;q.getActionFunction=xr;q.initEvent=vy;q.isActionObject=$y;q.log=Cy;q.pure=Oy;q.raise=yy;q.resolveActions=Ur;q.resolveLog=zi;q.resolveRaise=Li;q.resolveSend=ji;q.resolveStop=Gi;q.respond=_y;q.send=Ct;q.sendParent=fo;q.sendTo=Sy;q.sendUpdate=wy;q.start=Ey;var Dy=q.stop=Iy;q.toActionObject=Hn;q.toActionObjects=Or;q.toActivityDefinition=lo;var dn=function(e){return Dy(e)},My=ce({attributeToVerify:function(e){}}),Fy=ce({challengeName:function(e){}}),Ly=ce({requiredAttributes:function(e){}}),po=ce({remoteError:function(e){return""}}),ho=ce({formValues:function(e){return{}}}),mo=ce({touched:function(e){return{}}}),jy=ce({unverifiedAttributes:function(e){}}),zy=ce({username:function(e){}}),go=ce({validationError:function(e){return{}}}),Gy=ce({challengeName:function(e,t){var n;return(n=t.data)===null||n===void 0?void 0:n.challengeName}}),Hy=ce({requiredAttributes:function(e,t){var n,r;return(r=(n=t.data)===null||n===void 0?void 0:n.challengeParam)===null||r===void 0?void 0:r.requiredAttributes}}),Ky=ce({redirectIntent:function(e){return"confirmPasswordReset"}}),qy=ce({redirectIntent:function(e){return"confirmSignUp"}}),Hi=ce({authAttributes:function(e,t){var n,r,a=e.loginMechanisms[0];return{username:(n=e.formValues[a])!==null&&n!==void 0?n:e.formValues.username,password:(r=e.formValues)===null||r===void 0?void 0:r.password}}}),vo=ce({validationError:function(e,t){return t.data}}),yo=ce({remoteError:function(e,t){var n;return t.data.name==="NoUserPoolError"?"Configuration error (see console) \u2013 please contact the administrator":((n=t.data)===null||n===void 0?void 0:n.message)||t.data}}),Wy=ce({unverifiedAttributes:function(e,t){return t.data.unverified}}),Ki=ce({user:function(e,t){return t.data.user||t.data}}),Yy=ce({username:function(e,t){var n=e.formValues,r=n.username,a=n.country_code;return a&&(r="".concat(a).concat(r)),r}}),Jy=ce({codeDeliveryDetails:function(e,t){return t.data.codeDeliveryDetails}}),Zy=ce({authAttributes:function(e,t){return{username:e.formValues.username}}}),So=ce({formValues:function(e,t){var n,r=t.data,a=r.name,i=r.value;return U(U({},e.formValues),((n={})[a]=i,n))}}),wo=ce({formValues:function(e,t){return U(U({},e.formValues),t.data)}}),_o=ce({touched:function(e,t){var n,r=t.data.name;return U(U({},e.touched),((n={})["".concat(r)]=!0,n))}}),qi=ce({formValues:function(e,t){var n,r,a=e.loginMechanisms[0],i=a===void 0?"username":a;if(!e.formValues.phone_number&&i!=="phone_number")return e.formValues;var s=e.formValues,u=e.country_code,c=s.phone_number?"phone_number":"username",l="".concat((r=s.country_code)!==null&&r!==void 0?r:u).concat(s[c]).replace(/[^A-Z0-9+]/gi,""),d=U(U({},s),((n={})[c]=l,n));return delete d.country_code,d}}),Qy=ke,Xy=zr,eS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tS=/^\w*$/;function nS(e,t){if(Qy(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Xy(e)?!0:tS.test(e)||!eS.test(e)||t!=null&&e in Object(t)}var bo=nS,Wi=qr,rS="Expected a function";function Co(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(rS);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var s=e.apply(this,r);return n.cache=i.set(a,s)||i,s};return n.cache=new(Co.Cache||Wi),n}Co.Cache=Wi;var oS=Co,aS=oS,iS=500;function sS(e){var t=aS(e,function(r){return n.size===iS&&n.clear(),r}),n=t.cache;return t}var uS=sS,cS=uS,lS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dS=/\\(\\)?/g,fS=cS(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lS,function(n,r,a,i){t.push(a?i.replace(dS,"$1"):r||n)}),t}),pS=fS,Aa=Ft,hS=Xa,mS=ke,gS=zr,vS=1/0,Ea=Aa?Aa.prototype:void 0,Ia=Ea?Ea.toString:void 0;function Yi(e){if(typeof e=="string")return e;if(mS(e))return hS(e,Yi)+"";if(gS(e))return Ia?Ia.call(e):"";var t=e+"";return t=="0"&&1/e==-vS?"-0":t}var yS=Yi,SS=yS;function wS(e){return e==null?"":SS(e)}var _S=wS,bS=ke,CS=bo,AS=pS,ES=_S;function IS(e,t){return bS(e)?e:CS(e,t)?[e]:AS(ES(e))}var Kn=IS,TS=zr,$S=1/0;function PS(e){if(typeof e=="string"||TS(e))return e;var t=e+"";return t=="0"&&1/e==-$S?"-0":t}var qt=PS,NS=Kn,kS=qt;function xS(e,t){t=NS(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[kS(t[n++])];return n&&n==r?e:void 0}var Ao=xS,OS=Ao;function US(e,t,n){var r=e==null?void 0:OS(e,t);return r===void 0?n:r}var Ge=US,RS=ri,BS=Ht,VS=On,DS=ke,MS=Lt,FS=Xe.exports,LS=Bn,jS=Rn,zS="[object Map]",GS="[object Set]",HS=Object.prototype,KS=HS.hasOwnProperty;function qS(e){if(e==null)return!0;if(MS(e)&&(DS(e)||typeof e=="string"||typeof e.splice=="function"||FS(e)||jS(e)||VS(e)))return!e.length;var t=BS(e);if(t==zS||t==GS)return!e.size;if(LS(e))return!RS(e).length;for(var n in e)if(KS.call(e,n))return!1;return!0}var Rr=qS,WS=Wr,YS=jt;function JS(e,t,n){(n!==void 0&&!YS(e[t],n)||n===void 0&&!(t in e))&&WS(e,t,n)}var Ji=JS;function ZS(e){return function(t,n,r){for(var a=-1,i=Object(t),s=r(t),u=s.length;u--;){var c=s[e?u:++a];if(n(i[c],c,i)===!1)break}return t}}var QS=ZS,XS=QS,ew=XS(),tw=ew,nw=Lt,rw=Ke;function ow(e){return rw(e)&&nw(e)}var aw=ow,iw=mt,sw=Zr,uw=Ke,cw="[object Object]",lw=Function.prototype,dw=Object.prototype,Zi=lw.toString,fw=dw.hasOwnProperty,pw=Zi.call(Object);function hw(e){if(!uw(e)||iw(e)!=cw)return!1;var t=sw(e);if(t===null)return!0;var n=fw.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Zi.call(n)==pw}var mw=hw;function gw(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Qi=gw,vw=zt,yw=Gt;function Sw(e){return vw(e,yw(e))}var ww=Sw,Ta=Ji,_w=bn.exports,bw=vi,Cw=ui,Aw=yi,$a=On,Pa=ke,Ew=aw,Iw=Xe.exports,Tw=Lr,$w=Be,Pw=mw,Nw=Rn,Na=Qi,kw=ww;function xw(e,t,n,r,a,i,s){var u=Na(e,n),c=Na(t,n),l=s.get(c);if(l){Ta(e,n,l);return}var d=i?i(u,c,n+"",e,t,s):void 0,h=d===void 0;if(h){var f=Pa(c),p=!f&&Iw(c),g=!f&&!p&&Nw(c);d=c,f||p||g?Pa(u)?d=u:Ew(u)?d=Cw(u):p?(h=!1,d=_w(c,!0)):g?(h=!1,d=bw(c,!0)):d=[]:Pw(c)||$a(c)?(d=u,$a(u)?d=kw(u):(!$w(u)||Tw(u))&&(d=Aw(c))):h=!1}h&&(s.set(c,d),a(d,c,r,i,s),s.delete(c)),Ta(e,n,d)}var Ow=xw,Uw=jn,Rw=Ji,Bw=tw,Vw=Ow,Dw=Be,Mw=Gt,Fw=Qi;function Xi(e,t,n,r,a){e!==t&&Bw(t,function(i,s){if(a||(a=new Uw),Dw(i))Vw(e,t,s,n,Xi,r,a);else{var u=r?r(Fw(e,s),i,s+"",e,t,a):void 0;u===void 0&&(u=i),Rw(e,s,u)}},Mw)}var Lw=Xi;function jw(e){return e}var Eo=jw;function zw(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Gw=zw,Hw=Gw,ka=Math.max;function Kw(e,t,n){return t=ka(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=ka(r.length-t,0),s=Array(i);++a<i;)s[a]=r[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=r[a];return u[t]=n(s),Hw(e,this,u)}}var qw=Kw;function Ww(e){return function(){return e}}var Yw=Ww,Jw=Yw,xa=si,Zw=Eo,Qw=xa?function(e,t){return xa(e,"toString",{configurable:!0,enumerable:!1,value:Jw(t),writable:!0})}:Zw,Xw=Qw,e1=800,t1=16,n1=Date.now;function r1(e){var t=0,n=0;return function(){var r=n1(),a=t1-(r-n);if(n=r,a>0){if(++t>=e1)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var o1=r1,a1=Xw,i1=o1,s1=i1(a1),u1=s1,c1=Eo,l1=qw,d1=u1;function f1(e,t){return d1(l1(e,t,c1),e+"")}var p1=f1,h1=jt,m1=Lt,g1=Un,v1=Be;function y1(e,t,n){if(!v1(n))return!1;var r=typeof t;return(r=="number"?m1(n)&&g1(t,n.length):r=="string"&&t in n)?h1(n[t],e):!1}var S1=y1,w1=p1,_1=S1;function b1(e){return w1(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,s&&_1(n[0],n[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var u=n[r];u&&e(t,u,r,i)}return t})}var C1=b1,A1=Lw,E1=C1,I1=E1(function(e,t,n){A1(e,t,n)}),T1=I1,Io=function(e,t,n,r){return Y(void 0,void 0,void 0,function(){var a,i;return J(this,function(s){switch(s.label){case 0:return[4,Promise.all(r.map(function(u){return u(e,t,n)}))];case 1:return a=s.sent(),i=T1.apply(void 0,Oe([{}],a,!1)),Rr(i)?[2,Promise.resolve()]:[2,Promise.reject(i)]}})})},$n={getAmplifyConfig:function(){return Y(this,void 0,void 0,function(){return J(this,function(e){return[2,le.Amplify.configure()]})})},getCurrentUser:function(){return Y(this,void 0,void 0,function(){return J(this,function(e){return[2,le.Auth.currentAuthenticatedUser()]})})},handleSignUp:function(e){return Y(this,void 0,void 0,function(){return J(this,function(t){return[2,le.Auth.signUp(e)]})})},handleSignIn:function(e){var t=e.username,n=e.password;return Y(this,void 0,void 0,function(){return J(this,function(r){return[2,le.Auth.signIn(t,n)]})})},handleConfirmSignIn:function(e){var t=e.user,n=e.code,r=e.mfaType;return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,le.Auth.confirmSignIn(t,n,r)]})})},handleConfirmSignUp:function(e){var t=e.username,n=e.code;return Y(this,void 0,void 0,function(){return J(this,function(r){switch(r.label){case 0:return[4,le.Auth.confirmSignUp(t,n)];case 1:return[2,r.sent()]}})})},handleForgotPasswordSubmit:function(e){var t=e.username,n=e.code,r=e.password;return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,le.Auth.forgotPasswordSubmit(t,n,r)]})})},handleForgotPassword:function(e){return Y(this,void 0,void 0,function(){return J(this,function(t){return[2,le.Auth.forgotPassword(e)]})})},validateCustomSignUp:function(e,t){return Y(this,void 0,void 0,function(){return J(this,function(n){return[2]})})},validateFormPassword:function(e,t,n){return Y(this,void 0,void 0,function(){var r,a,i,s;return J(this,function(u){return r=e.password,t.password&&n?(a=[],i=+(n==null?void 0:n.passwordPolicyMinLength),r.length<i&&a.push("Password must have at least ".concat(i," characters")),(s=n==null?void 0:n.passwordPolicyCharacters)==null||s.forEach(function(c){switch(c){case"REQUIRES_LOWERCASE":/[a-z]/.test(r)||a.push("Password must have lower case letters");break;case"REQUIRES_UPPERCASE":/[A-Z]/.test(r)||a.push("Password must have upper case letters");break;case"REQUIRES_NUMBERS":/[0-9]/.test(r)||a.push("Password must have numbers");break;case"REQUIRES_SYMBOLS":El(r)||a.push("Password must have special characters")}}),[2,a.length!==0?{password:a}:null]):[2,null]})})},validateConfirmPassword:function(e,t){return Y(this,void 0,void 0,function(){var n,r,a,i;return J(this,function(s){return n=e.password,r=e.confirm_password,a=t.confirm_password,i=t.password,n||r?(n||r)&&n!==r&&(a&&i||(n==null?void 0:n.length)>=6&&(r==null?void 0:r.length)>=6)?[2,{confirm_password:"Your passwords must match"}]:[2]:[2,null]})})},validatePreferredUsername:function(e,t){return Y(this,void 0,void 0,function(){return J(this,function(n){return[2]})})}};function $1(e){var t=e.services;return Kt({initial:"init",id:"signInActor",states:{init:{always:[{target:"autoSignIn",cond:"shouldAutoSignIn"},{target:"signIn"}]},signIn:{initial:"edit",exit:["clearFormValues","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onError:{actions:"setRemoteError"}}},submit:{tags:["pending"],entry:["parsePhoneNumber","clearError","sendUpdate"],invoke:{src:"signIn",onDone:[{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldForceChangePassword",actions:["setUser","setChallengeName","setRequiredAttributes"],target:"#signInActor.forceNewPassword"},{actions:"setUser",target:"verifying"}],onError:[{cond:"shouldRedirectToConfirmSignUp",actions:["setCredentials","setConfirmSignUpIntent"],target:"rejected"},{cond:"shouldRedirectToConfirmResetPassword",actions:["setUsernameAuthAttributes","setConfirmResetPasswordIntent"],target:"rejected"},{actions:"setRemoteError",target:"edit"}]}},verifying:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"checkVerifiedContact",onDone:[{cond:"shouldRequestVerification",target:"#signInActor.verifyUser",actions:"setUnverifiedAttributes"},{target:"resolved"}],onError:{actions:"setRemoteError",target:"edit"}}},resolved:{always:"#signInActor.resolved"},rejected:{always:"#signInActor.rejected"}}},autoSignIn:{initial:"submit",states:{submit:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"signIn",onDone:[{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldForceChangePassword",actions:["setUser","setChallengeName","setRequiredAttributes"],target:"#signInActor.forceNewPassword"},{actions:"setUser",target:"#signInActor.resolved"}],onError:[{cond:"shouldRedirectToConfirmSignUp",actions:["setCredentials","setConfirmSignUpIntent"],target:"#signInActor.rejected"},{cond:"shouldRedirectToConfirmResetPassword",actions:["setUsernameAuthAttributes","setConfirmResetPasswordIntent"],target:"#signInActor.rejected"},{actions:"setRemoteError",target:"#signInActor.signIn"}]}}}},confirmSignIn:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmSignIn",onDone:{target:"#signInActor.resolved",actions:["setUser","clearChallengeName","clearRequiredAttributes"]},onError:{target:"edit",actions:"setRemoteError"}}}}},forceNewPassword:{type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"idle",entry:"clearError",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"forceNewPassword",onDone:[{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{target:"resolved",actions:["setUser","setCredentials"]}],onError:{target:"idle",actions:"setRemoteError"}}},resolved:{type:"final",always:"#signInActor.resolved"}}}}},setupTOTP:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"verifyTotpToken",onDone:{actions:["clearChallengeName","clearRequiredAttributes"],target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},verifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"verifyUser",onDone:{target:"#signInActor.confirmVerifyUser"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmVerifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearUnverifiedAttributes","clearAttributeToVerify","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"confirmVerifyUser",onDone:{target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},resolved:{type:"final",data:function(n){return{user:n.user}}},rejected:{type:"final",data:function(n,r){return{intent:n.redirectIntent,authAttributes:n.authAttributes}}}}},{actions:{clearAttributeToVerify:My,clearChallengeName:Fy,clearRequiredAttributes:Ly,clearError:po,clearFormValues:ho,clearTouched:mo,clearUnverifiedAttributes:jy,clearValidationError:go,handleInput:So,handleSubmit:wo,handleBlur:_o,parsePhoneNumber:qi,setChallengeName:Gy,setConfirmResetPasswordIntent:Ky,setConfirmSignUpIntent:qy,setRequiredAttributes:Hy,setCredentials:Hi,setFieldErrors:vo,setRemoteError:yo,setUnverifiedAttributes:Wy,setUser:Ki,setUsernameAuthAttributes:Zy,sendUpdate:so()},guards:{shouldConfirmSignIn:function(n,r){var a=Ge(r,"data.challengeName");return[ze.SMS_MFA,ze.SOFTWARE_TOKEN_MFA].includes(a)},shouldAutoSignIn:function(n){return(n==null?void 0:n.intent)==="autoSignIn"},shouldRedirectToConfirmSignUp:function(n,r){return r.data.code==="UserNotConfirmedException"},shouldRedirectToConfirmResetPassword:function(n,r){return r.data.code==="PasswordResetRequiredException"},shouldSetupTOTP:function(n,r){return Ge(r,"data.challengeName")===ze.MFA_SETUP},shouldForceChangePassword:function(n,r){return Ge(r,"data.challengeName")===ze.NEW_PASSWORD_REQUIRED},shouldRequestVerification:function(n,r){var a=r.data,i=a.unverified,s=a.verified;return Rr(s)&&!Rr(i)}},services:{signIn:function(n){return Y(this,void 0,void 0,function(){var r,a,i,s,u,c,l;return J(this,function(d){switch(d.label){case 0:return r=n.authAttributes,a=r===void 0?{}:r,i=n.formValues,s=i===void 0?{}:i,u=U(U({},a),s),c=u.username,l=u.password,[4,t.handleSignIn({username:c,password:l})];case 1:return[2,d.sent()]}})})},confirmSignIn:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s,u;return J(this,function(c){switch(c.label){case 0:return a=n.challengeName,i=n.user,s=n.formValues.confirmation_code,a!==ze.SMS_MFA&&a!==ze.SOFTWARE_TOKEN_MFA||(u=a),[4,t.handleConfirmSignIn({user:i,code:s,mfaType:u})];case 1:return c.sent(),[4,le.Auth.currentAuthenticatedUser()];case 2:return[2,c.sent()]}})})},forceNewPassword:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s,u,c,l,d,h,f;return J(this,function(p){switch(p.label){case 0:a=n.user,i=n.formValues,s=i.password,i.confirm_password,u=i.phone_number,c=i.country_code,l=oi(i,["password","confirm_password","phone_number","country_code"]),u&&(d="".concat(c).concat(u).replace(/[^A-Z0-9+]/gi,""),l=U(U({},l),{phone_number:d})),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,le.Auth.completeNewPassword(a,s,l)];case 2:return(h=p.sent()).challengeName?[2,h]:[2,le.Auth.currentAuthenticatedUser()];case 3:return f=p.sent(),[2,Promise.reject(f)];case 4:return[2]}})})},verifyTotpToken:function(n,r){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(s){return a=n.user,i=n.formValues.confirmation_code,[2,le.Auth.verifyTotpToken(a,i)]})})},federatedSignIn:function(n,r){return Y(this,void 0,void 0,function(){var a;return J(this,function(i){switch(i.label){case 0:return a=r.data.provider,[4,le.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},checkVerifiedContact:function(n,r){return Y(this,void 0,void 0,function(){var a;return J(this,function(i){switch(i.label){case 0:return a=n.user,[4,le.Auth.verifiedContact(a)];case 1:return[2,i.sent()]}})})},verifyUser:function(n,r){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(s){switch(s.label){case 0:return a=n.formValues.unverifiedAttr,[4,le.Auth.verifyCurrentUserAttribute(a)];case 1:return i=s.sent(),n.attributeToVerify=a,[2,i]}})})},confirmVerifyUser:function(n,r){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(s){switch(s.label){case 0:return a=n.attributeToVerify,i=n.formValues.confirmation_code,[4,le.Auth.verifyCurrentUserAttributeSubmit(a,i)];case 1:return[2,s.sent()]}})})},validateFields:function(n,r){return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,Io(n.formValues,n.touched,n.passwordSettings,[$n.validateConfirmPassword])]})})}}})}var P1=Kt({initial:"pending",id:"signOutActor",states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:function(){return le.Auth.signOut()}}});function N1(e){var t=e.services;return Kt({id:"resetPasswordActor",initial:"init",states:{init:{always:[{target:"confirmResetPassword",cond:"shouldAutoConfirmReset"},{target:"resetPassword"}]},resetPassword:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:["pending"],entry:["sendUpdate","setUsername","clearError"],invoke:{src:"resetPassword",onDone:{target:"#resetPasswordActor.confirmResetPassword"},onError:{actions:["setRemoteError"],target:"edit"}}}}},confirmResetPassword:{type:"parallel",exit:["clearFormValues","clearError","clearUsername","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"resetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmResetPassword",onDone:{actions:"clearUsername",target:"#resetPasswordActor.resolved"},onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final"}}},{actions:{clearError:po,clearFormValues:ho,clearTouched:mo,clearUsername:zy,clearValidationError:go,handleInput:So,handleSubmit:wo,handleBlur:_o,setFieldErrors:vo,setRemoteError:yo,setUsername:Yy,sendUpdate:so()},guards:{shouldAutoConfirmReset:function(n,r){return!(!n.intent||n.intent!=="confirmPasswordReset")}},services:{resetPassword:function(n){return Y(this,void 0,void 0,function(){var r;return J(this,function(a){return r=n.username,[2,t.handleForgotPassword(r)]})})},confirmResetPassword:function(n){return Y(this,void 0,void 0,function(){var r,a,i,s;return J(this,function(u){return r=n.username,a=n.formValues,i=a.confirmation_code,s=a.password,[2,t.handleForgotPasswordSubmit({username:r,code:i,password:s})]})})},validateFields:function(n,r){return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,Io(n.formValues,n.touched,n.passwordSettings,[$n.validateConfirmPassword])]})})}}})}var k1="__lodash_hash_undefined__";function x1(e){return this.__data__.set(e,k1),this}var O1=x1;function U1(e){return this.__data__.has(e)}var R1=U1,B1=qr,V1=O1,D1=R1;function Pn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new B1;++t<n;)this.add(e[t])}Pn.prototype.add=Pn.prototype.push=V1;Pn.prototype.has=D1;var M1=Pn;function F1(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var L1=F1;function j1(e,t){return e.has(t)}var z1=j1,G1=M1,H1=L1,K1=z1,q1=1,W1=2;function Y1(e,t,n,r,a,i){var s=n&q1,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=i.get(e),d=i.get(t);if(l&&d)return l==t&&d==e;var h=-1,f=!0,p=n&W1?new G1:void 0;for(i.set(e,t),i.set(t,e);++h<u;){var g=e[h],m=t[h];if(r)var v=s?r(m,g,h,t,e,i):r(g,m,h,e,t,i);if(v!==void 0){if(v)continue;f=!1;break}if(p){if(!H1(t,function(S,w){if(!K1(p,w)&&(g===S||a(g,S,n,r,i)))return p.push(w)})){f=!1;break}}else if(!(g===m||a(g,m,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var es=Y1;function J1(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var Z1=J1;function Q1(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var X1=Q1,Oa=Ft,Ua=gi,e_=jt,t_=es,n_=Z1,r_=X1,o_=1,a_=2,i_="[object Boolean]",s_="[object Date]",u_="[object Error]",c_="[object Map]",l_="[object Number]",d_="[object RegExp]",f_="[object Set]",p_="[object String]",h_="[object Symbol]",m_="[object ArrayBuffer]",g_="[object DataView]",Ra=Oa?Oa.prototype:void 0,cr=Ra?Ra.valueOf:void 0;function v_(e,t,n,r,a,i,s){switch(n){case g_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case m_:return!(e.byteLength!=t.byteLength||!i(new Ua(e),new Ua(t)));case i_:case s_:case l_:return e_(+e,+t);case u_:return e.name==t.name&&e.message==t.message;case d_:case p_:return e==t+"";case c_:var u=n_;case f_:var c=r&o_;if(u||(u=r_),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;r|=a_,s.set(e,t);var d=t_(u(e),u(t),r,a,i,s);return s.delete(e),d;case h_:if(cr)return cr.call(e)==cr.call(t)}return!1}var y_=v_,Ba=pi,S_=1,w_=Object.prototype,__=w_.hasOwnProperty;function b_(e,t,n,r,a,i){var s=n&S_,u=Ba(e),c=u.length,l=Ba(t),d=l.length;if(c!=d&&!s)return!1;for(var h=c;h--;){var f=u[h];if(!(s?f in t:__.call(t,f)))return!1}var p=i.get(e),g=i.get(t);if(p&&g)return p==t&&g==e;var m=!0;i.set(e,t),i.set(t,e);for(var v=s;++h<c;){f=u[h];var S=e[f],w=t[f];if(r)var _=s?r(w,S,f,t,e,i):r(S,w,f,e,t,i);if(!(_===void 0?S===w||a(S,w,n,r,i):_)){m=!1;break}v||(v=f=="constructor")}if(m&&!v){var b=e.constructor,C=t.constructor;b!=C&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof C=="function"&&C instanceof C)&&(m=!1)}return i.delete(e),i.delete(t),m}var C_=b_,lr=jn,A_=es,E_=y_,I_=C_,Va=Ht,Da=ke,Ma=Xe.exports,T_=Rn,$_=1,Fa="[object Arguments]",La="[object Array]",fn="[object Object]",P_=Object.prototype,ja=P_.hasOwnProperty;function N_(e,t,n,r,a,i){var s=Da(e),u=Da(t),c=s?La:Va(e),l=u?La:Va(t);c=c==Fa?fn:c,l=l==Fa?fn:l;var d=c==fn,h=l==fn,f=c==l;if(f&&Ma(e)){if(!Ma(t))return!1;s=!0,d=!1}if(f&&!d)return i||(i=new lr),s||T_(e)?A_(e,t,n,r,a,i):E_(e,t,c,n,r,a,i);if(!(n&$_)){var p=d&&ja.call(e,"__wrapped__"),g=h&&ja.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,v=g?t.value():t;return i||(i=new lr),a(m,v,n,r,i)}}return f?(i||(i=new lr),I_(e,t,n,r,a,i)):!1}var k_=N_,x_=k_,za=Ke;function ts(e,t,n,r,a){return e===t?!0:e==null||t==null||!za(e)&&!za(t)?e!==e&&t!==t:x_(e,t,n,r,ts,a)}var ns=ts,O_=jn,U_=ns,R_=1,B_=2;function V_(e,t,n,r){var a=n.length,i=a,s=!r;if(e==null)return!i;for(e=Object(e);a--;){var u=n[a];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<i;){u=n[a];var c=u[0],l=e[c],d=u[1];if(s&&u[2]){if(l===void 0&&!(c in e))return!1}else{var h=new O_;if(r)var f=r(l,d,c,e,t,h);if(!(f===void 0?U_(d,l,R_|B_,r,h):f))return!1}}return!0}var D_=V_,M_=Be;function F_(e){return e===e&&!M_(e)}var rs=F_,L_=rs,j_=Vn;function z_(e){for(var t=j_(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,L_(a)]}return t}var G_=z_;function H_(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var os=H_,K_=D_,q_=G_,W_=os;function Y_(e){var t=q_(e);return t.length==1&&t[0][2]?W_(t[0][0],t[0][1]):function(n){return n===e||K_(n,e,t)}}var J_=Y_;function Z_(e,t){return e!=null&&t in Object(e)}var Q_=Z_,X_=Kn,eb=On,tb=ke,nb=Un,rb=jr,ob=qt;function ab(e,t,n){t=X_(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var s=ob(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&rb(a)&&nb(s,a)&&(tb(e)||eb(e)))}var ib=ab,sb=Q_,ub=ib;function cb(e,t){return e!=null&&ub(e,t,sb)}var lb=cb,db=ns,fb=Ge,pb=lb,hb=bo,mb=rs,gb=os,vb=qt,yb=1,Sb=2;function wb(e,t){return hb(e)&&mb(t)?gb(vb(e),t):function(n){var r=fb(n,e);return r===void 0&&r===t?pb(n,e):db(t,r,yb|Sb)}}var _b=wb;function bb(e){return function(t){return t==null?void 0:t[e]}}var Cb=bb,Ab=Ao;function Eb(e){return function(t){return Ab(t,e)}}var Ib=Eb,Tb=Cb,$b=Ib,Pb=bo,Nb=qt;function kb(e){return Pb(e)?Tb(Nb(e)):$b(e)}var xb=kb,Ob=J_,Ub=_b,Rb=Eo,Bb=ke,Vb=xb;function Db(e){return typeof e=="function"?e:e==null?Rb:typeof e=="object"?Bb(e)?Ub(e[0],e[1]):Ob(e):Vb(e)}var Mb=Db,Fb=Yr,Lb=Kn,jb=Un,Ga=Be,zb=qt;function Gb(e,t,n,r){if(!Ga(e))return e;t=Lb(t,e);for(var a=-1,i=t.length,s=i-1,u=e;u!=null&&++a<i;){var c=zb(t[a]),l=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=s){var d=u[c];l=r?r(d,c,u):void 0,l===void 0&&(l=Ga(d)?d:jb(t[a+1])?[]:{})}Fb(u,c,l),u=u[c]}return e}var Hb=Gb,Kb=Ao,qb=Hb,Wb=Kn;function Yb(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var s=t[r],u=Kb(e,s);n(u,s)&&qb(i,Wb(s,e),u)}return i}var Jb=Yb,Zb=Xa,Qb=Mb,Xb=Jb,e0=hi;function t0(e,t){if(e==null)return{};var n=Zb(e0(e),function(r){return[r]});return t=Qb(t),Xb(e,n,function(r,a){return t(r,a[0])})}var n0=t0;function r0(e){var t=e.services;return Kt({id:"signUpActor",initial:"init",states:{init:{always:[{target:"confirmSignUp",cond:"shouldInitConfirmSignUp"},{target:"signUp"}]},signUp:{type:"parallel",exit:["clearError","clearFormValues","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateSignUp",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onDone:"#signUpActor.resolved",onError:{actions:"setRemoteError"}}},validate:{entry:"sendUpdate",invoke:{src:"validateSignUp",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["parsePhoneNumber","sendUpdate","clearError"],invoke:{src:"signUp",onDone:[{cond:"shouldSkipConfirm",target:"skipConfirm",actions:["setUser","setCredentials"]},{target:"resolved",actions:["setUser","setCredentials","setCodeDeliveryDetails"]}],onError:{target:"idle",actions:"setRemoteError"}}},skipConfirm:{always:{target:"#signUpActor.resolved",actions:"setAutoSignInIntent"}},resolved:{type:"final",always:"#signUpActor.confirmSignUp"}}}}},confirmSignUp:{initial:"edit",states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"resend"}},resend:{tags:["pending"],entry:"sendUpdate",invoke:{src:"resendConfirmationCode",onDone:{target:"edit"},onError:[{target:"#signUpActor.resolved",actions:"setAutoSignInIntent",cond:"isUserAlreadyConfirmed"},{target:"edit",actions:"setRemoteError"}]}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"confirmSignUp",onDone:{target:"#signUpActor.resolved",actions:"setAutoSignInIntent"},onError:{target:"edit",actions:"setRemoteError"}}}}},resolved:{type:"final",data:function(n,r){var a=n.authAttributes,i=a.username,s=a.password;return{user:Ge(r,"data.user")||n.user,authAttributes:{username:i,password:s},intent:n.intent}}}}},{guards:{isUserAlreadyConfirmed:function(n,r){return r.data.message==="User is already confirmed."},shouldInitConfirmSignUp:function(n){return n.intent&&n.intent==="confirmSignUp"},shouldSkipConfirm:function(n,r){return r.data.userConfirmed}},actions:{clearError:po,clearFormValues:ho,clearTouched:mo,clearValidationError:go,handleInput:So,handleSubmit:wo,handleBlur:_o,parsePhoneNumber:qi,setCredentials:Hi,setFieldErrors:vo,setRemoteError:yo,setCodeDeliveryDetails:Jy,setUser:Ki,sendUpdate:so(),setAutoSignInIntent:Ie({intent:function(n){return"autoSignIn"}})},services:{confirmSignUp:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s,u,c;return J(this,function(l){switch(l.label){case 0:return a=n.user,i=n.authAttributes,s=n.formValues,u=s.confirmation_code,c=Ge(a,"username")||Ge(i,"username"),[4,t.handleConfirmSignUp({username:c,code:u})];case 1:return[2,l.sent()]}})})},resendConfirmationCode:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s;return J(this,function(u){return a=n.user,i=n.authAttributes,s=Ge(a,"username")||Ge(i,"username"),[2,le.Auth.resendSignUp(s)]})})},federatedSignIn:function(n,r){return Y(this,void 0,void 0,function(){var a;return J(this,function(i){switch(i.label){case 0:return a=r.data.provider,[4,le.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},signUp:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s,u,c,l,d;return J(this,function(h){switch(h.label){case 0:return a=n.formValues,i=n.loginMechanisms,s=i[0],c=(u=a)[s===void 0?"username":s],l=u.password,d=n0(a,function(f,p){switch(p){case"address":case"birthdate":case"email":case"family_name":case"gender":case"given_name":case"locale":case"middle_name":case"name":case"nickname":case"phone_number":case"picture":case"preferred_username":case"profile":case"updated_at":case"website":case"zoneinfo":return!0;default:return p.startsWith("custom:")}}),[4,t.handleSignUp({username:c,password:l,attributes:d})];case 1:return[2,h.sent()]}})})},validateSignUp:function(n,r){return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,Io(n.formValues,n.touched,n.passwordSettings,[t.validateFormPassword,t.validateConfirmPassword,t.validatePreferredUsername,t.validateCustomSignUp])]})})}}})}function o0(){return Kt({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:$n,actorRef:void 0,hasSetup:!1},states:{idle:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"authenticated"},onError:{target:"setup"}}},setup:{initial:"waitConfig",states:{waitConfig:{on:{INIT:{actions:["configure","setHasSetup"],target:"applyConfig"}}},applyConfig:{invoke:{src:"getAmplifyConfig",onDone:{actions:"applyAmplifyConfig",target:"goToInitialState"}}},goToInitialState:{always:[{target:"#authenticator.signUp",cond:"isInitialStateSignUp"},{target:"#authenticator.resetPassword",cond:"isInitialStateResetPassword"},{target:"#authenticator.signIn"}]}}},signIn:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignInActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignInActor"}},on:{SIGN_UP:"signUp",RESET_PASSWORD:"resetPassword","done.invoke.signInActor":[{target:"signUp",actions:"setActorDoneData",cond:"shouldRedirectToSignUp"},{target:"resetPassword",actions:"setActorDoneData",cond:"shouldRedirectToResetPassword"},{target:"authenticated",actions:"setActorDoneData"}]}},signUp:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignUpActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignUpActor"},autoSignIn:{invoke:{src:"getCurrentUser",onDone:"#authenticator.authenticated",onError:"#authenticator.setup.goToInitialState"}}},on:{SIGN_IN:"signIn","done.invoke.signUpActor":{target:"#authenticator.signIn",actions:"setActorDoneData",cond:"shouldAutoSignIn"}}},resetPassword:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnResetPasswordActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopResetPasswordActor"}},on:{SIGN_IN:"signIn","done.invoke.resetPasswordActor":{target:"signIn",actions:"setActorDoneData"}}},signOut:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignOutActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:["stopSignOutActor","clearUser"]}},on:{"done.invoke.signOutActor":[{target:"setup",cond:"shouldSetup"},{target:"setup.goToInitialState"}]}},authenticated:{initial:"idle",states:{idle:{on:{TOKEN_REFRESH:"refreshUser"}},refreshUser:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"idle"},onError:{target:"#authenticator.signOut"}}}},on:{SIGN_OUT:"signOut"}}},on:{CHANGE:{actions:"forwardToActor"},BLUR:{actions:"forwardToActor"},SUBMIT:{actions:"forwardToActor"},FEDERATED_SIGN_IN:{actions:"forwardToActor"},RESEND:{actions:"forwardToActor"},SIGN_IN:{actions:"forwardToActor"},SKIP:{actions:"forwardToActor"}}},{actions:{forwardToActor:Vy([{cond:"hasActor",actions:qv(function(e){return e.actorRef})}]),setUser:Ie({user:function(e,t){return t.data}}),setActorDoneData:Ie({actorDoneData:function(e,t){var n,r;return{authAttributes:U({},(n=t.data)===null||n===void 0?void 0:n.authAttributes),intent:(r=t.data)===null||r===void 0?void 0:r.intent}},user:function(e,t){var n;return(n=t.data)===null||n===void 0?void 0:n.user}}),clearUser:Ie({user:void 0}),clearActorDoneData:Ie({actorDoneData:void 0}),applyAmplifyConfig:Ie({config:function(e,t){var n,r,a,i,s,u,c,l,d,h=(r=(n=t.data.aws_cognito_username_attributes)===null||n===void 0?void 0:n.map(function(C){return C.toLowerCase()}))!==null&&r!==void 0?r:[],f=(i=(a=t.data.aws_cognito_verification_mechanisms)===null||a===void 0?void 0:a.map(function(C){return C.toLowerCase()}))!==null&&i!==void 0?i:[],p=(u=(s=t.data.aws_cognito_signup_attributes)===null||s===void 0?void 0:s.map(function(C){return C.toLowerCase()}))!==null&&u!==void 0?u:[],g=(l=(c=t.data.aws_cognito_social_providers)===null||c===void 0?void 0:c.map(function(C){return C.toLowerCase()}))!==null&&l!==void 0?l:[],m=t.data.aws_cognito_password_protection_settings||{};h.length===0&&h.push("username");var v=e.config,S=v.loginMechanisms,w=v.signUpAttributes,_=v.socialProviders,b=v.initialState;return{loginMechanisms:S!=null?S:h,formFields:(d=a0(v.formFields))!==null&&d!==void 0?d:{},passwordSettings:m,signUpAttributes:w!=null?w:Array.from(new Set(Oe(Oe([],f,!0),p,!0))),socialProviders:_!=null?_:g.sort(),initialState:b}}}),spawnSignInActor:Ie({actorRef:function(e,t){var n,r,a,i,s,u,c=e.services,l=$1({services:c}).withContext({authAttributes:(r=(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes)!==null&&r!==void 0?r:{},user:e.user,intent:(a=e.actorDoneData)===null||a===void 0?void 0:a.intent,country_code:"+1",formValues:{},touched:{},validationError:{},loginMechanisms:(i=e.config)===null||i===void 0?void 0:i.loginMechanisms,socialProviders:(s=e.config)===null||s===void 0?void 0:s.socialProviders,formFields:(u=e.config)===null||u===void 0?void 0:u.formFields});return un(l,{name:"signInActor"})}}),spawnSignUpActor:Ie({actorRef:function(e,t){var n,r,a,i,s,u,c,l=e.services,d=r0({services:l}).withContext({authAttributes:(r=(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes)!==null&&r!==void 0?r:{},country_code:"+1",intent:(a=e.actorDoneData)===null||a===void 0?void 0:a.intent,formValues:{},touched:{},validationError:{},loginMechanisms:(i=e.config)===null||i===void 0?void 0:i.loginMechanisms,socialProviders:(s=e.config)===null||s===void 0?void 0:s.socialProviders,formFields:(u=e.config)===null||u===void 0?void 0:u.formFields,passwordSettings:(c=e.config)===null||c===void 0?void 0:c.passwordSettings});return un(d,{name:"signUpActor"})}}),spawnResetPasswordActor:Ie({actorRef:function(e,t){var n,r,a,i,s=e.services,u=N1({services:s}).withContext({formValues:{},touched:{},intent:(n=e.actorDoneData)===null||n===void 0?void 0:n.intent,username:(a=(r=e.actorDoneData)===null||r===void 0?void 0:r.authAttributes)===null||a===void 0?void 0:a.username,formFields:(i=e.config)===null||i===void 0?void 0:i.formFields,validationError:{}});return un(u,{name:"resetPasswordActor"})}}),spawnSignOutActor:Ie({actorRef:function(e){var t=P1.withContext({user:e.user});return un(t,{name:"signOutActor"})}}),stopSignInActor:dn("signInActor"),stopSignUpActor:dn("signUpActor"),stopResetPasswordActor:dn("resetPasswordActor"),stopSignOutActor:dn("signOutActor"),configure:Ie(function(e,t){var n=t.data,r=n.services,a=oi(n,["services"]);return{services:U(U({},$n),r),config:a}}),setHasSetup:Ie({hasSetup:!0})},guards:{isInitialStateSignUp:function(e){return e.config.initialState==="signUp"},isInitialStateResetPassword:function(e){return e.config.initialState==="resetPassword"},shouldRedirectToSignUp:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="confirmSignUp"},shouldRedirectToResetPassword:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="confirmPasswordReset"},shouldAutoSignIn:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="autoSignIn"},shouldSetup:function(e){return e.hasSetup===!1},hasActor:function(e){return!!e.actorRef}},services:{getCurrentUser:function(e,t){return e.services.getCurrentUser()},getAmplifyConfig:function(e,t){return e.services.getAmplifyConfig()}}})}function a0(e){return e&&Object.keys(e).forEach(function(t){Object.keys(e[t]).forEach(function(n){var r=e[t][n];r.required=r.isRequired})}),e}const i0={key:0,class:"amplify-flex amplify-alert amplify-alert--error amplify-authenticator__base","data-variation":"error",role:"alert"},s0={class:"amplify-flex amplify-authenticator__icon-wrapper"},u0=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor"},[o.createElementVNode("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})],-1),c0=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor"},[o.createElementVNode("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})],-1),De={__name:"base-alert",setup(e){const t=o.ref(!0),n=R("Dismiss alert");function r(){t.value=!1}return(a,i)=>{const s=we;return t.value?(o.openBlock(),o.createElementBlock("div",i0,[o.createElementVNode("div",s0,[u0,o.createElementVNode("div",null,[o.renderSlot(a.$slots,"default")])]),o.createVNode(s,{class:"amplify-field-group__control amplify-alert__dismiss","aria-label":o.unref(n),fullwidth:!1,variation:"link",type:"button",onClick:r},{default:o.withCtx(()=>[c0]),_:1},8,["aria-label"])])):o.createCommentVNode("",!0)}}};var qn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const l0={};function d0(e,t){return o.openBlock(),o.createElementBlock("div",null,[o.renderSlot(e.$slots,"default")])}var ye=qn(l0,[["render",d0]]);const Me=o.defineComponent({__name:"base-form",setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"formt",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("form",o.mergeProps({"data-amplify-form":""},n.$attrs),[o.renderSlot(n.$slots,"default")],16)])}}),Fe=o.defineComponent({__name:"base-footer",setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"footert",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("footer",o.normalizeProps(o.guardReactiveProps(n.$attrs)),[o.renderSlot(n.$slots,"default")],16)])}});function f0(e){return o.getCurrentScope()?(o.onScopeDispose(e),!0):!1}function Te(e){let t=0,n,r;const a=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...i)=>(t+=1,n||(r=o.effectScope(!0),n=r.run(()=>e(...i))),f0(a),n)}var Nn=globalThis&&globalThis.__assign||function(){return Nn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Nn.apply(this,arguments)},p0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function h0(e,t,n){if(typeof e=="object")return e;var r=function(){};return{next:e,error:t||r,complete:n||r}}function m0(e,t,n){t===void 0&&(t={});var r=typeof e=="function"?e():e,a=t.context,i=t.guards,s=t.actions,u=t.activities,c=t.services,l=t.delays,d=t.state,h=p0(t,["context","guards","actions","activities","services","delays","state"]),f={context:a,guards:i,actions:s,activities:u,services:c,delays:l},p=r.withConfig(f,function(){return Nn(Nn({},r.context),a)}),g=Di(p,h).start(d?Ne.create(d):void 0),m;return o.onMounted(function(){n&&(m=g.subscribe(h0(n)))}),o.onBeforeUnmount(function(){g.stop(),m==null||m.unsubscribe()}),g}function g0(e){return"state"in e}var Ha=function(){};function v0(e){return"getSnapshot"in e?e.getSnapshot():g0(e)?e.state:void 0}function as(e,t){t===void 0&&(t=v0);var n=o.isRef(e)?e:o.shallowRef(e),r=o.shallowRef(t(n.value)),a=function(i){n.value.send(i)};return o.watch(n,function(i,s,u){r.value=t(i);var c=i.subscribe({next:function(l){return r.value=l},error:Ha,complete:Ha}).unsubscribe;u(function(){return c()})},{immediate:!0}),{state:r,send:a}}const is={error:"",hasValidationErrors:!1,isPending:!1,route:"",authStatus:"",user:"",validationErrors:[""],codeDeliveryDetails:{val:"",DeliveryMedium:""},change:e=>null,updateForm:e=>null,updateBlur:e=>null,resend:e=>null,resendCode:e=>null,signOut:e=>null,federatedSignIn:e=>null,toFederatedSignIn:e=>null,resetPassword:e=>null,toResetPassword:e=>null,signIn:e=>null,toSignIn:e=>null,signUp:e=>null,toSignUp:e=>null,skip:e=>null,skipVerification:e=>null,submit:e=>null,submitForm:e=>null},Br=o.ref(),_n=o.reactive({...is,send:"",state:""}),$e=e=>(e&&(Br.value=e),as(Br.value)),y0=()=>(Ka(),o.watchEffect(()=>{Ka()}),_n),Ae=y0;function Ka(){if(!Br.value)return;const{state:e,send:t}=$e(),n=ai({send:t,state:e.value});for(const r of Object.keys(is))_n[r]=n[r];_n.send=t,_n.state=e}const pn=o.defineComponent({__name:"federated-sign-in-button",props:{provider:String},setup(e){const t=e,{provider:n}=o.toRefs(t),{send:r}=$e(),a=()=>{r({type:"FEDERATED_SIGN_IN",data:{provider:n==null?void 0:n.value}})};return(i,s)=>{const u=ye,c=we;return o.openBlock(),o.createBlock(c,{class:"amplify-field-group__control federated-sign-in-button amplify-authenticator__font",fullwidth:!1,style:{"font-weight":"normal"},type:"button",onClick:a},{default:o.withCtx(()=>[o.createVNode(u,{class:"amplify-flex federated-sign-in-button-row amplify-authenticator__sign-in-button-wrapper"},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"default")]),_:3})]),_:3})}}}),S0=o.createElementVNode("svg",{"aria-label":"Amazon icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 248 268"},[o.createElementVNode("path",{d:"M139.056521,147.024612 C133.548808,156.744524 124.782731,162.726926 115.087401,162.726926 C101.790721,162.726926 93.9937779,152.612964 93.9937779,137.68681 C93.9937779,108.224571 120.447551,102.879017 145.533369,102.879017 L145.533369,110.365976 C145.533369,123.831358 145.876354,135.063787 139.056521,147.024612 M207.206992,162.579655 C209.400505,165.692256 209.887066,169.437725 207.063416,171.770186 C199.996315,177.653081 187.429476,188.590967 180.513926,194.716661 L180.46208,194.621133 C178.176838,196.663031 174.862638,196.810303 172.27828,195.445057 C160.780281,185.9162 158.686473,181.494078 152.405048,172.403055 C133.405233,191.751331 119.909143,197.534719 95.309886,197.534719 C66.1281801,197.534719 43.4791563,179.599451 43.4791563,143.669212 C43.4791563,115.616003 58.6782107,96.5105248 80.4019706,87.1727225 C99.2063636,78.9096034 125.464714,77.4528107 145.533369,75.1641337 L145.533369,70.694248 C145.533369,62.4749122 146.167493,52.7510201 141.297893,45.6541312 C137.110277,39.2856386 129.018206,36.6586354 121.859376,36.6586354 C108.658413,36.6586354 96.9171331,43.4171982 94.0416364,57.4199213 C93.4593582,60.532522 91.1701278,63.5933787 88.003492,63.7406501 L54.4387473,60.1424518 C51.6150972,59.5095829 48.4484614,57.2248862 49.2740201,52.8982915 C56.9712583,12.2553679 93.7983558,0 126.732964,0 C143.587124,0 165.606011,4.47386604 178.902691,17.2148315 C195.760839,32.917146 194.149604,53.8694866 194.149604,76.6726704 L194.149604,130.542157 C194.149604,146.734049 200.87372,153.830938 207.206992,162.579655 Z M233.826346,208.038962 C230.467669,203.683255 211.550709,205.9821 203.056405,206.998432 C200.470662,207.321077 200.076227,205.042397 202.406981,203.404973 C217.475208,192.664928 242.201125,195.766353 245.081698,199.363845 C247.966255,202.981502 244.336653,228.071183 230.172839,240.049379 C228.001452,241.888455 225.929671,240.904388 226.89783,238.468418 C230.077218,230.430525 237.204944,212.418868 233.826346,208.038962 Z M126.768855,264 C74.0234043,264 42.0764048,241.955028 17.7852554,217.541992 C12.9733903,212.705982 6.71799208,206.295994 3.31151296,200.690918 C1.90227474,198.372135 5.59096074,195.021875 8.0442063,196.84375 C38.2390146,219.267578 82.1011654,239.538304 125.529506,239.538304 C154.819967,239.538304 191.046475,227.469543 220.66851,214.867659 C225.146771,212.966167 225.146771,219.180222 224.511585,221.060516 C224.183264,222.03242 209.514625,236.221149 189.247207,247.047411 C170.304273,257.166172 146.397132,264 126.768855,264 Z",fill:"#FF9900"})],-1),w0={class:"amplify-text amplify-authenticator__federated-text"},_0=o.createElementVNode("svg",{"aria-label":"Apple icon",class:"amplify-icon federated-sign-in-icon",fill:"#000",preserveAspectRatio:"xMidYMid",stroke:"#000",strokeWidth:"0",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"})],-1),b0={class:"amplify-text amplify-authenticator__federated-text"},C0=o.createElementVNode("svg",{"aria-label":"Facebook icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 279 538"},[o.createElementVNode("path",{d:"M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z",fill:"#1877F2"})],-1),A0={class:"amplify-text amplify-authenticator__federated-text"},E0=o.createElementVNode("svg",{"aria-label":"Google icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},[o.createElementVNode("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),o.createElementVNode("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),o.createElementVNode("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),o.createElementVNode("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"})],-1),I0={class:"amplify-text amplify-authenticator__federated-text"},T0=o.createElementVNode("hr",{class:"amplify-divider amplify-divider--label amplify-divider--small","aria-orientation":"horizontal","data-size":"small","data-label":"or"},null,-1),Wn=o.defineComponent({__name:"federated-sign-in",setup(e){var S;const{state:t}=$e(),n=Te(Ae),{route:r}=n(),{value:{context:a}}=t,i=(S=a==null?void 0:a.config)==null?void 0:S.socialProviders,s=i==null?void 0:i.includes("amazon"),u=i==null?void 0:i.includes("apple"),c=i==null?void 0:i.includes("facebook"),l=i==null?void 0:i.includes("google"),d=c||l||s||u,h=r==="signUp"?"Up":"In",f=o.computed(()=>gr),p=o.computed(()=>R(`Sign ${h} with Amazon`)),g=o.computed(()=>R(`Sign ${h} with Apple`)),m=o.computed(()=>R(`Sign ${h} with Facebook`)),v=o.computed(()=>R(`Sign ${h} with Google`));return(w,_)=>{const b=ye;return o.unref(d)?(o.openBlock(),o.createBlock(b,{key:0,class:"amplify-flex federated-sign-in-container amplify-authenticator__column amplify-authenticator__sign-in-base"},{default:o.withCtx(()=>[o.unref(s)?(o.openBlock(),o.createBlock(pn,{key:0,provider:o.unref(f).Amazon},{default:o.withCtx(()=>[S0,o.createElementVNode("p",w0,o.toDisplayString(o.unref(p)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(u)?(o.openBlock(),o.createBlock(pn,{key:1,provider:o.unref(f).Apple},{default:o.withCtx(()=>[_0,o.createElementVNode("p",b0,o.toDisplayString(o.unref(g)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(c)?(o.openBlock(),o.createBlock(pn,{key:2,provider:o.unref(f).Facebook},{default:o.withCtx(()=>[C0,o.createElementVNode("p",A0,o.toDisplayString(o.unref(m)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(l)?(o.openBlock(),o.createBlock(pn,{key:3,provider:o.unref(f).Google},{default:o.withCtx(()=>[E0,o.createElementVNode("p",I0,o.toDisplayString(o.unref(v)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),T0]),_:1})):o.createCommentVNode("",!0)}}});let $0=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=n[e]&63;r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r<63?t+="_":t+="-"}return t};const P0={},N0={"data-amplify-label":""};function k0(e,t){return o.openBlock(),o.createElementBlock("label",N0,[o.renderSlot(e.$slots,"default")])}var Yn=qn(P0,[["render",k0]]);const Jn=o.defineComponent({__name:"base-input",emits:["update:modelValue"],setup(e,{emit:t}){const n=r=>{t("update:modelValue",r.target.value)};return(r,a)=>(o.openBlock(),o.createElementBlock("input",{onChange:a[0]||(a[0]=i=>n(i)),"data-amplify-input":""},null,32))}}),x0=["aria-label"],O0={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},U0=o.createElementVNode("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"},null,-1),R0=[U0],B0={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},V0=o.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),D0=o.createElementVNode("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"},null,-1),M0=[V0,D0],F0={inheritAttrs:!1},To=o.defineComponent({...F0,__name:"password-control",props:{name:null,label:null,autocomplete:null,hasError:{type:Boolean},labelHidden:{type:Boolean,default:!0},placeholder:null,required:{type:Boolean,default:!0},describedBy:null},setup(e){var w;const t=e,n=R("Show password"),r=R("Hide password"),a=o.ref("password"),i=o.ref(n),s=Math.floor(Math.random()*999999),{name:u,label:c,autocomplete:l,hasError:d,labelHidden:h,placeholder:f,required:p}=o.toRefs(t);let g=o.ref("");function m(){i.value=i.value===n?r:n,a.value=a.value==="password"?"text":"password"}const v=R((w=f==null?void 0:f.value)!=null?w:c.value),S=R(c.value);return(_,b)=>{const C=Yn,E=Jn,A=ye;return o.openBlock(),o.createBlock(A,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield amplify-authenticator__column"},{default:o.withCtx(()=>{var $;return[o.createVNode(C,{class:o.normalizeClass(["amplify-label",{"amplify-visually-hidden":($=o.unref(h))!=null?$:!0}]),for:"amplify-field-"+o.unref(s)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(S)),1)]),_:1},8,["class","for"]),o.createVNode(A,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>{var I;return[o.createVNode(E,o.mergeProps(_.$attrs,{modelValue:o.unref(g),"onUpdate:modelValue":b[0]||(b[0]=N=>o.isRef(g)?g.value=N:g=N),class:"amplify-input amplify-field-group__control",id:"amplify-field-"+o.unref(s),"data-amplify-password":"true",name:o.unref(u),autocomplete:o.unref(l),required:(I=o.unref(p))!=null?I:!0,placeholder:o.unref(v),type:a.value,"aria-invalid":o.unref(d),"aria-describedBy":e.describedBy}),null,16,["modelValue","id","name","autocomplete","required","placeholder","type","aria-invalid","aria-describedBy"]),o.createVNode(A,{class:"amplify-field-group__outer-end"},{default:o.withCtx(()=>[o.createElementVNode("button",{"aria-label":i.value,class:"amplify-button amplify-field-group__control amplify-field__show-password amplify-button--fullwidth","data-fullwidth":"false",type:"button",onClick:m},[a.value==="password"?(o.openBlock(),o.createElementBlock("svg",O0,R0)):(o.openBlock(),o.createElementBlock("svg",B0,M0))],8,x0)]),_:1})]}),_:1})]}),_:1})}}}),L0=["value","selected"],j0=o.defineComponent({__name:"base-select",props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const n=e,{options:r,selectValue:a}=o.toRefs(n),i=s=>{t("update:selectValue",s.target.value)};return(s,u)=>(o.openBlock(),o.createElementBlock("select",{onChange:u[0]||(u[0]=c=>i(c))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(r),(c,l)=>(o.openBlock(),o.createElementBlock("option",{key:l,value:c,selected:c==o.unref(a)?!0:void 0},o.toDisplayString(c),9,L0))),128))],32))}}),z0=o.createTextVNode(o.toDisplayString("Country Code")),G0=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","data-size":"large",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon amplify-icon--large"},[o.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),H0=o.defineComponent({__name:"alias-control",props:{label:{default:"Username"},name:{default:"username"},placeholder:{default:""},autocomplete:{default:""},labelHidden:{type:Boolean,default:!1},required:{type:Boolean,default:!0},dialCode:null,dialCodeList:null,type:{default:"text"},hasError:{type:Boolean},describedBy:null},setup(e){const t=e,{label:n,name:r,placeholder:a,autocomplete:i,labelHidden:s,required:u,dialCode:c,dialCodeList:l}=o.toRefs(t),d=Math.floor(Math.random()*999999),h=Math.floor(Math.random()*999999);return(f,p)=>{const g=Yn,m=j0,v=ye,S=Jn;return o.openBlock(),o.createBlock(v,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(g,o.mergeProps({for:"amplify-field-"+o.unref(d),class:["amplify-label",{"sr-only":o.unref(s)}]},f.$attrs),{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)),1)]),_:1},16,["for","class"]),o.createVNode(v,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>[o.createVNode(v,{class:"amplify-field-group__outer-start"},{default:o.withCtx(()=>[e.type==="tel"?(o.openBlock(),o.createBlock(v,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect amplify-dialcodeselect amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(g,o.mergeProps({for:"amplify-field-"+o.unref(h),class:"amplify-label amplify-visually-hidden"},f.$attrs),{default:o.withCtx(()=>[z0]),_:1},16,["for"]),o.createVNode(v,{class:"amplify-select__wrapper"},{default:o.withCtx(()=>[o.createVNode(m,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+o.unref(h),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:o.unref(l),"select-value":o.unref(c)},null,8,["id","options","select-value"]),o.createVNode(v,{class:"amplify-flex amplify-select__icon-wrapper amplify-authenticator__icon-wrapper"},{default:o.withCtx(()=>[G0]),_:1})]),_:1})]),_:1})):o.createCommentVNode("",!0)]),_:1}),o.createVNode(v,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>{var w;return[o.createVNode(S,{class:"amplify-input amplify-field-group__control",id:"amplify-field-"+o.unref(d),autocomplete:o.unref(i),name:o.unref(r),required:(w=o.unref(u))!=null?w:!0,type:e.type,placeholder:o.unref(a),"aria-invalid":e.hasError,"aria-describedBy":e.describedBy},null,8,["id","autocomplete","name","required","type","placeholder","aria-invalid","aria-describedBy"])]}),_:1})]),_:1})]),_:1})}}}),K0=["id"],ss=o.defineComponent({__name:"base-form-field",props:{name:{default:""},formField:{default:()=>({})}},setup(e){const t=e,{name:n,formField:r}=o.toRefs(t),a=Te(Ae),{validationErrors:i}=o.toRefs(a()),{type:s}=r.value,u=s==="password",c=$0(12),l=o.computed(()=>bl(i.value[n.value])),d=o.computed(()=>{var f;return((f=l.value)==null?void 0:f.length)>0}),h=o.computed(()=>d.value?c:void 0);return(f,p)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[u?(o.openBlock(),o.createBlock(To,{key:0,name:o.unref(n),label:o.unref(r).label,placeholder:o.unref(r).placeholder,required:o.unref(r).isRequired,"label-hidden":o.unref(r).labelHidden,autocomplete:o.unref(r).autocomplete,hasError:o.unref(d),describedBy:o.unref(h)},null,8,["name","label","placeholder","required","label-hidden","autocomplete","hasError","describedBy"])):(o.openBlock(),o.createBlock(H0,{key:1,name:o.unref(n),label:o.unref(r).label,placeholder:o.unref(r).placeholder,required:o.unref(r).isRequired,"label-hidden":o.unref(r).labelHidden,autocomplete:o.unref(r).autocomplete,"dial-code":o.unref(r).dialCode,"dial-code-list":o.unref(r).dialCodeList,type:o.unref(r).type,hasError:o.unref(d),describedBy:o.unref(h)},null,8,["name","label","placeholder","required","label-hidden","autocomplete","dial-code","dial-code-list","type","hasError","describedBy"])),o.unref(d)?(o.openBlock(),o.createElementBlock("div",{key:2,id:o.unref(h)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(l),(g,m)=>(o.openBlock(),o.createElementBlock("p",{key:m,role:"alert","data-variation":"error",class:"amplify-text amplify-text--error"},o.toDisplayString(o.unref(R)(g)),1))),128))],8,K0)):o.createCommentVNode("",!0)],64))}}),Le=o.defineComponent({__name:"base-form-fields",props:{route:null},setup(e){const t=e,{route:n}=o.toRefs(t),{state:r}=$e();let a=[];return o.onBeforeMount(()=>{a=Jg(n.value,r.value)}),(i,s)=>(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),([u,c])=>(o.openBlock(),o.createBlock(ss,{name:u,key:u,formField:c},null,8,["name","formField"]))),128))}}),q0=o.createElementVNode("legend",{class:"amplify-visually-hidden"},"Sign in",-1),W0={"data-amplify-footer":""},$o=o.defineComponent({__name:"sign-in",emits:["signInSubmit","forgotPasswordClicked","createAccountClicked"],setup(e,{emit:t}){const r=Te(Ae)(),a=o.useAttrs(),i=o.computed(()=>Sl("Forgot your password? ")?R("Forgot your password? "):R("Forgot your password?")),s=o.computed(()=>R("Sign in")),u=o.computed(()=>R("Signing in")),{state:c,send:l}=$e(),d=o.computed(()=>be(c.value)),h=m=>{const{name:v,value:S}=m.target;l({type:"CHANGE",data:{name:v,value:S}})},f=m=>{a!=null&&a.onSignInSubmit?t("signInSubmit",m):p(m)},p=m=>{r.submitForm(Ve(m))},g=()=>{a!=null&&a.onForgotPasswordClicked?t("forgotPasswordClicked"):l({type:"RESET_PASSWORD"})};return(m,v)=>{const S=Ue,w=De,_=we,b=ye,C=Me,E=Fe;return o.renderSlot(m.$slots,"signInSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.renderSlot(m.$slots,"header"),o.createVNode(b,o.normalizeProps(o.guardReactiveProps(m.$attrs)),{default:o.withCtx(()=>[o.createVNode(C,{"data-amplify-authenticator-signin":"",onInput:h,onSubmit:o.withModifiers(f,["prevent"]),method:"post"},{formt:o.withCtx(({slotData:A})=>[o.renderSlot(m.$slots,"form",{info:A,onSignInSubmit:f,onInput:h,onForgotPasswordClicked:g})]),default:o.withCtx(()=>[o.createVNode(Wn),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(S,{disabled:o.unref(d).matches("signIn.submit"),class:"amplify-flex amplify-authenticator__column"},{fieldSetI:o.withCtx(({slotData:A})=>[o.renderSlot(m.$slots,"signin-fields",{info:A})]),default:o.withCtx(()=>[q0,o.createVNode(Le,{route:"signIn"})]),_:3},8,["disabled"]),o.unref(d).context.remoteError?(o.openBlock(),o.createBlock(w,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(d).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(_,{disabled:o.unref(d).matches("signIn.submit"),class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d).matches("signIn.submit")?o.unref(u):o.unref(s)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode(E,null,{default:o.withCtx(()=>[o.renderSlot(m.$slots,"footer",{},()=>[o.createElementVNode("div",W0,[o.createVNode(_,{onClick:g,class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!0,size:"small",style:{"font-weight":"normal"},type:"button"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(i)),1)]),_:1})])])]),_:3})])}}}),Po=o.defineComponent({__name:"authenticator-sign-up-form-fields",setup(e){return(t,n)=>(o.openBlock(),o.createBlock(Le,{route:"signUp"}))}}),No=o.defineComponent({__name:"sign-up",emits:["signUpSubmit"],setup(e,{emit:t}){const n=Te(Ae),r=n(),a=n(),{hasValidationErrors:i,isPending:s,error:u}=o.toRefs(r),c=o.useAttrs(),l=o.computed(()=>R("Create Account")),d=g=>{let{checked:m,name:v,type:S,value:w}=g.target;S==="checkbox"&&!m&&(w=void 0),a.updateForm({name:v,value:w})};function h(g){const{name:m}=g.target;a.updateBlur({name:m})}const f=g=>{c!=null&&c.onSignUpSubmit?t("signUpSubmit",g):p(g)},p=g=>{a.submitForm(Ve(g))};return(g,m)=>{const v=Ue,S=De,w=we,_=ye,b=Me,C=Fe;return o.renderSlot(g.$slots,"signUpSlotI",o.normalizeProps(o.guardReactiveProps(g.$attrs)),()=>[o.renderSlot(g.$slots,"header"),o.createVNode(_,o.normalizeProps(o.guardReactiveProps(g.$attrs)),{default:o.withCtx(()=>[o.createVNode(b,{onInput:d,onBlurCapture:h,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(Wn),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(v,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(s)},{fieldSetI:o.withCtx(({slotData:E})=>[o.renderSlot(g.$slots,"signup-fields",{info:E})]),default:o.withCtx(()=>[o.createVNode(Po)]),_:3},8,["disabled"]),o.unref(u)?(o.openBlock(),o.createBlock(S,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(u))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(w,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary",style:{"border-radius":"0px","font-weight":"normal"},disabled:o.unref(s)||o.unref(i)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode(C,null,{default:o.withCtx(()=>[o.renderSlot(g.$slots,"footer")]),_:3})])}}}),Y0=o.defineComponent({__name:"base-two-tab-item",props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{active:n,id:r,label:a}=o.toRefs(t);return(i,s)=>{const u=ye;return o.openBlock(),o.createBlock(u,{tabindex:o.unref(n)?0:-1,"data-state":o.unref(n)?"active":"inactive","aria-selected":o.unref(n)?"true":"false","aria-controls":`radix-id-${o.unref(r)}-8-content-0`,id:`radix-id-${o.unref(r)}-8-trigger-0`,"data-orientation":"horizontal",role:"tab",class:"amplify-tabs-item","data-spacing":"equal","data-radix-collection-item":""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(a)),1)]),_:1},8,["tabindex","data-state","aria-selected","aria-controls","id"])}}}),J0={};function Z0(e,t){const n=ye;return o.openBlock(),o.createBlock(n,{tabindex:"0","aria-orientation":"horizontal","data-orientation":"horizontal",class:"amplify-authenticator__tabs",role:"tablist"},{default:o.withCtx(()=>[o.createVNode(n,{class:"amplify-flex amplify-tabs amplify-authenticator__tabs-wrapper","data-indicator-position":"top"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]),_:3})}var Q0=qn(J0,[["render",Z0]]);const Je=o.defineComponent({props:{level:{type:Number,default:1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n}){var s,u;const r=t.default?t.default():[],a=t.headingI?t.headingI():[],i=`${n.class||""} amplify-heading--${e.level}`;if(((u=(s=a[0])==null?void 0:s.children)==null?void 0:u.length)===0)a[0].children=[o.h(`h${e.level}`,{...n,class:i},[r])];else return()=>o.h(`h${e.level}`,{"data-amplify-heading":"",...n,class:i},[a[0]?o.h(a[0].children[0]):o.h(r[0])]);return()=>a}}),X0={};function eC(e,t){return o.renderSlot(e.$slots,"textI",o.normalizeProps(o.guardReactiveProps(e.$attrs)),()=>[o.createElementVNode("span",o.mergeProps(e.$attrs,{"data-amplify-text":""}),[o.renderSlot(e.$slots,"default")],16)])}var us=qn(X0,[["render",eC]]);const ko=o.defineComponent({__name:"confirm-sign-up",emits:["confirmSignUpSubmit","lostCodeClicked"],setup(e,{emit:t}){const n=o.useAttrs(),r=Te(Ae),{isPending:a,error:i,codeDeliveryDetails:s}=o.toRefs(r()),{submitForm:u,updateForm:c,resendCode:l}=r(),d=o.computed(()=>{var E,A;return((E=s.value)==null?void 0:E.DeliveryMedium)==="EMAIL"?R("We Emailed You"):((A=s.value)==null?void 0:A.DeliveryMedium)==="SMS"?R("We Texted You"):R("We Sent A Code")}),h=o.computed(()=>R("Resend Code")),f=o.computed(()=>R("Confirm")),p=R("Your code is on the way. To log in, enter the code we emailed to"),g=R("Your code is on the way. To log in, enter the code we texted to"),m=R("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive."),v=R("It may take a minute to arrive."),S=o.computed(()=>{var E,A,$,I;return((E=s.value)==null?void 0:E.DeliveryMedium)==="EMAIL"?`${p} ${(A=s.value)==null?void 0:A.Destination}. ${v}`:(($=s.value)==null?void 0:$.DeliveryMedium)==="SMS"?`${g} ${(I=s.value)==null?void 0:I.Destination}. ${v}`:R(`${m}`)}),w=E=>{const{name:A,value:$}=E.target;c({name:A,value:$})},_=E=>{n!=null&&n.onConfirmSignUpSubmit?t("confirmSignUpSubmit",E):b(E)},b=E=>{u(Ve(E))},C=()=>{n!=null&&n.onLostCodeClicked?t("lostCodeClicked"):l()};return(E,A)=>{const $=Je,I=us,N=Ue,M=De,F=we,D=Fe,G=ye,de=Me;return o.renderSlot(E.$slots,"confirmSignUpSlotI",o.normalizeProps(o.guardReactiveProps(E.$attrs)),()=>[o.createVNode(G,o.normalizeProps(o.guardReactiveProps(E.$attrs)),{default:o.withCtx(()=>[o.createVNode(de,{onInput:w,onSubmit:o.withModifiers(_,["prevent"])},{default:o.withCtx(()=>[o.createVNode(G,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(E.$slots,"header",{},()=>[o.createVNode($,{class:"amplify-heading amplify-authenticator__heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1})]),o.createVNode(I,{class:"amplify-authenticator__subtitle"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(S)),1)]),_:1}),o.createVNode(N,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(a)},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmSignUp"})]),_:1},8,["disabled"]),o.createVNode(D,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(i)?(o.openBlock(),o.createBlock(M,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(i))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(F,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:o.unref(a)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1},8,["disabled"]),o.createVNode(F,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"default",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(C,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["onClick"]),o.renderSlot(E.$slots,"footer",{onConfirmSignUpSubmit:_,onLostCodeClicked:C})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),xo=o.defineComponent({__name:"confirm-sign-in",emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:a}=$e(),s=Te(Ae)(),u=o.computed(()=>be(r.value)),c=u.value.context.challengeName;let l="SMS";c===ze.SOFTWARE_TOKEN_MFA&&(l="TOTP");const d=`Confirm ${l} Code`,h=o.computed(()=>R("Back to Sign In")),f=o.computed(()=>R("Confirm")),p=S=>{const{name:w,value:_}=S.target;a({type:"CHANGE",data:{name:w,value:_}})},g=S=>{n!=null&&n.onConfirmSignInSubmit?t("confirmSignInSubmit",S):m(S)},m=S=>{s.submitForm(Ve(S))},v=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(S,w)=>{const _=Je,b=ye,C=De,E=we,A=Fe,$=Ue,I=Me;return o.renderSlot(S.$slots,"confirmSignInSlotI",o.normalizeProps(o.guardReactiveProps(S.$attrs)),()=>[o.createVNode(b,o.normalizeProps(o.guardReactiveProps(S.$attrs)),{default:o.withCtx(()=>[o.createVNode(I,{"data-amplify-authenticator-confirmsignin":"",onInput:p,onSubmit:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>[o.createVNode($,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.renderSlot(S.$slots,"header",{},()=>[o.createVNode(_,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d))]),_:1})]),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmSignIn"})]),_:1}),o.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var N,M;return[(M=(N=o.unref(u))==null?void 0:N.context)!=null&&M.remoteError?(o.openBlock(),o.createBlock(C,{key:0},{default:o.withCtx(()=>{var F,D;return[o.createTextVNode(o.toDisplayString(o.unref(R)((D=(F=o.unref(u))==null?void 0:F.context)==null?void 0:D.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(E,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:o.unref(u).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1},8,["disabled"]),o.createVNode(E,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["onClick"]),o.renderSlot(S.$slots,"footer",{onBackToSignInClicked:v,onConfirmSignInSubmit:g})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var Wt={},tC=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},cs={},Ee={};let Oo;const nC=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Ee.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Ee.getSymbolTotalCodewords=function(t){return nC[t]};Ee.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ee.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Oo=t};Ee.isKanjiModeEnabled=function(){return typeof Oo!="undefined"};Ee.toSJIS=function(t){return Oo(t)};var Zn={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit!="undefined"&&r.bit>=0&&r.bit<4},e.from=function(r,a){if(e.isValid(r))return r;try{return t(r)}catch{return a}}})(Zn);function ls(){this.buffer=[],this.length=0}ls.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var rC=ls;function Yt(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Yt.prototype.set=function(e,t,n,r){const a=e*this.size+t;this.data[a]=n,r&&(this.reservedBit[a]=!0)};Yt.prototype.get=function(e,t){return this.data[e*this.size+t]};Yt.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Yt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var oC=Yt,ds={};(function(e){const t=Ee.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const a=Math.floor(r/7)+2,i=t(r),s=i===145?26:Math.ceil((i-13)/(2*a-2))*2,u=[i-7];for(let c=1;c<a-1;c++)u[c]=u[c-1]-s;return u.push(6),u.reverse()},e.getPositions=function(r){const a=[],i=e.getRowColCoords(r),s=i.length;for(let u=0;u<s;u++)for(let c=0;c<s;c++)u===0&&c===0||u===0&&c===s-1||u===s-1&&c===0||a.push([i[u],i[c]]);return a}})(ds);var fs={};const aC=Ee.getSymbolSize,qa=7;fs.getPositions=function(t){const n=aC(t);return[[0,0],[n-qa,0],[0,n-qa]]};var ps={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(a){return a!=null&&a!==""&&!isNaN(a)&&a>=0&&a<=7},e.from=function(a){return e.isValid(a)?parseInt(a,10):void 0},e.getPenaltyN1=function(a){const i=a.size;let s=0,u=0,c=0,l=null,d=null;for(let h=0;h<i;h++){u=c=0,l=d=null;for(let f=0;f<i;f++){let p=a.get(h,f);p===l?u++:(u>=5&&(s+=t.N1+(u-5)),l=p,u=1),p=a.get(f,h),p===d?c++:(c>=5&&(s+=t.N1+(c-5)),d=p,c=1)}u>=5&&(s+=t.N1+(u-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(a){const i=a.size;let s=0;for(let u=0;u<i-1;u++)for(let c=0;c<i-1;c++){const l=a.get(u,c)+a.get(u,c+1)+a.get(u+1,c)+a.get(u+1,c+1);(l===4||l===0)&&s++}return s*t.N2},e.getPenaltyN3=function(a){const i=a.size;let s=0,u=0,c=0;for(let l=0;l<i;l++){u=c=0;for(let d=0;d<i;d++)u=u<<1&2047|a.get(l,d),d>=10&&(u===1488||u===93)&&s++,c=c<<1&2047|a.get(d,l),d>=10&&(c===1488||c===93)&&s++}return s*t.N3},e.getPenaltyN4=function(a){let i=0;const s=a.data.length;for(let c=0;c<s;c++)i+=a.data[c];return Math.abs(Math.ceil(i*100/s/5)-10)*t.N4};function n(r,a,i){switch(r){case e.Patterns.PATTERN000:return(a+i)%2===0;case e.Patterns.PATTERN001:return a%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(a+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(a/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return a*i%2+a*i%3===0;case e.Patterns.PATTERN110:return(a*i%2+a*i%3)%2===0;case e.Patterns.PATTERN111:return(a*i%3+(a+i)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(a,i){const s=i.size;for(let u=0;u<s;u++)for(let c=0;c<s;c++)i.isReserved(c,u)||i.xor(c,u,n(a,c,u))},e.getBestMask=function(a,i){const s=Object.keys(e.Patterns).length;let u=0,c=1/0;for(let l=0;l<s;l++){i(l),e.applyMask(l,a);const d=e.getPenaltyN1(a)+e.getPenaltyN2(a)+e.getPenaltyN3(a)+e.getPenaltyN4(a);e.applyMask(l,a),d<c&&(c=d,u=l)}return u}})(ps);var Qn={};const Ye=Zn,hn=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],mn=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Qn.getBlocksCount=function(t,n){switch(n){case Ye.L:return hn[(t-1)*4+0];case Ye.M:return hn[(t-1)*4+1];case Ye.Q:return hn[(t-1)*4+2];case Ye.H:return hn[(t-1)*4+3];default:return}};Qn.getTotalCodewordsCount=function(t,n){switch(n){case Ye.L:return mn[(t-1)*4+0];case Ye.M:return mn[(t-1)*4+1];case Ye.Q:return mn[(t-1)*4+2];case Ye.H:return mn[(t-1)*4+3];default:return}};var hs={},Xn={};const Ut=new Uint8Array(512),kn=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)Ut[n]=t,kn[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)Ut[n]=Ut[n-255]})();Xn.log=function(t){if(t<1)throw new Error("log("+t+")");return kn[t]};Xn.exp=function(t){return Ut[t]};Xn.mul=function(t,n){return t===0||n===0?0:Ut[kn[t]+kn[n]]};(function(e){const t=Xn;e.mul=function(r,a){const i=new Uint8Array(r.length+a.length-1);for(let s=0;s<r.length;s++)for(let u=0;u<a.length;u++)i[s+u]^=t.mul(r[s],a[u]);return i},e.mod=function(r,a){let i=new Uint8Array(r);for(;i.length-a.length>=0;){const s=i[0];for(let c=0;c<a.length;c++)i[c]^=t.mul(a[c],s);let u=0;for(;u<i.length&&i[u]===0;)u++;i=i.slice(u)}return i},e.generateECPolynomial=function(r){let a=new Uint8Array([1]);for(let i=0;i<r;i++)a=e.mul(a,new Uint8Array([1,t.exp(i)]));return a}})(hs);const ms=hs;function Uo(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Uo.prototype.initialize=function(t){this.degree=t,this.genPoly=ms.generateECPolynomial(this.degree)};Uo.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const r=ms.mod(n,this.genPoly),a=this.degree-r.length;if(a>0){const i=new Uint8Array(this.degree);return i.set(r,a),i}return r};var iC=Uo,gs={},Ze={},Ro={};Ro.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var je={};const vs="[0-9]+",sC="[A-Z $%*+\\-./:]+";let Mt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Mt=Mt.replace(/u/g,"\\u");const uC="(?:(?![A-Z0-9 $%*+\\-./:]|"+Mt+`)(?:.|[\r
|
|
32
|
-
]))+`;je.KANJI=new RegExp(
|
|
33
|
-
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var
|
|
34
|
-
Suggested mode is: `+t.toString(b));switch(_===t.KANJI&&!u.isKanjiModeEnabled()&&(_=t.BYTE),_){case t.NUMERIC:return new n(
|
|
31
|
+
***************************************************************************** */e.__assign=function(){return e.__assign=Object.assign||function(s){for(var u,c=1,l=arguments.length;c<l;c++){u=arguments[c];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(s[d]=u[d])}return s},e.__assign.apply(this,arguments)};function t(a,s){var u={};for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&s.indexOf(c)<0&&(u[c]=a[c]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,c=Object.getOwnPropertySymbols(a);l<c.length;l++)s.indexOf(c[l])<0&&Object.prototype.propertyIsEnumerable.call(a,c[l])&&(u[c[l]]=a[c[l]]);return u}function n(a){var s=typeof Symbol=="function"&&Symbol.iterator,u=s&&a[s],c=0;if(u)return u.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&c>=a.length&&(a=void 0),{value:a&&a[c++],done:!a}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(a,s){var u=typeof Symbol=="function"&&a[Symbol.iterator];if(!u)return a;var c=u.call(a),l,d=[],p;try{for(;(s===void 0||s-- >0)&&!(l=c.next()).done;)d.push(l.value)}catch(f){p={error:f}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(p)throw p.error}}return d}function i(a,s,u){if(u||arguments.length===2)for(var c=0,l=s.length,d;c<l;c++)(d||!(c in s))&&(d||(d=Array.prototype.slice.call(s,0,c)),d[c]=s[c]);return a.concat(d||Array.prototype.slice.call(s))}e.__read=r,e.__rest=t,e.__spreadArray=i,e.__values=n})(uo);var co={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ActionTypes=void 0,function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"}(e.ActionTypes||(e.ActionTypes={})),e.SpecialTargets=void 0,function(t){t.Parent="#_parent",t.Internal="#_internal"}(e.SpecialTargets||(e.SpecialTargets={}))})(co);var fe={};Object.defineProperty(fe,"__esModule",{value:!0});var me=co,Jv=me.ActionTypes.Start,Zv=me.ActionTypes.Stop,Xv=me.ActionTypes.Raise,Qv=me.ActionTypes.Send,ey=me.ActionTypes.Cancel,ty=me.ActionTypes.NullEvent,ny=me.ActionTypes.Assign,ry=me.ActionTypes.After,oy=me.ActionTypes.DoneState,iy=me.ActionTypes.Log,ay=me.ActionTypes.Init,sy=me.ActionTypes.Invoke,uy=me.ActionTypes.ErrorExecution,cy=me.ActionTypes.ErrorPlatform,ly=me.ActionTypes.ErrorCustom,dy=me.ActionTypes.Update,fy=me.ActionTypes.Choose,py=me.ActionTypes.Pure;fe.after=ry;fe.assign=ny;fe.cancel=ey;fe.choose=fy;fe.doneState=oy;fe.error=ly;fe.errorExecution=uy;fe.errorPlatform=cy;fe.init=ay;fe.invoke=sy;fe.log=iy;fe.nullEvent=ty;fe.pure=py;fe.raise=Xv;fe.send=Qv;fe.start=Jv;fe.stop=Zv;fe.update=dy;var La={},_t={};Object.defineProperty(_t,"__esModule",{value:!0});var hy=".",my={},gy="xstate.guard",vy="";_t.DEFAULT_GUARD_TYPE=gy;_t.EMPTY_ACTIVITY_MAP=my;_t.STATE_DELIMITER=hy;_t.TARGETLESS_KEY=vy;var zn={};Object.defineProperty(zn,"__esModule",{value:!0});var yy=!0;zn.IS_PRODUCTION=yy;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=uo,n=_t,r=zn,i;function a(y){return Object.keys(y)}function s(y,k,O){O===void 0&&(O=n.STATE_DELIMITER);var x=p(y,O),B=p(k,O);return Q(B)?Q(x)?B===x:!1:Q(x)?x in B:Object.keys(x).every(function(V){return V in B?s(x[V],B[V]):!1})}function u(y){try{return Q(y)||typeof y=="number"?"".concat(y):y.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function c(y){try{return Q(y)||typeof y=="number"?"".concat(y):de(y)?y.name:y.type}catch{throw new Error("Actions must be strings or objects with a string action.type property.")}}function l(y,k){try{return G(y)?y:y.toString().split(k)}catch{throw new Error("'".concat(y,"' is not a valid state path."))}}function d(y){return typeof y=="object"&&"value"in y&&"context"in y&&"event"in y&&"_event"in y}function p(y,k){if(d(y))return y.value;if(G(y))return f(y);if(typeof y!="string")return y;var O=l(y,k);return f(O)}function f(y){if(y.length===1)return y[0];for(var k={},O=k,x=0;x<y.length-1;x++)x===y.length-2?O[y[x]]=y[x+1]:(O[y[x]]={},O=O[y[x]]);return k}function h(y,k){for(var O={},x=Object.keys(y),B=0;B<x.length;B++){var V=x[B];O[V]=k(y[V],V,y,B)}return O}function g(y,k,O){var x,B,V={};try{for(var j=t.__values(Object.keys(y)),L=j.next();!L.done;L=j.next()){var X=L.value,ie=y[X];!O(ie)||(V[X]=k(ie,X,y))}}catch(_e){x={error:_e}}finally{try{L&&!L.done&&(B=j.return)&&B.call(j)}finally{if(x)throw x.error}}return V}var m=function(y){return function(k){var O,x,B=k;try{for(var V=t.__values(y),j=V.next();!j.done;j=V.next()){var L=j.value;B=B[L]}}catch(X){O={error:X}}finally{try{j&&!j.done&&(x=V.return)&&x.call(V)}finally{if(O)throw O.error}}return B}};function v(y,k){return function(O){var x,B,V=O;try{for(var j=t.__values(y),L=j.next();!L.done;L=j.next()){var X=L.value;V=V[k][X]}}catch(ie){x={error:ie}}finally{try{L&&!L.done&&(B=j.return)&&B.call(j)}finally{if(x)throw x.error}}return V}}function w(y){if(!y)return[[]];if(Q(y))return[[y]];var k=_(Object.keys(y).map(function(O){var x=y[O];return typeof x!="string"&&(!x||!Object.keys(x).length)?[[O]]:w(y[O]).map(function(B){return[O].concat(B)})}));return k}function S(y){var k,O,x={};if(y&&y.length===1&&y[0].length===1)return y[0][0];try{for(var B=t.__values(y),V=B.next();!V.done;V=B.next())for(var j=V.value,L=x,X=0;X<j.length;X++){var ie=j[X];if(X===j.length-2){L[ie]=j[X+1];break}L[ie]=L[ie]||{},L=L[ie]}}catch(_e){k={error:_e}}finally{try{V&&!V.done&&(O=B.return)&&O.call(B)}finally{if(k)throw k.error}}return x}function _(y){var k;return(k=[]).concat.apply(k,t.__spreadArray([],t.__read(y),!1))}function b(y){return G(y)?y:[y]}function C(y){return y===void 0?[]:b(y)}function E(y,k,O){var x,B;if(de(y))return y(k,O.data);var V={};try{for(var j=t.__values(Object.keys(y)),L=j.next();!L.done;L=j.next()){var X=L.value,ie=y[X];de(ie)?V[X]=ie(k,O.data):V[X]=ie}}catch(_e){x={error:_e}}finally{try{L&&!L.done&&(B=j.return)&&B.call(j)}finally{if(x)throw x.error}}return V}function A(y){return/^(done|error)\./.test(y)}function $(y){return!!(y instanceof Promise||y!==null&&(de(y)||typeof y=="object")&&de(y.then))}function I(y){return y!==null&&typeof y=="object"&&"transition"in y&&typeof y.transition=="function"}function N(y,k){var O,x,B=t.__read([[],[]],2),V=B[0],j=B[1];try{for(var L=t.__values(y),X=L.next();!X.done;X=L.next()){var ie=X.value;k(ie)?V.push(ie):j.push(ie)}}catch(_e){O={error:_e}}finally{try{X&&!X.done&&(x=L.return)&&x.call(L)}finally{if(O)throw O.error}}return[V,j]}function M(y,k){return h(y.states,function(O,x){if(!!O){var B=(Q(k)?void 0:k[x])||(O?O.current:void 0);if(!!B)return{current:B,states:M(O,B)}}})}function F(y,k){return{current:k,states:M(y,k)}}function D(y,k,O,x){r.IS_PRODUCTION||e.warn(!!y,"Attempting to update undefined context");var B=y&&O.reduce(function(V,j){var L,X,ie=j.assignment,_e={state:x,action:j,_event:k},et={};if(de(ie))et=ie(V,k.data,_e);else try{for(var ne=t.__values(Object.keys(ie)),re=ne.next();!re.done;re=ne.next()){var tt=re.value,It=ie[tt];et[tt]=de(It)?It(V,k.data,_e):It}}catch(ks){L={error:ks}}finally{try{re&&!re.done&&(X=ne.return)&&X.call(ne)}finally{if(L)throw L.error}}return Object.assign({},V,et)},y);return B}e.warn=function(){},r.IS_PRODUCTION||(e.warn=function(y,k){var O=y instanceof Error?y:void 0;if(!(!O&&y)&&console!==void 0){var x=["Warning: ".concat(k)];O&&x.push(O),console.warn.apply(console,x)}});function G(y){return Array.isArray(y)}function de(y){return typeof y=="function"}function Q(y){return typeof y=="string"}function Ct(y,k){if(!!y)return Q(y)?{type:n.DEFAULT_GUARD_TYPE,name:y,predicate:k?k[y]:void 0}:de(y)?{type:n.DEFAULT_GUARD_TYPE,name:y.name,predicate:y}:y}function At(y){try{return"subscribe"in y&&de(y.subscribe)}catch{return!1}}var pe=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),xe=(i={},i[pe]=function(){return this},i[Symbol.observable]=function(){return this},i);function Yt(y){return!!y&&"__xstatenode"in y}function er(y){return!!y&&typeof y.send=="function"}var tr=function(){var y=0;return function(){return y++,y.toString(16)}}();function Jt(y,k){return Q(y)||typeof y=="number"?t.__assign({type:y},k):y}function nr(y,k){if(!Q(y)&&"$$type"in y&&y.$$type==="scxml")return y;var O=Jt(y);return t.__assign({name:O.type,data:O,$$type:"scxml",type:"external"},k)}function Zt(y,k){var O=b(k).map(function(x){return typeof x=="undefined"||typeof x=="string"||Yt(x)?{target:x,event:y}:t.__assign(t.__assign({},x),{event:y})});return O}function Xt(y){if(!(y===void 0||y===n.TARGETLESS_KEY))return C(y)}function Et(y,k,O){if(!r.IS_PRODUCTION){var x=y.stack?" Stacktrace was '".concat(y.stack,"'"):"";if(y===k)console.error("Missing onError handler for invocation '".concat(O,"', error was '").concat(y,"'.").concat(x));else{var B=k.stack?" Stacktrace was '".concat(k.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(O,"'. ")+"Original error: '".concat(y,"'. ").concat(x," Current error is '").concat(k,"'.").concat(B))}}}function rr(y,k,O,x,B){var V=y.options.guards,j={state:B,cond:k,_event:x};if(k.type===n.DEFAULT_GUARD_TYPE)return((V==null?void 0:V[k.name])||k.predicate)(O,x.data,j);var L=V==null?void 0:V[k.type];if(!L)throw new Error("Guard '".concat(k.type,"' is not implemented on machine '").concat(y.id,"'."));return L(O,x.data,j)}function P(y){return typeof y=="string"?{type:y}:y}function we(y,k,O){var x=function(){},B=typeof y=="object",V=B?y:null;return{next:((B?y.next:y)||x).bind(V),error:((B?y.error:k)||x).bind(V),complete:((B?y.complete:O)||x).bind(V)}}function Qt(y,k){return"".concat(y,":invocation[").concat(k,"]")}e.createInvokeId=Qt,e.evaluateGuard=rr,e.flatten=_,e.getActionType=c,e.getEventType=u,e.interopSymbols=xe,e.isActor=er,e.isArray=G,e.isBehavior=I,e.isBuiltInEvent=A,e.isFunction=de,e.isMachine=Yt,e.isObservable=At,e.isPromiseLike=$,e.isStateLike=d,e.isString=Q,e.keys=a,e.mapContext=E,e.mapFilterValues=g,e.mapValues=h,e.matchesState=s,e.nestedPath=v,e.normalizeTarget=Xt,e.partition=N,e.path=m,e.pathToStateValue=f,e.pathsToStateValue=S,e.reportUnhandledExceptionOnInvocation=Et,e.symbolObservable=pe,e.toArray=C,e.toArrayStrict=b,e.toEventObject=Jt,e.toGuard=Ct,e.toInvokeSource=P,e.toObserver=we,e.toSCXMLEvent=nr,e.toStatePath=l,e.toStatePaths=w,e.toStateValue=p,e.toTransitionConfigArray=Zt,e.uniqueId=tr,e.updateContext=D,e.updateHistoryStates=M,e.updateHistoryValue=F})(La);Object.defineProperty(q,"__esModule",{value:!0});var Z=uo,be=co,he=fe,H=La,ja=zn,wy=H.toSCXMLEvent({type:he.init});function xr(e,t){return t&&t[e]||void 0}function Gn(e,t){var n;if(H.isString(e)||typeof e=="number"){var r=xr(e,t);H.isFunction(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(H.isFunction(e))n={type:e.name||e.toString(),exec:e};else{var r=xr(e.type,t);if(H.isFunction(r))n=Z.__assign(Z.__assign({},e),{exec:r});else if(r){var i=r.type||e.type;n=Z.__assign(Z.__assign(Z.__assign({},r),e),{type:i})}else n=e}return n}var Or=function(e,t){if(!e)return[];var n=H.isArray(e)?e:[e];return n.map(function(r){return Gn(r,t)})};function lo(e){var t=Gn(e);return Z.__assign(Z.__assign({id:H.isString(e)?e:t.id},t),{type:t.type})}function Sy(e){return H.isString(e)?{type:he.raise,event:e}:bt(e,{to:be.SpecialTargets.Internal})}function za(e){return{type:he.raise,_event:H.toSCXMLEvent(e.event)}}function bt(e,t){return{to:t?t.to:void 0,type:he.send,event:H.isFunction(e)?e:H.toEventObject(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:H.isFunction(e)?e.name:H.getEventType(e)}}function Ga(e,t,n,r){var i={_event:n},a=H.toSCXMLEvent(H.isFunction(e.event)?e.event(t,n.data,i):e.event),s;if(H.isString(e.delay)){var u=r&&r[e.delay];s=H.isFunction(u)?u(t,n.data,i):u}else s=H.isFunction(e.delay)?e.delay(t,n.data,i):e.delay;var c=H.isFunction(e.to)?e.to(t,n.data,i):e.to;return Z.__assign(Z.__assign({},e),{to:c,_event:a,event:a.data,delay:s})}function fo(e,t){return bt(e,Z.__assign(Z.__assign({},t),{to:be.SpecialTargets.Parent}))}function _y(e,t,n){return bt(t,Z.__assign(Z.__assign({},n),{to:e}))}function by(){return fo(he.update)}function Cy(e,t){return bt(e,Z.__assign(Z.__assign({},t),{to:function(n,r,i){var a=i._event;return a.origin}}))}var Ay=function(e,t){return{context:e,event:t}};function Ey(e,t){return e===void 0&&(e=Ay),{type:he.log,label:t,expr:e}}var Ha=function(e,t,n){return Z.__assign(Z.__assign({},e),{value:H.isString(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Iy=function(e){return{type:he.cancel,sendId:e}};function Ty(e){var t=lo(e);return{type:be.ActionTypes.Start,activity:t,exec:void 0}}function $y(e){var t=H.isFunction(e)?e:lo(e);return{type:be.ActionTypes.Stop,activity:t,exec:void 0}}function Ka(e,t,n){var r=H.isFunction(e.activity)?e.activity(t,n.data):e.activity,i=typeof r=="string"?{id:r}:r,a={type:be.ActionTypes.Stop,activity:i};return a}var Py=function(e){return{type:he.assign,assignment:e}};function Ny(e){return typeof e=="object"&&"type"in e}function ky(e,t){var n=t?"#".concat(t):"";return"".concat(be.ActionTypes.After,"(").concat(e,")").concat(n)}function xy(e,t){var n="".concat(be.ActionTypes.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Oy(e,t){var n="".concat(be.ActionTypes.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Uy(e,t){var n="".concat(be.ActionTypes.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Ry(e){return{type:be.ActionTypes.Pure,get:e}}function By(e,t){if(!ja.IS_PRODUCTION&&(!e||typeof e=="function")){var n=e;e=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=typeof n=="function"?n.apply(void 0,Z.__spreadArray([],Z.__read(r),!1)):n;if(!a)throw new Error("Attempted to forward event to undefined actor. This risks an infinite loop in the sender.");return a}}return bt(function(r,i){return i},Z.__assign(Z.__assign({},t),{to:e}))}function Vy(e,t){return fo(function(n,r,i){return{type:he.error,data:H.isFunction(e)?e(n,r,i):e}},Z.__assign(Z.__assign({},t),{to:be.SpecialTargets.Parent}))}function Dy(e){return{type:be.ActionTypes.Choose,conds:e}}function Ur(e,t,n,r,i,a,s){s===void 0&&(s=!1);var u=Z.__read(s?[[],i]:H.partition(i,function(h){return h.type===he.assign}),2),c=u[0],l=u[1],d=c.length?H.updateContext(n,r,c,t):n,p=s?[n]:void 0,f=H.flatten(l.map(function(h){var g;switch(h.type){case he.raise:return za(h);case he.send:var m=Ga(h,d,r,e.options.delays);return ja.IS_PRODUCTION||H.warn(!H.isString(h.delay)||typeof m.delay=="number","No delay reference for delay expression '".concat(h.delay,"' was found on machine '").concat(e.id,"'")),m.to!==be.SpecialTargets.Internal&&(a==null||a(m,d,r)),m;case he.log:{var v=Ha(h,d,r);return a==null||a(v,d,r),v}case he.choose:{var w=h,S=(g=w.conds.find(function(F){var D=H.toGuard(F.cond,e.options.guards);return!D||H.evaluateGuard(e,D,d,r,a?void 0:t)}))===null||g===void 0?void 0:g.actions;if(!S)return[];var _=Z.__read(Ur(e,t,d,r,Or(H.toArray(S),e.options.actions),a,s),2),b=_[0],C=_[1];return d=C,p==null||p.push(d),b}case he.pure:{var S=h.get(d,r.data);if(!S)return[];var E=Z.__read(Ur(e,t,d,r,Or(H.toArray(S),e.options.actions),a,s),2),A=E[0],$=E[1];return d=$,p==null||p.push(d),A}case he.stop:{var v=Ka(h,d,r);return a==null||a(v,d,r),v}case he.assign:{d=H.updateContext(d,r,[h],a?void 0:t),p==null||p.push(d);break}default:var I=Gn(h,e.options.actions),N=I.exec;if(a)a(I,d,r);else if(N&&p){var M=p.length-1;I=Z.__assign(Z.__assign({},I),{exec:function(F){for(var D=[],G=1;G<arguments.length;G++)D[G-1]=arguments[G];N.apply(void 0,Z.__spreadArray([p[M]],Z.__read(D),!1))}})}return I}}).filter(function(h){return!!h}));return[f,d]}q.actionTypes=he;q.after=ky;var ce=q.assign=Py;q.cancel=Iy;var My=q.choose=Dy;q.done=xy;q.doneInvoke=Oy;q.error=Uy;q.escalate=Vy;q.forwardTo=By;q.getActionFunction=xr;q.initEvent=wy;q.isActionObject=Ny;q.log=Ey;q.pure=Ry;q.raise=Sy;q.resolveActions=Ur;q.resolveLog=Ha;q.resolveRaise=za;q.resolveSend=Ga;q.resolveStop=Ka;q.respond=Cy;q.send=bt;q.sendParent=fo;q.sendTo=_y;q.sendUpdate=by;q.start=Ty;var Fy=q.stop=$y;q.toActionObject=Gn;q.toActionObjects=Or;q.toActivityDefinition=lo;var ln=function(e){return Fy(e)},Ly=ce({attributeToVerify:function(e){}}),jy=ce({challengeName:function(e){}}),zy=ce({requiredAttributes:function(e){}}),po=ce({remoteError:function(e){return""}}),ho=ce({formValues:function(e){return{}}}),mo=ce({touched:function(e){return{}}}),Gy=ce({unverifiedAttributes:function(e){}}),Hy=ce({username:function(e){}}),go=ce({validationError:function(e){return{}}}),Ky=ce({challengeName:function(e,t){var n;return(n=t.data)===null||n===void 0?void 0:n.challengeName}}),qy=ce({requiredAttributes:function(e,t){var n,r;return(r=(n=t.data)===null||n===void 0?void 0:n.challengeParam)===null||r===void 0?void 0:r.requiredAttributes}}),Wy=ce({redirectIntent:function(e){return"confirmPasswordReset"}}),Yy=ce({redirectIntent:function(e){return"confirmSignUp"}}),qa=ce({authAttributes:function(e,t){var n,r,i=e.loginMechanisms[0];return{username:(n=e.formValues[i])!==null&&n!==void 0?n:e.formValues.username,password:(r=e.formValues)===null||r===void 0?void 0:r.password}}}),vo=ce({validationError:function(e,t){return t.data}}),yo=ce({remoteError:function(e,t){var n;return t.data.name==="NoUserPoolError"?"Configuration error (see console) \u2013 please contact the administrator":((n=t.data)===null||n===void 0?void 0:n.message)||t.data}}),Jy=ce({unverifiedAttributes:function(e,t){return t.data.unverified}}),Wa=ce({user:function(e,t){return t.data.user||t.data}}),Zy=ce({username:function(e,t){var n=e.formValues,r=n.username,i=n.country_code;return i&&(r="".concat(i).concat(r)),r}}),Xy=ce({codeDeliveryDetails:function(e,t){return t.data.codeDeliveryDetails}}),Qy=ce({authAttributes:function(e,t){return{username:e.formValues.username}}}),wo=ce({formValues:function(e,t){var n,r=t.data,i=r.name,a=r.value;return U(U({},e.formValues),((n={})[i]=a,n))}}),So=ce({formValues:function(e,t){return U(U({},e.formValues),t.data)}}),_o=ce({touched:function(e,t){var n,r=t.data.name;return U(U({},e.touched),((n={})["".concat(r)]=!0,n))}}),Ya=ce({formValues:function(e,t){var n,r,i=e.loginMechanisms[0],a=i===void 0?"username":i;if(!e.formValues.phone_number&&a!=="phone_number")return e.formValues;var s=e.formValues,u=e.country_code,c=s.phone_number?"phone_number":"username",l="".concat((r=s.country_code)!==null&&r!==void 0?r:u).concat(s[c]).replace(/[^A-Z0-9+]/gi,""),d=U(U({},s),((n={})[c]=l,n));return delete d.country_code,d}}),ew=ke,tw=zr,nw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rw=/^\w*$/;function ow(e,t){if(ew(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||tw(e)?!0:rw.test(e)||!nw.test(e)||t!=null&&e in Object(t)}var bo=ow,Ja=qr,iw="Expected a function";function Co(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(iw);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(Co.Cache||Ja),n}Co.Cache=Ja;var aw=Co,sw=aw,uw=500;function cw(e){var t=sw(e,function(r){return n.size===uw&&n.clear(),r}),n=t.cache;return t}var lw=cw,dw=lw,fw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pw=/\\(\\)?/g,hw=dw(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(fw,function(n,r,i,a){t.push(i?a.replace(pw,"$1"):r||n)}),t}),mw=hw,Ai=Mt,gw=ta,vw=ke,yw=zr,ww=1/0,Ei=Ai?Ai.prototype:void 0,Ii=Ei?Ei.toString:void 0;function Za(e){if(typeof e=="string")return e;if(vw(e))return gw(e,Za)+"";if(yw(e))return Ii?Ii.call(e):"";var t=e+"";return t=="0"&&1/e==-ww?"-0":t}var Sw=Za,_w=Sw;function bw(e){return e==null?"":_w(e)}var Cw=bw,Aw=ke,Ew=bo,Iw=mw,Tw=Cw;function $w(e,t){return Aw(e)?e:Ew(e,t)?[e]:Iw(Tw(e))}var Hn=$w,Pw=zr,Nw=1/0;function kw(e){if(typeof e=="string"||Pw(e))return e;var t=e+"";return t=="0"&&1/e==-Nw?"-0":t}var Kt=kw,xw=Hn,Ow=Kt;function Uw(e,t){t=xw(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ow(t[n++])];return n&&n==r?e:void 0}var Ao=Uw,Rw=Ao;function Bw(e,t,n){var r=e==null?void 0:Rw(e,t);return r===void 0?n:r}var Ze=Bw,Vw=ia,Dw=Gt,Mw=xn,Fw=ke,Lw=Ft,jw=Xe.exports,zw=Rn,Gw=Un,Hw="[object Map]",Kw="[object Set]",qw=Object.prototype,Ww=qw.hasOwnProperty;function Yw(e){if(e==null)return!0;if(Lw(e)&&(Fw(e)||typeof e=="string"||typeof e.splice=="function"||jw(e)||Gw(e)||Mw(e)))return!e.length;var t=Dw(e);if(t==Hw||t==Kw)return!e.size;if(zw(e))return!Vw(e).length;for(var n in e)if(Ww.call(e,n))return!1;return!0}var Rr=Yw,Jw=Wr,Zw=Lt;function Xw(e,t,n){(n!==void 0&&!Zw(e[t],n)||n===void 0&&!(t in e))&&Jw(e,t,n)}var Xa=Xw;function Qw(e){return function(t,n,r){for(var i=-1,a=Object(t),s=r(t),u=s.length;u--;){var c=s[e?u:++i];if(n(a[c],c,a)===!1)break}return t}}var eS=Qw,tS=eS,nS=tS(),rS=nS,oS=Ft,iS=Ge;function aS(e){return iS(e)&&oS(e)}var sS=aS,uS=ht,cS=Zr,lS=Ge,dS="[object Object]",fS=Function.prototype,pS=Object.prototype,Qa=fS.toString,hS=pS.hasOwnProperty,mS=Qa.call(Object);function gS(e){if(!lS(e)||uS(e)!=dS)return!1;var t=cS(e);if(t===null)return!0;var n=hS.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Qa.call(n)==mS}var vS=gS;function yS(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var es=yS,wS=jt,SS=zt;function _S(e){return wS(e,SS(e))}var bS=_S,Ti=Xa,CS=_n.exports,AS=wa,ES=la,IS=Sa,$i=xn,Pi=ke,TS=sS,$S=Xe.exports,PS=Lr,NS=Be,kS=vS,xS=Un,Ni=es,OS=bS;function US(e,t,n,r,i,a,s){var u=Ni(e,n),c=Ni(t,n),l=s.get(c);if(l){Ti(e,n,l);return}var d=a?a(u,c,n+"",e,t,s):void 0,p=d===void 0;if(p){var f=Pi(c),h=!f&&$S(c),g=!f&&!h&&xS(c);d=c,f||h||g?Pi(u)?d=u:TS(u)?d=ES(u):h?(p=!1,d=CS(c,!0)):g?(p=!1,d=AS(c,!0)):d=[]:kS(c)||$i(c)?(d=u,$i(u)?d=OS(u):(!NS(u)||PS(u))&&(d=IS(c))):p=!1}p&&(s.set(c,d),i(d,c,r,a,s),s.delete(c)),Ti(e,n,d)}var RS=US,BS=Ln,VS=Xa,DS=rS,MS=RS,FS=Be,LS=zt,jS=es;function ts(e,t,n,r,i){e!==t&&DS(t,function(a,s){if(i||(i=new BS),FS(a))MS(e,t,s,n,ts,r,i);else{var u=r?r(jS(e,s),a,s+"",e,t,i):void 0;u===void 0&&(u=a),VS(e,s,u)}},LS)}var zS=ts;function GS(e){return e}var Eo=GS;function HS(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var KS=HS,qS=KS,ki=Math.max;function WS(e,t,n){return t=ki(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=ki(r.length-t,0),s=Array(a);++i<a;)s[i]=r[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=r[i];return u[t]=n(s),qS(e,this,u)}}var YS=WS;function JS(e){return function(){return e}}var ZS=JS,XS=ZS,xi=ca,QS=Eo,e1=xi?function(e,t){return xi(e,"toString",{configurable:!0,enumerable:!1,value:XS(t),writable:!0})}:QS,t1=e1,n1=800,r1=16,o1=Date.now;function i1(e){var t=0,n=0;return function(){var r=o1(),i=r1-(r-n);if(n=r,i>0){if(++t>=n1)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var a1=i1,s1=t1,u1=a1,c1=u1(s1),l1=c1,d1=Eo,f1=YS,p1=l1;function h1(e,t){return p1(f1(e,t,d1),e+"")}var m1=h1,g1=Lt,v1=Ft,y1=On,w1=Be;function S1(e,t,n){if(!w1(n))return!1;var r=typeof t;return(r=="number"?v1(n)&&y1(t,n.length):r=="string"&&t in n)?g1(n[t],e):!1}var _1=S1,b1=m1,C1=_1;function A1(e){return b1(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,s&&C1(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t})}var E1=A1,I1=zS,T1=E1,$1=T1(function(e,t,n){I1(e,t,n)}),P1=$1,Io=function(e,t,n,r){return Y(void 0,void 0,void 0,function(){var i,a;return J(this,function(s){switch(s.label){case 0:return[4,Promise.all(r.map(function(u){return u(e,t,n)}))];case 1:return i=s.sent(),a=P1.apply(void 0,Oe([{}],i,!1)),Rr(a)?[2,Promise.resolve()]:[2,Promise.reject(a)]}})})},Tn={getAmplifyConfig:function(){return Y(this,void 0,void 0,function(){return J(this,function(e){return[2,le.Amplify.configure()]})})},getCurrentUser:function(){return Y(this,void 0,void 0,function(){return J(this,function(e){return[2,le.Auth.currentAuthenticatedUser()]})})},handleSignUp:function(e){return Y(this,void 0,void 0,function(){return J(this,function(t){return[2,le.Auth.signUp(e)]})})},handleSignIn:function(e){var t=e.username,n=e.password;return Y(this,void 0,void 0,function(){return J(this,function(r){return[2,le.Auth.signIn(t,n)]})})},handleConfirmSignIn:function(e){var t=e.user,n=e.code,r=e.mfaType;return Y(this,void 0,void 0,function(){return J(this,function(i){return[2,le.Auth.confirmSignIn(t,n,r)]})})},handleConfirmSignUp:function(e){var t=e.username,n=e.code;return Y(this,void 0,void 0,function(){return J(this,function(r){switch(r.label){case 0:return[4,le.Auth.confirmSignUp(t,n)];case 1:return[2,r.sent()]}})})},handleForgotPasswordSubmit:function(e){var t=e.username,n=e.code,r=e.password;return Y(this,void 0,void 0,function(){return J(this,function(i){return[2,le.Auth.forgotPasswordSubmit(t,n,r)]})})},handleForgotPassword:function(e){return Y(this,void 0,void 0,function(){return J(this,function(t){return[2,le.Auth.forgotPassword(e)]})})},validateCustomSignUp:function(e,t){return Y(this,void 0,void 0,function(){return J(this,function(n){return[2]})})},validateFormPassword:function(e,t,n){return Y(this,void 0,void 0,function(){var r,i,a,s;return J(this,function(u){return r=e.password,t.password&&n?(i=[],a=+(n==null?void 0:n.passwordPolicyMinLength),r.length<a&&i.push("Password must have at least ".concat(a," characters")),(s=n==null?void 0:n.passwordPolicyCharacters)==null||s.forEach(function(c){switch(c){case"REQUIRES_LOWERCASE":/[a-z]/.test(r)||i.push("Password must have lower case letters");break;case"REQUIRES_UPPERCASE":/[A-Z]/.test(r)||i.push("Password must have upper case letters");break;case"REQUIRES_NUMBERS":/[0-9]/.test(r)||i.push("Password must have numbers");break;case"REQUIRES_SYMBOLS":Tl(r)||i.push("Password must have special characters")}}),[2,i.length!==0?{password:i}:null]):[2,null]})})},validateConfirmPassword:function(e,t){return Y(this,void 0,void 0,function(){var n,r,i,a;return J(this,function(s){return n=e.password,r=e.confirm_password,i=t.confirm_password,a=t.password,n||r?(n||r)&&n!==r&&(i&&a||(n==null?void 0:n.length)>=6&&(r==null?void 0:r.length)>=6)?[2,{confirm_password:"Your passwords must match"}]:[2]:[2,null]})})},validatePreferredUsername:function(e,t){return Y(this,void 0,void 0,function(){return J(this,function(n){return[2]})})}},N1=["SMS_MFA","SOFTWARE_TOKEN_MFA"],ur=function(e){return Ze(e,"data.challengeName")},Oi=function(e,t){return e===t},Ui=function(e){return N1.includes(e)};function k1(e){var t=e.services;return Ht({initial:"init",id:"signInActor",states:{init:{always:[{target:"autoSignIn",cond:"shouldAutoSignIn"},{target:"signIn"}]},signIn:{initial:"edit",exit:["clearFormValues","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onError:{actions:"setRemoteError"}}},submit:{tags:["pending"],entry:["parsePhoneNumber","clearError","sendUpdate"],invoke:{src:"signIn",onDone:[{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldForceChangePassword",actions:["setUser","setChallengeName","setRequiredAttributes"],target:"#signInActor.forceNewPassword"},{actions:"setUser",target:"verifying"}],onError:[{cond:"shouldRedirectToConfirmSignUp",actions:["setCredentials","setConfirmSignUpIntent"],target:"rejected"},{cond:"shouldRedirectToConfirmResetPassword",actions:["setUsernameAuthAttributes","setConfirmResetPasswordIntent"],target:"rejected"},{actions:"setRemoteError",target:"edit"}]}},verifying:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"checkVerifiedContact",onDone:[{cond:"shouldRequestVerification",target:"#signInActor.verifyUser",actions:"setUnverifiedAttributes"},{target:"resolved"}],onError:{actions:"setRemoteError",target:"edit"}}},resolved:{always:"#signInActor.resolved"},rejected:{always:"#signInActor.rejected"}}},autoSignIn:{initial:"submit",states:{submit:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"signIn",onDone:[{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldForceChangePassword",actions:["setUser","setChallengeName","setRequiredAttributes"],target:"#signInActor.forceNewPassword"},{actions:"setUser",target:"#signInActor.resolved"}],onError:[{cond:"shouldRedirectToConfirmSignUp",actions:["setCredentials","setConfirmSignUpIntent"],target:"#signInActor.rejected"},{cond:"shouldRedirectToConfirmResetPassword",actions:["setUsernameAuthAttributes","setConfirmResetPasswordIntent"],target:"#signInActor.rejected"},{actions:"setRemoteError",target:"#signInActor.signIn"}]}}}},confirmSignIn:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmSignIn",onDone:{target:"#signInActor.resolved",actions:["setUser","clearChallengeName","clearRequiredAttributes"]},onError:{target:"edit",actions:"setRemoteError"}}}}},forceNewPassword:{type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"idle",entry:"clearError",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"forceNewPassword",onDone:[{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{target:"resolved",actions:["setUser","setCredentials"]}],onError:{target:"idle",actions:"setRemoteError"}}},resolved:{type:"final",always:"#signInActor.resolved"}}}}},setupTOTP:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"verifyTotpToken",onDone:{actions:["clearChallengeName","clearRequiredAttributes"],target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},verifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"verifyUser",onDone:{target:"#signInActor.confirmVerifyUser"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmVerifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearUnverifiedAttributes","clearAttributeToVerify","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"confirmVerifyUser",onDone:{target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},resolved:{type:"final",data:function(n){return{user:n.user}}},rejected:{type:"final",data:function(n,r){return{intent:n.redirectIntent,authAttributes:n.authAttributes}}}}},{actions:{clearAttributeToVerify:Ly,clearChallengeName:jy,clearRequiredAttributes:zy,clearError:po,clearFormValues:ho,clearTouched:mo,clearUnverifiedAttributes:Gy,clearValidationError:go,handleInput:wo,handleSubmit:So,handleBlur:_o,parsePhoneNumber:Ya,setChallengeName:Ky,setConfirmResetPasswordIntent:Wy,setConfirmSignUpIntent:Yy,setRequiredAttributes:qy,setCredentials:qa,setFieldErrors:vo,setRemoteError:yo,setUnverifiedAttributes:Jy,setUser:Wa,setUsernameAuthAttributes:Qy,sendUpdate:so()},guards:{shouldConfirmSignIn:function(n,r){return Ui(ur(r))},shouldAutoSignIn:function(n){return(n==null?void 0:n.intent)==="autoSignIn"},shouldRedirectToConfirmSignUp:function(n,r){return r.data.code==="UserNotConfirmedException"},shouldRedirectToConfirmResetPassword:function(n,r){return r.data.code==="PasswordResetRequiredException"},shouldSetupTOTP:function(n,r){return Oi(ur(r),"MFA_SETUP")},shouldForceChangePassword:function(n,r){return Oi(ur(r),"NEW_PASSWORD_REQUIRED")},shouldRequestVerification:function(n,r){var i=r.data,a=i.unverified,s=i.verified;return Rr(s)&&!Rr(a)}},services:{signIn:function(n){return Y(this,void 0,void 0,function(){var r,i,a,s,u,c,l;return J(this,function(d){switch(d.label){case 0:return r=n.authAttributes,i=r===void 0?{}:r,a=n.formValues,s=a===void 0?{}:a,u=U(U({},i),s),c=u.username,l=u.password,[4,t.handleSignIn({username:c,password:l})];case 1:return[2,d.sent()]}})})},confirmSignIn:function(n){return Y(this,void 0,void 0,function(){var r,i,a,s;return J(this,function(u){switch(u.label){case 0:return r=n.challengeName,i=n.user,a=n.formValues.confirmation_code,s=Ui(r)?r:void 0,[4,t.handleConfirmSignIn({user:i,code:a,mfaType:s})];case 1:return u.sent(),[4,le.Auth.currentAuthenticatedUser()];case 2:return[2,u.sent()]}})})},forceNewPassword:function(n){return Y(this,void 0,void 0,function(){var r,i,a,s,u,c,l,d,p;return J(this,function(f){switch(f.label){case 0:r=n.user,i=n.formValues,a=i.password,i.confirm_password,s=i.phone_number,u=i.country_code,c=aa(i,["password","confirm_password","phone_number","country_code"]),s&&(l="".concat(u).concat(s).replace(/[^A-Z0-9+]/gi,""),c=U(U({},c),{phone_number:l})),f.label=1;case 1:return f.trys.push([1,3,,4]),[4,le.Auth.completeNewPassword(r,a,c)];case 2:return(d=f.sent()).challengeName?[2,d]:[2,le.Auth.currentAuthenticatedUser()];case 3:return p=f.sent(),[2,Promise.reject(p)];case 4:return[2]}})})},verifyTotpToken:function(n){return Y(this,void 0,void 0,function(){var r,i,a;return J(this,function(s){return r=n.formValues,i=n.user,a=r.confirmation_code,[2,le.Auth.verifyTotpToken(i,a)]})})},federatedSignIn:function(n,r){return Y(this,void 0,void 0,function(){var i;return J(this,function(a){switch(a.label){case 0:return i=r.data.provider,[4,le.Auth.federatedSignIn({provider:i})];case 1:return[2,a.sent()]}})})},checkVerifiedContact:function(n){return Y(this,void 0,void 0,function(){var r;return J(this,function(i){switch(i.label){case 0:return r=n.user,[4,le.Auth.verifiedContact(r)];case 1:return[2,i.sent()]}})})},verifyUser:function(n){return Y(this,void 0,void 0,function(){var r,i;return J(this,function(a){switch(a.label){case 0:return r=n.formValues.unverifiedAttr,[4,le.Auth.verifyCurrentUserAttribute(r)];case 1:return i=a.sent(),n.attributeToVerify=r,[2,i]}})})},confirmVerifyUser:function(n){return Y(this,void 0,void 0,function(){var r,i;return J(this,function(a){switch(a.label){case 0:return r=n.attributeToVerify,i=n.formValues.confirmation_code,[4,le.Auth.verifyCurrentUserAttributeSubmit(r,i)];case 1:return[2,a.sent()]}})})},validateFields:function(n){return Y(this,void 0,void 0,function(){return J(this,function(r){return[2,Io(n.formValues,n.touched,n.passwordSettings,[Tn.validateConfirmPassword])]})})}}})}var x1=Ht({initial:"pending",id:"signOutActor",states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:function(){return le.Auth.signOut()}}});function O1(e){var t=e.services;return Ht({id:"resetPasswordActor",initial:"init",states:{init:{always:[{target:"confirmResetPassword",cond:"shouldAutoConfirmReset"},{target:"resetPassword"}]},resetPassword:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:["pending"],entry:["sendUpdate","setUsername","clearError"],invoke:{src:"resetPassword",onDone:{target:"#resetPasswordActor.confirmResetPassword"},onError:{actions:["setRemoteError"],target:"edit"}}}}},confirmResetPassword:{type:"parallel",exit:["clearFormValues","clearError","clearUsername","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"resetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmResetPassword",onDone:{actions:"clearUsername",target:"#resetPasswordActor.resolved"},onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final"}}},{actions:{clearError:po,clearFormValues:ho,clearTouched:mo,clearUsername:Hy,clearValidationError:go,handleInput:wo,handleSubmit:So,handleBlur:_o,setFieldErrors:vo,setRemoteError:yo,setUsername:Zy,sendUpdate:so()},guards:{shouldAutoConfirmReset:function(n,r){return!(!n.intent||n.intent!=="confirmPasswordReset")}},services:{resetPassword:function(n){return Y(this,void 0,void 0,function(){var r;return J(this,function(i){return r=n.username,[2,t.handleForgotPassword(r)]})})},confirmResetPassword:function(n){return Y(this,void 0,void 0,function(){var r,i,a,s;return J(this,function(u){return r=n.username,i=n.formValues,a=i.confirmation_code,s=i.password,[2,t.handleForgotPasswordSubmit({username:r,code:a,password:s})]})})},validateFields:function(n,r){return Y(this,void 0,void 0,function(){return J(this,function(i){return[2,Io(n.formValues,n.touched,n.passwordSettings,[Tn.validateConfirmPassword])]})})}}})}var U1="__lodash_hash_undefined__";function R1(e){return this.__data__.set(e,U1),this}var B1=R1;function V1(e){return this.__data__.has(e)}var D1=V1,M1=qr,F1=B1,L1=D1;function $n(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new M1;++t<n;)this.add(e[t])}$n.prototype.add=$n.prototype.push=F1;$n.prototype.has=L1;var j1=$n;function z1(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var G1=z1;function H1(e,t){return e.has(t)}var K1=H1,q1=j1,W1=G1,Y1=K1,J1=1,Z1=2;function X1(e,t,n,r,i,a){var s=n&J1,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var p=-1,f=!0,h=n&Z1?new q1:void 0;for(a.set(e,t),a.set(t,e);++p<u;){var g=e[p],m=t[p];if(r)var v=s?r(m,g,p,t,e,a):r(g,m,p,e,t,a);if(v!==void 0){if(v)continue;f=!1;break}if(h){if(!W1(t,function(w,S){if(!Y1(h,S)&&(g===w||i(g,w,n,r,a)))return h.push(S)})){f=!1;break}}else if(!(g===m||i(g,m,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var ns=X1;function Q1(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var e_=Q1;function t_(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var n_=t_,Ri=Mt,Bi=ya,r_=Lt,o_=ns,i_=e_,a_=n_,s_=1,u_=2,c_="[object Boolean]",l_="[object Date]",d_="[object Error]",f_="[object Map]",p_="[object Number]",h_="[object RegExp]",m_="[object Set]",g_="[object String]",v_="[object Symbol]",y_="[object ArrayBuffer]",w_="[object DataView]",Vi=Ri?Ri.prototype:void 0,cr=Vi?Vi.valueOf:void 0;function S_(e,t,n,r,i,a,s){switch(n){case w_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y_:return!(e.byteLength!=t.byteLength||!a(new Bi(e),new Bi(t)));case c_:case l_:case p_:return r_(+e,+t);case d_:return e.name==t.name&&e.message==t.message;case h_:case g_:return e==t+"";case f_:var u=i_;case m_:var c=r&s_;if(u||(u=a_),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;r|=u_,s.set(e,t);var d=o_(u(e),u(t),r,i,a,s);return s.delete(e),d;case v_:if(cr)return cr.call(e)==cr.call(t)}return!1}var __=S_,Di=ma,b_=1,C_=Object.prototype,A_=C_.hasOwnProperty;function E_(e,t,n,r,i,a){var s=n&b_,u=Di(e),c=u.length,l=Di(t),d=l.length;if(c!=d&&!s)return!1;for(var p=c;p--;){var f=u[p];if(!(s?f in t:A_.call(t,f)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var m=!0;a.set(e,t),a.set(t,e);for(var v=s;++p<c;){f=u[p];var w=e[f],S=t[f];if(r)var _=s?r(S,w,f,t,e,a):r(w,S,f,e,t,a);if(!(_===void 0?w===S||i(w,S,n,r,a):_)){m=!1;break}v||(v=f=="constructor")}if(m&&!v){var b=e.constructor,C=t.constructor;b!=C&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof C=="function"&&C instanceof C)&&(m=!1)}return a.delete(e),a.delete(t),m}var I_=E_,lr=Ln,T_=ns,$_=__,P_=I_,Mi=Gt,Fi=ke,Li=Xe.exports,N_=Un,k_=1,ji="[object Arguments]",zi="[object Array]",dn="[object Object]",x_=Object.prototype,Gi=x_.hasOwnProperty;function O_(e,t,n,r,i,a){var s=Fi(e),u=Fi(t),c=s?zi:Mi(e),l=u?zi:Mi(t);c=c==ji?dn:c,l=l==ji?dn:l;var d=c==dn,p=l==dn,f=c==l;if(f&&Li(e)){if(!Li(t))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new lr),s||N_(e)?T_(e,t,n,r,i,a):$_(e,t,c,n,r,i,a);if(!(n&k_)){var h=d&&Gi.call(e,"__wrapped__"),g=p&&Gi.call(t,"__wrapped__");if(h||g){var m=h?e.value():e,v=g?t.value():t;return a||(a=new lr),i(m,v,n,r,a)}}return f?(a||(a=new lr),P_(e,t,n,r,i,a)):!1}var U_=O_,R_=U_,Hi=Ge;function rs(e,t,n,r,i){return e===t?!0:e==null||t==null||!Hi(e)&&!Hi(t)?e!==e&&t!==t:R_(e,t,n,r,rs,i)}var os=rs,B_=Ln,V_=os,D_=1,M_=2;function F_(e,t,n,r){var i=n.length,a=i,s=!r;if(e==null)return!a;for(e=Object(e);i--;){var u=n[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){u=n[i];var c=u[0],l=e[c],d=u[1];if(s&&u[2]){if(l===void 0&&!(c in e))return!1}else{var p=new B_;if(r)var f=r(l,d,c,e,t,p);if(!(f===void 0?V_(d,l,D_|M_,r,p):f))return!1}}return!0}var L_=F_,j_=Be;function z_(e){return e===e&&!j_(e)}var is=z_,G_=is,H_=Bn;function K_(e){for(var t=H_(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,G_(i)]}return t}var q_=K_;function W_(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var as=W_,Y_=L_,J_=q_,Z_=as;function X_(e){var t=J_(e);return t.length==1&&t[0][2]?Z_(t[0][0],t[0][1]):function(n){return n===e||Y_(n,e,t)}}var Q_=X_;function eb(e,t){return e!=null&&t in Object(e)}var tb=eb,nb=Hn,rb=xn,ob=ke,ib=On,ab=jr,sb=Kt;function ub(e,t,n){t=nb(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var s=sb(t[r]);if(!(a=e!=null&&n(e,s)))break;e=e[s]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&ab(i)&&ib(s,i)&&(ob(e)||rb(e)))}var cb=ub,lb=tb,db=cb;function fb(e,t){return e!=null&&db(e,t,lb)}var pb=fb,hb=os,mb=Ze,gb=pb,vb=bo,yb=is,wb=as,Sb=Kt,_b=1,bb=2;function Cb(e,t){return vb(e)&&yb(t)?wb(Sb(e),t):function(n){var r=mb(n,e);return r===void 0&&r===t?gb(n,e):hb(t,r,_b|bb)}}var Ab=Cb;function Eb(e){return function(t){return t==null?void 0:t[e]}}var Ib=Eb,Tb=Ao;function $b(e){return function(t){return Tb(t,e)}}var Pb=$b,Nb=Ib,kb=Pb,xb=bo,Ob=Kt;function Ub(e){return xb(e)?Nb(Ob(e)):kb(e)}var Rb=Ub,Bb=Q_,Vb=Ab,Db=Eo,Mb=ke,Fb=Rb;function Lb(e){return typeof e=="function"?e:e==null?Db:typeof e=="object"?Mb(e)?Vb(e[0],e[1]):Bb(e):Fb(e)}var jb=Lb,zb=Yr,Gb=Hn,Hb=On,Ki=Be,Kb=Kt;function qb(e,t,n,r){if(!Ki(e))return e;t=Gb(t,e);for(var i=-1,a=t.length,s=a-1,u=e;u!=null&&++i<a;){var c=Kb(t[i]),l=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=s){var d=u[c];l=r?r(d,c,u):void 0,l===void 0&&(l=Ki(d)?d:Hb(t[i+1])?[]:{})}zb(u,c,l),u=u[c]}return e}var Wb=qb,Yb=Ao,Jb=Wb,Zb=Hn;function Xb(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var s=t[r],u=Yb(e,s);n(u,s)&&Jb(a,Zb(s,e),u)}return a}var Qb=Xb,e0=ta,t0=jb,n0=Qb,r0=ga;function o0(e,t){if(e==null)return{};var n=e0(r0(e),function(r){return[r]});return t=t0(t),n0(e,n,function(r,i){return t(r,i[0])})}var i0=o0;function a0(e){var t=e.services;return Ht({id:"signUpActor",initial:"init",states:{init:{always:[{target:"confirmSignUp",cond:"shouldInitConfirmSignUp"},{target:"signUp"}]},signUp:{type:"parallel",exit:["clearError","clearFormValues","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateSignUp",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onDone:"#signUpActor.resolved",onError:{actions:"setRemoteError"}}},validate:{entry:"sendUpdate",invoke:{src:"validateSignUp",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["parsePhoneNumber","sendUpdate","clearError"],invoke:{src:"signUp",onDone:[{cond:"shouldSkipConfirm",target:"skipConfirm",actions:["setUser","setCredentials"]},{target:"resolved",actions:["setUser","setCredentials","setCodeDeliveryDetails"]}],onError:{target:"idle",actions:"setRemoteError"}}},skipConfirm:{always:{target:"#signUpActor.resolved",actions:"setAutoSignInIntent"}},resolved:{type:"final",always:"#signUpActor.confirmSignUp"}}}}},confirmSignUp:{initial:"edit",states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"resend"}},resend:{tags:["pending"],entry:"sendUpdate",invoke:{src:"resendConfirmationCode",onDone:{target:"edit"},onError:[{target:"#signUpActor.resolved",actions:"setAutoSignInIntent",cond:"isUserAlreadyConfirmed"},{target:"edit",actions:"setRemoteError"}]}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"confirmSignUp",onDone:{target:"#signUpActor.resolved",actions:"setAutoSignInIntent"},onError:{target:"edit",actions:"setRemoteError"}}}}},resolved:{type:"final",data:function(n,r){var i=n.authAttributes,a=i.username,s=i.password;return{user:Ze(r,"data.user")||n.user,authAttributes:{username:a,password:s},intent:n.intent}}}}},{guards:{isUserAlreadyConfirmed:function(n,r){return r.data.message==="User is already confirmed."},shouldInitConfirmSignUp:function(n){return n.intent&&n.intent==="confirmSignUp"},shouldSkipConfirm:function(n,r){return r.data.userConfirmed}},actions:{clearError:po,clearFormValues:ho,clearTouched:mo,clearValidationError:go,handleInput:wo,handleSubmit:So,handleBlur:_o,parsePhoneNumber:Ya,setCredentials:qa,setFieldErrors:vo,setRemoteError:yo,setCodeDeliveryDetails:Xy,setUser:Wa,sendUpdate:so(),setAutoSignInIntent:Ee({intent:function(n){return"autoSignIn"}})},services:{confirmSignUp:function(n,r){return Y(this,void 0,void 0,function(){var i,a,s,u,c;return J(this,function(l){switch(l.label){case 0:return i=n.user,a=n.authAttributes,s=n.formValues,u=s.confirmation_code,c=Ze(i,"username")||Ze(a,"username"),[4,t.handleConfirmSignUp({username:c,code:u})];case 1:return[2,l.sent()]}})})},resendConfirmationCode:function(n,r){return Y(this,void 0,void 0,function(){var i,a,s;return J(this,function(u){return i=n.user,a=n.authAttributes,s=Ze(i,"username")||Ze(a,"username"),[2,le.Auth.resendSignUp(s)]})})},federatedSignIn:function(n,r){return Y(this,void 0,void 0,function(){var i;return J(this,function(a){switch(a.label){case 0:return i=r.data.provider,[4,le.Auth.federatedSignIn({provider:i})];case 1:return[2,a.sent()]}})})},signUp:function(n,r){return Y(this,void 0,void 0,function(){var i,a,s,u,c,l,d;return J(this,function(p){switch(p.label){case 0:return i=n.formValues,a=n.loginMechanisms,s=a[0],c=(u=i)[s===void 0?"username":s],l=u.password,d=i0(i,function(f,h){switch(h){case"address":case"birthdate":case"email":case"family_name":case"gender":case"given_name":case"locale":case"middle_name":case"name":case"nickname":case"phone_number":case"picture":case"preferred_username":case"profile":case"updated_at":case"website":case"zoneinfo":return!0;default:return h.startsWith("custom:")}}),[4,t.handleSignUp({username:c,password:l,attributes:d})];case 1:return[2,p.sent()]}})})},validateSignUp:function(n,r){return Y(this,void 0,void 0,function(){return J(this,function(i){return[2,Io(n.formValues,n.touched,n.passwordSettings,[t.validateFormPassword,t.validateConfirmPassword,t.validatePreferredUsername,t.validateCustomSignUp])]})})}}})}function s0(){return Ht({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:Tn,actorRef:void 0,hasSetup:!1},states:{idle:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"authenticated"},onError:{target:"setup"}}},setup:{initial:"waitConfig",states:{waitConfig:{on:{INIT:{actions:["configure","setHasSetup"],target:"applyConfig"}}},applyConfig:{invoke:{src:"getAmplifyConfig",onDone:{actions:"applyAmplifyConfig",target:"goToInitialState"}}},goToInitialState:{always:[{target:"#authenticator.signUp",cond:"isInitialStateSignUp"},{target:"#authenticator.resetPassword",cond:"isInitialStateResetPassword"},{target:"#authenticator.signIn"}]}}},signIn:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignInActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignInActor"}},on:{SIGN_UP:"signUp",RESET_PASSWORD:"resetPassword","done.invoke.signInActor":[{target:"signUp",actions:"setActorDoneData",cond:"shouldRedirectToSignUp"},{target:"resetPassword",actions:"setActorDoneData",cond:"shouldRedirectToResetPassword"},{target:"authenticated",actions:"setActorDoneData"}]}},signUp:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignUpActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignUpActor"},autoSignIn:{invoke:{src:"getCurrentUser",onDone:"#authenticator.authenticated",onError:"#authenticator.setup.goToInitialState"}}},on:{SIGN_IN:"signIn","done.invoke.signUpActor":{target:"#authenticator.signIn",actions:"setActorDoneData",cond:"shouldAutoSignIn"}}},resetPassword:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnResetPasswordActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopResetPasswordActor"}},on:{SIGN_IN:"signIn","done.invoke.resetPasswordActor":{target:"signIn",actions:"setActorDoneData"}}},signOut:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignOutActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:["stopSignOutActor","clearUser"]}},on:{"done.invoke.signOutActor":[{target:"setup",cond:"shouldSetup"},{target:"setup.goToInitialState"}]}},authenticated:{initial:"idle",states:{idle:{on:{TOKEN_REFRESH:"refreshUser"}},refreshUser:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"idle"},onError:{target:"#authenticator.signOut"}}}},on:{SIGN_OUT:"signOut"}}},on:{CHANGE:{actions:"forwardToActor"},BLUR:{actions:"forwardToActor"},SUBMIT:{actions:"forwardToActor"},FEDERATED_SIGN_IN:{actions:"forwardToActor"},RESEND:{actions:"forwardToActor"},SIGN_IN:{actions:"forwardToActor"},SKIP:{actions:"forwardToActor"}}},{actions:{forwardToActor:My([{cond:"hasActor",actions:Yv(function(e){return e.actorRef})}]),setUser:Ee({user:function(e,t){return t.data}}),setActorDoneData:Ee({actorDoneData:function(e,t){var n,r;return{authAttributes:U({},(n=t.data)===null||n===void 0?void 0:n.authAttributes),intent:(r=t.data)===null||r===void 0?void 0:r.intent}},user:function(e,t){var n;return(n=t.data)===null||n===void 0?void 0:n.user}}),clearUser:Ee({user:void 0}),clearActorDoneData:Ee({actorDoneData:void 0}),applyAmplifyConfig:Ee({config:function(e,t){var n,r,i,a,s,u,c,l,d,p=(r=(n=t.data.aws_cognito_username_attributes)===null||n===void 0?void 0:n.map(function(C){return C.toLowerCase()}))!==null&&r!==void 0?r:[],f=(a=(i=t.data.aws_cognito_verification_mechanisms)===null||i===void 0?void 0:i.map(function(C){return C.toLowerCase()}))!==null&&a!==void 0?a:[],h=(u=(s=t.data.aws_cognito_signup_attributes)===null||s===void 0?void 0:s.map(function(C){return C.toLowerCase()}))!==null&&u!==void 0?u:[],g=(l=(c=t.data.aws_cognito_social_providers)===null||c===void 0?void 0:c.map(function(C){return C.toLowerCase()}))!==null&&l!==void 0?l:[],m=t.data.aws_cognito_password_protection_settings||{};p.length===0&&p.push("username");var v=e.config,w=v.loginMechanisms,S=v.signUpAttributes,_=v.socialProviders,b=v.initialState;return{loginMechanisms:w!=null?w:p,formFields:(d=u0(v.formFields))!==null&&d!==void 0?d:{},passwordSettings:m,signUpAttributes:S!=null?S:Array.from(new Set(Oe(Oe([],f,!0),h,!0))),socialProviders:_!=null?_:g.sort(),initialState:b}}}),spawnSignInActor:Ee({actorRef:function(e,t){var n,r,i,a,s,u,c=e.services,l=k1({services:c}).withContext({authAttributes:(r=(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes)!==null&&r!==void 0?r:{},user:e.user,intent:(i=e.actorDoneData)===null||i===void 0?void 0:i.intent,country_code:"+1",formValues:{},touched:{},validationError:{},loginMechanisms:(a=e.config)===null||a===void 0?void 0:a.loginMechanisms,socialProviders:(s=e.config)===null||s===void 0?void 0:s.socialProviders,formFields:(u=e.config)===null||u===void 0?void 0:u.formFields});return sn(l,{name:"signInActor"})}}),spawnSignUpActor:Ee({actorRef:function(e,t){var n,r,i,a,s,u,c,l=e.services,d=a0({services:l}).withContext({authAttributes:(r=(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes)!==null&&r!==void 0?r:{},country_code:"+1",intent:(i=e.actorDoneData)===null||i===void 0?void 0:i.intent,formValues:{},touched:{},validationError:{},loginMechanisms:(a=e.config)===null||a===void 0?void 0:a.loginMechanisms,socialProviders:(s=e.config)===null||s===void 0?void 0:s.socialProviders,formFields:(u=e.config)===null||u===void 0?void 0:u.formFields,passwordSettings:(c=e.config)===null||c===void 0?void 0:c.passwordSettings});return sn(d,{name:"signUpActor"})}}),spawnResetPasswordActor:Ee({actorRef:function(e,t){var n,r,i,a,s=e.services,u=O1({services:s}).withContext({formValues:{},touched:{},intent:(n=e.actorDoneData)===null||n===void 0?void 0:n.intent,username:(i=(r=e.actorDoneData)===null||r===void 0?void 0:r.authAttributes)===null||i===void 0?void 0:i.username,formFields:(a=e.config)===null||a===void 0?void 0:a.formFields,validationError:{}});return sn(u,{name:"resetPasswordActor"})}}),spawnSignOutActor:Ee({actorRef:function(e){var t=x1.withContext({user:e.user});return sn(t,{name:"signOutActor"})}}),stopSignInActor:ln("signInActor"),stopSignUpActor:ln("signUpActor"),stopResetPasswordActor:ln("resetPasswordActor"),stopSignOutActor:ln("signOutActor"),configure:Ee(function(e,t){var n=t.data,r=n.services,i=aa(n,["services"]);return{services:U(U({},Tn),r),config:i}}),setHasSetup:Ee({hasSetup:!0})},guards:{isInitialStateSignUp:function(e){return e.config.initialState==="signUp"},isInitialStateResetPassword:function(e){return e.config.initialState==="resetPassword"},shouldRedirectToSignUp:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="confirmSignUp"},shouldRedirectToResetPassword:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="confirmPasswordReset"},shouldAutoSignIn:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="autoSignIn"},shouldSetup:function(e){return e.hasSetup===!1},hasActor:function(e){return!!e.actorRef}},services:{getCurrentUser:function(e,t){return e.services.getCurrentUser()},getAmplifyConfig:function(e,t){return e.services.getAmplifyConfig()}}})}function u0(e){return e&&Object.keys(e).forEach(function(t){Object.keys(e[t]).forEach(function(n){var r=e[t][n];r.required=r.isRequired})}),e}const c0={key:0,class:"amplify-flex amplify-alert amplify-alert--error amplify-authenticator__base","data-variation":"error",role:"alert"},l0={class:"amplify-flex amplify-authenticator__icon-wrapper"},d0=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor"},[o.createElementVNode("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})],-1),f0=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor"},[o.createElementVNode("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})],-1),De={__name:"base-alert",setup(e){const t=o.ref(!0),n=R("Dismiss alert");function r(){t.value=!1}return(i,a)=>{const s=Se;return t.value?(o.openBlock(),o.createElementBlock("div",c0,[o.createElementVNode("div",l0,[d0,o.createElementVNode("div",null,[o.renderSlot(i.$slots,"default")])]),o.createVNode(s,{class:"amplify-field-group__control amplify-alert__dismiss","aria-label":o.unref(n),fullwidth:!1,variation:"link",type:"button",onClick:r},{default:o.withCtx(()=>[f0]),_:1},8,["aria-label"])])):o.createCommentVNode("",!0)}}};var Kn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const p0={};function h0(e,t){return o.openBlock(),o.createElementBlock("div",null,[o.renderSlot(e.$slots,"default")])}var ye=Kn(p0,[["render",h0]]);const Me=o.defineComponent({__name:"base-form",setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"formt",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("form",o.mergeProps({"data-amplify-form":""},n.$attrs),[o.renderSlot(n.$slots,"default")],16)])}}),Fe=o.defineComponent({__name:"base-footer",setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"footert",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("footer",o.normalizeProps(o.guardReactiveProps(n.$attrs)),[o.renderSlot(n.$slots,"default")],16)])}});function m0(e){return o.getCurrentScope()?(o.onScopeDispose(e),!0):!1}function Te(e){let t=0,n,r;const i=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...a)=>(t+=1,n||(r=o.effectScope(!0),n=r.run(()=>e(...a))),m0(i),n)}var Pn=globalThis&&globalThis.__assign||function(){return Pn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Pn.apply(this,arguments)},g0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function v0(e,t,n){if(typeof e=="object")return e;var r=function(){};return{next:e,error:t||r,complete:n||r}}function y0(e,t,n){t===void 0&&(t={});var r=typeof e=="function"?e():e,i=t.context,a=t.guards,s=t.actions,u=t.activities,c=t.services,l=t.delays,d=t.state,p=g0(t,["context","guards","actions","activities","services","delays","state"]),f={context:i,guards:a,actions:s,activities:u,services:c,delays:l},h=r.withConfig(f,function(){return Pn(Pn({},r.context),i)}),g=Fa(h,p).start(d?Ne.create(d):void 0),m;return o.onMounted(function(){n&&(m=g.subscribe(v0(n)))}),o.onBeforeUnmount(function(){g.stop(),m==null||m.unsubscribe()}),g}function w0(e){return"state"in e}var qi=function(){};function S0(e){return"getSnapshot"in e?e.getSnapshot():w0(e)?e.state:void 0}function ss(e,t){t===void 0&&(t=S0);var n=o.isRef(e)?e:o.shallowRef(e),r=o.shallowRef(t(n.value)),i=function(a){n.value.send(a)};return o.watch(n,function(a,s,u){r.value=t(a);var c=a.subscribe({next:function(l){return r.value=l},error:qi,complete:qi}).unsubscribe;u(function(){return c()})},{immediate:!0}),{state:r,send:i}}const us={error:"",hasValidationErrors:!1,isPending:!1,route:"",authStatus:"",user:"",validationErrors:[""],codeDeliveryDetails:{val:"",DeliveryMedium:""},change:e=>null,updateForm:e=>null,updateBlur:e=>null,resend:e=>null,resendCode:e=>null,signOut:e=>null,federatedSignIn:e=>null,toFederatedSignIn:e=>null,resetPassword:e=>null,toResetPassword:e=>null,signIn:e=>null,toSignIn:e=>null,signUp:e=>null,toSignUp:e=>null,skip:e=>null,skipVerification:e=>null,submit:e=>null,submitForm:e=>null},Br=o.ref(),Sn=o.reactive({...us,send:"",state:""}),$e=e=>(e&&(Br.value=e),ss(Br.value)),_0=()=>(Wi(),o.watchEffect(()=>{Wi()}),Sn),Ce=_0;function Wi(){if(!Br.value)return;const{state:e,send:t}=$e(),n=sa({send:t,state:e.value});for(const r of Object.keys(us))Sn[r]=n[r];Sn.send=t,Sn.state=e}const fn=o.defineComponent({__name:"federated-sign-in-button",props:{provider:String},setup(e){const t=e,{provider:n}=o.toRefs(t),{send:r}=$e(),i=()=>{r({type:"FEDERATED_SIGN_IN",data:{provider:n==null?void 0:n.value}})};return(a,s)=>{const u=ye,c=Se;return o.openBlock(),o.createBlock(c,{class:"amplify-field-group__control federated-sign-in-button amplify-authenticator__font",fullwidth:!1,style:{"font-weight":"normal"},type:"button",onClick:i},{default:o.withCtx(()=>[o.createVNode(u,{class:"amplify-flex federated-sign-in-button-row amplify-authenticator__sign-in-button-wrapper"},{default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:3})]),_:3})}}}),b0=o.createElementVNode("svg",{"aria-label":"Amazon icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 248 268"},[o.createElementVNode("path",{d:"M139.056521,147.024612 C133.548808,156.744524 124.782731,162.726926 115.087401,162.726926 C101.790721,162.726926 93.9937779,152.612964 93.9937779,137.68681 C93.9937779,108.224571 120.447551,102.879017 145.533369,102.879017 L145.533369,110.365976 C145.533369,123.831358 145.876354,135.063787 139.056521,147.024612 M207.206992,162.579655 C209.400505,165.692256 209.887066,169.437725 207.063416,171.770186 C199.996315,177.653081 187.429476,188.590967 180.513926,194.716661 L180.46208,194.621133 C178.176838,196.663031 174.862638,196.810303 172.27828,195.445057 C160.780281,185.9162 158.686473,181.494078 152.405048,172.403055 C133.405233,191.751331 119.909143,197.534719 95.309886,197.534719 C66.1281801,197.534719 43.4791563,179.599451 43.4791563,143.669212 C43.4791563,115.616003 58.6782107,96.5105248 80.4019706,87.1727225 C99.2063636,78.9096034 125.464714,77.4528107 145.533369,75.1641337 L145.533369,70.694248 C145.533369,62.4749122 146.167493,52.7510201 141.297893,45.6541312 C137.110277,39.2856386 129.018206,36.6586354 121.859376,36.6586354 C108.658413,36.6586354 96.9171331,43.4171982 94.0416364,57.4199213 C93.4593582,60.532522 91.1701278,63.5933787 88.003492,63.7406501 L54.4387473,60.1424518 C51.6150972,59.5095829 48.4484614,57.2248862 49.2740201,52.8982915 C56.9712583,12.2553679 93.7983558,0 126.732964,0 C143.587124,0 165.606011,4.47386604 178.902691,17.2148315 C195.760839,32.917146 194.149604,53.8694866 194.149604,76.6726704 L194.149604,130.542157 C194.149604,146.734049 200.87372,153.830938 207.206992,162.579655 Z M233.826346,208.038962 C230.467669,203.683255 211.550709,205.9821 203.056405,206.998432 C200.470662,207.321077 200.076227,205.042397 202.406981,203.404973 C217.475208,192.664928 242.201125,195.766353 245.081698,199.363845 C247.966255,202.981502 244.336653,228.071183 230.172839,240.049379 C228.001452,241.888455 225.929671,240.904388 226.89783,238.468418 C230.077218,230.430525 237.204944,212.418868 233.826346,208.038962 Z M126.768855,264 C74.0234043,264 42.0764048,241.955028 17.7852554,217.541992 C12.9733903,212.705982 6.71799208,206.295994 3.31151296,200.690918 C1.90227474,198.372135 5.59096074,195.021875 8.0442063,196.84375 C38.2390146,219.267578 82.1011654,239.538304 125.529506,239.538304 C154.819967,239.538304 191.046475,227.469543 220.66851,214.867659 C225.146771,212.966167 225.146771,219.180222 224.511585,221.060516 C224.183264,222.03242 209.514625,236.221149 189.247207,247.047411 C170.304273,257.166172 146.397132,264 126.768855,264 Z",fill:"#FF9900"})],-1),C0={class:"amplify-text amplify-authenticator__federated-text"},A0=o.createElementVNode("svg",{"aria-label":"Apple icon",class:"amplify-icon federated-sign-in-icon",fill:"#000",preserveAspectRatio:"xMidYMid",stroke:"#000",strokeWidth:"0",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"})],-1),E0={class:"amplify-text amplify-authenticator__federated-text"},I0=o.createElementVNode("svg",{"aria-label":"Facebook icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 279 538"},[o.createElementVNode("path",{d:"M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z",fill:"#1877F2"})],-1),T0={class:"amplify-text amplify-authenticator__federated-text"},$0=o.createElementVNode("svg",{"aria-label":"Google icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},[o.createElementVNode("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),o.createElementVNode("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),o.createElementVNode("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),o.createElementVNode("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"})],-1),P0={class:"amplify-text amplify-authenticator__federated-text"},N0=o.createElementVNode("hr",{class:"amplify-divider amplify-divider--label amplify-divider--small","aria-orientation":"horizontal","data-size":"small","data-label":"or"},null,-1),qn=o.defineComponent({__name:"federated-sign-in",setup(e){var w;const{state:t}=$e(),n=Te(Ce),{route:r}=n(),{value:{context:i}}=t,a=(w=i==null?void 0:i.config)==null?void 0:w.socialProviders,s=a==null?void 0:a.includes("amazon"),u=a==null?void 0:a.includes("apple"),c=a==null?void 0:a.includes("facebook"),l=a==null?void 0:a.includes("google"),d=c||l||s||u,p=r==="signUp"?"Up":"In",f=o.computed(()=>gr),h=o.computed(()=>R(`Sign ${p} with Amazon`)),g=o.computed(()=>R(`Sign ${p} with Apple`)),m=o.computed(()=>R(`Sign ${p} with Facebook`)),v=o.computed(()=>R(`Sign ${p} with Google`));return(S,_)=>{const b=ye;return o.unref(d)?(o.openBlock(),o.createBlock(b,{key:0,class:"amplify-flex federated-sign-in-container amplify-authenticator__column amplify-authenticator__sign-in-base"},{default:o.withCtx(()=>[o.unref(s)?(o.openBlock(),o.createBlock(fn,{key:0,provider:o.unref(f).Amazon},{default:o.withCtx(()=>[b0,o.createElementVNode("p",C0,o.toDisplayString(o.unref(h)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(u)?(o.openBlock(),o.createBlock(fn,{key:1,provider:o.unref(f).Apple},{default:o.withCtx(()=>[A0,o.createElementVNode("p",E0,o.toDisplayString(o.unref(g)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(c)?(o.openBlock(),o.createBlock(fn,{key:2,provider:o.unref(f).Facebook},{default:o.withCtx(()=>[I0,o.createElementVNode("p",T0,o.toDisplayString(o.unref(m)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(l)?(o.openBlock(),o.createBlock(fn,{key:3,provider:o.unref(f).Google},{default:o.withCtx(()=>[$0,o.createElementVNode("p",P0,o.toDisplayString(o.unref(v)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),N0]),_:1})):o.createCommentVNode("",!0)}}});let k0=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=n[e]&63;r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r<63?t+="_":t+="-"}return t};const x0={},O0={"data-amplify-label":""};function U0(e,t){return o.openBlock(),o.createElementBlock("label",O0,[o.renderSlot(e.$slots,"default")])}var Wn=Kn(x0,[["render",U0]]);const Yn=o.defineComponent({__name:"base-input",emits:["update:modelValue"],setup(e,{emit:t}){const n=r=>{t("update:modelValue",r.target.value)};return(r,i)=>(o.openBlock(),o.createElementBlock("input",{onChange:i[0]||(i[0]=a=>n(a)),"data-amplify-input":""},null,32))}}),R0=["aria-label"],B0={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},V0=o.createElementVNode("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"},null,-1),D0=[V0],M0={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},F0=o.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),L0=o.createElementVNode("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"},null,-1),j0=[F0,L0],z0={inheritAttrs:!1},To=o.defineComponent({...z0,__name:"password-control",props:{name:null,label:null,autocomplete:null,hasError:{type:Boolean},labelHidden:{type:Boolean,default:!0},placeholder:null,required:{type:Boolean,default:!0},describedBy:null},setup(e){var S;const t=e,n=R("Show password"),r=R("Hide password"),i=o.ref("password"),a=o.ref(n),s=Math.floor(Math.random()*999999),{name:u,label:c,autocomplete:l,hasError:d,labelHidden:p,placeholder:f,required:h}=o.toRefs(t);let g=o.ref("");function m(){a.value=a.value===n?r:n,i.value=i.value==="password"?"text":"password"}const v=R((S=f==null?void 0:f.value)!=null?S:c.value),w=R(c.value);return(_,b)=>{const C=Wn,E=Yn,A=ye;return o.openBlock(),o.createBlock(A,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield amplify-authenticator__column"},{default:o.withCtx(()=>{var $;return[o.createVNode(C,{class:o.normalizeClass(["amplify-label",{"amplify-visually-hidden":($=o.unref(p))!=null?$:!0}]),for:"amplify-field-"+o.unref(s)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(w)),1)]),_:1},8,["class","for"]),o.createVNode(A,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>{var I;return[o.createVNode(E,o.mergeProps(_.$attrs,{modelValue:o.unref(g),"onUpdate:modelValue":b[0]||(b[0]=N=>o.isRef(g)?g.value=N:g=N),class:"amplify-input amplify-field-group__control",id:"amplify-field-"+o.unref(s),"data-amplify-password":"true",name:o.unref(u),autocomplete:o.unref(l),required:(I=o.unref(h))!=null?I:!0,placeholder:o.unref(v),type:i.value,"aria-invalid":o.unref(d),"aria-describedBy":e.describedBy}),null,16,["modelValue","id","name","autocomplete","required","placeholder","type","aria-invalid","aria-describedBy"]),o.createVNode(A,{class:"amplify-field-group__outer-end"},{default:o.withCtx(()=>[o.createElementVNode("button",{"aria-label":a.value,class:"amplify-button amplify-field-group__control amplify-field__show-password amplify-button--fullwidth","data-fullwidth":"false",type:"button",onClick:m},[i.value==="password"?(o.openBlock(),o.createElementBlock("svg",B0,D0)):(o.openBlock(),o.createElementBlock("svg",M0,j0))],8,R0)]),_:1})]}),_:1})]}),_:1})}}}),G0=["value","selected"],H0=o.defineComponent({__name:"base-select",props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const n=e,{options:r,selectValue:i}=o.toRefs(n),a=s=>{t("update:selectValue",s.target.value)};return(s,u)=>(o.openBlock(),o.createElementBlock("select",{onChange:u[0]||(u[0]=c=>a(c))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(r),(c,l)=>(o.openBlock(),o.createElementBlock("option",{key:l,value:c,selected:c==o.unref(i)?!0:void 0},o.toDisplayString(c),9,G0))),128))],32))}}),K0=o.createTextVNode(o.toDisplayString("Country Code")),q0=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","data-size":"large",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon amplify-icon--large"},[o.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),W0=o.defineComponent({__name:"alias-control",props:{label:{default:"Username"},name:{default:"username"},placeholder:{default:""},autocomplete:{default:""},labelHidden:{type:Boolean,default:!1},required:{type:Boolean,default:!0},dialCode:null,dialCodeList:null,type:{default:"text"},hasError:{type:Boolean},describedBy:null},setup(e){const t=e,{label:n,name:r,placeholder:i,autocomplete:a,labelHidden:s,required:u,dialCode:c,dialCodeList:l}=o.toRefs(t),d=Math.floor(Math.random()*999999),p=Math.floor(Math.random()*999999);return(f,h)=>{const g=Wn,m=H0,v=ye,w=Yn;return o.openBlock(),o.createBlock(v,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(g,o.mergeProps({for:"amplify-field-"+o.unref(d),class:["amplify-label",{"sr-only":o.unref(s)}]},f.$attrs),{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)),1)]),_:1},16,["for","class"]),o.createVNode(v,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>[o.createVNode(v,{class:"amplify-field-group__outer-start"},{default:o.withCtx(()=>[e.type==="tel"?(o.openBlock(),o.createBlock(v,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect amplify-dialcodeselect amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(g,o.mergeProps({for:"amplify-field-"+o.unref(p),class:"amplify-label amplify-visually-hidden"},f.$attrs),{default:o.withCtx(()=>[K0]),_:1},16,["for"]),o.createVNode(v,{class:"amplify-select__wrapper"},{default:o.withCtx(()=>[o.createVNode(m,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+o.unref(p),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:o.unref(l),"select-value":o.unref(c)},null,8,["id","options","select-value"]),o.createVNode(v,{class:"amplify-flex amplify-select__icon-wrapper amplify-authenticator__icon-wrapper"},{default:o.withCtx(()=>[q0]),_:1})]),_:1})]),_:1})):o.createCommentVNode("",!0)]),_:1}),o.createVNode(v,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>{var S;return[o.createVNode(w,{class:"amplify-input amplify-field-group__control",id:"amplify-field-"+o.unref(d),autocomplete:o.unref(a),name:o.unref(r),required:(S=o.unref(u))!=null?S:!0,type:e.type,placeholder:o.unref(i),"aria-invalid":e.hasError,"aria-describedBy":e.describedBy},null,8,["id","autocomplete","name","required","type","placeholder","aria-invalid","aria-describedBy"])]}),_:1})]),_:1})]),_:1})}}}),Y0=["id"],cs=o.defineComponent({__name:"base-form-field",props:{name:{default:""},formField:{default:()=>({})}},setup(e){const t=e,{name:n,formField:r}=o.toRefs(t),i=Te(Ce),{validationErrors:a}=o.toRefs(i()),{type:s}=r.value,u=s==="password",c=k0(12),l=o.computed(()=>Al(a.value[n.value])),d=o.computed(()=>{var f;return((f=l.value)==null?void 0:f.length)>0}),p=o.computed(()=>d.value?c:void 0);return(f,h)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[u?(o.openBlock(),o.createBlock(To,{key:0,name:o.unref(n),label:o.unref(r).label,placeholder:o.unref(r).placeholder,required:o.unref(r).isRequired,"label-hidden":o.unref(r).labelHidden,autocomplete:o.unref(r).autocomplete,hasError:o.unref(d),describedBy:o.unref(p)},null,8,["name","label","placeholder","required","label-hidden","autocomplete","hasError","describedBy"])):(o.openBlock(),o.createBlock(W0,{key:1,name:o.unref(n),label:o.unref(r).label,placeholder:o.unref(r).placeholder,required:o.unref(r).isRequired,"label-hidden":o.unref(r).labelHidden,autocomplete:o.unref(r).autocomplete,"dial-code":o.unref(r).dialCode,"dial-code-list":o.unref(r).dialCodeList,type:o.unref(r).type,hasError:o.unref(d),describedBy:o.unref(p)},null,8,["name","label","placeholder","required","label-hidden","autocomplete","dial-code","dial-code-list","type","hasError","describedBy"])),o.unref(d)?(o.openBlock(),o.createElementBlock("div",{key:2,id:o.unref(p)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(l),(g,m)=>(o.openBlock(),o.createElementBlock("p",{key:m,role:"alert","data-variation":"error",class:"amplify-text amplify-text--error"},o.toDisplayString(o.unref(R)(g)),1))),128))],8,Y0)):o.createCommentVNode("",!0)],64))}}),Le=o.defineComponent({__name:"base-form-fields",props:{route:null},setup(e){const t=e,{route:n}=o.toRefs(t),{state:r}=$e();let i=[];return o.onBeforeMount(()=>{i=Xg(n.value,r.value)}),(a,s)=>(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),([u,c])=>(o.openBlock(),o.createBlock(cs,{name:u,key:u,formField:c},null,8,["name","formField"]))),128))}}),J0=o.createElementVNode("legend",{class:"amplify-visually-hidden"},"Sign in",-1),Z0={"data-amplify-footer":""},$o=o.defineComponent({__name:"sign-in",emits:["signInSubmit","forgotPasswordClicked","createAccountClicked"],setup(e,{emit:t}){const r=Te(Ce)(),i=o.useAttrs(),a=o.computed(()=>_l("Forgot your password? ")?R("Forgot your password? "):R("Forgot your password?")),s=o.computed(()=>R("Sign in")),u=o.computed(()=>R("Signing in")),{state:c,send:l}=$e(),d=o.computed(()=>Ie(c.value)),p=m=>{const{name:v,value:w}=m.target;l({type:"CHANGE",data:{name:v,value:w}})},f=m=>{i!=null&&i.onSignInSubmit?t("signInSubmit",m):h(m)},h=m=>{r.submitForm(Ve(m))},g=()=>{i!=null&&i.onForgotPasswordClicked?t("forgotPasswordClicked"):l({type:"RESET_PASSWORD"})};return(m,v)=>{const w=Ue,S=De,_=Se,b=ye,C=Me,E=Fe;return o.renderSlot(m.$slots,"signInSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.renderSlot(m.$slots,"header"),o.createVNode(b,o.normalizeProps(o.guardReactiveProps(m.$attrs)),{default:o.withCtx(()=>[o.createVNode(C,{"data-amplify-authenticator-signin":"",onInput:p,onSubmit:o.withModifiers(f,["prevent"]),method:"post"},{formt:o.withCtx(({slotData:A})=>[o.renderSlot(m.$slots,"form",{info:A,onSignInSubmit:f,onInput:p,onForgotPasswordClicked:g})]),default:o.withCtx(()=>[o.createVNode(qn),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(w,{disabled:o.unref(d).matches("signIn.submit"),class:"amplify-flex amplify-authenticator__column"},{fieldSetI:o.withCtx(({slotData:A})=>[o.renderSlot(m.$slots,"signin-fields",{info:A})]),default:o.withCtx(()=>[J0,o.createVNode(Le,{route:"signIn"})]),_:3},8,["disabled"]),o.unref(d).context.remoteError?(o.openBlock(),o.createBlock(S,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(d).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(_,{disabled:o.unref(d).matches("signIn.submit"),class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d).matches("signIn.submit")?o.unref(u):o.unref(s)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode(E,null,{default:o.withCtx(()=>[o.renderSlot(m.$slots,"footer",{},()=>[o.createElementVNode("div",Z0,[o.createVNode(_,{onClick:g,class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!0,size:"small",style:{"font-weight":"normal"},type:"button"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(a)),1)]),_:1})])])]),_:3})])}}}),Po=o.defineComponent({__name:"authenticator-sign-up-form-fields",setup(e){return(t,n)=>(o.openBlock(),o.createBlock(Le,{route:"signUp"}))}}),No=o.defineComponent({__name:"sign-up",emits:["signUpSubmit"],setup(e,{emit:t}){const n=Te(Ce),r=n(),i=n(),{hasValidationErrors:a,isPending:s,error:u}=o.toRefs(r),c=o.useAttrs(),l=o.computed(()=>R("Create Account")),d=g=>{let{checked:m,name:v,type:w,value:S}=g.target;w==="checkbox"&&!m&&(S=void 0),i.updateForm({name:v,value:S})};function p(g){const{name:m}=g.target;i.updateBlur({name:m})}const f=g=>{c!=null&&c.onSignUpSubmit?t("signUpSubmit",g):h(g)},h=g=>{i.submitForm(Ve(g))};return(g,m)=>{const v=Ue,w=De,S=Se,_=ye,b=Me,C=Fe;return o.renderSlot(g.$slots,"signUpSlotI",o.normalizeProps(o.guardReactiveProps(g.$attrs)),()=>[o.renderSlot(g.$slots,"header"),o.createVNode(_,o.normalizeProps(o.guardReactiveProps(g.$attrs)),{default:o.withCtx(()=>[o.createVNode(b,{onInput:d,onBlurCapture:p,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(qn),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(v,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(s)},{fieldSetI:o.withCtx(({slotData:E})=>[o.renderSlot(g.$slots,"signup-fields",{info:E})]),default:o.withCtx(()=>[o.createVNode(Po)]),_:3},8,["disabled"]),o.unref(u)?(o.openBlock(),o.createBlock(w,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(u))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(S,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary",style:{"border-radius":"0px","font-weight":"normal"},disabled:o.unref(s)||o.unref(a)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode(C,null,{default:o.withCtx(()=>[o.renderSlot(g.$slots,"footer")]),_:3})])}}}),X0=o.defineComponent({__name:"base-two-tab-item",props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{active:n,id:r,label:i}=o.toRefs(t);return(a,s)=>{const u=ye;return o.openBlock(),o.createBlock(u,{tabindex:o.unref(n)?0:-1,"data-state":o.unref(n)?"active":"inactive","aria-selected":o.unref(n)?"true":"false","aria-controls":`radix-id-${o.unref(r)}-8-content-0`,id:`radix-id-${o.unref(r)}-8-trigger-0`,"data-orientation":"horizontal",role:"tab",class:"amplify-tabs-item","data-spacing":"equal","data-radix-collection-item":""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(i)),1)]),_:1},8,["tabindex","data-state","aria-selected","aria-controls","id"])}}}),Q0={};function eC(e,t){const n=ye;return o.openBlock(),o.createBlock(n,{tabindex:"0","aria-orientation":"horizontal","data-orientation":"horizontal",class:"amplify-authenticator__tabs",role:"tablist"},{default:o.withCtx(()=>[o.createVNode(n,{class:"amplify-flex amplify-tabs amplify-authenticator__tabs-wrapper","data-indicator-position":"top"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]),_:3})}var tC=Kn(Q0,[["render",eC]]);const We=o.defineComponent({props:{level:{type:Number,default:1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n}){var s,u;const r=t.default?t.default():[],i=t.headingI?t.headingI():[],a=`${n.class||""} amplify-heading--${e.level}`;if(((u=(s=i[0])==null?void 0:s.children)==null?void 0:u.length)===0)i[0].children=[o.h(`h${e.level}`,{...n,class:a},[r])];else return()=>o.h(`h${e.level}`,{"data-amplify-heading":"",...n,class:a},[i[0]?o.h(i[0].children[0]):o.h(r[0])]);return()=>i}}),nC={};function rC(e,t){return o.renderSlot(e.$slots,"textI",o.normalizeProps(o.guardReactiveProps(e.$attrs)),()=>[o.createElementVNode("span",o.mergeProps(e.$attrs,{"data-amplify-text":""}),[o.renderSlot(e.$slots,"default")],16)])}var ls=Kn(nC,[["render",rC]]);const ko=o.defineComponent({__name:"confirm-sign-up",emits:["confirmSignUpSubmit","lostCodeClicked"],setup(e,{emit:t}){const n=o.useAttrs(),r=Te(Ce),{isPending:i,error:a,codeDeliveryDetails:s}=o.toRefs(r()),{submitForm:u,updateForm:c,resendCode:l}=r(),d=o.computed(()=>{var E,A;return((E=s.value)==null?void 0:E.DeliveryMedium)==="EMAIL"?R("We Emailed You"):((A=s.value)==null?void 0:A.DeliveryMedium)==="SMS"?R("We Texted You"):R("We Sent A Code")}),p=o.computed(()=>R("Resend Code")),f=o.computed(()=>R("Confirm")),h=R("Your code is on the way. To log in, enter the code we emailed to"),g=R("Your code is on the way. To log in, enter the code we texted to"),m=R("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive."),v=R("It may take a minute to arrive."),w=o.computed(()=>{var E,A,$,I;return((E=s.value)==null?void 0:E.DeliveryMedium)==="EMAIL"?`${h} ${(A=s.value)==null?void 0:A.Destination}. ${v}`:(($=s.value)==null?void 0:$.DeliveryMedium)==="SMS"?`${g} ${(I=s.value)==null?void 0:I.Destination}. ${v}`:R(`${m}`)}),S=E=>{const{name:A,value:$}=E.target;c({name:A,value:$})},_=E=>{n!=null&&n.onConfirmSignUpSubmit?t("confirmSignUpSubmit",E):b(E)},b=E=>{u(Ve(E))},C=()=>{n!=null&&n.onLostCodeClicked?t("lostCodeClicked"):l()};return(E,A)=>{const $=We,I=ls,N=Ue,M=De,F=Se,D=Fe,G=ye,de=Me;return o.renderSlot(E.$slots,"confirmSignUpSlotI",o.normalizeProps(o.guardReactiveProps(E.$attrs)),()=>[o.createVNode(G,o.normalizeProps(o.guardReactiveProps(E.$attrs)),{default:o.withCtx(()=>[o.createVNode(de,{onInput:S,onSubmit:o.withModifiers(_,["prevent"])},{default:o.withCtx(()=>[o.createVNode(G,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(E.$slots,"header",{},()=>[o.createVNode($,{class:"amplify-heading amplify-authenticator__heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1})]),o.createVNode(I,{class:"amplify-authenticator__subtitle"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(w)),1)]),_:1}),o.createVNode(N,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(i)},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmSignUp"})]),_:1},8,["disabled"]),o.createVNode(D,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(a)?(o.openBlock(),o.createBlock(M,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(a))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(F,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:o.unref(i)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1},8,["disabled"]),o.createVNode(F,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"default",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(C,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(p)),1)]),_:1},8,["onClick"]),o.renderSlot(E.$slots,"footer",{onConfirmSignUpSubmit:_,onLostCodeClicked:C})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),xo=o.defineComponent({__name:"confirm-sign-in",emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:i}=$e(),s=Te(Ce)(),u=o.computed(()=>Ie(r.value)),c=u.value.context.challengeName;let l="SMS";c==="SOFTWARE_TOKEN_MFA"&&(l="TOTP");const d=`Confirm ${l} Code`,p=o.computed(()=>R("Back to Sign In")),f=o.computed(()=>R("Confirm")),h=w=>{const{name:S,value:_}=w.target;i({type:"CHANGE",data:{name:S,value:_}})},g=w=>{n!=null&&n.onConfirmSignInSubmit?t("confirmSignInSubmit",w):m(w)},m=w=>{s.submitForm(Ve(w))},v=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):i({type:"SIGN_IN"})};return(w,S)=>{const _=We,b=ye,C=De,E=Se,A=Fe,$=Ue,I=Me;return o.renderSlot(w.$slots,"confirmSignInSlotI",o.normalizeProps(o.guardReactiveProps(w.$attrs)),()=>[o.createVNode(b,o.normalizeProps(o.guardReactiveProps(w.$attrs)),{default:o.withCtx(()=>[o.createVNode(I,{"data-amplify-authenticator-confirmsignin":"",onInput:h,onSubmit:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>[o.createVNode($,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.renderSlot(w.$slots,"header",{},()=>[o.createVNode(_,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d))]),_:1})]),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmSignIn"})]),_:1}),o.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var N,M;return[(M=(N=o.unref(u))==null?void 0:N.context)!=null&&M.remoteError?(o.openBlock(),o.createBlock(C,{key:0},{default:o.withCtx(()=>{var F,D;return[o.createTextVNode(o.toDisplayString(o.unref(R)((D=(F=o.unref(u))==null?void 0:F.context)==null?void 0:D.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(E,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:o.unref(u).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1},8,["disabled"]),o.createVNode(E,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(p)),1)]),_:1},8,["onClick"]),o.renderSlot(w.$slots,"footer",{onBackToSignInClicked:v,onConfirmSignInSubmit:g})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var qt={},oC=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},ds={},Ae={};let Oo;const iC=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Ae.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Ae.getSymbolTotalCodewords=function(t){return iC[t]};Ae.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ae.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Oo=t};Ae.isKanjiModeEnabled=function(){return typeof Oo!="undefined"};Ae.toSJIS=function(t){return Oo(t)};var Jn={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit!="undefined"&&r.bit>=0&&r.bit<4},e.from=function(r,i){if(e.isValid(r))return r;try{return t(r)}catch{return i}}})(Jn);function fs(){this.buffer=[],this.length=0}fs.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var aC=fs;function Wt(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Wt.prototype.set=function(e,t,n,r){const i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)};Wt.prototype.get=function(e,t){return this.data[e*this.size+t]};Wt.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Wt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var sC=Wt,ps={};(function(e){const t=Ae.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,a=t(r),s=a===145?26:Math.ceil((a-13)/(2*i-2))*2,u=[a-7];for(let c=1;c<i-1;c++)u[c]=u[c-1]-s;return u.push(6),u.reverse()},e.getPositions=function(r){const i=[],a=e.getRowColCoords(r),s=a.length;for(let u=0;u<s;u++)for(let c=0;c<s;c++)u===0&&c===0||u===0&&c===s-1||u===s-1&&c===0||i.push([a[u],a[c]]);return i}})(ps);var hs={};const uC=Ae.getSymbolSize,Yi=7;hs.getPositions=function(t){const n=uC(t);return[[0,0],[n-Yi,0],[0,n-Yi]]};var ms={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const a=i.size;let s=0,u=0,c=0,l=null,d=null;for(let p=0;p<a;p++){u=c=0,l=d=null;for(let f=0;f<a;f++){let h=i.get(p,f);h===l?u++:(u>=5&&(s+=t.N1+(u-5)),l=h,u=1),h=i.get(f,p),h===d?c++:(c>=5&&(s+=t.N1+(c-5)),d=h,c=1)}u>=5&&(s+=t.N1+(u-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(i){const a=i.size;let s=0;for(let u=0;u<a-1;u++)for(let c=0;c<a-1;c++){const l=i.get(u,c)+i.get(u,c+1)+i.get(u+1,c)+i.get(u+1,c+1);(l===4||l===0)&&s++}return s*t.N2},e.getPenaltyN3=function(i){const a=i.size;let s=0,u=0,c=0;for(let l=0;l<a;l++){u=c=0;for(let d=0;d<a;d++)u=u<<1&2047|i.get(l,d),d>=10&&(u===1488||u===93)&&s++,c=c<<1&2047|i.get(d,l),d>=10&&(c===1488||c===93)&&s++}return s*t.N3},e.getPenaltyN4=function(i){let a=0;const s=i.data.length;for(let c=0;c<s;c++)a+=i.data[c];return Math.abs(Math.ceil(a*100/s/5)-10)*t.N4};function n(r,i,a){switch(r){case e.Patterns.PATTERN000:return(i+a)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return a%3===0;case e.Patterns.PATTERN011:return(i+a)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(a/3))%2===0;case e.Patterns.PATTERN101:return i*a%2+i*a%3===0;case e.Patterns.PATTERN110:return(i*a%2+i*a%3)%2===0;case e.Patterns.PATTERN111:return(i*a%3+(i+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(i,a){const s=a.size;for(let u=0;u<s;u++)for(let c=0;c<s;c++)a.isReserved(c,u)||a.xor(c,u,n(i,c,u))},e.getBestMask=function(i,a){const s=Object.keys(e.Patterns).length;let u=0,c=1/0;for(let l=0;l<s;l++){a(l),e.applyMask(l,i);const d=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(l,i),d<c&&(c=d,u=l)}return u}})(ms);var Zn={};const qe=Jn,pn=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],hn=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Zn.getBlocksCount=function(t,n){switch(n){case qe.L:return pn[(t-1)*4+0];case qe.M:return pn[(t-1)*4+1];case qe.Q:return pn[(t-1)*4+2];case qe.H:return pn[(t-1)*4+3];default:return}};Zn.getTotalCodewordsCount=function(t,n){switch(n){case qe.L:return hn[(t-1)*4+0];case qe.M:return hn[(t-1)*4+1];case qe.Q:return hn[(t-1)*4+2];case qe.H:return hn[(t-1)*4+3];default:return}};var gs={},Xn={};const Ot=new Uint8Array(512),Nn=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)Ot[n]=t,Nn[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)Ot[n]=Ot[n-255]})();Xn.log=function(t){if(t<1)throw new Error("log("+t+")");return Nn[t]};Xn.exp=function(t){return Ot[t]};Xn.mul=function(t,n){return t===0||n===0?0:Ot[Nn[t]+Nn[n]]};(function(e){const t=Xn;e.mul=function(r,i){const a=new Uint8Array(r.length+i.length-1);for(let s=0;s<r.length;s++)for(let u=0;u<i.length;u++)a[s+u]^=t.mul(r[s],i[u]);return a},e.mod=function(r,i){let a=new Uint8Array(r);for(;a.length-i.length>=0;){const s=a[0];for(let c=0;c<i.length;c++)a[c]^=t.mul(i[c],s);let u=0;for(;u<a.length&&a[u]===0;)u++;a=a.slice(u)}return a},e.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let a=0;a<r;a++)i=e.mul(i,new Uint8Array([1,t.exp(a)]));return i}})(gs);const vs=gs;function Uo(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Uo.prototype.initialize=function(t){this.degree=t,this.genPoly=vs.generateECPolynomial(this.degree)};Uo.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const r=vs.mod(n,this.genPoly),i=this.degree-r.length;if(i>0){const a=new Uint8Array(this.degree);return a.set(r,i),a}return r};var cC=Uo,ys={},Ye={},Ro={};Ro.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var je={};const ws="[0-9]+",lC="[A-Z $%*+\\-./:]+";let Dt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Dt=Dt.replace(/u/g,"\\u");const dC="(?:(?![A-Z0-9 $%*+\\-./:]|"+Dt+`)(?:.|[\r
|
|
32
|
+
]))+`;je.KANJI=new RegExp(Dt,"g");je.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");je.BYTE=new RegExp(dC,"g");je.NUMERIC=new RegExp(ws,"g");je.ALPHANUMERIC=new RegExp(lC,"g");const fC=new RegExp("^"+Dt+"$"),pC=new RegExp("^"+ws+"$"),hC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");je.testKanji=function(t){return fC.test(t)};je.testNumeric=function(t){return pC.test(t)};je.testAlphanumeric=function(t){return hC.test(t)};(function(e){const t=Ro,n=je;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(a,s){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?a.ccBits[0]:s<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return n.testNumeric(a)?e.NUMERIC:n.testAlphanumeric(a)?e.ALPHANUMERIC:n.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(a,s){if(e.isValid(a))return a;try{return r(a)}catch{return s}}})(Ye);(function(e){const t=Ae,n=Zn,r=Jn,i=Ye,a=Ro,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,u=t.getBCHDigit(s);function c(f,h,g){for(let m=1;m<=40;m++)if(h<=e.getCapacity(m,g,f))return m}function l(f,h){return i.getCharCountIndicator(f,h)+4}function d(f,h){let g=0;return f.forEach(function(m){g+=l(m.mode,h)+m.getBitsLength()}),g}function p(f,h){for(let g=1;g<=40;g++)if(d(f,g)<=e.getCapacity(g,h,i.MIXED))return g}e.from=function(h,g){return a.isValid(h)?parseInt(h,10):g},e.getCapacity=function(h,g,m){if(!a.isValid(h))throw new Error("Invalid QR Code version");typeof m=="undefined"&&(m=i.BYTE);const v=t.getSymbolTotalCodewords(h),w=n.getTotalCodewordsCount(h,g),S=(v-w)*8;if(m===i.MIXED)return S;const _=S-l(m,h);switch(m){case i.NUMERIC:return Math.floor(_/10*3);case i.ALPHANUMERIC:return Math.floor(_/11*2);case i.KANJI:return Math.floor(_/13);case i.BYTE:default:return Math.floor(_/8)}},e.getBestVersionForData=function(h,g){let m;const v=r.from(g,r.M);if(Array.isArray(h)){if(h.length>1)return p(h,v);if(h.length===0)return 1;m=h[0]}else m=h;return c(m.mode,m.getLength(),v)},e.getEncodedBits=function(h){if(!a.isValid(h)||h<7)throw new Error("Invalid QR Code version");let g=h<<12;for(;t.getBCHDigit(g)-u>=0;)g^=s<<t.getBCHDigit(g)-u;return h<<12|g}})(ys);var Ss={};const Vr=Ae,_s=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,mC=1<<14|1<<12|1<<10|1<<4|1<<1,Ji=Vr.getBCHDigit(_s);Ss.getEncodedBits=function(t,n){const r=t.bit<<3|n;let i=r<<10;for(;Vr.getBCHDigit(i)-Ji>=0;)i^=_s<<Vr.getBCHDigit(i)-Ji;return(r<<10|i)^mC};var bs={};const gC=Ye;function lt(e){this.mode=gC.NUMERIC,this.data=e.toString()}lt.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};lt.prototype.getLength=function(){return this.data.length};lt.prototype.getBitsLength=function(){return lt.getBitsLength(this.data.length)};lt.prototype.write=function(t){let n,r,i;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),i=parseInt(r,10),t.put(i,10);const a=this.data.length-n;a>0&&(r=this.data.substr(n),i=parseInt(r,10),t.put(i,a*3+1))};var vC=lt;const yC=Ye,dr=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function dt(e){this.mode=yC.ALPHANUMERIC,this.data=e}dt.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};dt.prototype.getLength=function(){return this.data.length};dt.prototype.getBitsLength=function(){return dt.getBitsLength(this.data.length)};dt.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=dr.indexOf(this.data[n])*45;r+=dr.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(dr.indexOf(this.data[n]),6)};var wC=dt,SC=function(t){for(var n=[],r=t.length,i=0;i<r;i++){var a=t.charCodeAt(i);if(a>=55296&&a<=56319&&r>i+1){var s=t.charCodeAt(i+1);s>=56320&&s<=57343&&(a=(a-55296)*1024+s-56320+65536,i+=1)}if(a<128){n.push(a);continue}if(a<2048){n.push(a>>6|192),n.push(a&63|128);continue}if(a<55296||a>=57344&&a<65536){n.push(a>>12|224),n.push(a>>6&63|128),n.push(a&63|128);continue}if(a>=65536&&a<=1114111){n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(a&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const _C=SC,bC=Ye;function ft(e){this.mode=bC.BYTE,this.data=new Uint8Array(_C(e))}ft.getBitsLength=function(t){return t*8};ft.prototype.getLength=function(){return this.data.length};ft.prototype.getBitsLength=function(){return ft.getBitsLength(this.data.length)};ft.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var CC=ft;const AC=Ye,EC=Ae;function pt(e){this.mode=AC.KANJI,this.data=e}pt.getBitsLength=function(t){return t*13};pt.prototype.getLength=function(){return this.data.length};pt.prototype.getBitsLength=function(){return pt.getBitsLength(this.data.length)};pt.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=EC.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
33
|
+
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var IC=pt,Cs={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,r,i){var a={},s={};s[r]=0;var u=t.PriorityQueue.make();u.push(r,0);for(var c,l,d,p,f,h,g,m,v;!u.empty();){c=u.pop(),l=c.value,p=c.cost,f=n[l]||{};for(d in f)f.hasOwnProperty(d)&&(h=f[d],g=p+h,m=s[d],v=typeof s[d]=="undefined",(v||m>g)&&(s[d]=g,u.push(d,g),a[d]=l))}if(typeof i!="undefined"&&typeof s[i]=="undefined"){var w=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(w)}return a},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],a=r;a;)i.push(a),n[a],a=n[a];return i.reverse(),i},find_path:function(n,r,i){var a=t.single_source_shortest_paths(n,r,i);return t.extract_shortest_path_from_predecessor_list(a,i)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,i={},a;n=n||{};for(a in r)r.hasOwnProperty(a)&&(i[a]=r[a]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Cs);(function(e){const t=Ye,n=vC,r=wC,i=CC,a=IC,s=je,u=Ae,c=Cs.exports;function l(w){return unescape(encodeURIComponent(w)).length}function d(w,S,_){const b=[];let C;for(;(C=w.exec(_))!==null;)b.push({data:C[0],index:C.index,mode:S,length:C[0].length});return b}function p(w){const S=d(s.NUMERIC,t.NUMERIC,w),_=d(s.ALPHANUMERIC,t.ALPHANUMERIC,w);let b,C;return u.isKanjiModeEnabled()?(b=d(s.BYTE,t.BYTE,w),C=d(s.KANJI,t.KANJI,w)):(b=d(s.BYTE_KANJI,t.BYTE,w),C=[]),S.concat(_,b,C).sort(function(A,$){return A.index-$.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function f(w,S){switch(S){case t.NUMERIC:return n.getBitsLength(w);case t.ALPHANUMERIC:return r.getBitsLength(w);case t.KANJI:return a.getBitsLength(w);case t.BYTE:return i.getBitsLength(w)}}function h(w){return w.reduce(function(S,_){const b=S.length-1>=0?S[S.length-1]:null;return b&&b.mode===_.mode?(S[S.length-1].data+=_.data,S):(S.push(_),S)},[])}function g(w){const S=[];for(let _=0;_<w.length;_++){const b=w[_];switch(b.mode){case t.NUMERIC:S.push([b,{data:b.data,mode:t.ALPHANUMERIC,length:b.length},{data:b.data,mode:t.BYTE,length:b.length}]);break;case t.ALPHANUMERIC:S.push([b,{data:b.data,mode:t.BYTE,length:b.length}]);break;case t.KANJI:S.push([b,{data:b.data,mode:t.BYTE,length:l(b.data)}]);break;case t.BYTE:S.push([{data:b.data,mode:t.BYTE,length:l(b.data)}])}}return S}function m(w,S){const _={},b={start:{}};let C=["start"];for(let E=0;E<w.length;E++){const A=w[E],$=[];for(let I=0;I<A.length;I++){const N=A[I],M=""+E+I;$.push(M),_[M]={node:N,lastCount:0},b[M]={};for(let F=0;F<C.length;F++){const D=C[F];_[D]&&_[D].node.mode===N.mode?(b[D][M]=f(_[D].lastCount+N.length,N.mode)-f(_[D].lastCount,N.mode),_[D].lastCount+=N.length):(_[D]&&(_[D].lastCount=N.length),b[D][M]=f(N.length,N.mode)+4+t.getCharCountIndicator(N.mode,S))}}C=$}for(let E=0;E<C.length;E++)b[C[E]].end=0;return{map:b,table:_}}function v(w,S){let _;const b=t.getBestModeForData(w);if(_=t.from(S,b),_!==t.BYTE&&_.bit<b.bit)throw new Error('"'+w+'" cannot be encoded with mode '+t.toString(_)+`.
|
|
34
|
+
Suggested mode is: `+t.toString(b));switch(_===t.KANJI&&!u.isKanjiModeEnabled()&&(_=t.BYTE),_){case t.NUMERIC:return new n(w);case t.ALPHANUMERIC:return new r(w);case t.KANJI:return new a(w);case t.BYTE:return new i(w)}}e.fromArray=function(S){return S.reduce(function(_,b){return typeof b=="string"?_.push(v(b,null)):b.data&&_.push(v(b.data,b.mode)),_},[])},e.fromString=function(S,_){const b=p(S,u.isKanjiModeEnabled()),C=g(b),E=m(C,_),A=c.find_path(E.map,"start","end"),$=[];for(let I=1;I<A.length-1;I++)$.push(E.table[A[I]].node);return e.fromArray(h($))},e.rawSplit=function(S){return e.fromArray(p(S,u.isKanjiModeEnabled()))}})(bs);const Qn=Ae,fr=Jn,TC=aC,$C=sC,PC=ps,NC=hs,Dr=ms,Mr=Zn,kC=cC,kn=ys,xC=Ss,OC=Ye,pr=bs;function UC(e,t){const n=e.size,r=NC.getPositions(t);for(let i=0;i<r.length;i++){const a=r[i][0],s=r[i][1];for(let u=-1;u<=7;u++)if(!(a+u<=-1||n<=a+u))for(let c=-1;c<=7;c++)s+c<=-1||n<=s+c||(u>=0&&u<=6&&(c===0||c===6)||c>=0&&c<=6&&(u===0||u===6)||u>=2&&u<=4&&c>=2&&c<=4?e.set(a+u,s+c,!0,!0):e.set(a+u,s+c,!1,!0))}}function RC(e){const t=e.size;for(let n=8;n<t-8;n++){const r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function BC(e,t){const n=PC.getPositions(t);for(let r=0;r<n.length;r++){const i=n[r][0],a=n[r][1];for(let s=-2;s<=2;s++)for(let u=-2;u<=2;u++)s===-2||s===2||u===-2||u===2||s===0&&u===0?e.set(i+s,a+u,!0,!0):e.set(i+s,a+u,!1,!0)}}function VC(e,t){const n=e.size,r=kn.getEncodedBits(t);let i,a,s;for(let u=0;u<18;u++)i=Math.floor(u/3),a=u%3+n-8-3,s=(r>>u&1)===1,e.set(i,a,s,!0),e.set(a,i,s,!0)}function hr(e,t,n){const r=e.size,i=xC.getEncodedBits(t,n);let a,s;for(a=0;a<15;a++)s=(i>>a&1)===1,a<6?e.set(a,8,s,!0):a<8?e.set(a+1,8,s,!0):e.set(r-15+a,8,s,!0),a<8?e.set(8,r-a-1,s,!0):a<9?e.set(8,15-a-1+1,s,!0):e.set(8,15-a-1,s,!0);e.set(r-8,8,1,!0)}function DC(e,t){const n=e.size;let r=-1,i=n-1,a=7,s=0;for(let u=n-1;u>0;u-=2)for(u===6&&u--;;){for(let c=0;c<2;c++)if(!e.isReserved(i,u-c)){let l=!1;s<t.length&&(l=(t[s]>>>a&1)===1),e.set(i,u-c,l),a--,a===-1&&(s++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function MC(e,t,n){const r=new TC;n.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),OC.getCharCountIndicator(c.mode,e)),c.write(r)});const i=Qn.getSymbolTotalCodewords(e),a=Mr.getTotalCodewordsCount(e,t),s=(i-a)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const u=(s-r.getLengthInBits())/8;for(let c=0;c<u;c++)r.put(c%2?17:236,8);return FC(r,e,t)}function FC(e,t,n){const r=Qn.getSymbolTotalCodewords(t),i=Mr.getTotalCodewordsCount(t,n),a=r-i,s=Mr.getBlocksCount(t,n),u=r%s,c=s-u,l=Math.floor(r/s),d=Math.floor(a/s),p=d+1,f=l-d,h=new kC(f);let g=0;const m=new Array(s),v=new Array(s);let w=0;const S=new Uint8Array(e.buffer);for(let A=0;A<s;A++){const $=A<c?d:p;m[A]=S.slice(g,g+$),v[A]=h.encode(m[A]),g+=$,w=Math.max(w,$)}const _=new Uint8Array(r);let b=0,C,E;for(C=0;C<w;C++)for(E=0;E<s;E++)C<m[E].length&&(_[b++]=m[E][C]);for(C=0;C<f;C++)for(E=0;E<s;E++)_[b++]=v[E][C];return _}function LC(e,t,n,r){let i;if(Array.isArray(e))i=pr.fromArray(e);else if(typeof e=="string"){let l=t;if(!l){const d=pr.rawSplit(e);l=kn.getBestVersionForData(d,n)}i=pr.fromString(e,l||40)}else throw new Error("Invalid data");const a=kn.getBestVersionForData(i,n);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=a;else if(t<a)throw new Error(`
|
|
35
35
|
The chosen QR Code version cannot contain this amount of data.
|
|
36
|
-
Minimum version required to store current data is: `+
|
|
37
|
-
`);const s=
|
|
38
|
-
`;return typeof r=="function"&&r(null,f),f};const LC=tC,Fr=cs,As=bs,jC=Cs;function Vo(e,t,n,r,a){const i=[].slice.call(arguments,1),s=i.length,u=typeof i[s-1]=="function";if(!u&&!LC())throw new Error("Callback required as last argument");if(u){if(s<2)throw new Error("Too few arguments provided");s===2?(a=n,n=t,t=r=void 0):s===3&&(t.getContext&&typeof a=="undefined"?(a=r,r=void 0):(a=r,r=n,n=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(n=t,t=r=void 0):s===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(c,l){try{const d=Fr.create(n,r);c(e(d,t,r))}catch(d){l(d)}})}try{const c=Fr.create(n,r);a(null,e(c,t,r))}catch(c){a(c)}}Wt.create=Fr.create;Wt.toCanvas=Vo.bind(null,As.render);Wt.toDataURL=Vo.bind(null,As.renderToDataURL);Wt.toString=Vo.bind(null,function(e,t,n){return jC.render(e,n)});const zC={key:0},GC=o.createTextVNode(" Setup TOTP "),HC=["src"],KC={"data-amplify-copy-tooltip":""},qC=o.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM15 5H8C6.9 5 6.01 5.9 6.01 7L6 21C6 22.1 6.89 23 7.99 23H19C20.1 23 21 22.1 21 21V11L15 5ZM8 21V7H14V12H19V21H8Z"})],-1),WC=o.defineComponent({__name:"setup-totp",emits:["confirmSetupTOTPSubmit","backToSignInClicked"],setup(e,{emit:t}){var C,E;const r=Te(Ae)(),a=o.useAttrs(),{state:i,send:s}=$e(),{value:{context:u}}=i,c=(E=(C=u==null?void 0:u.config)==null?void 0:C.formFields)==null?void 0:E.setupTOTP,l=c==null?void 0:c.QR,d=o.computed(()=>be(i.value));let h=o.reactive({qrCodeImageSource:"",isLoading:!0}),f=o.ref(""),p=o.ref(R("COPY"));function g(){navigator.clipboard.writeText(f.value),p.value=R("COPIED")}o.onMounted(async()=>{var I,N;const A=new le.Logger("SetupTOTP-logger"),{user:$}=d.value.context;if(!!$)try{f.value=await le.Auth.setupTOTP($);const M=(I=l==null?void 0:l.totpIssuer)!=null?I:"AWSCognito",F=(N=l==null?void 0:l.totpUsername)!=null?N:$.username,D=encodeURI(`otpauth://totp/${M}:${F}?secret=${f.value}&issuer=${M}`);h.qrCodeImageSource=await Wt.toDataURL(D)}catch(M){A.error(M)}finally{h.isLoading=!1}});const m=o.computed(()=>R("Back to Sign In")),v=o.computed(()=>R("Confirm")),S=A=>{const{name:$,value:I}=A.target;s({type:"CHANGE",data:{name:$,value:I}})},w=A=>{a!=null&&a.onConfirmSetupTOTPSubmit?t("confirmSetupTOTPSubmit",A):_(A)},_=A=>{r.submitForm(Ve(A))},b=()=>{a!=null&&a.onBackToSignInClicked?t("backToSignInClicked"):s({type:"SIGN_IN"})};return(A,$)=>{const I=Je,N=ye,M=De,F=we,D=Fe,G=Ue,de=Me;return o.renderSlot(A.$slots,"confirmSetupTOTPI",o.normalizeProps(o.guardReactiveProps(A.$attrs)),()=>[o.createVNode(N,o.normalizeProps(o.guardReactiveProps(A.$attrs)),{default:o.withCtx(()=>[o.createVNode(de,{"data-amplify-authenticator-setup-totp":"",onInput:S,onSubmit:o.withModifiers(w,["prevent"])},{default:o.withCtx(()=>[o.createVNode(G,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(d).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.unref(h).isLoading?(o.openBlock(),o.createElementBlock("p",zC,"Loading...")):(o.openBlock(),o.createBlock(N,{key:1,class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(A.$slots,"header",{},()=>[o.createVNode(I,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[GC]),_:1})]),o.createVNode(N,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createElementVNode("img",{class:"amplify-image","data-amplify-qrcode":"",src:o.unref(h).qrCodeImageSource,alt:"qr code",width:"228",height:"228"},null,8,HC),o.createVNode(N,{class:"amplify-flex","data-amplify-copy":""},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(o.unref(f)),1),o.createVNode(N,{"data-amplify-copy-svg":"",onClick:g},{default:o.withCtx(()=>[o.createElementVNode("div",KC,o.toDisplayString(o.unref(p)),1),qC]),_:1})]),_:1}),o.createVNode(Le,{route:"setupTOTP"})]),_:1}),o.createVNode(D,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var X;return[(X=o.unref(d).context)!=null&&X.remoteError?(o.openBlock(),o.createBlock(M,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(d).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(F,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:o.unref(d).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(v)),1)]),_:1},8,["disabled"]),o.createVNode(F,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(b,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(m)),1)]),_:1},8,["onClick"]),o.renderSlot(A.$slots,"footer",{onBackToSignInClicked:b,onSetupTOTPSubmit:w})]}),_:3})]),_:3}))]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Do=o.defineComponent({__name:"authenticator-force-new-password-form-fields",setup(e){return(t,n)=>(o.openBlock(),o.createBlock(Le,{route:"forceNewPassword"}))}}),Mo=o.defineComponent({__name:"force-new-password",emits:["haveAccountClicked","forceNewPasswordSubmit"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:a}=$e(),s=Te(Ae)(),u=o.computed(()=>be(r.value)),c=o.computed(()=>R("Change Password")),l=o.computed(()=>R("Changing")),d=o.computed(()=>R("Back to Sign In")),h=()=>{n!=null&&n.onHaveAccountClicked?t("haveAccountClicked"):a({type:"SIGN_IN"})},f=v=>{n!=null&&n.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",v):p(v)},p=v=>{s.submitForm(Ve(v))},g=v=>{const{name:S,value:w}=v.target;a({type:"CHANGE",data:{name:S,value:w}})};function m(v){const{name:S}=v.target;s.updateBlur({name:S})}return(v,S)=>{const w=Je,_=ye,b=De,C=we,E=Fe,A=Ue,$=Me;return o.renderSlot(v.$slots,"forceNewPasswordI",o.normalizeProps(o.guardReactiveProps(v.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(v.$attrs)),{default:o.withCtx(()=>[o.createVNode($,{"data-amplify-authenticator-forcenewpassword":"",onInput:g,onBlur:m,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(A,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("forceNewPassword.pending")},{default:o.withCtx(()=>[o.renderSlot(v.$slots,"header",{},()=>[o.createVNode(w,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1})]),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(v.$slots,"force-new-password-form-fields",{},()=>[o.createVNode(Do)])]),_:3}),o.createVNode(E,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(u).context.remoteError?(o.openBlock(),o.createBlock(b,{key:0,"data-ui-error":""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(u).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:o.unref(u).matches("signUp.submit")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(u).matches("forceNewPassword.pending")?o.unref(l)+"\u2026":o.unref(c)),1)]),_:1},8,["disabled"]),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(h,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["onClick"]),o.renderSlot(v.$slots,"footer",{onHaveAccountClicked:h,onForceNewPasswordSubmit:f})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Fo=o.defineComponent({__name:"reset-password",emits:["resetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),r=Te(Ae),{send:a,submitForm:i}=r(),{error:s,isPending:u}=o.toRefs(r()),c=o.computed(()=>R("Back to Sign In")),l=o.computed(()=>R("Reset your password")),d=o.computed(()=>R("Send Code")),h=m=>{n!=null&&n.onResetPasswordSubmit?t("resetPasswordSubmit",m):f(m)},f=m=>{i(Ve(m))},p=m=>{const{name:v,value:S}=m.target;a({type:"CHANGE",data:{name:v,value:S}})},g=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(m,v)=>{const S=Je,w=Ue,_=De,b=we,C=Fe,E=ye,A=Me;return o.renderSlot(m.$slots,"resetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(A,o.mergeProps(m.$attrs,{"data-amplify-authenticator-resetpassword":"",onInput:p,onSubmit:o.withModifiers(h,["prevent"])}),{default:o.withCtx(()=>[o.createVNode(E,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"header",{},()=>[o.createVNode(S,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(w,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u)},{default:o.withCtx(()=>[o.createVNode(Le,{route:"resetPassword"})]),_:1},8,["disabled"]),o.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(s)?(o.openBlock(),o.createBlock(_,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(s))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(u)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["disabled"]),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onBackToSignInClicked:g,onResetPasswordSubmit:h})]),_:3})]),_:3})]),_:3},16,["onSubmit"])])}}}),Lo=o.defineComponent({__name:"confirm-reset-password",emits:["confirmResetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const{state:n,send:r}=$e(),i=Te(Ae)(),s=o.useAttrs(),u=o.computed(()=>be(n.value)),c=o.computed(()=>R("Resend Code")),l=o.computed(()=>R("Reset your Password")),d=o.computed(()=>R("Submit")),h=v=>{s!=null&&s.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",v):f(v)},f=v=>{i.submitForm(Ve(v))},p=()=>{r({type:"RESEND"})},g=v=>{const{name:S,value:w}=v.target;r({type:"CHANGE",data:{name:S,value:w}})};function m(v){const{name:S}=v.target;i.updateBlur({name:S})}return(v,S)=>{const w=Je,_=ye,b=De,C=we,E=Fe,A=Ue,$=Me;return o.renderSlot(v.$slots,"confirmResetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(v.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(v.$attrs)),{default:o.withCtx(()=>[o.createVNode($,{"data-amplify-authenticator-confirmResetpassword":"",onInput:g,onBlurCapture:m,onSubmit:o.withModifiers(h,["prevent"])},{default:o.withCtx(()=>[o.createVNode(A,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmResetPassword.pending")},{default:o.withCtx(()=>[o.renderSlot(v.$slots,"header",{},()=>[o.createVNode(w,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmResetPassword"})]),_:1}),o.createVNode(E,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var I,N;return[(N=(I=o.unref(u))==null?void 0:I.context)!=null&&N.remoteError?(o.openBlock(),o.createBlock(b,{key:0},{default:o.withCtx(()=>{var M,F;return[o.createTextVNode(o.toDisplayString(o.unref(R)((F=(M=o.unref(u))==null?void 0:M.context)==null?void 0:F.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",variation:"primary",fullwidth:!1,type:"submit",disabled:o.unref(u).matches("confirmResetPassword.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["disabled"]),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!1,size:"small",type:"button",onClick:o.withModifiers(p,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1},8,["onClick"]),o.renderSlot(v.$slots,"footer",{onConfirmResetPasswordSubmit:h,onLostYourCodeClicked:p})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),jo=o.defineComponent({__name:"verify-user",emits:["verifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=Te(Ae)(),a=o.useAttrs(),{state:i,send:s}=$e(),u=o.computed(()=>be(i.value)),c=u.value.context.unverifiedAttributes,l=o.computed(()=>R("Account recovery requires verified contact information")),d=o.computed(()=>R("Skip")),h=o.computed(()=>R("Verify")),f=o.computed(()=>R("Verify Contact")),p=S=>{const{name:w,value:_}=S.target;s({type:"CHANGE",data:{name:w,value:_}})},g=S=>{a!=null&&a.onVerifyUserSubmit?t("verifyUserSubmit",S):m(S)},m=S=>{r.submitForm(Ve(S))},v=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):s("SKIP")};return(S,w)=>{const _=Je,b=Yn,C=Jn,E=us,A=ye,$=De,I=we,N=Fe,M=Ue,F=Me;return o.renderSlot(S.$slots,"verifyUserSlotI",{},()=>[o.createVNode(A,null,{default:o.withCtx(()=>[o.createVNode(F,{onInput:p,onSubmit:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>[o.createVNode(M,{disabled:o.unref(u).matches("verifyUser.pending"),class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(S.$slots,"header",{},()=>[o.createVNode(_,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(A,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(b,{class:"amplify-visually-hidden amplify-label",id:"amplify-field-493c"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1}),o.createVNode(A,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column","aria-labelledby":"amplify-field-493c"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),(D,G)=>(o.openBlock(),o.createBlock(b,{class:"amplify-flex amplify-radio","data-amplify-verify-label":"",id:"verify",key:D},{default:o.withCtx(()=>[o.createVNode(C,{class:"amplify-input amplify-field-group__control amplify-visually-hidden amplify-radio__input","aria-invalid":"false","data-amplify-verify-input":"",id:"verify",name:"unverifiedAttr",type:"radio",value:G},null,8,["value"]),o.createVNode(E,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"}),o.createVNode(E,{class:"amplify-text amplify-radio__label"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(Hr)[G].label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),o.createVNode(N,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var D,G;return[(G=(D=o.unref(u))==null?void 0:D.context)!=null&&G.remoteError?(o.openBlock(),o.createBlock($,{key:0},{default:o.withCtx(()=>{var de;return[o.createTextVNode(o.toDisplayString(o.unref(R)((de=o.unref(u))==null?void 0:de.context.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(I,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(u).matches("verifyUser.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["disabled"]),o.createVNode(I,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["onClick"]),o.renderSlot(S.$slots,"footer",{onSkipClicked:v,onVerifyUserSubmit:g})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),zo=o.defineComponent({__name:"confirm-verify-user",emits:["confirmVerifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=Te(Ae)(),a=o.useAttrs(),{state:i,send:s}=$e(),u=o.computed(()=>be(i.value)),c=o.computed(()=>R("Account recovery requires verified contact information")),l=o.computed(()=>R("Skip")),d=o.computed(()=>R("Submit")),h=m=>{const{name:v,value:S}=m.target;s({type:"CHANGE",data:{name:v,value:S}})},f=m=>{a!=null&&a.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",m):p(m)},p=m=>{r.submitForm(Ve(m))},g=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):s({type:"SKIP"})};return(m,v)=>{const S=Je,w=ye,_=De,b=we,C=Fe,E=Ue,A=Me;return o.renderSlot(m.$slots,"confirmVerifyUserSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(w,o.normalizeProps(o.guardReactiveProps(m.$attrs)),{default:o.withCtx(()=>[o.createVNode(A,{onInput:h,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(E,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmVerifyUser.pending")},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"header",{},()=>[o.createVNode(S,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1})]),o.createVNode(w,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmVerifyUser"})]),_:1}),o.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var $,I;return[(I=($=o.unref(u))==null?void 0:$.context)!=null&&I.remoteError?(o.openBlock(),o.createBlock(_,{key:0},{default:o.withCtx(()=>{var N;return[o.createTextVNode(o.toDisplayString(o.unref(R)((N=o.unref(u))==null?void 0:N.context.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(u).matches("confirmVerifyUser.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["disabled"]),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onSkipClicked:g,onConfirmVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),YC=["data-variation"],JC={"data-amplify-container":""},ZC=["data-amplify-router-content"],QC={key:1,"data-amplify-router-content":""},Es=o.defineComponent({__name:"authenticator",props:{hideSignUp:{type:Boolean},initialState:null,loginMechanisms:null,services:null,signUpAttributes:null,variation:{default:"default"},socialProviders:null,formFields:null},emits:["signInSubmit","confirmSignUpSubmit","resetPasswordSubmit","confirmResetPasswordSubmit","confirmSignInSubmit","mSetupTOTPSubmit","forceNewPasswordSubmit","signUpSubmit","verifyUserSubmit","confirmVerifyUserSubmit"],setup(e,{emit:t}){const n=e,r=o.useAttrs(),{initialState:a,loginMechanisms:i,variation:s,services:u,signUpAttributes:c,socialProviders:l,hideSignUp:d,formFields:h}=o.toRefs(n),f=o0(),p=m0(f);let g,m;const{state:v,send:S}=as(p);$e(p);const w=o.ref(!1);m=p.subscribe(P=>{P.matches("setup")&&!w.value&&(S({type:"INIT",data:{initialState:a==null?void 0:a.value,loginMechanisms:i==null?void 0:i.value,socialProviders:l==null?void 0:l.value,signUpAttributes:c==null?void 0:c.value,services:u==null?void 0:u.value,formFields:h==null?void 0:h.value}}),w.value=!0)}).unsubscribe,o.onMounted(()=>{g=Al(p)}),o.onUnmounted(()=>{g&&g(),m&&m()});const _=o.computed(()=>be(v.value)),b=o.ref(),C=o.ref(),E=o.ref(),A=o.ref(),$=o.ref(),I=o.ref(),N=o.ref(),M=o.ref(),F=o.ref(),D=o.ref(),G=o.computed(()=>R("Create Account")),de=o.computed(()=>R("Sign In")),X=P=>{var Se;r!=null&&r.onSignInSubmit?t("signInSubmit",P):(Se=b.value)==null||Se.submit(P)},At=P=>{r!=null&&r.onConfirmSignUpSubmit?t("confirmSignUpSubmit",P):E.value.submit(P)},Et=P=>{r!=null&&r.onResetPasswordSubmit?t("resetPasswordSubmit",P):N.value.submit(P)},pe=P=>{r!=null&&r.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",P):M.value.submit(P)},xe=P=>{r!=null&&r.onConfirmSignInSubmit?t("confirmSignInSubmit",P):A.value.submit(P)},Jt=P=>{r!=null&&r.onForceNewPasswordSubmit?t("mSetupTOTPSubmit",P):$.value.submit(P)},tr=P=>{r!=null&&r.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",P):I.value.submit(P)},nr=P=>{r!=null&&r.onSignUpSubmit?t("signUpSubmit",P):C.value.submit()},Zt=P=>{r!=null&&r.onVerifyUserSubmit?t("verifyUserSubmit",P):F.value.submit(P)},rr=P=>{r!=null&&r.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",P):D.value.submit(P)},Qt=o.ref(null),Xt=o.ref();o.watch(()=>v.value.context,()=>{const{user:P,signOut:Se}=ai({send:S,state:v.value});Qt.value=P,Xt.value=Se});const It=o.computed(()=>{var P,Se;return((P=_.value)==null?void 0:P.matches("signIn"))||((Se=_.value)==null?void 0:Se.matches("signUp"))}),or=o.computed(()=>{var P;return!(v.value.matches("authenticated")||v.value.matches("idle")||v.value.matches("setup")||v.value.matches("signOut")||((P=_.value)==null?void 0:P.matches("autoSignIn")))});return(P,Se)=>{var k,O,x,B,V,j,L,Q,ae,_e,tt;const en=Y0,y=Q0;return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(or)?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0},P.$attrs,{"data-amplify-authenticator":"","data-variation":o.unref(s)}),[o.createElementVNode("div",JC,[o.renderSlot(P.$slots,"header"),o.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":o.unref(It)?void 0:""},[o.unref(It)&&!o.unref(d)?(o.openBlock(),o.createBlock(y,{key:0},{default:o.withCtx(()=>{var ne,re;return[o.createVNode(en,{active:(ne=o.unref(_))==null?void 0:ne.matches("signIn"),id:44472,label:o.unref(de),onClick:Se[0]||(Se[0]=nt=>o.unref(S)("SIGN_IN"))},null,8,["active","label"]),o.createVNode(en,{active:(re=o.unref(_))==null?void 0:re.matches("signUp"),id:44471,label:o.unref(G),onClick:Se[1]||(Se[1]=nt=>o.unref(S)("SIGN_UP"))},null,8,["active","label"])]}),_:1})):o.createCommentVNode("",!0),o.unref(It)?(o.openBlock(),o.createElementBlock("div",QC,[(k=o.unref(_))!=null&&k.matches("signIn")?(o.openBlock(),o.createBlock($o,{key:0,onSignInSubmit:X,ref_key:"signInComponent",ref:b},{signInSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-in")]),form:o.withCtx(({info:ne,onSignInSubmit:re,onForgotPasswordClicked:nt,onInput:Tt})=>[o.renderSlot(P.$slots,"sign-in-form",{info:ne,onInput:Tt,onSignInSubmit:re,onForgotPasswordClicked:nt})]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-in-header")]),footer:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-in-footer")]),_:3},512)):o.createCommentVNode("",!0),((O=o.unref(_))==null?void 0:O.matches("signUp"))&&!o.unref(d)?(o.openBlock(),o.createBlock(No,{key:1,onSignUpSubmit:nr,ref_key:"signUpComponent",ref:C},{signUpSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up-header")]),"signup-fields":o.withCtx(({info:ne})=>[o.renderSlot(P.$slots,"sign-up-fields",{info:ne})]),footer:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up-footer")]),_:3},512)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),(x=o.unref(_))!=null&&x.matches("confirmSignUp")?(o.openBlock(),o.createBlock(ko,{key:2,onConfirmSignUpSubmit:At,ref_key:"confirmSignUpComponent",ref:E},{confirmSignUpSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-sign-up")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-sign-up-header")]),footer:o.withCtx(({onConfirmSignUpSubmit:ne,onLostCodeClicked:re})=>[o.renderSlot(P.$slots,"confirm-sign-up-footer",{onConfirmSignUpSubmit:ne,onLostCodeClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(B=o.unref(_))!=null&&B.matches("resetPassword")?(o.openBlock(),o.createBlock(Fo,{key:3,onResetPasswordSubmit:Et,ref_key:"resetPasswordComponent",ref:N},{resetPasswordSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"reset-password")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"reset-password-header")]),footer:o.withCtx(({onResetPasswordSubmit:ne,onBackToSignInClicked:re})=>[o.renderSlot(P.$slots,"reset-password-footer",{onResetPasswordSubmit:ne,onBackToSignInClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(V=o.unref(_))!=null&&V.matches("confirmResetPassword")?(o.openBlock(),o.createBlock(Lo,{key:4,onConfirmResetPasswordSubmit:pe,ref_key:"confirmResetPasswordComponent",ref:M},{confirmResetPasswordSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-reset-password")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-reset-password-header")]),footer:o.withCtx(({onConfirmResetPasswordSubmit:ne,onLostYourCodeClicked:re})=>[o.renderSlot(P.$slots,"confirm-reset-password-footer",{onConfirmResetPasswordSubmit:ne,onLostYourCodeClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(j=o.unref(_))!=null&&j.matches("confirmSignIn")?(o.openBlock(),o.createBlock(xo,{key:5,onConfirmSignInSubmit:xe,ref_key:"confirmSignInComponent",ref:A},{confirmSignInSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-sign-in")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-sign-in-header")]),footer:o.withCtx(({onConfirmSignInSubmit:ne,onBackToSignInClicked:re})=>[o.renderSlot(P.$slots,"confirm-sign-in-footer",{onConfirmSignInSubmit:ne,onBackToSignInClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(L=o.unref(_))!=null&&L.matches("setupTOTP")?(o.openBlock(),o.createBlock(WC,{key:6,onConfirmSetupTotpSubmit:Jt,ref_key:"confirmSetupTOTPComponent",ref:$},{confirmSetupTOTPI:o.withCtx(()=>[o.renderSlot(P.$slots,"setup-totp")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"setup-totp-header")]),footer:o.withCtx(({onSetupTOTPSubmit:ne,onBackToSignInClicked:re})=>[o.renderSlot(P.$slots,"setup-totp-footer",{onSetupTOTPSubmit:ne,onBackToSignInClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(Q=o.unref(_))!=null&&Q.matches("forceNewPassword")?(o.openBlock(),o.createBlock(Mo,{key:7,onForceNewPasswordSubmit:tr,ref_key:"forceNewPasswordComponent",ref:I},{forceNewPasswordI:o.withCtx(()=>[o.renderSlot(P.$slots,"force-new-password")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"force-new-password-header")]),"force-new-password-form-fields":o.withCtx(()=>[o.renderSlot(P.$slots,"force-new-password-form-fields")]),footer:o.withCtx(({onHaveAccountClicked:ne,onForceNewPasswordSubmit:re})=>[o.renderSlot(P.$slots,"force-new-password-footer",{onForceNewPasswordSubmit:re,onBackToSignInClicked:ne})]),_:3},512)):o.createCommentVNode("",!0),(ae=o.unref(_))!=null&&ae.matches("verifyUser")?(o.openBlock(),o.createBlock(jo,{key:8,onVerifyUserSubmit:Zt,ref_key:"verifyUserComponent",ref:F},{verifyUserSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"verify-user")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"verify-user-header")]),footer:o.withCtx(({onVerifyUserSubmit:ne,onSkipClicked:re})=>[o.renderSlot(P.$slots,"verify-user-footer",{onVerifyUserSubmit:ne,onSkipClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(_e=o.unref(_))!=null&&_e.matches("confirmVerifyUser")?(o.openBlock(),o.createBlock(zo,{key:9,onConfirmVerifyUserSubmit:rr,ref_key:"confirmVerifyUserComponent",ref:D},{confirmVerifyUserSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-verify-user")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-verify-user-header")]),footer:o.withCtx(({onConfirmVerifyUserSubmit:ne,onSkipClicked:re})=>[o.renderSlot(P.$slots,"confirm-verify-user-footer",{onConfirmVerifyUserSubmit:ne,onSkipClicked:re})]),_:3},512)):o.createCommentVNode("",!0)],8,ZC),o.renderSlot(P.$slots,"footer")])],16,YC)):o.createCommentVNode("",!0),(tt=o.unref(v))!=null&&tt.matches("authenticated")?o.renderSlot(P.$slots,"default",{key:1,user:Qt.value,state:o.unref(v),signOut:Xt.value,send:o.unref(S)}):o.createCommentVNode("",!0)],64)}}}),Is=o.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}}),Ts=o.defineComponent({__name:"amplify-text-field",props:{label:{default:""},id:{default:""},autocomplete:{default:""},placeholder:{default:""},required:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},name:{default:""},type:{default:"text"},hideLabel:{type:Boolean,default:!0}},setup(e){const t=e,{label:n,id:r,autocomplete:a,placeholder:i,required:s,name:u,type:c}=o.toRefs(t);return(l,d)=>{const h=Yn,f=Jn,p=ye;return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(h,{class:o.normalizeClass(["amplify-label",{"amplify-visually-hidden":e.hideLabel}]),for:o.unref(r)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)),1)]),_:1},8,["class","for"]),o.createVNode(p,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>[o.createVNode(f,{class:"amplify-input amplify-field-group__control",id:o.unref(r),"aria-invalid":"false",autocomplete:o.unref(a),placeholder:o.unref(i),required:o.unref(s),name:o.unref(u),disabled:e.disabled,type:o.unref(c)},null,8,["id","autocomplete","placeholder","required","name","disabled","type"])]),_:1})],64)}}}),XC={class:"amplify-flex amplify-field amplify-checkboxfield"},e2={class:"amplify-flex amplify-checkbox"},t2={class:"amplify-visually-hidden"},n2=["data-error","data-checked"],r2=["data-checked"],o2=o.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),a2=[o2],i2=o.createElementVNode("span",{class:"amplify-text amplify-checkbox__label"}," I agree with the Terms & Conditions",-1),s2={key:0,class:"amplify-text amplify-field__error-message"},$s=o.defineComponent({__name:"amplify-check-box",props:{errorMessage:{default:""}},setup(e){const t=e,n=o.ref(!1),{errorMessage:r}=o.toRefs(t);return(a,i)=>(o.openBlock(),o.createElementBlock("div",XC,[o.createElementVNode("label",e2,[o.createElementVNode("span",t2,[o.createElementVNode("input",{onClick:i[0]||(i[0]=s=>n.value=!n.value),class:"amplify-input amplify-field-group__control amplify-checkbox__input","aria-invalid":"false",type:"checkbox",name:"acknowledgement",value:"yes"})]),o.createElementVNode("span",{class:o.normalizeClass(["amplify-flex amplify-checkbox__button",{"amplify-checkbox__button--error":!n.value}]),"aria-hidden":"true","data-focus":"false","data-error":!n.value,"data-checked":n.value},[(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:o.normalizeClass(["amplify-icon amplify-checkbox__icon",{"amplify-checkbox__icon--checked":n.value}]),viewBox:"0 0 24 24",fill:"currentColor","data-checked":n.value},a2,10,r2))],10,n2),i2]),n.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("p",s2,o.toDisplayString(o.unref(r)),1))]))}});var u2={install:e=>{e.component("SignIn",$o),e.component("SignUp",No),e.component("FederatedSignIn",Wn),e.component("Authenticator",Es),e.component("RenderInfo",Is),e.component("PasswordControl",To),e.component("ForceNewPassword",Mo),e.component("ResetPassword",Fo),e.component("ConfirmResetPassword",Lo),e.component("ConfirmSignUp",ko),e.component("ConfirmSignIn",xo),e.component("VerifyUser",jo),e.component("ConfirmVerifyUser",zo),e.component("AmplifyTextField",Ts),e.component("AmplifyCheckBox",$s),e.component("AmplifyButton",we),e.component("BaseFormField",ss),e.component("BaseFormFields",Le),e.component("AuthenticatorSignUpFormFields",Po),e.component("AuthenticatorForceNewPasswordFormFields",Do)}};exports.AmplifyButton=we;exports.AmplifyCheckBox=$s;exports.AmplifyTextField=Ts;exports.Authenticator=Es;exports.AuthenticatorForceNewPasswordFormFields=Do;exports.AuthenticatorSignUpFormFields=Po;exports.ConfirmResetPassword=Lo;exports.ConfirmSignIn=xo;exports.ConfirmSignUp=ko;exports.ConfirmVerifyUser=zo;exports.FederatedSignIn=Wn;exports.ForceNewPassword=Mo;exports.PasswordControl=To;exports.RenderInfo=Is;exports.ResetPassword=Fo;exports.SignIn=$o;exports.SignUp=No;exports.VerifyUser=jo;exports.default=u2;exports.translations=wl;exports.useAuthenticator=Ae;
|
|
36
|
+
Minimum version required to store current data is: `+a+`.
|
|
37
|
+
`);const s=MC(t,n,i),u=Qn.getSymbolSize(t),c=new $C(u);return UC(c,t),RC(c),BC(c,t),hr(c,n,0),t>=7&&VC(c,t),DC(c,s),isNaN(r)&&(r=Dr.getBestMask(c,hr.bind(null,c,n))),Dr.applyMask(r,c),hr(c,n,r),{modules:c,version:t,errorCorrectionLevel:n,maskPattern:r,segments:i}}ds.create=function(t,n){if(typeof t=="undefined"||t==="")throw new Error("No input text");let r=fr.M,i,a;return typeof n!="undefined"&&(r=fr.from(n.errorCorrectionLevel,fr.M),i=kn.from(n.version),a=Dr.from(n.maskPattern),n.toSJISFunc&&Qn.setToSJISFunction(n.toSJISFunc)),LC(t,i,r,a)};var As={},Bo={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(a){return[a,a]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin=="undefined"||r.margin===null||r.margin<0?4:r.margin,a=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:a,scale:a?4:s,margin:i,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},e.getImageWidth=function(r,i){const a=e.getScale(r,i);return Math.floor((r+i.margin*2)*a)},e.qrToImageData=function(r,i,a){const s=i.modules.size,u=i.modules.data,c=e.getScale(s,a),l=Math.floor((s+a.margin*2)*c),d=a.margin*c,p=[a.color.light,a.color.dark];for(let f=0;f<l;f++)for(let h=0;h<l;h++){let g=(f*l+h)*4,m=a.color.light;if(f>=d&&h>=d&&f<l-d&&h<l-d){const v=Math.floor((f-d)/c),w=Math.floor((h-d)/c);m=p[u[v*s+w]?1:0]}r[g++]=m.r,r[g++]=m.g,r[g++]=m.b,r[g]=m.a}}})(Bo);(function(e){const t=Bo;function n(i,a,s){i.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=s,a.width=s,a.style.height=s+"px",a.style.width=s+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(a,s,u){let c=u,l=s;typeof c=="undefined"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(l=r()),c=t.getOptions(c);const d=t.getImageWidth(a.modules.size,c),p=l.getContext("2d"),f=p.createImageData(d,d);return t.qrToImageData(f.data,a,c),n(p,l,d),p.putImageData(f,0,0),l},e.renderToDataURL=function(a,s,u){let c=u;typeof c=="undefined"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const l=e.render(a,s,c),d=c.type||"image/png",p=c.rendererOpts||{};return l.toDataURL(d,p.quality)}})(As);var Es={};const jC=Bo;function Zi(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function mr(e,t,n){let r=e+t;return typeof n!="undefined"&&(r+=" "+n),r}function zC(e,t,n){let r="",i=0,a=!1,s=0;for(let u=0;u<e.length;u++){const c=Math.floor(u%t),l=Math.floor(u/t);!c&&!a&&(a=!0),e[u]?(s++,u>0&&c>0&&e[u-1]||(r+=a?mr("M",c+n,.5+l+n):mr("m",i,0),i=0,a=!1),c+1<t&&e[u+1]||(r+=mr("h",s),s=0)):i++}return r}Es.render=function(t,n,r){const i=jC.getOptions(n),a=t.modules.size,s=t.modules.data,u=a+i.margin*2,c=i.color.light.a?"<path "+Zi(i.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",l="<path "+Zi(i.color.dark,"stroke")+' d="'+zC(s,a,i.margin)+'"/>',d='viewBox="0 0 '+u+" "+u+'"',p=i.width?'width="'+i.width+'" height="'+i.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+p+d+' shape-rendering="crispEdges">'+c+l+`</svg>
|
|
38
|
+
`;return typeof r=="function"&&r(null,f),f};const GC=oC,Fr=ds,Is=As,HC=Es;function Vo(e,t,n,r,i){const a=[].slice.call(arguments,1),s=a.length,u=typeof a[s-1]=="function";if(!u&&!GC())throw new Error("Callback required as last argument");if(u){if(s<2)throw new Error("Too few arguments provided");s===2?(i=n,n=t,t=r=void 0):s===3&&(t.getContext&&typeof i=="undefined"?(i=r,r=void 0):(i=r,r=n,n=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(n=t,t=r=void 0):s===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(c,l){try{const d=Fr.create(n,r);c(e(d,t,r))}catch(d){l(d)}})}try{const c=Fr.create(n,r);i(null,e(c,t,r))}catch(c){i(c)}}qt.create=Fr.create;qt.toCanvas=Vo.bind(null,Is.render);qt.toDataURL=Vo.bind(null,Is.renderToDataURL);qt.toString=Vo.bind(null,function(e,t,n){return HC.render(e,n)});const KC={key:0},qC=o.createTextVNode(" Setup TOTP "),WC=["src"],YC={"data-amplify-copy-tooltip":""},JC=o.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM15 5H8C6.9 5 6.01 5.9 6.01 7L6 21C6 22.1 6.89 23 7.99 23H19C20.1 23 21 22.1 21 21V11L15 5ZM8 21V7H14V12H19V21H8Z"})],-1),ZC=o.defineComponent({__name:"setup-totp",emits:["confirmSetupTOTPSubmit","backToSignInClicked"],setup(e,{emit:t}){var C,E;const r=Te(Ce)(),i=o.useAttrs(),{state:a,send:s}=$e(),{value:{context:u}}=a,c=(E=(C=u==null?void 0:u.config)==null?void 0:C.formFields)==null?void 0:E.setupTOTP,l=c==null?void 0:c.QR,d=o.computed(()=>Ie(a.value));let p=o.reactive({qrCodeImageSource:"",isLoading:!0}),f=o.ref(""),h=o.ref(R("COPY"));function g(){navigator.clipboard.writeText(f.value),h.value=R("COPIED")}o.onMounted(async()=>{var I,N;const A=new le.Logger("SetupTOTP-logger"),{user:$}=d.value.context;if(!!$)try{f.value=await le.Auth.setupTOTP($);const M=(I=l==null?void 0:l.totpIssuer)!=null?I:"AWSCognito",F=(N=l==null?void 0:l.totpUsername)!=null?N:$.username,D=encodeURI(`otpauth://totp/${M}:${F}?secret=${f.value}&issuer=${M}`);p.qrCodeImageSource=await qt.toDataURL(D)}catch(M){A.error(M)}finally{p.isLoading=!1}});const m=o.computed(()=>R("Back to Sign In")),v=o.computed(()=>R("Confirm")),w=A=>{const{name:$,value:I}=A.target;s({type:"CHANGE",data:{name:$,value:I}})},S=A=>{i!=null&&i.onConfirmSetupTOTPSubmit?t("confirmSetupTOTPSubmit",A):_(A)},_=A=>{r.submitForm(Ve(A))},b=()=>{i!=null&&i.onBackToSignInClicked?t("backToSignInClicked"):s({type:"SIGN_IN"})};return(A,$)=>{const I=We,N=ye,M=De,F=Se,D=Fe,G=Ue,de=Me;return o.renderSlot(A.$slots,"confirmSetupTOTPI",o.normalizeProps(o.guardReactiveProps(A.$attrs)),()=>[o.createVNode(N,o.normalizeProps(o.guardReactiveProps(A.$attrs)),{default:o.withCtx(()=>[o.createVNode(de,{"data-amplify-authenticator-setup-totp":"",onInput:w,onSubmit:o.withModifiers(S,["prevent"])},{default:o.withCtx(()=>[o.createVNode(G,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(d).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.unref(p).isLoading?(o.openBlock(),o.createElementBlock("p",KC,"Loading...")):(o.openBlock(),o.createBlock(N,{key:1,class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(A.$slots,"header",{},()=>[o.createVNode(I,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[qC]),_:1})]),o.createVNode(N,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createElementVNode("img",{class:"amplify-image","data-amplify-qrcode":"",src:o.unref(p).qrCodeImageSource,alt:"qr code",width:"228",height:"228"},null,8,WC),o.createVNode(N,{class:"amplify-flex","data-amplify-copy":""},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(o.unref(f)),1),o.createVNode(N,{"data-amplify-copy-svg":"",onClick:g},{default:o.withCtx(()=>[o.createElementVNode("div",YC,o.toDisplayString(o.unref(h)),1),JC]),_:1})]),_:1}),o.createVNode(Le,{route:"setupTOTP"})]),_:1}),o.createVNode(D,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var Q;return[(Q=o.unref(d).context)!=null&&Q.remoteError?(o.openBlock(),o.createBlock(M,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(d).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(F,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:o.unref(d).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(v)),1)]),_:1},8,["disabled"]),o.createVNode(F,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(b,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(m)),1)]),_:1},8,["onClick"]),o.renderSlot(A.$slots,"footer",{onBackToSignInClicked:b,onSetupTOTPSubmit:S})]}),_:3})]),_:3}))]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Do=o.defineComponent({__name:"authenticator-force-new-password-form-fields",setup(e){return(t,n)=>(o.openBlock(),o.createBlock(Le,{route:"forceNewPassword"}))}}),Mo=o.defineComponent({__name:"force-new-password",emits:["haveAccountClicked","forceNewPasswordSubmit"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:i}=$e(),s=Te(Ce)(),u=o.computed(()=>Ie(r.value)),c=o.computed(()=>R("Change Password")),l=o.computed(()=>R("Changing")),d=o.computed(()=>R("Back to Sign In")),p=()=>{n!=null&&n.onHaveAccountClicked?t("haveAccountClicked"):i({type:"SIGN_IN"})},f=v=>{n!=null&&n.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",v):h(v)},h=v=>{s.submitForm(Ve(v))},g=v=>{const{name:w,value:S}=v.target;i({type:"CHANGE",data:{name:w,value:S}})};function m(v){const{name:w}=v.target;s.updateBlur({name:w})}return(v,w)=>{const S=We,_=ye,b=De,C=Se,E=Fe,A=Ue,$=Me;return o.renderSlot(v.$slots,"forceNewPasswordI",o.normalizeProps(o.guardReactiveProps(v.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(v.$attrs)),{default:o.withCtx(()=>[o.createVNode($,{"data-amplify-authenticator-forcenewpassword":"",onInput:g,onBlur:m,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(A,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("forceNewPassword.pending")},{default:o.withCtx(()=>[o.renderSlot(v.$slots,"header",{},()=>[o.createVNode(S,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1})]),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(v.$slots,"force-new-password-form-fields",{},()=>[o.createVNode(Do)])]),_:3}),o.createVNode(E,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(u).context.remoteError?(o.openBlock(),o.createBlock(b,{key:0,"data-ui-error":""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(u).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:o.unref(u).matches("signUp.submit")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(u).matches("forceNewPassword.pending")?o.unref(l)+"\u2026":o.unref(c)),1)]),_:1},8,["disabled"]),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(p,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["onClick"]),o.renderSlot(v.$slots,"footer",{onHaveAccountClicked:p,onForceNewPasswordSubmit:f})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Fo=o.defineComponent({__name:"reset-password",emits:["resetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),r=Te(Ce),{send:i,submitForm:a}=r(),{error:s,isPending:u}=o.toRefs(r()),c=o.computed(()=>R("Back to Sign In")),l=o.computed(()=>R("Reset your password")),d=o.computed(()=>R("Send Code")),p=m=>{n!=null&&n.onResetPasswordSubmit?t("resetPasswordSubmit",m):f(m)},f=m=>{a(Ve(m))},h=m=>{const{name:v,value:w}=m.target;i({type:"CHANGE",data:{name:v,value:w}})},g=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):i({type:"SIGN_IN"})};return(m,v)=>{const w=We,S=Ue,_=De,b=Se,C=Fe,E=ye,A=Me;return o.renderSlot(m.$slots,"resetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(A,o.mergeProps(m.$attrs,{"data-amplify-authenticator-resetpassword":"",onInput:h,onSubmit:o.withModifiers(p,["prevent"])}),{default:o.withCtx(()=>[o.createVNode(E,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"header",{},()=>[o.createVNode(w,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(S,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u)},{default:o.withCtx(()=>[o.createVNode(Le,{route:"resetPassword"})]),_:1},8,["disabled"]),o.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(s)?(o.openBlock(),o.createBlock(_,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(s))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(u)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["disabled"]),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onBackToSignInClicked:g,onResetPasswordSubmit:p})]),_:3})]),_:3})]),_:3},16,["onSubmit"])])}}}),Lo=o.defineComponent({__name:"confirm-reset-password",emits:["confirmResetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const{state:n,send:r}=$e(),a=Te(Ce)(),s=o.useAttrs(),u=o.computed(()=>Ie(n.value)),c=o.computed(()=>R("Resend Code")),l=o.computed(()=>R("Reset your Password")),d=o.computed(()=>R("Submit")),p=v=>{s!=null&&s.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",v):f(v)},f=v=>{a.submitForm(Ve(v))},h=()=>{r({type:"RESEND"})},g=v=>{const{name:w,value:S}=v.target;r({type:"CHANGE",data:{name:w,value:S}})};function m(v){const{name:w}=v.target;a.updateBlur({name:w})}return(v,w)=>{const S=We,_=ye,b=De,C=Se,E=Fe,A=Ue,$=Me;return o.renderSlot(v.$slots,"confirmResetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(v.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(v.$attrs)),{default:o.withCtx(()=>[o.createVNode($,{"data-amplify-authenticator-confirmResetpassword":"",onInput:g,onBlurCapture:m,onSubmit:o.withModifiers(p,["prevent"])},{default:o.withCtx(()=>[o.createVNode(A,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmResetPassword.pending")},{default:o.withCtx(()=>[o.renderSlot(v.$slots,"header",{},()=>[o.createVNode(S,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmResetPassword"})]),_:1}),o.createVNode(E,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var I,N;return[(N=(I=o.unref(u))==null?void 0:I.context)!=null&&N.remoteError?(o.openBlock(),o.createBlock(b,{key:0},{default:o.withCtx(()=>{var M,F;return[o.createTextVNode(o.toDisplayString(o.unref(R)((F=(M=o.unref(u))==null?void 0:M.context)==null?void 0:F.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",variation:"primary",fullwidth:!1,type:"submit",disabled:o.unref(u).matches("confirmResetPassword.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["disabled"]),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!1,size:"small",type:"button",onClick:o.withModifiers(h,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1},8,["onClick"]),o.renderSlot(v.$slots,"footer",{onConfirmResetPasswordSubmit:p,onLostYourCodeClicked:h})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),jo=o.defineComponent({__name:"verify-user",emits:["verifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=Te(Ce)(),i=o.useAttrs(),{state:a,send:s}=$e(),u=o.computed(()=>Ie(a.value)),c=u.value.context.unverifiedAttributes,l=o.computed(()=>R("Account recovery requires verified contact information")),d=o.computed(()=>R("Skip")),p=o.computed(()=>R("Verify")),f=o.computed(()=>R("Verify Contact")),h=w=>{const{name:S,value:_}=w.target;s({type:"CHANGE",data:{name:S,value:_}})},g=w=>{i!=null&&i.onVerifyUserSubmit?t("verifyUserSubmit",w):m(w)},m=w=>{r.submitForm(Ve(w))},v=()=>{i!=null&&i.onSkipClicked?t("skipClicked"):s("SKIP")};return(w,S)=>{const _=We,b=Wn,C=Yn,E=ls,A=ye,$=De,I=Se,N=Fe,M=Ue,F=Me;return o.renderSlot(w.$slots,"verifyUserSlotI",{},()=>[o.createVNode(A,null,{default:o.withCtx(()=>[o.createVNode(F,{onInput:h,onSubmit:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>[o.createVNode(M,{disabled:o.unref(u).matches("verifyUser.pending"),class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(w.$slots,"header",{},()=>[o.createVNode(_,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(A,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(b,{class:"amplify-visually-hidden amplify-label",id:"amplify-field-493c"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1}),o.createVNode(A,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column","aria-labelledby":"amplify-field-493c"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),(D,G)=>(o.openBlock(),o.createBlock(b,{class:"amplify-flex amplify-radio","data-amplify-verify-label":"",id:"verify",key:D},{default:o.withCtx(()=>[o.createVNode(C,{class:"amplify-input amplify-field-group__control amplify-visually-hidden amplify-radio__input","aria-invalid":"false","data-amplify-verify-input":"",id:"verify",name:"unverifiedAttr",type:"radio",value:G},null,8,["value"]),o.createVNode(E,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"}),o.createVNode(E,{class:"amplify-text amplify-radio__label"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(Hr)[G].label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),o.createVNode(N,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var D,G;return[(G=(D=o.unref(u))==null?void 0:D.context)!=null&&G.remoteError?(o.openBlock(),o.createBlock($,{key:0},{default:o.withCtx(()=>{var de;return[o.createTextVNode(o.toDisplayString(o.unref(R)((de=o.unref(u))==null?void 0:de.context.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(I,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(u).matches("verifyUser.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(p)),1)]),_:1},8,["disabled"]),o.createVNode(I,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["onClick"]),o.renderSlot(w.$slots,"footer",{onSkipClicked:v,onVerifyUserSubmit:g})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),zo=o.defineComponent({__name:"confirm-verify-user",emits:["confirmVerifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=Te(Ce)(),i=o.useAttrs(),{state:a,send:s}=$e(),u=o.computed(()=>Ie(a.value)),c=o.computed(()=>R("Account recovery requires verified contact information")),l=o.computed(()=>R("Skip")),d=o.computed(()=>R("Submit")),p=m=>{const{name:v,value:w}=m.target;s({type:"CHANGE",data:{name:v,value:w}})},f=m=>{i!=null&&i.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",m):h(m)},h=m=>{r.submitForm(Ve(m))},g=()=>{i!=null&&i.onSkipClicked?t("skipClicked"):s({type:"SKIP"})};return(m,v)=>{const w=We,S=ye,_=De,b=Se,C=Fe,E=Ue,A=Me;return o.renderSlot(m.$slots,"confirmVerifyUserSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(S,o.normalizeProps(o.guardReactiveProps(m.$attrs)),{default:o.withCtx(()=>[o.createVNode(A,{onInput:p,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(E,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmVerifyUser.pending")},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"header",{},()=>[o.createVNode(w,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1})]),o.createVNode(S,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmVerifyUser"})]),_:1}),o.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var $,I;return[(I=($=o.unref(u))==null?void 0:$.context)!=null&&I.remoteError?(o.openBlock(),o.createBlock(_,{key:0},{default:o.withCtx(()=>{var N;return[o.createTextVNode(o.toDisplayString(o.unref(R)((N=o.unref(u))==null?void 0:N.context.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(u).matches("confirmVerifyUser.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["disabled"]),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onSkipClicked:g,onConfirmVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),XC=["data-variation"],QC={"data-amplify-container":""},e2=["data-amplify-router-content"],t2={key:1,"data-amplify-router-content":""},Ts=o.defineComponent({__name:"authenticator",props:{hideSignUp:{type:Boolean},initialState:null,loginMechanisms:null,services:null,signUpAttributes:null,variation:{default:"default"},socialProviders:null,formFields:null},emits:["signInSubmit","confirmSignUpSubmit","resetPasswordSubmit","confirmResetPasswordSubmit","confirmSignInSubmit","mSetupTOTPSubmit","forceNewPasswordSubmit","signUpSubmit","verifyUserSubmit","confirmVerifyUserSubmit"],setup(e,{emit:t}){const n=e,r=o.useAttrs(),{initialState:i,loginMechanisms:a,variation:s,services:u,signUpAttributes:c,socialProviders:l,hideSignUp:d,formFields:p}=o.toRefs(n),f=s0(),h=y0(f);let g,m;const{state:v,send:w}=ss(h);$e(h);const S=o.ref(!1);m=h.subscribe(P=>{P.matches("setup")&&!S.value&&(w({type:"INIT",data:{initialState:i==null?void 0:i.value,loginMechanisms:a==null?void 0:a.value,socialProviders:l==null?void 0:l.value,signUpAttributes:c==null?void 0:c.value,services:u==null?void 0:u.value,formFields:p==null?void 0:p.value}}),S.value=!0)}).unsubscribe,o.onMounted(()=>{g=Il(h)}),o.onUnmounted(()=>{g&&g(),m&&m()});const _=o.computed(()=>Ie(v.value)),b=o.ref(),C=o.ref(),E=o.ref(),A=o.ref(),$=o.ref(),I=o.ref(),N=o.ref(),M=o.ref(),F=o.ref(),D=o.ref(),G=o.computed(()=>R("Create Account")),de=o.computed(()=>R("Sign In")),Q=P=>{var we;r!=null&&r.onSignInSubmit?t("signInSubmit",P):(we=b.value)==null||we.submit(P)},Ct=P=>{r!=null&&r.onConfirmSignUpSubmit?t("confirmSignUpSubmit",P):E.value.submit(P)},At=P=>{r!=null&&r.onResetPasswordSubmit?t("resetPasswordSubmit",P):N.value.submit(P)},pe=P=>{r!=null&&r.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",P):M.value.submit(P)},xe=P=>{r!=null&&r.onConfirmSignInSubmit?t("confirmSignInSubmit",P):A.value.submit(P)},Yt=P=>{r!=null&&r.onForceNewPasswordSubmit?t("mSetupTOTPSubmit",P):$.value.submit(P)},er=P=>{r!=null&&r.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",P):I.value.submit(P)},tr=P=>{r!=null&&r.onSignUpSubmit?t("signUpSubmit",P):C.value.submit()},Jt=P=>{r!=null&&r.onVerifyUserSubmit?t("verifyUserSubmit",P):F.value.submit(P)},nr=P=>{r!=null&&r.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",P):D.value.submit(P)},Zt=o.ref(null),Xt=o.ref();o.watch(()=>v.value.context,()=>{const{user:P,signOut:we}=sa({send:w,state:v.value});Zt.value=P,Xt.value=we});const Et=o.computed(()=>{var P,we;return((P=_.value)==null?void 0:P.matches("signIn"))||((we=_.value)==null?void 0:we.matches("signUp"))}),rr=o.computed(()=>{var P;return!(v.value.matches("authenticated")||v.value.matches("idle")||v.value.matches("setup")||v.value.matches("signOut")||((P=_.value)==null?void 0:P.matches("autoSignIn")))});return(P,we)=>{var k,O,x,B,V,j,L,X,ie,_e,et;const Qt=X0,y=tC;return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(rr)?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0},P.$attrs,{"data-amplify-authenticator":"","data-variation":o.unref(s)}),[o.createElementVNode("div",QC,[o.renderSlot(P.$slots,"header"),o.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":o.unref(Et)?void 0:""},[o.unref(Et)&&!o.unref(d)?(o.openBlock(),o.createBlock(y,{key:0},{default:o.withCtx(()=>{var ne,re;return[o.createVNode(Qt,{active:(ne=o.unref(_))==null?void 0:ne.matches("signIn"),id:44472,label:o.unref(de),onClick:we[0]||(we[0]=tt=>o.unref(w)("SIGN_IN"))},null,8,["active","label"]),o.createVNode(Qt,{active:(re=o.unref(_))==null?void 0:re.matches("signUp"),id:44471,label:o.unref(G),onClick:we[1]||(we[1]=tt=>o.unref(w)("SIGN_UP"))},null,8,["active","label"])]}),_:1})):o.createCommentVNode("",!0),o.unref(Et)?(o.openBlock(),o.createElementBlock("div",t2,[(k=o.unref(_))!=null&&k.matches("signIn")?(o.openBlock(),o.createBlock($o,{key:0,onSignInSubmit:Q,ref_key:"signInComponent",ref:b},{signInSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-in")]),form:o.withCtx(({info:ne,onSignInSubmit:re,onForgotPasswordClicked:tt,onInput:It})=>[o.renderSlot(P.$slots,"sign-in-form",{info:ne,onInput:It,onSignInSubmit:re,onForgotPasswordClicked:tt})]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-in-header")]),footer:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-in-footer")]),_:3},512)):o.createCommentVNode("",!0),((O=o.unref(_))==null?void 0:O.matches("signUp"))&&!o.unref(d)?(o.openBlock(),o.createBlock(No,{key:1,onSignUpSubmit:tr,ref_key:"signUpComponent",ref:C},{signUpSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up-header")]),"signup-fields":o.withCtx(({info:ne})=>[o.renderSlot(P.$slots,"sign-up-fields",{info:ne})]),footer:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up-footer")]),_:3},512)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),(x=o.unref(_))!=null&&x.matches("confirmSignUp")?(o.openBlock(),o.createBlock(ko,{key:2,onConfirmSignUpSubmit:Ct,ref_key:"confirmSignUpComponent",ref:E},{confirmSignUpSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-sign-up")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-sign-up-header")]),footer:o.withCtx(({onConfirmSignUpSubmit:ne,onLostCodeClicked:re})=>[o.renderSlot(P.$slots,"confirm-sign-up-footer",{onConfirmSignUpSubmit:ne,onLostCodeClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(B=o.unref(_))!=null&&B.matches("resetPassword")?(o.openBlock(),o.createBlock(Fo,{key:3,onResetPasswordSubmit:At,ref_key:"resetPasswordComponent",ref:N},{resetPasswordSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"reset-password")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"reset-password-header")]),footer:o.withCtx(({onResetPasswordSubmit:ne,onBackToSignInClicked:re})=>[o.renderSlot(P.$slots,"reset-password-footer",{onResetPasswordSubmit:ne,onBackToSignInClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(V=o.unref(_))!=null&&V.matches("confirmResetPassword")?(o.openBlock(),o.createBlock(Lo,{key:4,onConfirmResetPasswordSubmit:pe,ref_key:"confirmResetPasswordComponent",ref:M},{confirmResetPasswordSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-reset-password")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-reset-password-header")]),footer:o.withCtx(({onConfirmResetPasswordSubmit:ne,onLostYourCodeClicked:re})=>[o.renderSlot(P.$slots,"confirm-reset-password-footer",{onConfirmResetPasswordSubmit:ne,onLostYourCodeClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(j=o.unref(_))!=null&&j.matches("confirmSignIn")?(o.openBlock(),o.createBlock(xo,{key:5,onConfirmSignInSubmit:xe,ref_key:"confirmSignInComponent",ref:A},{confirmSignInSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-sign-in")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-sign-in-header")]),footer:o.withCtx(({onConfirmSignInSubmit:ne,onBackToSignInClicked:re})=>[o.renderSlot(P.$slots,"confirm-sign-in-footer",{onConfirmSignInSubmit:ne,onBackToSignInClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(L=o.unref(_))!=null&&L.matches("setupTOTP")?(o.openBlock(),o.createBlock(ZC,{key:6,onConfirmSetupTotpSubmit:Yt,ref_key:"confirmSetupTOTPComponent",ref:$},{confirmSetupTOTPI:o.withCtx(()=>[o.renderSlot(P.$slots,"setup-totp")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"setup-totp-header")]),footer:o.withCtx(({onSetupTOTPSubmit:ne,onBackToSignInClicked:re})=>[o.renderSlot(P.$slots,"setup-totp-footer",{onSetupTOTPSubmit:ne,onBackToSignInClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(X=o.unref(_))!=null&&X.matches("forceNewPassword")?(o.openBlock(),o.createBlock(Mo,{key:7,onForceNewPasswordSubmit:er,ref_key:"forceNewPasswordComponent",ref:I},{forceNewPasswordI:o.withCtx(()=>[o.renderSlot(P.$slots,"force-new-password")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"force-new-password-header")]),"force-new-password-form-fields":o.withCtx(()=>[o.renderSlot(P.$slots,"force-new-password-form-fields")]),footer:o.withCtx(({onHaveAccountClicked:ne,onForceNewPasswordSubmit:re})=>[o.renderSlot(P.$slots,"force-new-password-footer",{onForceNewPasswordSubmit:re,onBackToSignInClicked:ne})]),_:3},512)):o.createCommentVNode("",!0),(ie=o.unref(_))!=null&&ie.matches("verifyUser")?(o.openBlock(),o.createBlock(jo,{key:8,onVerifyUserSubmit:Jt,ref_key:"verifyUserComponent",ref:F},{verifyUserSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"verify-user")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"verify-user-header")]),footer:o.withCtx(({onVerifyUserSubmit:ne,onSkipClicked:re})=>[o.renderSlot(P.$slots,"verify-user-footer",{onVerifyUserSubmit:ne,onSkipClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(_e=o.unref(_))!=null&&_e.matches("confirmVerifyUser")?(o.openBlock(),o.createBlock(zo,{key:9,onConfirmVerifyUserSubmit:nr,ref_key:"confirmVerifyUserComponent",ref:D},{confirmVerifyUserSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-verify-user")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-verify-user-header")]),footer:o.withCtx(({onConfirmVerifyUserSubmit:ne,onSkipClicked:re})=>[o.renderSlot(P.$slots,"confirm-verify-user-footer",{onConfirmVerifyUserSubmit:ne,onSkipClicked:re})]),_:3},512)):o.createCommentVNode("",!0)],8,e2),o.renderSlot(P.$slots,"footer")])],16,XC)):o.createCommentVNode("",!0),(et=o.unref(v))!=null&&et.matches("authenticated")?o.renderSlot(P.$slots,"default",{key:1,user:Zt.value,state:o.unref(v),signOut:Xt.value,send:o.unref(w)}):o.createCommentVNode("",!0)],64)}}}),$s=o.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}}),Ps=o.defineComponent({__name:"amplify-text-field",props:{label:{default:""},id:{default:""},autocomplete:{default:""},placeholder:{default:""},required:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},name:{default:""},type:{default:"text"},hideLabel:{type:Boolean,default:!0}},setup(e){const t=e,{label:n,id:r,autocomplete:i,placeholder:a,required:s,name:u,type:c}=o.toRefs(t);return(l,d)=>{const p=Wn,f=Yn,h=ye;return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(p,{class:o.normalizeClass(["amplify-label",{"amplify-visually-hidden":e.hideLabel}]),for:o.unref(r)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)),1)]),_:1},8,["class","for"]),o.createVNode(h,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>[o.createVNode(f,{class:"amplify-input amplify-field-group__control",id:o.unref(r),"aria-invalid":"false",autocomplete:o.unref(i),placeholder:o.unref(a),required:o.unref(s),name:o.unref(u),disabled:e.disabled,type:o.unref(c)},null,8,["id","autocomplete","placeholder","required","name","disabled","type"])]),_:1})],64)}}}),n2={class:"amplify-flex amplify-field amplify-checkboxfield"},r2={class:"amplify-flex amplify-checkbox"},o2={class:"amplify-visually-hidden"},i2=["data-error","data-checked"],a2=["data-checked"],s2=o.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),u2=[s2],c2=o.createElementVNode("span",{class:"amplify-text amplify-checkbox__label"}," I agree with the Terms & Conditions",-1),l2={key:0,class:"amplify-text amplify-field__error-message"},Ns=o.defineComponent({__name:"amplify-check-box",props:{errorMessage:{default:""}},setup(e){const t=e,n=o.ref(!1),{errorMessage:r}=o.toRefs(t);return(i,a)=>(o.openBlock(),o.createElementBlock("div",n2,[o.createElementVNode("label",r2,[o.createElementVNode("span",o2,[o.createElementVNode("input",{onClick:a[0]||(a[0]=s=>n.value=!n.value),class:"amplify-input amplify-field-group__control amplify-checkbox__input","aria-invalid":"false",type:"checkbox",name:"acknowledgement",value:"yes"})]),o.createElementVNode("span",{class:o.normalizeClass(["amplify-flex amplify-checkbox__button",{"amplify-checkbox__button--error":!n.value}]),"aria-hidden":"true","data-focus":"false","data-error":!n.value,"data-checked":n.value},[(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:o.normalizeClass(["amplify-icon amplify-checkbox__icon",{"amplify-checkbox__icon--checked":n.value}]),viewBox:"0 0 24 24",fill:"currentColor","data-checked":n.value},u2,10,a2))],10,i2),c2]),n.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("p",l2,o.toDisplayString(o.unref(r)),1))]))}});var d2={install:e=>{e.component("SignIn",$o),e.component("SignUp",No),e.component("FederatedSignIn",qn),e.component("Authenticator",Ts),e.component("RenderInfo",$s),e.component("PasswordControl",To),e.component("ForceNewPassword",Mo),e.component("ResetPassword",Fo),e.component("ConfirmResetPassword",Lo),e.component("ConfirmSignUp",ko),e.component("ConfirmSignIn",xo),e.component("VerifyUser",jo),e.component("ConfirmVerifyUser",zo),e.component("AmplifyTextField",Ps),e.component("AmplifyCheckBox",Ns),e.component("AmplifyButton",Se),e.component("BaseFormField",cs),e.component("BaseFormFields",Le),e.component("AuthenticatorSignUpFormFields",Po),e.component("AuthenticatorForceNewPasswordFormFields",Do)}};exports.AmplifyButton=Se;exports.AmplifyCheckBox=Ns;exports.AmplifyTextField=Ps;exports.Authenticator=Ts;exports.AuthenticatorForceNewPasswordFormFields=Do;exports.AuthenticatorSignUpFormFields=Po;exports.ConfirmResetPassword=Lo;exports.ConfirmSignIn=xo;exports.ConfirmSignUp=ko;exports.ConfirmVerifyUser=zo;exports.FederatedSignIn=qn;exports.ForceNewPassword=Mo;exports.PasswordControl=To;exports.RenderInfo=$s;exports.ResetPassword=Fo;exports.SignIn=$o;exports.SignUp=No;exports.VerifyUser=jo;exports.default=d2;exports.translations=bl;exports.useAuthenticator=Ce;
|